Re: [PATCH 03/51] drm: add managed resources tied to drm_device

2020-03-16 Thread Daniel Vetter
On Wed, Mar 11, 2020 at 10:07:13AM +0100, Thomas Zimmermann wrote: > Hi Daniel > > Am 02.03.20 um 23:25 schrieb Daniel Vetter: > > We have lots of these. And the cleanup code tends to be of dubious > > quality. The biggest wrong pattern is that developers use devm_, which > > ties the release

Re: [PATCH] backlight: lp855x: Ensure regulators are disabled on probe failure

2020-03-16 Thread Daniel Thompson
On Fri, Mar 13, 2020 at 02:16:16PM +, Jon Hunter wrote: > Hi Lee, Daniel, > > On 24/02/2020 14:37, Daniel Thompson wrote: > > On Mon, Feb 24, 2020 at 02:07:48PM +, Jon Hunter wrote: > >> If probing the LP885x backlight fails after the regulators have been > >> enabled, then the following

Re: [PATCH v1 35/36] dt-bindings: display: convert lgphilips, lb035q02 to DT Schema

2020-03-16 Thread Tomi Valkeinen
On 16/03/2020 10:53, Sam Ravnborg wrote: We have panel-simple-dsi for DSI simple based panels. This binding includes the reg property. If we have included DSI panels in panel-simple.yaml, and we likely have by accident, then they should be moved to panel-simple-dsi.yaml. If they requires

Re: [PATCH 1/6] lib/scatterlist: add sg_set_dma_addr() function

2020-03-16 Thread Christian König
Am 16.03.20 um 09:56 schrieb Christoph Hellwig: On Fri, Mar 13, 2020 at 09:17:42AM -0300, Jason Gunthorpe wrote: On Fri, Mar 13, 2020 at 04:21:39AM -0700, Christoph Hellwig wrote: On Thu, Mar 12, 2020 at 11:19:28AM -0300, Jason Gunthorpe wrote: The non-page scatterlist is also a big concern

Re: [PATCH 10/21] drm/tegra: remove checks for debugfs functions return value

2020-03-16 Thread Daniel Vetter
On Thu, Mar 12, 2020 at 12:24:46AM +0100, Thierry Reding wrote: > On Wed, Mar 11, 2020 at 05:54:46PM +0300, Wambui Karuga wrote: > > Hey Thierry, > > > > On Wed, 11 Mar 2020, Thierry Reding wrote: > > > > > On Thu, Feb 27, 2020 at 03:02:21PM +0300, Wambui Karuga wrote: > > > > Since 987d65d01356

[Bug 206575] [amdgpu] [drm] No video signal on resume from suspend, R9 380

2020-03-16 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206575 Duncan (dickvandr...@gmail.com) changed: What|Removed |Added CC||dickvandr...@gmail.com

Re: Plumbing explicit synchronization through the Linux ecosystem

