Re: [PATCH] drm/xen-front: Make shmem backed display buffer coherent

2018-12-19 Thread Oleksandr Andrushchenko
On 12/18/18 9:20 PM, Noralf Trønnes wrote: Den 27.11.2018 11.32, skrev Oleksandr Andrushchenko: From: Oleksandr Andrushchenko When GEM backing storage is allocated with drm_gem_get_pages the backing pages may be cached, thus making it possible that the backend sees only partial content of the

[PATCH V3 2/2] Tools: Replace open encodings for NUMA_NO_NODE

2018-12-19 Thread Anshuman Khandual
From: Stephen Rothwell This replaces all open encodings in tools with NUMA_NO_NODE. Also linux/numa.h is now needed for the perf build. Signed-off-by: Anshuman Khandual Signed-off-by: Stephen Rothwell --- tools/include/linux/numa.h | 16 tools/perf/bench/numa.c| 6 +++---

[PATCH V3 1/2] mm: Replace all open encodings for NUMA_NO_NODE

2018-12-19 Thread Anshuman Khandual
At present there are multiple places where invalid node number is encoded as -1. Even though implicitly understood it is always better to have macros in there. Replace these open encodings for an invalid node number with the global macro NUMA_NO_NODE. This helps remove NUMA related assumptions like

[RFC 09/16] drm/panel: simple: Add support for Innolux LS075AT011

2018-12-19 Thread Lubomir Rintel
This adds support for Innolux LS075AT011 7.5" 1200x900 panel. The panel is not a regular LCD with RGB pixels. Its pixels are just of one color, organized like this: g b r b r g . . . r g b . . . It's controlled by the Himax HX8837, which takes the RGB data, optionally dithers the col

Re: [PATCH][resend] drm: dw-hdmi-i2s: convert to SPDX identifiers

2018-12-19 Thread Kuninori Morimoto
Hi Laurent > > few weeks passed, nothing happen. I re-post this patch again. > > I added Andrew on Cc > > >>> > > >>> The driver seems to be lacking a maintainer :-S > > >> > > >> bridge drivers all have a fallback maintainer, but none of them are > > >> cc'ed. It's maintained in drm-

Re: [PATCH v3 2/2] drm/panel: Add Feiyang FY07024DI26A30-D MIPI-DSI LCD panel

2018-12-19 Thread Jagan Teki
On Sat, Dec 15, 2018 at 3:32 AM Sean Paul wrote: > > On Sat, Dec 15, 2018 at 02:11:01AM +0530, Jagan Teki wrote: > > Feiyang FY07024DI26A30-D is 1024x600, 4-lane MIPI-DSI LCD panel. > > > > Add panel driver for it. > > > > Signed-off-by: Jagan Teki > > --- > > Changes for v2: > > - use simple str

[RFC 10/16] drm/armada: fix compare_of() for LCD controllers

2018-12-19 Thread Lubomir Rintel
From: Russell King The DT node passed for LCD controllers is the "port" node within the parent device. Detect this and compare the parent node. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_drv.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/

Re: [PATCH -next] staging: fbtft: use strcmp() instead of strncmp() for subsystem lookup

2018-12-19 Thread YueHaibing
sorry, Pls ignore this. The title need fix. On 2018/12/18 21:09, YueHaibing wrote: > strncmp() stops comparing when either the end of one of the first two > arguments is reached or when 'n' characters have been compared, whichever > comes first.That means that strncmp(s1, s2, n) is equivalent to

[RFC 05/16] dt-bindings: display: armada: Add mmp2 compatible strings

2018-12-19 Thread Lubomir Rintel
The driver will work on a MMP2 as well. Signed-off-by: Lubomir Rintel --- Note that perhaps "marvell,armada-display-subsystem" and "marvell,armada-framebuffer" would be a good idea in addition of dove/mmp2 specific strings since (at least for now) the driver code is the same. --- .../bindings/d

[PATCH V3 0/2] Replace all open encodings for NUMA_NO_NODE

2018-12-19 Thread Anshuman Khandual
Changes in V3: - Dropped all references to NUMA_NO_NODE as per Lubomir Rinetl - Split the patch into two creating a new one specifically for tools - Folded Stephen's linux-next build fix into the second patch Changes in V2: (https://patchwork.kernel.org/patch/10698089/) - Added inclusion of 'num

Re: [PATCH v4 4/9] drm/rockchip/rockchip_drm_gem.c: Convert to use vm_insert_range

2018-12-19 Thread Souptick Joarder
On Tue, Dec 18, 2018 at 3:27 PM Russell King - ARM Linux wrote: > > On Tue, Dec 18, 2018 at 01:53:34AM +0530, Souptick Joarder wrote: > > Convert to use vm_insert_range() to map range of kernel > > memory to user vma. > > > > Signed-off-by: Souptick Joarder > > Tested-by: Heiko Stuebner > > Acke

Re: [PATCH v2 -next] staging: fbtft: use strcmp() instead of strncmp() for