2020-03-16 Thread Laurent Pinchart
On Wed, Mar 11, 2020 at 04:18:55PM -0400, Nicolas Dufresne wrote: > (I know I'm going to be spammed by so many mailing list ...) > > Le mercredi 11 mars 2020 à 14:21 -0500, Jason Ekstrand a écrit : > > On Wed, Mar 11, 2020 at 12:31 PM Jason Ekstrand > > wrote: > > > All, > > > > > > Sorry for

Re: [PATCH 22/51] drm: manage drm_minor cleanup with drmm_

2020-03-16 Thread Daniel Vetter
On Wed, Mar 11, 2020 at 10:59:10AM +0100, Thomas Zimmermann wrote: > Hi > > Am 02.03.20 um 23:26 schrieb Daniel Vetter: > > The cleanup here is somewhat tricky, since we can't tell apart the > > allocated minor index from 0. So register a cleanup action first, and > > if the index allocation

Re: [PATCH 03/51] drm: add managed resources tied to drm_device

2020-03-16 Thread Daniel Vetter
On Wed, Mar 11, 2020 at 10:14:03AM +0100, Thomas Zimmermann wrote: > > > Am 02.03.20 um 23:25 schrieb Daniel Vetter: > <...> > > + > > +int __drmm_add_action(struct drm_device *dev, > > + drmres_release_t action, > > + void *data, const char *name) > > +{ > > +

Re: [PATCH 21/51] drm: Use drmm_ for drm_dev_init cleanup

2020-03-16 Thread Daniel Vetter
On Wed, Mar 11, 2020 at 10:39:13AM +0100, Thomas Zimmermann wrote: > Hi > > Am 02.03.20 um 23:26 schrieb Daniel Vetter: > > Well for the simple stuff at least, vblank, gem and minor cleanup I > > want to further split up as a demonstration. > > > > v2: We need to clear drm_device->dev otherwise

Re: [Intel-gfx] [PATCH] MAINTAINERS: adjust to reservation.h renaming

2020-03-16 Thread Daniel Vetter
On Fri, Mar 06, 2020 at 02:56:06AM -0800, Joe Perches wrote: > On Fri, 2020-03-06 at 11:39 +0100, Daniel Vetter wrote: > > On Wed, Mar 04, 2020 at 01:08:32PM +0100, Christian König wrote: > > > Am 04.03.20 um 13:07 schrieb Lukas Bulwahn: > > > > Commit 52791eeec1d9 ("dma-buf: rename

[git-pull] vmwgfx-next

2020-03-16 Thread Thomas Hellstrom (VMware)
Dave, Daniel, The first vmwgfx-next pull for 5.7. Roland Scheidegger will follow up with a larger pull request for functionality needed for GL4 support. - Disable DMA when using SEV encryption - An -RT fix - Code cleanups Thanks, Thomas The following changes since commit

Re: [PATCH v1 35/36] dt-bindings: display: convert lgphilips,lb035q02 to DT Schema

2020-03-16 Thread Sam Ravnborg
Hi Tomi. On Mon, Mar 16, 2020 at 10:42:45AM +0200, Tomi Valkeinen wrote: > On 16/03/2020 10:26, Sam Ravnborg wrote: > > > > Isn't this also compatible with panel-simple bindings? 'label' is the only > > > one not in panel-simple, but that's optional and has never been used by > > > the > > >

Re: [PATCH v2] drm/edid: Distribute switch variables for initialization

2020-03-16 Thread Daniel Vetter
On Fri, Mar 06, 2020 at 09:32:13AM -0800, Kees Cook wrote: > Variables declared in a switch statement before any case statements > cannot be automatically initialized with compiler instrumentation (as > they are not part of any execution flow). With GCC's proposed automatic > stack variable

Re: [PATCH] drm: Mark up racy check of drm_gem_object.handle_count

2020-03-16 Thread Daniel Vetter
On Mon, Mar 09, 2020 at 12:01:51PM +, Chris Wilson wrote: > [ 1715.899800] BUG: KCSAN: data-race in drm_gem_handle_create_tail / > drm_gem_object_handle_put_unlocked > [ 1715.899838] > [ 1715.899861] write to 0x8881830f3604 of 4 bytes by task 7834 on cpu 1: > [ 1715.899896]

Re: [PATCH v1 35/36] dt-bindings: display: convert lgphilips, lb035q02 to DT Schema

2020-03-16 Thread Tomi Valkeinen
On 16/03/2020 10:26, Sam Ravnborg wrote: Isn't this also compatible with panel-simple bindings? 'label' is the only one not in panel-simple, but that's optional and has never been used by the panel driver. The panel is a SPI slave - which is not too obvious from the old binding. The new DT

Re: [Mesa-dev] Plumbing explicit synchronization through the Linux ecosystem

2020-03-16 Thread Michel Dänzer
On 2020-03-16 4:50 a.m., Marek Olšák wrote: > The synchronization works because the Mesa driver waits for idle (drains > the GFX pipeline) at the end of command buffers and there is only 1 > graphics queue, so everything is ordered. > > The GFX pipeline runs asynchronously to the command buffer,

Re: [Intel-gfx] [PATCH] MAINTAINERS: adjust to reservation.h renaming

2020-03-16 Thread Daniel Vetter
On Mon, Mar 16, 2020 at 10:50:07AM +0100, Daniel Vetter wrote: > On Fri, Mar 06, 2020 at 02:56:06AM -0800, Joe Perches wrote: > > On Fri, 2020-03-06 at 11:39 +0100, Daniel Vetter wrote: > > > On Wed, Mar 04, 2020 at 01:08:32PM +0100, Christian König wrote: > > > > Am 04.03.20 um 13:07 schrieb

Re: [Intel-gfx] [PATCH] drm/mm: Allow drm_mm_initialized() to be used outside of the locks

2020-03-16 Thread Daniel Vetter
On Mon, Mar 09, 2020 at 12:15:29PM +, Chris Wilson wrote: > Mark up the potential racy read in drm_mm_initialized(), as we want a > cheap and cheerful check: > > [ 121.098731] BUG: KCSAN: data-race in _i915_gem_object_create_stolen [i915] > / rm_hole > [ 121.098766] > [ 121.098789] write

Re: [RFC PATCH 0/8] *** Per context fencing ***

2020-03-16 Thread Gerd Hoffmann
Hi, > >> At virtio level it is pretty simple: The host completes the SUBMIT_3D > >> virtio command when it finished rendering, period. > >> > >> > >> On the guest side we don't need the fence_id. The completion callback > >> gets passed the virtio_gpu_vbuffer, so it can figure which command

[PATCH v7 1/2] dt-bindings: display: add visionox rm69299 panel variant

2020-03-16 Thread Harigovindan P
Add bindings for visionox rm69299 panel. Signed-off-by: Harigovindan P --- .../display/panel/visionox,rm69299.yaml | 81 +++ 1 file changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/visionox,rm69299.yaml diff --git

[PATCH v7 2/2] drm/panel: add support for rm69299 visionox panel driver

2020-03-16 Thread Harigovindan P
Add support for Visionox panel driver. Signed-off-by: Harigovindan P --- drivers/gpu/drm/panel/Kconfig | 8 + drivers/gpu/drm/panel/Makefile| 1 + .../gpu/drm/panel/panel-visionox-rm69299.c| 295 ++ 3 files changed, 304 insertions(+)

[PATCH v7 0/2] Add support for rm69299 Visionox panel driver and add devicetree bindings for visionox panel

2020-03-16 Thread Harigovindan P
Adding support for visionox rm69299 panel driver and adding bindings for the same panel. Harigovindan P (2): dt-bindings: display: add visionox rm69299 panel variant drm/panel: add support for rm69299 visionox panel driver .../display/panel/visionox,rm69299.yaml | 81 +

[PATCH v7 1/2] dt-bindings: display: add visionox rm69299 panel variant

2020-03-16 Thread Harigovindan P
Add bindings for visionox rm69299 panel. Signed-off-by: Harigovindan P --- Changes in v2: - Removed unwanted properties from description. - Creating source files without execute permissions(Rob Herring). Changes in v3: - Changing txt file into yaml Changes in v4:

[PATCH RESEND] drm/lease: fix potential race in fill_object_idr

2020-03-16 Thread Qiujun Huang
We should hold idr_mutex for idr_alloc. Signed-off-by: Qiujun Huang --- drivers/gpu/drm/drm_lease.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_lease.c b/drivers/gpu/drm/drm_lease.c index b481caf..427ee21 100644 ---

[PATCH v7 2/2] drm/panel: add support for rm69299 visionox panel driver

2020-03-16 Thread Harigovindan P
Add support for Visionox panel driver. Signed-off-by: Harigovindan P --- Changes in v2: - Dropping redundant space in Kconfig(Sam Ravnborg). - Changing structure for include files(Sam Ravnborg). - Removing backlight related code and functions(Sam Ravnborg). -

Re: [PATCH] MAINTAINERS: adjust to VIVANTE GPU schema conversion

2020-03-16 Thread Benjamin GAIGNARD
On 3/15/20 8:21 AM, Lukas Bulwahn wrote: > Commit 90aeca875f8a ("dt-bindings: display: Convert etnaviv to > json-schema") missed to adjust the DRM DRIVERS FOR VIVANTE GPU IP entry > in MAINTAINERS. > > Since then, ./scripts/get_maintainer.pl --self-test complains: > >warning: no file

[PATCH] drm/lease: fix WARNING in idr_destroy

2020-03-16 Thread Qiujun Huang
leases has been destroyed: drm_master_put ->drm_master_destroy ->idr_destroy so the "out_lessee" needn't to call idr_destroy again. Reported-and-tested-by: syzbot+05835159fe322770f...@syzkaller.appspotmail.com Signed-off-by: Qiujun Huang --- drivers/gpu/drm/drm_lease.c | 5

[PATCH v7 0/2] Add support for rm69299 Visionox panel driver and add devicetree bindings for visionox panel

2020-03-16 Thread Harigovindan P
Adding support for visionox rm69299 panel driver and adding bindings for the same panel. Harigovindan P (2): dt-bindings: display: add visionox rm69299 panel variant drm/panel: add support for rm69299 visionox panel driver .../display/panel/visionox,rm69299.yaml | 81 +

Re: [PATCH v1 15/36] dt-bindings: display: convert simple lg panels to DT Schema

2020-03-16 Thread Brian Masney
On Sun, Mar 15, 2020 at 02:43:55PM +0100, Sam Ravnborg wrote: > Add the lg panels that matches the panel-simple binding to > panel-simple.yaml > > Signed-off-by: Sam Ravnborg > Cc: Alexandre Courbot > Cc: Brian Masney > Cc: Thierry Reding > Cc: Sam Ravnborg Reviewed-by: Brian Masney

Re: [PATCH v1 35/36] dt-bindings: display: convert lgphilips, lb035q02 to DT Schema

2020-03-16 Thread Tomi Valkeinen
Hi Sam, On 15/03/2020 15:44, Sam Ravnborg wrote: Signed-off-by: Sam Ravnborg Cc: Tomi Valkeinen Cc: Thierry Reding Cc: Sam Ravnborg --- .../display/panel/lgphilips,lb035q02.txt | 33 .../display/panel/lgphilips,lb035q02.yaml | 54 +++ 2 files

Re: [PATCH v1 17/36] dt-bindings: display: convert osddisplays,osd101t2587-53ts to DT Schema

2020-03-16 Thread Tomi Valkeinen
On 15/03/2020 15:43, Sam Ravnborg wrote: osddisplays,osd101t2587-53ts is compatible with panel-simple binding, so list the compatible in the panel-simple binding file. Signed-off-by: Sam Ravnborg Cc: Peter Ujfalusi Cc: Thierry Reding Cc: Sam Ravnborg ---

Re: [PATCH v1 35/36] dt-bindings: display: convert lgphilips,lb035q02 to DT Schema

2020-03-16 Thread Sam Ravnborg
Hi Tomi. Thanks for your feedback. On Mon, Mar 16, 2020 at 09:57:57AM +0200, Tomi Valkeinen wrote: > Hi Sam, > > On 15/03/2020 15:44, Sam Ravnborg wrote: > > Signed-off-by: Sam Ravnborg > > Cc: Tomi Valkeinen > > Cc: Thierry Reding > > Cc: Sam Ravnborg > > --- > >

Re: [RFC][PATCH 1/5] drm: Introduce scaling filter property

2020-03-16 Thread Daniel Vetter
On Tue, Mar 10, 2020 at 06:01:06PM +0200, Ville Syrjälä wrote: > On Tue, Feb 25, 2020 at 12:35:41PM +0530, Pankaj Bharadiya wrote: > > Introduce new scaling filter property to allow userspace to select > > the driver's default scaling filter or Nearest-neighbor(NN) filter > > for upscaling

Re: Plumbing explicit synchronization through the Linux ecosystem

2020-03-16 Thread Laurent Pinchart
Hi Tomek, On Mon, Mar 16, 2020 at 12:55:27PM +, Tomek Bury wrote: > Hi Jason, > > I've been wrestling with the sync problems in Wayland some time ago, but only > with regards to 3D drivers. > > The guarantee given by the GL/GLES spec is limited to a single graphics > context. If the same

Re: [PATCH v1 02/36] dt-bindings: spi: support non-spi bindings as SPI slaves

2020-03-16 Thread Sam Ravnborg
Hi Mark. On Mon, Mar 16, 2020 at 12:02:41PM +, Mark Brown wrote: > On Sun, Mar 15, 2020 at 02:43:42PM +0100, Sam Ravnborg wrote: > > > Independent bindings can be SPI slaves which for example is > > the case for several panel bindings. > > What is an "independent binding"? For several

Re: [PATCH v1 02/36] dt-bindings: spi: support non-spi bindings as SPI slaves

2020-03-16 Thread Mark Brown
On Sun, Mar 15, 2020 at 02:43:42PM +0100, Sam Ravnborg wrote: > Independent bindings can be SPI slaves which for example is > the case for several panel bindings. What is an "independent binding"? Please submit patches using subject lines reflecting the style for the subsystem, this makes it

Ack to merge through DRM? WAS [PATCH v6 0/9] Huge page-table entries for TTM

2020-03-16 Thread VMware
On 3/4/20 11:28 AM, Thomas Hellström (VMware) wrote: In order to reduce CPU usage [1] and in theory TLB misses this patchset enables huge- and giant page-table entries for TTM and TTM-enabled graphics drivers. Patch 1 and 2 introduce a vma_is_special_huge() function to make the mm code take the

Re: [RFC][PATCH 1/5] drm: Introduce scaling filter property

2020-03-16 Thread Ville Syrjälä
On Mon, Mar 16, 2020 at 09:31:32AM +0100, Daniel Vetter wrote: > On Tue, Mar 10, 2020 at 06:01:06PM +0200, Ville Syrjälä wrote: > > On Tue, Feb 25, 2020 at 12:35:41PM +0530, Pankaj Bharadiya wrote: > > > Introduce new scaling filter property to allow userspace to select > > > the driver's default

Re: Plumbing explicit synchronization through the Linux ecosystem

2020-03-16 Thread Daniel Stone
Hi Tomek, On Mon, 16 Mar 2020 at 12:55, Tomek Bury wrote: > I've been wrestling with the sync problems in Wayland some time ago, but only > with regards to 3D drivers. > > The guarantee given by the GL/GLES spec is limited to a single graphics > context. If the same buffer is accessed by 2

Re: [PATCHv7 4/6] drm/arm/malidp: Allocate an afbc-specific drm_framebuffer

2020-03-16 Thread Emil Velikov
On Wed, 11 Mar 2020 at 14:56, Andrzej Pietrasiewicz wrote: > > Prepare for using generic afbc helpers. > > Use an existing helper which allows allocating a struct drm_framebuffer > in the driver. > > afbc-specific checks should go after drm_gem_fb_init_with_funcs(). > > Signed-off-by: Andrzej

Re: [PATCH 2/2] dt-bindings: Document the Synopsys ARC HDMI TX bindings

2020-03-16 Thread Sam Ravnborg
Hi Eugeniy. On Mon, Mar 16, 2020 at 05:46:47PM +0300, Eugeniy Paltsev wrote: > This patch adds documentation of device tree bindings for the Synopsys > HDMI 2.0 TX encoder driver for ARC SoCs. > > Signed-off-by: Eugeniy Paltsev > --- > .../display/bridge/snps,arc-dw-hdmi.txt | 73

Re: Plumbing explicit synchronization through the Linux ecosystem

2020-03-16 Thread Jason Ekstrand
On Mon, Mar 16, 2020 at 5:20 AM Laurent Pinchart wrote: > > On Wed, Mar 11, 2020 at 04:18:55PM -0400, Nicolas Dufresne wrote: > > (I know I'm going to be spammed by so many mailing list ...) > > > > Le mercredi 11 mars 2020 à 14:21 -0500, Jason Ekstrand a écrit : > > > On Wed, Mar 11, 2020 at

DMA, TTM and memory encryption

2020-03-16 Thread VMware
Hi, Christoph, It would be good to revisit this to see if we could set a direction for supporting user-space mapping of dma-coherent memory with TTM. I think in the end, what TTM needs is a DMA interface similar to the one outlined here:

[PATCH 2/2] dt-bindings: Document the Synopsys ARC HDMI TX bindings

2020-03-16 Thread Eugeniy Paltsev
This patch adds documentation of device tree bindings for the Synopsys HDMI 2.0 TX encoder driver for ARC SoCs. Signed-off-by: Eugeniy Paltsev --- .../display/bridge/snps,arc-dw-hdmi.txt | 73 +++ 1 file changed, 73 insertions(+) create mode 100644

[PATCH 0/2] DRM: ARC: add HDMI 2.0 TX encoder support

2020-03-16 Thread Eugeniy Paltsev
Eugeniy Paltsev (2): DRM: ARC: add HDMI 2.0 TX encoder support dt-bindings: Document the Synopsys ARC HDMI TX bindings .../display/bridge/snps,arc-dw-hdmi.txt | 73 ++ MAINTAINERS | 6 + drivers/gpu/drm/Makefile | 2 +-

[PATCH 1/2] DRM: ARC: add HDMI 2.0 TX encoder support

2020-03-16 Thread Eugeniy Paltsev
The Synopsys ARC SoCs (like HSDK4xD) include on-chip DesignWare HDMI encoders. Support them with a platform driver to provide platform glue data to the dw-hdmi driver. Signed-off-by: Eugeniy Paltsev --- MAINTAINERS | 6 ++ drivers/gpu/drm/Makefile | 2 +-

Re: Plumbing explicit synchronization through the Linux ecosystem

2020-03-16 Thread Jason Ekstrand
On Mon, Mar 16, 2020 at 10:33 AM Tomek Bury wrote: > > > GL and GLES are not relevant. What is relevant is EGL, which defines > > interfaces to make things work on the native platform. > Yes and no. This is what EGL spec says about sharing a texture between > contexts: > > "OpenGL and OpenGL ES

Re: Plumbing explicit synchronization through the Linux ecosystem

2020-03-16 Thread Daniel Stone
Hi, On Mon, 16 Mar 2020 at 15:33, Tomek Bury wrote: > > GL and GLES are not relevant. What is relevant is EGL, which defines > > interfaces to make things work on the native platform. > Yes and no. This is what EGL spec says about sharing a texture between > contexts: Contexts are different

Re: [PATCHv7 6/6] drm/rockchip: Add support for afbc

2020-03-16 Thread Emil Velikov
On Wed, 11 Mar 2020 at 14:56, Andrzej Pietrasiewicz wrote: > > This patch adds support for afbc handling. afbc is a compressed format > which reduces the necessary memory bandwidth. > > Co-developed-by: Mark Yao > Signed-off-by: Mark Yao > Signed-off-by: Andrzej Pietrasiewicz > --- >

Re: [PATCH 2/2] mm: remove device private page support from hmm_range_fault

2020-03-16 Thread Ralph Campbell
On 3/16/20 10:52 AM, Christoph Hellwig wrote: No driver has actually used properly wire up and support this feature. There is various code related to it in nouveau, but as far as I can tell it never actually got turned on, and the only changes since the initial commit are global cleanups.

Re: [PATCH v1 02/36] dt-bindings: spi: support non-spi bindings as SPI slaves

2020-03-16 Thread Sam Ravnborg
Hi Mark. On Mon, Mar 16, 2020 at 04:35:38PM +, Mark Brown wrote: > On Mon, Mar 16, 2020 at 02:28:44PM +0100, Sam Ravnborg wrote: > > On Mon, Mar 16, 2020 at 12:02:41PM +, Mark Brown wrote: > > > On Sun, Mar 15, 2020 at 02:43:42PM +0100, Sam Ravnborg wrote: > > > > > Independent bindings

Re: [PATCH] drm/msm/dpu: ensure device suspend happens during PM sleep

2020-03-16 Thread Rob Clark
On Mon, Mar 16, 2020 at 4:05 AM Kalyan Thota wrote: > > "The PM core always increments the runtime usage counter > before calling the ->suspend() callback and decrements it > after calling the ->resume() callback" > > DPU and DSI are managed as runtime devices. When > suspend is triggered, PM

Re: [Mesa-dev] Plumbing explicit synchronization through the Linux ecosystem

2020-03-16 Thread Marek Olšák
On Mon, Mar 16, 2020 at 5:57 AM Michel Dänzer wrote: > On 2020-03-16 4:50 a.m., Marek Olšák wrote: > > The synchronization works because the Mesa driver waits for idle (drains > > the GFX pipeline) at the end of command buffers and there is only 1 > > graphics queue, so everything is ordered. >

Re: [PATCH 4/4] mm: check the device private page owner in hmm_range_fault

2020-03-16 Thread Ralph Campbell
On 3/16/20 12:32 PM, Christoph Hellwig wrote: Hmm range fault will succeed for any kind of device private memory, even if it doesn't belong to the calling entity. While nouveau has some crude checks for that, they are broken because they assume nouveau is the only user of device private

Re: [PATCH 2/4] mm: handle multiple owners of device private pages in migrate_vma

2020-03-16 Thread Ralph Campbell
On 3/16/20 12:32 PM, Christoph Hellwig wrote: Add a new src_owner field to struct migrate_vma. If the field is set, only device private pages with page->pgmap->owner equal to that field are migrated. If the field is not set only "normal" pages are migrated. Signed-off-by: Christoph Hellwig

Re: [PATCH v1 02/36] dt-bindings: spi: support non-spi bindings as SPI slaves

2020-03-16 Thread Sam Ravnborg
Hi Maxime. On Mon, Mar 16, 2020 at 09:48:50PM +0100, Maxime Ripard wrote: > Hi Sam, > > On Sun, Mar 15, 2020 at 02:43:42PM +0100, Sam Ravnborg wrote: > > Independent bindings can be SPI slaves which for example is > > the case for several panel bindings. > > > > Move SPI slave properties to

Re: [PATCH] drm/lima: add trace point for tasks

2020-03-16 Thread Qiang Yu
On Sun, Mar 15, 2020 at 12:36 PM Vasily Khoruzhick wrote: > > On Sat, Mar 7, 2020 at 5:55 AM Qiang Yu wrote: > > > > track lima task start which can be combined with > > dma_fence_signal to identify task execution time. > > > > example command to record: > > > > trace-cmd record -i \ > > -e

Re: [PATCHv7 1/6] drm/core: Allow drivers allocate a subclass of struct drm_framebuffer

2020-03-16 Thread james qian wang (Arm Technology China)
On Wed, Mar 11, 2020 at 10:55:36PM +0800, Andrzej Pietrasiewicz wrote: > Allow allocating a specialized version of struct drm_framebuffer > by moving the actual fb allocation out of drm_gem_fb_create_with_funcs(); > the respective functions names are adjusted to reflect that fact. > Please note,

Re: Plumbing explicit synchronization through the Linux ecosystem

2020-03-16 Thread Jason Ekstrand
On Mon, Mar 16, 2020 at 6:39 PM Roman Gilg wrote: > > On Wed, Mar 11, 2020 at 8:21 PM Jason Ekstrand wrote: > > > > On Wed, Mar 11, 2020 at 12:31 PM Jason Ekstrand > > wrote: > > > > > > All, > > > > > > Sorry for casting such a broad net with this one. I'm sure most people > > > who reply

Re: [PATCH v1 02/36] dt-bindings: spi: support non-spi bindings as SPI slaves

2020-03-16 Thread Mark Brown
On Mon, Mar 16, 2020 at 02:28:44PM +0100, Sam Ravnborg wrote: > On Mon, Mar 16, 2020 at 12:02:41PM +, Mark Brown wrote: > > On Sun, Mar 15, 2020 at 02:43:42PM +0100, Sam Ravnborg wrote: > > > Independent bindings can be SPI slaves which for example is > > > the case for several panel

[PATCH] drm/mipi-dbi: Make mipi_dbi_command_stackbuf() data parameter const

2020-03-16 Thread Geert Uytterhoeven
mipi_dbi_command_stackbuf() copies the passed buffer data, so it can be const. Signed-off-by: Geert Uytterhoeven --- drivers/gpu/drm/drm_mipi_dbi.c | 3 ++- include/drm/drm_mipi_dbi.h | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_mipi_dbi.c

Re: [PATCH v7 2/2] drm/panel: add support for rm69299 visionox panel driver

2020-03-16 Thread Matthias Kaehlcke
On Mon, Mar 16, 2020 at 09:46:47AM +0530, Harigovindan P wrote: > Add support for Visionox panel driver. > > Signed-off-by: Harigovindan P Reviewed-by: Matthias Kaehlcke ___ dri-devel mailing list dri-devel@lists.freedesktop.org

Re: [PATCHv7 2/6] drm/core: Add drm_afbc_framebuffer and a corresponding helper

2020-03-16 Thread james qian wang (Arm Technology China)
On Wed, Mar 11, 2020 at 10:55:37PM +0800, Andrzej Pietrasiewicz wrote: > The new struct contains afbc-specific data. > > The new function can be used by drivers which support afbc to complete > the preparation of struct drm_afbc_framebuffer. It must be called after > allocating the said struct

Re: [PATCH 2/2] mm: remove device private page support from hmm_range_fault

2020-03-16 Thread Ralph Campbell
On 3/16/20 1:09 PM, Jason Gunthorpe wrote: On Mon, Mar 16, 2020 at 07:49:35PM +0100, Christoph Hellwig wrote: On Mon, Mar 16, 2020 at 11:42:19AM -0700, Ralph Campbell wrote: On 3/16/20 10:52 AM, Christoph Hellwig wrote: No driver has actually used properly wire up and support this feature.

Re: [PATCH 2/2] mm: remove device private page support from hmm_range_fault

2020-03-16 Thread Ralph Campbell
On 3/16/20 11:49 AM, Christoph Hellwig wrote: On Mon, Mar 16, 2020 at 11:42:19AM -0700, Ralph Campbell wrote: On 3/16/20 10:52 AM, Christoph Hellwig wrote: No driver has actually used properly wire up and support this feature. There is various code related to it in nouveau, but as far as I

Re: [PATCH v1 02/36] dt-bindings: spi: support non-spi bindings as SPI slaves

2020-03-16 Thread Mark Brown
On Mon, Mar 16, 2020 at 07:57:33PM +0100, Sam Ravnborg wrote: > It was the best I could come up with - and this patch was called out > for review in the hope there is a better way than this patch. It definitely seems like a useful thing, just a bit surprised it's not already there and if this is

Re: [PATCH v1 11/36] dt-bindings: display: convert innolux,p120zdg-bf1 to DT Schema

2020-03-16 Thread Doug Anderson
Hi, On Sun, Mar 15, 2020 at 6:44 AM Sam Ravnborg wrote: > > Signed-off-by: Sam Ravnborg > Cc: Sandeep Panda > Cc: Douglas Anderson > Cc: Thierry Reding > Cc: Sam Ravnborg > --- > .../display/panel/innolux,p120zdg-bf1.txt | 22 -- > .../display/panel/innolux,p120zdg-bf1.yaml

Re: [PATCH 1/4] memremap: add an owner field to struct dev_pagemap

2020-03-16 Thread Ralph Campbell
On 3/16/20 12:32 PM, Christoph Hellwig wrote: Add a new opaque owner field to struct dev_pagemap, which will allow the hmm and migrate_vma code to identify who owns ZONE_DEVICE memory, and refuse to work on mappings not owned by the calling entity. Signed-off-by: Christoph Hellwig This

Re: [PATCH 3/4] mm: simplify device private page handling in hmm_range_fault

2020-03-16 Thread Ralph Campbell
On 3/16/20 12:32 PM, Christoph Hellwig wrote: Remove the code to fault device private pages back into system memory that has never been used by any driver. Also replace the usage of the HMM_PFN_DEVICE_PRIVATE flag in the pfns array with a simple is_device_private_page check in nouveau.

Re: Plumbing explicit synchronization through the Linux ecosystem

2020-03-16 Thread Laurent Pinchart
Hi Jason, On Mon, Mar 16, 2020 at 10:06:07AM -0500, Jason Ekstrand wrote: > On Mon, Mar 16, 2020 at 5:20 AM Laurent Pinchart wrote: > > On Wed, Mar 11, 2020 at 04:18:55PM -0400, Nicolas Dufresne wrote: > >> (I know I'm going to be spammed by so many mailing list ...) > >> > >> Le mercredi 11 mars

Re: Plumbing explicit synchronization through the Linux ecosystem

2020-03-16 Thread Jason Ekstrand
On Mon, Mar 16, 2020 at 4:15 PM Laurent Pinchart wrote: > > Hi Jason, > > On Mon, Mar 16, 2020 at 10:06:07AM -0500, Jason Ekstrand wrote: > > On Mon, Mar 16, 2020 at 5:20 AM Laurent Pinchart wrote: > > > On Wed, Mar 11, 2020 at 04:18:55PM -0400, Nicolas Dufresne wrote: > > >> (I know I'm going to

Re: Plumbing explicit synchronization through the Linux ecosystem

2020-03-16 Thread Roman Gilg
On Wed, Mar 11, 2020 at 8:21 PM Jason Ekstrand wrote: > > On Wed, Mar 11, 2020 at 12:31 PM Jason Ekstrand wrote: > > > > All, > > > > Sorry for casting such a broad net with this one. I'm sure most people > > who reply will get at least one mailing list rejection. However, this > > is an issue