2018-12-19 Thread YueHaibing
On 2018/12/18 21:37, Dan Carpenter wrote: > On Tue, Dec 18, 2018 at 09:25:08PM +0800, YueHaibing wrote: >> strncmp() stops comparing when either the end of one of the first two >> arguments is reached or when 'n' characters have been compared, whichever >> comes first.That means that strncmp(s1, s

Re: [PATCH v4 4/9] drm/rockchip/rockchip_drm_gem.c: Convert to use vm_insert_range

2018-12-19 Thread Souptick Joarder
On Tue, Dec 18, 2018 at 6:31 PM Russell King - ARM Linux wrote: > > On Tue, Dec 18, 2018 at 06:24:29PM +0530, Souptick Joarder wrote: > > On Tue, Dec 18, 2018 at 6:03 PM Russell King - ARM Linux > > wrote: > > > > > > On Tue, Dec 18, 2018 at 05:36:04PM +0530, Souptick Joarder wrote: > > > > On Tu

[RFC 00/16] Armada DRM support for OLPC XO-1.75 laptop

2018-12-19 Thread Lubomir Rintel
Hi, here are patches that make the Armada DRM work on an OLPC XO-1.75. They build on patches previously submitted by Russel King (included here for completeness as well). They certainly need some more love, but I'm not able to improve them until I get to understand some things first. I'm posting

[RFC 07/16] dt-bindings: display: himax, hx8837: Add Himax HX8837 bindings

2018-12-19 Thread Lubomir Rintel
Himax HX8837 is a secondary display controller used to drive the panel on OLPC platforms. Signed-off-by: Lubomir Rintel --- Changes since v3: - Moved to bindings/display/ - Added the ports - Removed Pavel's Ack, because the changes are substantial Changes since v2: - s/betweend/between/ Change

[RFC 11/16] drm/armada: add OF reserved memory support

2018-12-19 Thread Lubomir Rintel
From: Russell King Existing Armada DRM makes use of reserved memory for allocating contiguous screen buffers, which currently prevents its use with DT systems. Add support for this for DT systems. Signed-off-by: Russell King --- drivers/gpu/drm/armada/Makefile | 3 ++ drivers/gpu/drm/a

Re: [PATCH v4 4/9] drm/rockchip/rockchip_drm_gem.c: Convert to use vm_insert_range

2018-12-19 Thread Souptick Joarder
On Tue, Dec 18, 2018 at 6:03 PM Russell King - ARM Linux wrote: > > On Tue, Dec 18, 2018 at 05:36:04PM +0530, Souptick Joarder wrote: > > On Tue, Dec 18, 2018 at 3:27 PM Russell King - ARM Linux > > wrote: > > > This looks like a change in behaviour. > > > > > > If user_count is zero, and offset

Re: [PATCH 2/3] drm/armada: add OF reserved memory support

2018-12-19 Thread Lubomir Rintel
On Tue, 2018-07-10 at 11:24 +0100, Russell King wrote: > Existing Armada DRM makes use of reserved memory for allocating > contiguous screen buffers, which currently prevents its use with > DT systems. Add support for this for DT systems. > > Signed-off-by: Russell King > --- > drivers/gpu/drm/

[RFC 04/16] dt-bindings: display: armada: Add display subsystem binding

2018-12-19 Thread Lubomir Rintel
The Marvell Armada DRM master device is a virtual device needed to list all nodes that comprise the graphics subsystem. Signed-off-by: Lubomir Rintel --- .../display/armada/marvell-armada-drm.txt | 22 +++ 1 file changed, 22 insertions(+) diff --git a/Documentation/devicetr

[RFC 12/16] drm/armada: add bus-width property to the output endpoint

2018-12-19 Thread Lubomir Rintel
This makes it possible to choose a different pixel format for the endpoint. Modelled after what other LCD controllers use, including marvell,pxa2xx-lcdc and atmel,hlcdc-display-controller and perhaps more. Signed-off-by: Lubomir Rintel --- drivers/gpu/drm/armada/armada_crtc.c | 26 ++

[RFC 16/16] drm/i2c: hx8837: add a Himax HX8837 display controller driver

2018-12-19 Thread Lubomir Rintel
Himax HX8837 is used to drive the LCD panel on OLPC platforms. It controls backlight and is able to capture and freeze a frame when the LCD controller (and the rest of the plaform) is powered off. This driver is based on the same code as drivers/staging/olpc_dcon. I modernized it to use managed GP

[PATCH 2/3] dt-bindings: display: bridge: lvds-transmitter: add pwdn-gpios

2018-12-19 Thread Peter Rosin
Add optional property to specify a power-down GPIO. The pwdn-gpios name is already in use by the thine,thc63lvdm83d binding, so go with that. Signed-off-by: Peter Rosin --- Documentation/devicetree/bindings/display/bridge/lvds-transmitter.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git

Re: [PATCH] drm/i915: Disable -Wuninitialized for intel_breadcrumbs.o

2018-12-19 Thread Nathan Chancellor
On Tue, Dec 18, 2018 at 11:53:06AM +, Chris Wilson wrote: > Quoting Nick Desaulniers (2018-10-25 23:20:58) > > On Thu, Oct 25, 2018 at 12:36 PM Nathan Chancellor > > wrote: > > > > > > This warning is disabled by default in scripts/Makefile.extrawarn when > > > W= is not provided but this Make

[RFC 02/16] dt-bindings: display: armada: Improve the LCDC documentation

2018-12-19 Thread Lubomir Rintel
The port is a child, not a property. And it deserves an example. Also, make the title a bit more visually distinguishable -- this will look better when the documentation of other Adrmada DRM nodes will be present. Signed-off-by: Lubomir Rintel --- .../display/armada/marvell-armada-drm.txt

[PATCH v3 -next] staging: fbtft: fix strncmp() size warning

2018-12-19 Thread YueHaibing
strncmp() stops comparing when either the end of one of the first two arguments is reached or when 'n' characters have been compared, whichever comes first.That means that strncmp(s1, s2, n) is equivalent to strcmp(s1, s2) if n exceeds the length of s1 or the length of s2. This patch avoids that t

[PATCH -next] staging: fbtft: use strcmp() instead of strncmp() for subsystem lookup

2018-12-19 Thread YueHaibing
strncmp() stops comparing when either the end of one of the first two arguments is reached or when 'n' characters have been compared, whichever comes first.That means that strncmp(s1, s2, n) is equivalent to strcmp(s1, s2) if n exceeds the length of s1 or the length of s2. This patch avoids that

Re: [RFC 15/16] drm/armada: add mmp2 support

2018-12-19 Thread James Cameron
On Tue, Dec 18, 2018 at 04:37:41PM +0100, Lubomir Rintel wrote: > This pretty much boils down to setting the LCD_CFG_SCLK_DIV register, and > is tailored to the OLPC XO-1.75. I have no idea what are the meanings of > most bits there, so I'm just making sure it ends up being 0x40001102. > > This me

[RFC 14/16] drm/armada: optionally enable the AXI clock

2018-12-19 Thread Lubomir Rintel
It needs to be enabled (at least on MMP2) in order for the register writes to LCDC to work. Signed-off-by: Lubomir Rintel --- drivers/gpu/drm/armada/armada_crtc.c | 7 +++ drivers/gpu/drm/armada/armada_crtc.h | 1 + 2 files changed, 8 insertions(+) diff --git a/drivers/gpu/drm/armada/armada

[PATCH 0/3] drm/bridge: various small lvds-encoder things

2018-12-19 Thread Peter Rosin
Hi! These patches are useful for me. Please consider merging. Cheers, Peter Peter Rosin (3): dt-bindings: display: bridge: lvds-transmitter: add ti,ds90c187 dt-bindings: display: bridge: lvds-transmitter: add pwdn-gpios drm/bridge: add pwdn-gpios support to the lvds-encoder .../bindings/

[RFC 06/16] dt-bindings: display: armada: Document bus-width property

2018-12-19 Thread Lubomir Rintel
This makes it possible to choose a different pixel format for the endpoint. Modelled after what other LCD controllers use, including marvell,pxa2xx-lcdc and atmel,hlcdc-display-controller and perhaps more. Signed-off-by: Lubomir Rintel --- .../bindings/display/armada/marvell-armada-drm.txt

Re: [PATCH] drm/i915: Disable -Wuninitialized for intel_breadcrumbs.o

2018-12-19 Thread Nick Desaulniers
On Tue, Dec 18, 2018 at 11:01 AM Nathan Chancellor wrote: > On Tue, Dec 18, 2018 at 11:53:06AM +, Chris Wilson wrote: > > The other false-positive clang-6 gave was for local_clock_us(). > > Presumably that one is fixed? > > With this patch, I can build i915 using defconfig and allyesconfig > w

[RFC 03/16] dt-bindings: display: armada: Add framebuffer reserved-mem binding

2018-12-19 Thread Lubomir Rintel
This is the binding for memory that is set aside for allocation of Marvell Armada framebuffer objects. Signed-off-by: Lubomir Rintel --- .../display/armada/marvell-armada-drm.txt | 23 +++ 1 file changed, 23 insertions(+) diff --git a/Documentation/devicetree/bindings/displ

[PATCH 3/3] drm/bridge: add pwdn-gpios support to the lvds-encoder

2018-12-19 Thread Peter Rosin
Optionally power down the LVDS-encoder when it is not in use. Signed-off-by: Peter Rosin --- drivers/gpu/drm/bridge/lvds-encoder.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/drivers/gpu/drm/bridge/lvds-encoder.c b/drivers/gpu/drm/bridge/lvds-encoder.

[RFC 15/16] drm/armada: add mmp2 support

2018-12-19 Thread Lubomir Rintel
This pretty much boils down to setting the LCD_CFG_SCLK_DIV register, and is tailored to the OLPC XO-1.75. I have no idea what are the meanings of most bits there, so I'm just making sure it ends up being 0x40001102. This means that the selection of the source clock is hardwired. Apparently the bi

[PATCH] drm/amd/display: Remove duplicate header

2018-12-19 Thread Brajeswar Ghosh
Remove custom_float.h which is included more than once Signed-off-by: Brajeswar Ghosh --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dcn10

[RFC 01/16] dt-bindings: display: armada: Rename the binding doc file

2018-12-19 Thread Lubomir Rintel
It's going to document more than just marvell,dove-lcd: more components of the display subsystems with more compatible strings. It seems to make sense to organize this the way it is done in Documentation/devicetree/bindings/display/imx/fsl-imx-drm.txt Signed-off-by: Lubomir Rintel --- .../armad

Re: [PATCH][resend] drm: dw-hdmi-i2s: convert to SPDX identifiers

2018-12-19 Thread Kuninori Morimoto
Hi > > >> This patch updates license to use SPDX-License-Identifier > > >> instead of verbose license text. > > >> > > >> Signed-off-by: Kuninori Morimoto > > > > > > Reviewed-by: Laurent Pinchart > > > > > >> --- > > >> few weeks passed, nothing happen. I re-post this patch again. > > >> I

[RFC 13/16] drm/armada: replace the simple-framebuffer

2018-12-19 Thread Lubomir Rintel
If there's a simple-framebuffer carried over from boot firmware, it's going to stop working once we setup the LCDC for use via DRM. Kick it off from the hardware. Signed-off-by: Lubomir Rintel --- drivers/gpu/drm/armada/armada_drv.c | 11 +++ 1 file changed, 11 insertions(+) diff --git

Re: [PATCH 0/3] Finish Armada DRM DT support

2018-12-19 Thread Lubomir Rintel
On Tue, 2018-07-10 at 11:23 +0100, Russell King - ARM Linux wrote: > Finish Armada DRM support for DT, finally allowing mainline kernels to > use this driver unimpeded. > > arch/arm/boot/dts/dove-cubox.dts | 43 +++ > drivers/gpu/drm/armada/Makefile | 3 +++ >

[RFC 08/16] dt-bindings: drm/panel: simple: Add Innolux LS075AT011 bindings

2018-12-19 Thread Lubomir Rintel
Innolux LS075AT011 panels are used on on OLPC laptops. Signed-off-by: Lubomir Rintel --- .../bindings/display/panel/innolux,ls075at011.txt | 7 +++ 1 file changed, 7 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/innolux,ls075at011.txt diff --git

[PATCH v2 -next] staging: fbtft: use strcmp() instead of strncmp() for

2018-12-19 Thread YueHaibing
strncmp() stops comparing when either the end of one of the first two arguments is reached or when 'n' characters have been compared, whichever comes first.That means that strncmp(s1, s2, n) is equivalent to strcmp(s1, s2) if n exceeds the length of s1 or the length of s2. This patch avoids that

Re: [Xen-devel][PATCH v2 2/3] drm/xen-front: Use Xen common shared buffer implementation

2018-12-19 Thread Boris Ostrovsky
On 12/18/18 11:15 AM, Noralf Trønnes wrote: > > Den 30.11.2018 08.42, skrev Oleksandr Andrushchenko: >> From: Oleksandr Andrushchenko >> >> Use page directory based shared buffer implementation >> now available as common code for Xen frontend drivers. >> >> Remove flushing of shared buffer on page

Re: [PATCH v6 2/2] arm64: dts: sdm845: Add gpu and gmu device nodes

2018-12-19 Thread Viresh Kumar
On 18-12-18, 11:05, Doug Anderson wrote: > OK, it's fine with me to have the fallback, but if we do we should be > consistent about it and make sure it's in all the bindings and device > tree files... Sure. I am not sure what's the right way to do it is, i.e. should we keep the "operating-points-

[PATCH 1/3] dt-bindings: display: bridge: lvds-transmitter: add ti,ds90c187

2018-12-19 Thread Peter Rosin
This chip is compatible with "lvds-encoder". Signed-off-by: Peter Rosin --- Documentation/devicetree/bindings/display/bridge/lvds-transmitter.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/bridge/lvds-transmitter.txt b/Documentation/devicetree

Re: [PATCH 2/3] dt-bindings: display: bridge: lvds-transmitter: add pwdn-gpios

2018-12-19 Thread Andrzej Hajda
On 19.12.2018 00:19, Peter Rosin wrote: > Add optional property to specify a power-down GPIO. > The pwdn-gpios name is already in use by the thine,thc63lvdm83d > binding, so go with that. > > Signed-off-by: Peter Rosin > --- > Documentation/devicetree/bindings/display/bridge/lvds-transmitter.txt

Re: [RFC 00/16] Armada DRM support for OLPC XO-1.75 laptop

2018-12-19 Thread Daniel Vetter
On Wed, Dec 19, 2018 at 9:40 AM Lubomir Rintel wrote: > > Hi, > > here are patches that make the Armada DRM work on an OLPC XO-1.75. > They build on patches previously submitted by Russel King (included here for > completeness as well). > > They certainly need some more love, but I'm not able to i

Re: [PATCH] sysfs: Disable lockdep for driver bind/unbind files

2018-12-19 Thread Daniel Vetter
On Wed, Dec 19, 2018 at 8:01 AM Greg Kroah-Hartman wrote: > > On Tue, Dec 18, 2018 at 09:14:43PM +0100, Daniel Vetter wrote: > > This is the much more correct fix for my earlier attempt at: > > > > https://lkml.org/lkml/2018/12/10/118 > > > > Short recap: > > > > - There's not actually a locking i

Re: [PATCH] sysfs: Disable lockdep for driver bind/unbind files

2018-12-19 Thread Rafael J. Wysocki
On Wed, Dec 19, 2018 at 8:01 AM Greg Kroah-Hartman wrote: > > On Tue, Dec 18, 2018 at 09:14:43PM +0100, Daniel Vetter wrote: > > This is the much more correct fix for my earlier attempt at: > > > > https://lkml.org/lkml/2018/12/10/118 > > > > Short recap: > > > > - There's not actually a locking i

Re: [PATCH] sysfs: Disable lockdep for driver bind/unbind files

2018-12-19 Thread Rafael J. Wysocki
On Wed, Dec 19, 2018 at 10:24 AM Daniel Vetter wrote: > > On Wed, Dec 19, 2018 at 8:01 AM Greg Kroah-Hartman > wrote: > > > > On Tue, Dec 18, 2018 at 09:14:43PM +0100, Daniel Vetter wrote: > > > This is the much more correct fix for my earlier attempt at: > > > > > > https://lkml.org/lkml/2018/12

Re: [PATCH v4 4/9] drm/rockchip/rockchip_drm_gem.c: Convert to use vm_insert_range

2018-12-19 Thread Russell King - ARM Linux
On Wed, Dec 19, 2018 at 09:01:09AM +0530, Souptick Joarder wrote: > On Tue, Dec 18, 2018 at 6:31 PM Russell King - ARM Linux > wrote: > > > > On Tue, Dec 18, 2018 at 06:24:29PM +0530, Souptick Joarder wrote: > > > On Tue, Dec 18, 2018 at 6:03 PM Russell King - ARM Linux > > > wrote: > > > > > > >

Re: [PATCH] sysfs: Disable lockdep for driver bind/unbind files

2018-12-19 Thread Greg Kroah-Hartman
On Wed, Dec 19, 2018 at 10:24:51AM +0100, Rafael J. Wysocki wrote: > On Wed, Dec 19, 2018 at 8:01 AM Greg Kroah-Hartman > wrote: > > > > On Tue, Dec 18, 2018 at 09:14:43PM +0100, Daniel Vetter wrote: > > > This is the much more correct fix for my earlier attempt at: > > > > > > https://lkml.org/lk

Re: [PATCH 4/4] drm/i915: DDI: call intel_edp_drrs_enable() on encoder updates

2018-12-19 Thread Maarten Lankhorst
Op 18-12-2018 om 23:29 schreef Hans de Goede: > Call intel_edp_drrs_enable() on encoder updates to make sure that we enable > DRRS (when applicable) on fastsets. > > Note calling intel_edp_drrs_enable() when PSR has already been enabled is a > no-op, so it is safe to do this on every encoder->updat

Re: [PATCH][resend] drm: dw-hdmi-i2s: convert to SPDX identifiers

2018-12-19 Thread Andrzej Hajda
Hi, On 19.12.2018 01:56, Kuninori Morimoto wrote: > Hi Laurent > >>> few weeks passed, nothing happen. I re-post this patch again. >>> I added Andrew on Cc >> The driver seems to be lacking a maintainer :-S > bridge drivers all have a fallback maintainer, but none of them are

Re: [RFC v3 1/3] PM/runtime: Add a new interface to get accounted time

2018-12-19 Thread Vincent Guittot
On Wed, 19 Dec 2018 at 10:58, Ulf Hansson wrote: > > On Tue, 18 Dec 2018 at 15:55, Vincent Guittot > wrote: > > > > Some drivers (like i915/drm) need to get the accounted suspended time. > > pm_runtime_accounted_time_get() will return the suspended or active > > accounted time until now. > > I su

[Bug 109098] dvdv

2018-12-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109098 Bug ID: 109098 Summary: dvdv Product: DRI Version: XOrg git Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Comp

Re: [RFC v3 1/3] PM/runtime: Add a new interface to get accounted time

2018-12-19 Thread Vincent Guittot
On Wed, 19 Dec 2018 at 11:21, Ulf Hansson wrote: > > On Wed, 19 Dec 2018 at 11:11, Vincent Guittot > wrote: > > > > On Wed, 19 Dec 2018 at 10:58, Ulf Hansson wrote: > > > > > > On Tue, 18 Dec 2018 at 15:55, Vincent Guittot > > > wrote: > > > > > > > > Some drivers (like i915/drm) need to get th

Re: [PATCH 4/4] drm/i915: DDI: call intel_edp_drrs_enable() on encoder updates

2018-12-19 Thread Hans de Goede
Hi, On 19-12-18 10:55, Maarten Lankhorst wrote: Op 18-12-2018 om 23:29 schreef Hans de Goede: Call intel_edp_drrs_enable() on encoder updates to make sure that we enable DRRS (when applicable) on fastsets. Note calling intel_edp_drrs_enable() when PSR has already been enabled is a no-op, so it

Re: [PATCH 2/3] dt-bindings: display: bridge: lvds-transmitter: add pwdn-gpios

2018-12-19 Thread Laurent Pinchart
Hello, On Wednesday, 19 December 2018 11:57:32 EET Peter Rosin wrote: > On 2018-12-19 10:12, Andrzej Hajda wrote: > > On 19.12.2018 00:19, Peter Rosin wrote: > >> Add optional property to specify a power-down GPIO. > >> The pwdn-gpios name is already in use by the thine,thc63lvdm83d > >> binding,

[PATCH 14/14] drm/bochs: move remaining fb bits to kms

2018-12-19 Thread Gerd Hoffmann
bochs_fbdev.c is almost empty now. Move the remaining framebuffer bits over to bochs_kms.c. Pure code motion. No functional change. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/bochs/bochs_fbdev.c | 29 - drivers/gpu/drm/bochs/bochs_kms.c | 17

[PATCH 12/14] drm/bochs: switch to generic drm fbdev emulation

2018-12-19 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/bochs/bochs_drv.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/bochs/bochs_drv.c b/drivers/gpu/drm/bochs/bochs_drv.c index a9c7140e3b..f1f65324bb 100644 --- a/drivers/gpu/drm/bochs/bochs_drv.c +++ b/drive

[PATCH 02/14] drm/bochs: split bochs_hw_setmode

2018-12-19 Thread Gerd Hoffmann
Create a separate bochs_hw_setformat function to configure the framebuffer format (actually just the byteorder). Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/bochs/bochs.h | 5 +++-- drivers/gpu/drm/bochs/bochs_hw.c | 19 --- drivers/gpu/drm/bochs/bochs_kms.c | 3 ++-

[PATCH 01/14] drm/bochs: encoder cleanup

2018-12-19 Thread Gerd Hoffmann
Most unused callbacks can be NULL pointers these days. Drop a bunch of empty encoder callbacks. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/bochs/bochs_kms.c | 26 -- 1 file changed, 26 deletions(-) diff --git a/drivers/gpu/drm/bochs/bochs_kms.c b/drivers/gpu/drm/b

[PATCH 04/14] drm/bochs: atomic: add mode_set_nofb callback.

2018-12-19 Thread Gerd Hoffmann
Conversion to atomic modesetting, step two. Add mode_set_nofb crtc helper callback. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/bochs/bochs_kms.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/bochs/bochs_kms.c b/drivers/gpu/drm/bochs/bochs_kms.c index 59d469f

[PATCH 00/14] drm/bochs: cleanups, atomic modesetting, generic fbdev.

2018-12-19 Thread Gerd Hoffmann
This series adds support for atomic modesetting to the bochs driver. It also switches over to the generic fbdev implementation and does some cleanups. Gerd Hoffmann (14): drm/bochs: encoder cleanup drm/bochs: split bochs_hw_setmode drm/bochs: atomic: add atomic_flush+atomic_enable callbacks.

[PATCH 09/14] drm/bochs: remove old bochs_crtc_* functions

2018-12-19 Thread Gerd Hoffmann
Remove the old, now unused crtc callbacks. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/bochs/bochs_kms.c | 81 --- 1 file changed, 81 deletions(-) diff --git a/drivers/gpu/drm/bochs/bochs_kms.c b/drivers/gpu/drm/bochs/bochs_kms.c index 9e836386e9..85dd2

[PATCH 10/14] drm/bochs: drop unused gpu_addr arg from bochs_bo_pin()

2018-12-19 Thread Gerd Hoffmann
It's always NULL, so just remove it. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/bochs/bochs.h | 2 +- drivers/gpu/drm/bochs/bochs_fbdev.c | 2 +- drivers/gpu/drm/bochs/bochs_kms.c | 2 +- drivers/gpu/drm/bochs/bochs_mm.c| 11 +-- 4 files changed, 4 insertions(+), 13

[PATCH 05/14] drm/bochs: atomic: switch planes to atomic, wire up helpers.

2018-12-19 Thread Gerd Hoffmann
Conversion to atomic modesetting, step three. Wire up atomic helpers. Switch planes to atomic. We are late to the party, the transitional helpers are gone, so this can't be splitted into smaller steps any more. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/bochs/bochs_fbdev.c | 3 ++ drive

[PATCH 06/14] drm/bochs: atomic: use atomic set_config helper

2018-12-19 Thread Gerd Hoffmann
Conversion to atomic modesetting, step four. Use atomic set_config helper for crtc. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/bochs/bochs_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bochs/bochs_kms.c b/drivers/gpu/drm/bochs/bochs_kms.c index

[PATCH 07/14] drm/bochs: atomic: use atomic page_flip helper

2018-12-19 Thread Gerd Hoffmann
Conversion to atomic modesetting, step five. Use atomic page_flip helper for crtc. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/bochs/bochs_kms.c | 23 +-- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/drivers/gpu/drm/bochs/bochs_kms.c b/drivers/gpu/drm/b

[PATCH 08/14] drm/bochs: atomic: set DRIVER_ATOMIC

2018-12-19 Thread Gerd Hoffmann
Conversion to atomic modesetting, final step. Set the DRIVER_ATOMIC flag. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/bochs/bochs_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bochs/bochs_drv.c b/drivers/gpu/drm/bochs/bochs_drv.c index f3dd66ae99

[PATCH 03/14] drm/bochs: atomic: add atomic_flush+atomic_enable callbacks.

2018-12-19 Thread Gerd Hoffmann
Conversion to atomic modesetting, step one. Add atomic crtc helper callbacks. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/bochs/bochs_kms.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/gpu/drm/bochs/bochs_kms.c b/drivers/gpu/drm/bochs/bochs_kms.c i

[PATCH 13/14] drm/bochs: drop old fbdev emulation code

2018-12-19 Thread Gerd Hoffmann
Not needed any more, bochs uses the generic emulation now. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/bochs/bochs.h | 9 --- drivers/gpu/drm/bochs/bochs_drv.c | 6 -- drivers/gpu/drm/bochs/bochs_fbdev.c | 137 3 files changed, 152 deletions(

[PATCH 11/14] drm/bochs: add basic prime support

2018-12-19 Thread Gerd Hoffmann
Generic framebuffer emulation needs this. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/bochs/bochs.h | 11 +++ drivers/gpu/drm/bochs/bochs_drv.c | 15 +- drivers/gpu/drm/bochs/bochs_mm.c | 63 +++ 3 files changed, 88 insertions(+), 1 delet

Re: [PATCH v4 4/9] drm/rockchip/rockchip_drm_gem.c: Convert to use vm_insert_range

2018-12-19 Thread Russell King - ARM Linux
On Wed, Dec 19, 2018 at 05:16:09PM +0530, Souptick Joarder wrote: > On Wed, Dec 19, 2018 at 3:02 PM Russell King - ARM Linux > wrote: > > > > On Wed, Dec 19, 2018 at 09:01:09AM +0530, Souptick Joarder wrote: > > > On Tue, Dec 18, 2018 at 6:31 PM Russell King - ARM Linux > > > wrote: > > > > > > >

[PATCH 00/10] drm/virtio: ttm improvements, minor cleanups.

2018-12-19 Thread Gerd Hoffmann
Gerd Hoffmann (10): drm/virtio: log error responses drm/virtio: fix pageflip flush drm/virtio: drop virtio_gpu_fence_cleanup() drm/virtio: move virtio_gpu_object_{attach,detach} calls. drm/virtio: use struct to pass params to virtio_gpu_object_create() drm/virtio: params struct for vi

[PATCH 02/10] drm/virtio: fix pageflip flush

2018-12-19 Thread Gerd Hoffmann
Sending the flush command only makes sense if we actually have a framebuffer attached to the scanout (handle != 0). Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_plane.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/virtio/virtg

[PATCH 09/10] drm/virtio: move virtio_gpu_cmd_create_resource call into virtio_gpu_object_create

2018-12-19 Thread Gerd Hoffmann
Specifically call virtio_gpu_object_create() before ttm_bo_init(). Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_drv.h| 2 ++ drivers/gpu/drm/virtio/virtgpu_gem.c| 3 +-- drivers/gpu/drm/virtio/virtgpu_ioctl.c | 10 ++ drivers/gpu/drm/virtio/virtgpu_object.c

[PATCH 08/10] drm/virtio: drop fencing in virtio_gpu_resource_create_ioctl

2018-12-19 Thread Gerd Hoffmann
There is no need to wait for completion here. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_ioctl.c | 51 +- 1 file changed, 1 insertion(+), 50 deletions(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_ioctl.c b/drivers/gpu/drm/virtio/virtgpu_io

[PATCH 07/10] drm/virtio: params struct for virtio_gpu_cmd_create_resource_3d()

2018-12-19 Thread Gerd Hoffmann
Add 3d resource parameters to virtio_gpu_object_params struct and use it for virtio_gpu_cmd_resource_create_3d() calls. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_drv.h | 10 +- drivers/gpu/drm/virtio/virtgpu_ioctl.c | 25 ++--- drivers/gpu/drm/

[PATCH 03/10] drm/virtio: drop virtio_gpu_fence_cleanup()

2018-12-19 Thread Gerd Hoffmann
Just call drm_fence_put directly instead. Also set vgfb->fence to NULL after dropping the reference. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_drv.h | 1 - drivers/gpu/drm/virtio/virtgpu_fence.c | 8 drivers/gpu/drm/virtio/virtgpu_ioctl.c | 2 +- drivers/gpu/drm/

[PATCH 04/10] drm/virtio: move virtio_gpu_object_{attach, detach} calls.

2018-12-19 Thread Gerd Hoffmann
Drop the dummy ttm backend implementation, add a real one for TTM_PL_FLAG_TT objects. The bin/unbind callbacks will call virtio_gpu_object_{attach,detach}, to update the object state on the host side, instead of invoking those calls from the move_notify() callback. With that in place the move and

[PATCH 06/10] drm/virtio: params struct for virtio_gpu_cmd_create_resource()

2018-12-19 Thread Gerd Hoffmann
Add format, width and height to the virtio_gpu_object_params struct and use the struct for virtio_gpu_cmd_create_resource(). Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_drv.h | 7 --- drivers/gpu/drm/virtio/virtgpu_gem.c | 8 drivers/gpu/drm/virtio/virtgpu_

[PATCH 05/10] drm/virtio: use struct to pass params to virtio_gpu_object_create()

2018-12-19 Thread Gerd Hoffmann
Create virtio_gpu_object_params, use that to pass object parameters to virtio_gpu_object_create. Also drop unused "kernel" parameter (unused, always false). Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_drv.h| 15 ++- drivers/gpu/drm/virtio/virtgpu_gem.c| 1

[PATCH 01/10] drm/virtio: log error responses

2018-12-19 Thread Gerd Hoffmann
If we got an error response code from the host, print it to the log. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_vq.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_vq.c b/drivers/gpu/drm/virtio/virtgpu_vq.c i

[PATCH 10/10] drm/virtio: ditch virtio_gpu_object_attach() calls

2018-12-19 Thread Gerd Hoffmann
With virtio_gpu_object_create() being called earlier ttm_bo_init() will handle the virtio_gpu_object_attach() (via backend binding), so we can drop the extra calls now. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_gem.c | 9 - drivers/gpu/drm/virtio/virtgpu_ioctl.c |

[PATCH v2 0/9] Overview of Arm komeda display driver

2018-12-19 Thread james qian wang (Arm Technology China)
This is the first patchset of ARM new komeda display driver, this patchset added all basic structure of komeda, relationship of DRM-KMS with komeda, for tring to give a brife overview of komeda-driver. komeda is for supporting the ARM display processor D71 and later IPs, Since from D71, Arm displa

[PATCH v2 1/9] drm/komeda: komeda_dev/pipeline/component definition and initialzation

2018-12-19 Thread james qian wang (Arm Technology China)
1. Added a brief definition of komeda_dev/pipeline/component, this change didn't add the detailed component features and capabilities, which will be added in the following changes. 2. Corresponding resources discovery and initialzation functions. Signed-off-by: James (Qian) Wang --- driver

[PATCH v2 2/9] dt/bindings: drm/komeda: Add DT bindings for ARM display processor D71

2018-12-19 Thread james qian wang (Arm Technology China)
Add DT bindings documentation for the ARM display processor D71 and later IPs. Signed-off-by: James (Qian) Wang --- .../bindings/display/arm/arm,komeda.txt | 87 +++ 1 file changed, 87 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/arm/arm,komed

[PATCH v2 3/9] drm/komeda: Build komeda to be a platform module

2018-12-19 Thread james qian wang (Arm Technology China)
Implement a simple wrapper for platform module to build komeda to module, Also add a very simple D71 layer code to show how to discover a product. Komeda driver direct bind the product ENTRY function xxx_identity to DT compatible name like: d71_product = { .product_id = MALIDP_D71_PRODUCT_

[PATCH v2 5/9] drm/komeda: Add komeda_format_caps for format handling

2018-12-19 Thread james qian wang (Arm Technology China)
komeda_format_caps is for describing ARM display specific features and limitations of a specific format, and format_caps will be linked into &komeda_framebuffer like a extension of &drm_format_info. And komed_format_caps_table will be initialized before the enum_resources, since the layer features

[PATCH v2 4/9] drm/komeda: Add DT parsing

2018-12-19 Thread james qian wang (Arm Technology China)
Parse DT and initialize corresponding dev/pipeline attributes. Signed-off-by: James (Qian) Wang --- .../gpu/drm/arm/display/komeda/komeda_dev.c | 74 +++ .../gpu/drm/arm/display/komeda/komeda_dev.h | 3 + .../drm/arm/display/komeda/komeda_pipeline.c | 4 + .../drm/arm/disp

[PATCH v2 6/9] drm/komeda: Add komeda_framebuffer

2018-12-19 Thread james qian wang (Arm Technology China)
komeda_framebuffer is for extending drm_framebuffer to add komeda own attributes and komeda specific fb handling. Signed-off-by: James (Qian) Wang --- drivers/gpu/drm/arm/display/komeda/Makefile | 3 +- .../arm/display/komeda/komeda_framebuffer.c | 165 ++ .../arm/display/k

[PATCH v2 7/9] drm/komeda: Attach komeda_dev to DRM-KMS

2018-12-19 Thread james qian wang (Arm Technology China)
Add komeda_kms abstracton to attach komeda_dev to DRM-KMS CRTC: according to the komeda_pipeline PLANE: according to komeda_layer (layer input pipeline) PRIVATE_OBJS: komeda_pipeline/component all will be treat as private_objs komeda_kms is for connecting DRM-KMS and komeda_dev, like reporti

[PATCH v2 8/9] drm/doc: Add initial komeda driver documentation

2018-12-19 Thread james qian wang (Arm Technology China)
v2: Some editing changes according to Randy Dunlap's comments Signed-off-by: James (Qian) Wang --- Documentation/gpu/drivers.rst| 1 + Documentation/gpu/komeda-kms.rst | 488 +++ 2 files changed, 489 insertions(+) create mode 100644 Documentation/gpu/komeda-kms

[PATCH v2 9/9] MAINTAINERS: Add maintainer for arm komeda driver

2018-12-19 Thread james qian wang (Arm Technology China)
v2: Adjusted the position of KOMEDA by alphabetical order Signed-off-by: James (Qian) Wang --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 254b7b267731..e48c2e5fd29f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1124,6 +1124,15 @@ S:

[PATCH] sysfs: Disable lockdep for driver bind/unbind files

2018-12-19 Thread Daniel Vetter
This is the much more correct fix for my earlier attempt at: https://lkml.org/lkml/2018/12/10/118 Short recap: - There's not actually a locking issue, it's just lockdep being a bit too eager to complain about a possible deadlock. - Contrary to what I claimed the real problem is recursion on

Re: [WIP PATCH 03/15] drm/dp_mst: Introduce new refcounting scheme for mstbs and ports

2018-12-19 Thread Daniel Vetter
On Tue, Dec 18, 2018 at 04:27:58PM -0500, Lyude Paul wrote: > On Fri, 2018-12-14 at 10:29 +0100, Daniel Vetter wrote: > > On Thu, Dec 13, 2018 at 08:25:32PM -0500, Lyude Paul wrote: > > > The current way of handling refcounting in the DP MST helpers is really > > > confusing and probably just plain

Re: [PATCH] sysfs: Disable lockdep for driver bind/unbind files

2018-12-19 Thread Greg Kroah-Hartman
On Wed, Dec 19, 2018 at 01:39:09PM +0100, Daniel Vetter wrote: > --- a/include/linux/device.h > +++ b/include/linux/device.h > @@ -327,6 +327,7 @@ struct driver_attribute { > #define DRIVER_ATTR_WO(_name) \ > struct driver_attribute driver_attr_##_name = __ATTR_WO(_name) > > + > extern in

Re: [PATCH 0/7] drm: KMS cleanup remove drm_mode_object dependency

2018-12-19 Thread Jani Nikula
On Tue, 18 Dec 2018, Shayenne Moura wrote: > This patch serie removes drm_mode_object dependency from > drm_display_mode struct. This is part of KMS cleanup. For future reference: Please use git-send-email or fix the mail threading otherwise. Patches 1-7 should be in reply to the cover letter

Re: [PATCH 4/7] drm: i915: Delete base.id prints

2018-12-19 Thread Jani Nikula
On Tue, 18 Dec 2018, Shayenne Moura wrote: > This patch removes base.id prints from drm_display_mode > > objects in i915 files. It removes dependency from drm_mode_object. As said, this could expand on the *why*. With that fixed, Reviewed-by: Jani Nikula as well as ac

  1   2   3   >