[PATCH v2 1/3] drm: Extract drm_debug.[hc]

2017-10-12 Thread Haneen Mohammed
Extract DRM_* debug macros from drmP.h to drm_debug.h and move printting related functions from drm_drv.[hc] to drm_debug.[hc]. Update kerneldoc include directives accordingly. Signed-off-by: Haneen Mohammed --- Changes in v2: - Place kerneldoc include directives in drm-internals.rst Documenta

Re: [PATCH 1/2] drm: Extract drm_debug.[hc]

2017-10-12 Thread Haneen Mohammed
On Wed, Oct 11, 2017 at 01:40:47PM +0200, Daniel Vetter wrote: > On Tue, Oct 10, 2017 at 10:13:36PM -0600, Haneen Mohammed wrote: > > Extract DRM_* debug macros from drmP.h to drm_debug.h and move printting > > related functions from drm_drv.[hc] to drm_debug.[hc]. > > > > Update kerneldoc include

[PATCH 0/9] drm/panel: simple: improve definition of display modes and add more panels

2017-10-12 Thread Lothar Waßmann
The first two patches of this patchset simplify the definition of display modes in the driver and make it less error prone. Patch 3 & 4 add support for overriding certain settings defined in the panel definitions via DT entries to match up HW interfacing variants. The remaining patches add suppor

[PATCH 1/9] drm/panel: simple: add a macro for defining display modes in a simpler and less error prone way

2017-10-12 Thread Lothar Waßmann
Create a macro that eases the definition of display mode parameters by accecpting the parameters: freq, hactive, hfront-porch, hsynclen, hback-porch, vactive, vfront-porch, vsynclen, vback-porch, vrefresh that can be usually directly taken from an LCD datasheet. Put the calculations that are now o

Re: Dynamically adding a PCI subfunction

2017-10-12 Thread Bjorn Helgaas
On Wed, Oct 11, 2017 at 08:54:05AM -0400, Ilia Mirkin wrote: > On Wed, Oct 11, 2017 at 7:47 AM, Bjorn Helgaas wrote: > > On Mon, Oct 09, 2017 at 10:41:38AM -0400, Ilia Mirkin wrote: > >> Hello, > >> > >> As a bit of background, all NVIDIA GPUs since GT215 have an audio > >> subfunction for HDMI(/D

Re: [PATCH 2/3] drm/panel: simple: add bus flags for Innolux AT043TN24

2017-10-12 Thread Marco Franchi
On Qua, 2017-10-11 at 14:59 +0200, Philipp Zabel wrote: > For LCD interface controllers that support configuring polarity of > pixel clock and data enable signal, specify bus flags in the panel > descriptor. > > Signed-off-by: Philipp Zabel Tested-by: Marco Franchi _

Re: [PATCH 3/3] drm/panel: simple: add delays for Innolux AT043TN24

2017-10-12 Thread Marco Franchi
On Qua, 2017-10-11 at 14:59 +0200, Philipp Zabel wrote: > The delays between video data and backlight enable and between > backlight > disable and end of video data are given as >= 160 ms in the > datasheet. > > Signed-off-by: Philipp Zabel Tested-by: Marco Franchi _

[PATCH 5/9] drm/panel: simple: add support for EDT ET0350 3.5" QVGA panel

2017-10-12 Thread Lothar Waßmann
Signed-off-by: Lothar Waßmann --- .../bindings/display/panel/edt,et0350g0dh6.txt| 7 +++ drivers/gpu/drm/panel/panel-simple.c | 19 +++ 2 files changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/edt,et0350g0

[PATCH v2 0/3] drm: Move debug macros out of drmP.h

2017-10-12 Thread Haneen Mohammed
This patchset move debug macros from drmP.h into debug.h and move printting related functions from drm_drv.[hc] to drm_debug.[hc]. In addition, it fixes old comment style and add kerneldoc comments for exported functions to avoid kerneldoc warning. Changes in v2: - Place kerneldoc include directiv

[PATCH] drm/udl: Fixed problem with UDL adpater reconnection

2017-10-12 Thread Robert Tarasov
Fixed problem with DisplayLink and DisplayLink certified adapters when they didn't want to work if they were initialized with disconnected DVI cable. Now udl driver checks and updates adapter's connection state every 10 seconds, as well as retreives all the edid data blocks instead of only base one

[PATCH v2 3/3] drm/debug: Add missing kerneldoc comments to exported functions

2017-10-12 Thread Haneen Mohammed
Add missing documentation for exported functions to avoid kerneldoc warning. Signed-off-by: Haneen Mohammed --- Changes in v2: - Include this patch to avoid kerneldoc warning drivers/gpu/drm/drm_debug.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/gpu/drm/drm_

Re: [linux-sunxi] [PATCH v4 02/11] drm/sun4i: tcon: Add support for demuxing TCON output on A31

2017-10-12 Thread Julian Calaby
Hi Chen-Yu, On Tue, Oct 10, 2017 at 2:19 PM, Chen-Yu Tsai wrote: > On systems with 2 TCONs such as the A31, it is possible to demux the > output of the TCONs to one encoder. > > Add support for this for the A31. > > Signed-off-by: Chen-Yu Tsai Thanks! FWIW this is: Reviewed-by: Julian Calaby

[PATCH] drm: Fix return value check in kirin_drm_platform_probe()

2017-10-12 Thread Wei Yongjun
In case of error, the function of_graph_get_remote_node() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test.. Signed-off-by: Wei Yongjun --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 4 ++-- 1 file changed, 2 insertions(+),

[PATCH 3/9] drm/panel: simple: make it possible to override LCD bus format

2017-10-12 Thread Lothar Waßmann
The baseboards for the Ka-Ro electronics series of i.MX modules use a 24bit LCD interface, no matter what LCD bus width the SoC on the module provides and what the LCD panel expects. LCDs with 6bit per color will ignore the 2 LSBs of each color lane, and modules using a SoC that provides only 6bit

Re: Dynamically adding a PCI subfunction

2017-10-12 Thread Bjorn Helgaas
On Mon, Oct 09, 2017 at 10:41:38AM -0400, Ilia Mirkin wrote: > Hello, > > As a bit of background, all NVIDIA GPUs since GT215 have an audio > subfunction for HDMI(/DP) audio to be sent to the sink. This generally > works. > > However some, especially laptop, devices come up with that function > d

[PATCH] drm/msm: fix return value check in _msm_gem_kernel_new()

2017-10-12 Thread Wei Yongjun
In case of error, the function msm_gem_get_vaddr() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: 8223286d62e2 ("drm/msm: Add a helper function for in-kernel buffer allocations") Signed-off-by: Wei Yongjun --- drivers/gp

[PATCH 2/9] drm/panel: simple: simplify display_mode definitions by using macro

2017-10-12 Thread Lothar Waßmann
Use the newly defined macro to generate the display_mode data entries for all panels. This reduces the code size significantly and makes the code more readable. Signed-off-by: Lothar Waßmann --- drivers/gpu/drm/panel/panel-simple.c | 799 ++- 1 file changed, 134 i

[PATCH 9/9] drm/panel: simple: add support for EDT ET1010G0DSA/ETML1010G0DKA 10.1" WXGA LVDS panels

2017-10-12 Thread Lothar Waßmann
This adds support for the Emerging Display Technologies Corporation 10.1" WXGA LVDS panel ET1010G0DSA (without a touch panel) and ETML1010G0DKA (with capacitive touch panel). Signed-off-by: Lothar Waßmann --- .../bindings/display/panel/edt,et1010g0dsa.txt | 7 +++ .../bindings/display/p

[PATCH 8/9] drm/panel: simple: add support for EDT ETM0700G0EDH6 7" WVGA panel

2017-10-12 Thread Lothar Waßmann
This panel is the same as ETM0700g0DH6 with an inverted pixel clock. Signed-off-by: Lothar Waßmann --- .../bindings/display/panel/edt,etm0700g0edh6.txt | 9 + drivers/gpu/drm/panel/panel-simple.c | 15 +++ 2 files changed, 24 insertions(+) crea

Re: [PATCH 1/3] drm/panel: simple: fix vertical timings for Innolux AT043TN24

2017-10-12 Thread Marco Franchi
Hi Philipp, On Qua, 2017-10-11 at 14:59 +0200, Philipp Zabel wrote: > The vsync length should be 10 lines, as specified in the data sheet. > This gets the actual refresh rate closer to nominal 60 Hz given the > 9 MHz pixel clock. > > Signed-off-by: Philipp Zabel Thank you for all these fixes.

[PATCH] drm/shmob: Fix return value check in shmob_drm_probe()

2017-10-12 Thread Wei Yongjun
In case of error, the function devm_ioremap_resource() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun --- drivers/gpu/drm/shmobile/shmob_drm_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletion

[PATCH v2 2/3] drm: Update old comment style

2017-10-12 Thread Haneen Mohammed
Remove old comment style used by doxygen. And remove comment left from commit 99cdb35e787b ("drm/doc: move printf helpers out of drmP.h") after refactoring drmP.h. Signed-off-by: Haneen Mohammed --- Changes in v2: - Fix kerneldoc comments include/drm/drm_debug.h | 26 +-

[PATCH 4/9] drm/panel: simple: add support for overriding the pixel clock polarity

2017-10-12 Thread Lothar Waßmann
The Ka-Ro electronics MB7 baseboard has an on-board LCD->LVDS converter that requires a fixed pixelclk polarity, no matter what the panel's display_mode specifies. Add an option to override the pixelclk polarity defined in the panel's display_mode via DTB. Signed-off-by: Lothar Waßmann --- .../b

[PATCH 6/9] drm/panel: simple: add support for EDT ET0430 4.3" HVGA panel

2017-10-12 Thread Lothar Waßmann
Signed-off-by: Lothar Waßmann --- .../bindings/display/panel/edt,et0430g0dh6.txt| 7 +++ drivers/gpu/drm/panel/panel-simple.c | 19 +++ 2 files changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/edt,et0430g0

[PATCH 7/9] drm/panel: simple: add support for NLT NL12880 12.1" WXGA LVDS panel

2017-10-12 Thread Lothar Waßmann
Signed-off-by: Lothar Waßmann --- .../bindings/display/panel/nlt,nl12880bc20.txt | 14 +++ drivers/gpu/drm/panel/panel-simple.c | 45 ++ 2 files changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/nlt,nl12880bc20

[GIT PULL] omapdrm changes for v4.15

2017-10-12 Thread Tomi Valkeinen
Hi Dave, Please pull omapdrm changes for v4.15. Tomi The following changes since commit 9e66317d3c92ddaab330c125dfe9d06eee268aff: Linux 4.14-rc3 (2017-10-01 14:54:54 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux.git tags/omapdr

[Bug 103199] [CI] igt@drv_missed_irq - fail - Failed assertion: missed_rings == expect_rings

2017-10-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103199 Chris Wilson changed: What|Removed |Added Component|DRM/Intel |IGT Status|NEW

Re: [PATCHv2 0/9] omapdrm: hdmi4: add CEC support

2017-10-12 Thread Tomi Valkeinen
 Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 12/10/17 09:50, Hans Verkuil wrote: >> I can't test with a TV, so no CEC for me... But otherwise I think the >> series works ok now, and looks ok. So I'll apply, bu

Re: [PATCH] drm/omap: displays: panel-dpi: add backlight dependency

2017-10-12 Thread Tomi Valkeinen
 Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 05/10/17 15:06, Arnd Bergmann wrote: > The new backlight code causes a link failure when backlight > support itself is disabled: > > drivers/gpu/drm/omapdrm/display

[Bug 103234] KWin crashed when Alt+Tab-ing through open windows

2017-10-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103234 Bug ID: 103234 Summary: KWin crashed when Alt+Tab-ing through open windows Product: Mesa Version: 17.2 Hardware: Other OS: All Status: NEW Severity: norm

[Bug 103234] KWin crashed when Alt+Tab-ing through open windows

2017-10-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103234 Dennis Schridde changed: What|Removed |Added See Also||https://bugs.kde.org/show_b

[Bug 103234] KWin crashed when Alt+Tab-ing through open windows

2017-10-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103234 --- Comment #1 from Dennis Schridde --- I am using Linux 4.13.5 (with Gentoo patches, aka =sys-kernel/gentoo-sources-4.13.5). The device is: 00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Kaveri [Radeon R7 Graphics]

[Bug 103234] KWin crashed when Alt+Tab-ing through open windows

2017-10-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103234 --- Comment #2 from Dennis Schridde --- Created attachment 134806 --> https://bugs.freedesktop.org/attachment.cgi?id=134806&action=edit glxinfo -- You are receiving this mail because: You are the assignee for the bug.

[Bug 103138] [regression, vega] BUG: Bad page state in process gnome-shell pfn:77cc33

2017-10-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103138 Christian König changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

Re: [PATCH v9 1/3] drm/tinydrm: Move helper functions from tinydrm-helpers to backlight.h

2017-10-12 Thread Eric Engestrom
On Thursday, 2017-10-12 06:09:39 +, Meghana Madhyastha wrote: > Move the helper functions enable_backlight and disable_backlight > from tinydrm-helpers.c to backlight.h as static inline functions so > that they can be used by other drivers. > > Signed-off-by: Meghana Madhyastha > --- > Change

Re: [PATCHv1 00/14] omapdrm: DSI command mode panel support

2017-10-12 Thread Tomi Valkeinen
Hi Sebastian, Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 29/09/17 16:26, Sebastian Reichel wrote: > Hi Tomi & Laurent, > > ping? I've been having quick glances at this every now and then, but I'm not sure

[PATCH v10 0/3] Move backlight helper functions from tinydrm-helpers to linux/backlight

2017-10-12 Thread Meghana Madhyastha
Move drm helper functions from tinydrm-helpers to linux/backlight for ease of use by callers in other drivers. Changes in v10: -Change enable_backlight to backlight_enable Meghana Madhyastha (3): drm/tinydrm: Move helper functions from tinydrm-helpers to backlight.h drm/tinydrm: Move tinydrm

Re: [PATCH v10 0/3] Move backlight helper functions from tinydrm-helpers to linux/backlight

2017-10-12 Thread Daniel Thompson
On 12/10/17 10:18, Meghana Madhyastha wrote: Move drm helper functions from tinydrm-helpers to linux/backlight for ease of use by callers in other drivers. Changes in v10: -Change enable_backlight to backlight_enable Meghana Madhyastha (3): drm/tinydrm: Move helper functions from tinydrm-hel

[Bug 102809] Rust shadows(?) flash random colours

2017-10-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102809 --- Comment #11 from Nicolai Hähnle --- Created attachment 134808 --> https://bugs.freedesktop.org/attachment.cgi?id=134808&action=edit possible fix Please try the attached patch. It fixes the issue in the trace for me. -- You are receiving

[PATCH v10 1/3] drm/tinydrm: Move helper functions from tinydrm-helpers to backlight.h

2017-10-12 Thread Meghana Madhyastha
Move the helper functions enable_backlight and disable_backlight from tinydrm-helpers.c to backlight.h as static inline functions so that they can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v10: -Change from enable_backlight to backlight_enable drivers/gpu/drm/ti

Re: [PATCH v10 0/3] Move backlight helper functions from tinydrm-helpers to linux/backlight

2017-10-12 Thread Daniel Thompson
On 12/10/17 10:23, Daniel Thompson wrote: On 12/10/17 10:18, Meghana Madhyastha wrote: Move drm helper functions from tinydrm-helpers to linux/backlight for ease of use by callers in other drivers. Changes in v10: -Change enable_backlight to backlight_enable Meghana Madhyastha (3):    drm/tiny

[PATCH v10 2/3] drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c

2017-10-12 Thread Meghana Madhyastha
Rename tinydrm_of_find_backlight to backlight_get and move it to linux/backlight.c so that it can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v10: -None drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 40 -- drivers/gpu/drm/tinydrm/mi0283q

[PATCH v10 3/3] drm/tinydrm: Add devres versions of backlight_get

2017-10-12 Thread Meghana Madhyastha
Add devm_backlight_get and the corresponding release function because some drivers use devres versions of functions for requiring device resources. Signed-off-by: Meghana Madhyastha --- Changes in v10: -None drivers/gpu/drm/tinydrm/mi0283qt.c | 2 +- drivers/video/backlight/backlight.c | 31 +

Re: [PATCH] drm: tilcdc: Calculate the vrefresh if it is not set by userspace

2017-10-12 Thread Jyri Sarha
 Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 10/11/17 05:57, Kevin Hao wrote: > On Tue, Oct 10, 2017 at 04:58:15PM +0300, Jyri Sarha wrote: >> >> Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.

[PATCH v11 0/3] Move backlight helper functions from tinydrm-helpers to linux/backlight

2017-10-12 Thread Meghana Madhyastha
Move drm helper functions from tinydrm-helpers to linux/backlight for ease of use by callers in other drivers. Changes in v11: -Move over tinydrm_disable_backlight to backlight_disable in the caller in mipi-dbi.c Meghana Madhyastha (3): drm/tinydrm: Move helper functions from tinydrm-helpers to

[PATCH v11 1/3] drm/tinydrm: Move helper functions from tinydrm-helpers to backlight.h

2017-10-12 Thread Meghana Madhyastha
Move the helper functions enable_backlight and disable_backlight from tinydrm-helpers.c to backlight.h as static inline functions so that they can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v11: -Move over tinydrm_disable_backlight to backlight_disable in the calle

[PATCH] drm/tilcdc: Force recalculation of vrefresh in tilcdc_crtc_set_mode()

2017-10-12 Thread Jyri Sarha
We are using the vrefresh to check if we are too close to vertical sync to update the two framebuffer DMA registers and risk a collision. The vrefresh is coming from user space and normally it is not used for anything. For instance xserver leaves vrefresh to zero causing a division by zero when se

[PATCH v11 2/3] drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c

2017-10-12 Thread Meghana Madhyastha
Rename tinydrm_of_find_backlight to backlight_get and move it to linux/backlight.c so that it can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v11: -None drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 40 -- drivers/gpu/drm/tinydrm/mi0283q

[PATCH v11 3/3] drm/tinydrm: Add devres versions of backlight_get

2017-10-12 Thread Meghana Madhyastha
Add devm_backlight_get and the corresponding release function because some drivers use devres versions of functions for requiring device resources. Signed-off-by: Meghana Madhyastha --- Changes in v11: -None drivers/gpu/drm/tinydrm/mi0283qt.c | 2 +- drivers/video/backlight/backlight.c | 31 +

Re: [PATCHv2 0/9] omapdrm: hdmi4: add CEC support

2017-10-12 Thread Hans Verkuil
On 10/12/17 10:03, Tomi Valkeinen wrote: > > Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. > Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki > > On 12/10/17 09:50, Hans Verkuil wrote: > >>> I can't test with a TV, so no CEC for me... But otherwise I think the >>

Re: [PATCH v3] drm: exynos: Add driver for HDMI audio interface

2017-10-12 Thread Sylwester Nawrocki
On 09/26/2017 04:17 PM, Sylwester Nawrocki wrote: > The hdmi-codec interface added in this patch is required to properly > support HDMI audio. Currently the audio part of the SoC internal > HDMI transmitter is configured with fixed values, which makes HDMI > audio working by chance, only on boards

Re: [PATCHv2 0/9] omapdrm: hdmi4: add CEC support

2017-10-12 Thread Tomi Valkeinen
 Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 12/10/17 12:42, Hans Verkuil wrote: > On 10/12/17 10:03, Tomi Valkeinen wrote: >> >> Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. >> Y-tunnus/Bus

Re: [PATCH] drm/tilcdc: Force recalculation of vrefresh in tilcdc_crtc_set_mode()

2017-10-12 Thread Jyri Sarha
 Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 10/12/17 12:53, Kevin Hao wrote: > On Thu, Oct 12, 2017 at 12:39:25PM +0300, Jyri Sarha wrote: >> We are using the vrefresh to check if we are too close to vertical

[GIT PULL] imx-drm fixes for i.MX5 regression and i.MX6QP PRE/PRG stability

2017-10-12 Thread Philipp Zabel
Hi Dave, this tag contains a fix for a regression introduced in v4.14-rc1 with commit 790cb4c7c954 ("drm/imx: lock scanout transfers for consecutive bursts"), which breaks display output on i.MX53. Also there are two patches to solve display output instability issues on i.MX6QP with the prefetch/r

Re: [PATCH v2 1/3] drm: Extract drm_debug.[hc]

2017-10-12 Thread Chris Wilson
Quoting Haneen Mohammed (2017-10-12 03:32:53) > diff --git a/drivers/gpu/drm/drm_debug.c b/drivers/gpu/drm/drm_debug.c > new file mode 100644 > index 000..a79593f > --- /dev/null > +++ b/drivers/gpu/drm/drm_debug.c > @@ -0,0 +1,75 @@ > +/* > + * Copyright 2001 VA Linux Systems, Inc., Sunnyvale,

Re: RFC: page-flip with damage?

2017-10-12 Thread Pekka Paalanen
On Tue, 26 Sep 2017 09:07:45 -0700 Thomas Hellstrom wrote: > On 09/26/2017 01:18 AM, Daniel Vetter wrote: > > On Sun, Sep 24, 2017 at 07:41:45PM +0200, Thomas Hellstrom wrote: > >> Hi, list! > >> > >> Page flips, while efficient on real hardware, aren't that efficient in > >> other > >> situat

[PATCH] drm/ttm: Fix unused variables with huge page support

2017-10-12 Thread Tom St Denis
Signed-off-by: Tom St Denis --- drivers/gpu/drm/ttm/ttm_page_alloc.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc.c b/drivers/gpu/drm/ttm/ttm_page_alloc.c index b6f16e73..95022473704b 100644 --- a/drivers/gpu/drm/ttm/ttm_page_

Re: [Nouveau] [PATCH v2] drm/nouveau: Document nouveau support for Tegra in DRIVER_DESC

2017-10-12 Thread Thierry Reding
On Sun, Oct 01, 2017 at 10:13:53AM -0400, Rhys Kidd wrote: > nouveau supports the Tegra K1 and higher after the SoC-based GPUs converged > with the main GeForce GPU families. > > v2: > - Qualify that support is Tegra K1+ (Martin Peres) > > Signed-off-by: Rhys Kidd > Reviewed-by: Martin Peres >

Re: [PATCH] drm/ttm: Fix unused variables with huge page support

2017-10-12 Thread Christian König
Am 12.10.2017 um 13:26 schrieb Tom St Denis: Signed-off-by: Tom St Denis Reviewed-by: Christian König --- drivers/gpu/drm/ttm/ttm_page_alloc.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc.c b/drivers/gpu/drm/ttm/ttm_page_

Re: [PATCH v6 1/2] drm_fourcc: Add new P010, P016 video format

2017-10-12 Thread Tapani Pälli
Is this one going to land soon? The discussion was a bit hard to read but it looks like in the end consensus was that everything looks good in this patch. Thanks; On 03/01/2017 01:21 AM, clinton.a.tay...@intel.com wrote: From: Clint Taylor P010 is a planar 4:2:0 YUV with interleaved UV pla

[PULL] drm-misc-next

2017-10-12 Thread Daniel Vetter
Hi Dave, drm-misc-next-2017-10-12: More 4.15 drm-misc stuff: Cross-subsystem Changes: - bridge cleanup refactor (Benjamin Gaignard) Core Changes: - less surprising atomic iterators (Maarten), fixes an oops introduced in drm-next - better gem/fb helper docs (Noralf) - fix dma-buf rcu races (Chr

Re: [PATCH 1/2] drm: vblank: use ktime_t instead of timeval

2017-10-12 Thread Sean Paul
On Wed, Oct 11, 2017 at 04:28:39PM -0400, Sean Paul wrote: > On Wed, Oct 11, 2017 at 4:18 PM, Keith Packard wrote: > > Sean Paul writes: > > > >> It looks like perhaps Keith missed one of the comment tweaks that you have > >> below. > >> > >> Keith, perhaps you can rebase your widening patch on t

[PATCH i-g-t 1/7] tests/perf: Fix a bunch of warnings on 32-bit systems

2017-10-12 Thread Thierry Reding
From: Thierry Reding Data types are defined differently on 32-bit systems, causing gcc to complain about printf format specifiers not matching the size of the variables passed in. Use PRIu64 and %zu where appropriate. Signed-off-by: Thierry Reding --- tests/perf.c | 32

[PATCH i-g-t 2/7] tools/aubdump: Avoid ISO C90 warning

2017-10-12 Thread Thierry Reding
From: Thierry Reding GCC will warn about ISO C90 forbidding to mix declarations and code. Declare the variable at the beginning of the function to suppress the warning. Signed-off-by: Thierry Reding --- tools/aubdump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools

[PATCH i-g-t 3/7] lib: Fix compilation on non-x86

2017-10-12 Thread Thierry Reding
From: Thierry Reding The meson build avoids the failure by excluding the igt_x86.c file from the compilation. autotools being what they are don't support that in an easy way, so just use the preprocessor to avoid the duplicate function definitions. Since igt_x86.c will now be ignored for non-x86

[PATCH i-g-t 4/7] lib/drmtest: Fix typo

2017-10-12 Thread Thierry Reding
From: Thierry Reding "other" was misspelled as "otehr". Fix it. Signed-off-by: Thierry Reding --- lib/drmtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/drmtest.c b/lib/drmtest.c index 8a07152c701a..24a5ea0f6a0f 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -

[PATCH i-g-t 5/7] lib/drmtest: Support nouveau

2017-10-12 Thread Thierry Reding
From: Thierry Reding Add a driver definition for nouveau and wire up all the necessary pieces to identify its devices. Signed-off-by: Thierry Reding --- lib/drmtest.c | 14 -- lib/drmtest.h | 1 + 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/lib/drmtest.c b/lib/

[PATCH i-g-t 6/7] lib/drmtest: Support Tegra

2017-10-12 Thread Thierry Reding
From: Thierry Reding Add a driver definition for Tegra and wire up all the necessary pieces to identify its devices. Signed-off-by: Thierry Reding --- lib/drmtest.c | 10 ++ lib/drmtest.h | 1 + 2 files changed, 11 insertions(+) diff --git a/lib/drmtest.c b/lib/drmtest.c index f46419

[PATCH i-g-t 7/7] lib/drmtest: Allow the test device to be overridden

2017-10-12 Thread Thierry Reding
From: Thierry Reding On setups where the device to be tested is not the first one, allow users to override it using the IGT_DEVICE environment variable. Signed-off-by: Thierry Reding --- lib/drmtest.c | 91 --- 1 file changed, 56 insertio

Re: [PATCH i-g-t 1/7] tests/perf: Fix a bunch of warnings on 32-bit systems

2017-10-12 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin Thanks! On 12/10/17 14:29, Thierry Reding wrote: From: Thierry Reding Data types are defined differently on 32-bit systems, causing gcc to complain about printf format specifiers not matching the size of the variables passed in. Use PRIu64 and %zu where appropr

Re: [PATCH v11 2/3] drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c

2017-10-12 Thread Noralf Trønnes
Den 12.10.2017 11.40, skrev Meghana Madhyastha: Rename tinydrm_of_find_backlight to backlight_get and move it to linux/backlight.c so that it can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v11: -None drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 40 ---

Re: [PATCH i-g-t 1/7] tests/perf: Fix a bunch of warnings on 32-bit systems

2017-10-12 Thread Ville Syrjälä
On Thu, Oct 12, 2017 at 03:29:37PM +0200, Thierry Reding wrote: > From: Thierry Reding > > Data types are defined differently on 32-bit systems, causing gcc to > complain about printf format specifiers not matching the size of the > variables passed in. Use PRIu64 and %zu where appropriate. I pe

Re: [Intel-gfx] [PATCH i-g-t 3/7] lib: Fix compilation on non-x86

2017-10-12 Thread Ville Syrjälä
On Thu, Oct 12, 2017 at 03:29:39PM +0200, Thierry Reding wrote: > From: Thierry Reding > > The meson build avoids the failure by excluding the igt_x86.c file from > the compilation. autotools being what they are don't support that in an > easy way, There is some kind of build_x86 thing in autoto

Re: [PATCH v2 2/8] drm/rockchip/dsi: add dual mipi channel support

2017-10-12 Thread Sean Paul
On Tue, Sep 26, 2017 at 03:55:17PM +0800, Nickey Yang wrote: > This patch add dual mipi channel support: > 1.add definition of dsi1 register and grf operation. > 2.dsi0 and dsi1 will work in master and slave mode > when driving dual mipi panel. > > Signed-off-by: Nickey Yang > --- Hi Nickey, Ple

Re: [PATCH] amdgpu/dc: Use DRM new-style object iterators.

2017-10-12 Thread Leo
On 2017-10-12 02:00 AM, Maarten Lankhorst wrote: Op 11-10-17 om 22:40 schreef Harry Wentland: On 2017-10-11 03:46 PM, Maarten Lankhorst wrote: Op 11-10-17 om 20:55 schreef Leo: On 2017-10-11 10:30 AM, Maarten Lankhorst wrote: Op 11-10-17 om 16:24 schreef sunpeng...@amd.com: From: "Leo (Su

Re: [Intel-gfx] [PATCH i-g-t 3/7] lib: Fix compilation on non-x86

2017-10-12 Thread Thierry Reding
On Thu, Oct 12, 2017 at 04:44:14PM +0300, Ville Syrjälä wrote: > On Thu, Oct 12, 2017 at 03:29:39PM +0200, Thierry Reding wrote: > > From: Thierry Reding > > > > The meson build avoids the failure by excluding the igt_x86.c file from > > the compilation. autotools being what they are don't suppor

Re: [PATCH v2 4/8] drm/rockchip/dsi: correct phy parameter setting

2017-10-12 Thread Sean Paul
On Tue, Sep 26, 2017 at 03:55:19PM +0800, Nickey Yang wrote: > As MIPI PHY document show, icpctrl<3..0> and lpfctrl<5..0> > should depend on frequency,so fix it. > > Signed-off-by: Nickey Yang With the improvements to max_mbps that Matthias suggested, Reviewed-by: Sean Paul > --- > drivers/g

[PATCH] drm/atomic-helper: Fix typo

2017-10-12 Thread Thierry Reding
From: Thierry Reding Fix "esay-to-use" to "easy-to-use" typo. Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_atomic_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c index 01c34bc5b5b0.

[PATCH] drm/atomic-helper: Fix reference to drm_crtc_send_vblank_event()

2017-10-12 Thread Thierry Reding
From: Thierry Reding Fix up this reference so that the proper link is generated in the documentation and so that people don't go chasing after the wrong function for an embarrassingly long time. Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_atomic_helper.c | 2 +- 1 file changed, 1 ins

[PATCH] drm/tilcdc: Precalculate total frametime in tilcdc_crtc_set_mode()

2017-10-12 Thread Jyri Sarha
We need the frame refresh time to check if we are too close to vertical sync when updating the two framebuffer DMA registers and risk a collision. This new method is more accurate that the previous that based on mode's vrefresh value, which itself may also be inaccurate or not even initialized. R

Re: [PATCH] drm/tilcdc: Force recalculation of vrefresh in tilcdc_crtc_set_mode()

2017-10-12 Thread Jyri Sarha
There is a new patch to replace this one: https://lists.freedesktop.org/archives/dri-devel/2017-October/154589.html Best regards, Jyri Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 10/12/17 12:39, Jyri Sarha w

Re: [PATCH] drm/atomic-helper: Fix reference to drm_crtc_send_vblank_event()

2017-10-12 Thread Noralf Trønnes
Den 12.10.2017 16.08, skrev Thierry Reding: From: Thierry Reding Fix up this reference so that the proper link is generated in the documentation and so that people don't go chasing after the wrong function for an embarrassingly long time. Signed-off-by: Thierry Reding --- drivers/gpu/drm/d

Re: [PATCH] drm/atomic-helper: Fix typo

2017-10-12 Thread Noralf Trønnes
Den 12.10.2017 16.06, skrev Thierry Reding: From: Thierry Reding Fix "esay-to-use" to "easy-to-use" typo. Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_atomic_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/driver

Re: [PATCH] drm: Fix return value check in kirin_drm_platform_probe()

2017-10-12 Thread Sean Paul
On Thu, Oct 12, 2017 at 2:39 AM, Gabriel Krisman Bertazi wrote: > Wei Yongjun writes: > >> In case of error, the function of_graph_get_remote_node() returns NULL >> pointer not ERR_PTR(). The IS_ERR() test in the return value check >> should be replaced with NULL test.. > > Looks good. > > Review

Re: [PATCH] drm/kirin: Checking for IS_ERR() instead of NULL

2017-10-12 Thread Sean Paul
On Thu, Oct 5, 2017 at 8:57 AM, Dan Carpenter wrote: > The of_graph_get_remote_node() function doesn't return error pointers, > it returns NULL on error so I've updated the check. > > Fixes: 86418f90a4c1 ("drm: convert drivers to use of_graph_get_remote_node") > Signed-off-by: Dan Carpenter > Hi

[Bug 196615] amdgpu - resume from suspend is no longer working on rx480

2017-10-12 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=196615 --- Comment #20 from Peter Spiess-Knafl (p...@autistici.org) --- Alex can you help out here? Why was the patch fixing the suspend/resume issue removed in 4.13? -- You are receiving this mail because: You are watching the assignee of the bug. ___

Re: RFC: page-flip with damage?

2017-10-12 Thread Sean Paul
On Thu, Oct 12, 2017 at 01:55:40PM +0300, Pekka Paalanen wrote: > On Tue, 26 Sep 2017 09:07:45 -0700 > Thomas Hellstrom wrote: > > > On 09/26/2017 01:18 AM, Daniel Vetter wrote: > > > On Sun, Sep 24, 2017 at 07:41:45PM +0200, Thomas Hellstrom wrote: > > >> Hi, list! > > >> > > >> Page flips, wh

[Bug 196615] amdgpu - resume from suspend is no longer working on rx480

2017-10-12 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=196615 --- Comment #21 from Peter Spiess-Knafl (p...@autistici.org) --- "git log -p drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c" reveals that the original patch (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?h=linux-4.12.y&i

[Bug 196615] amdgpu - resume from suspend is no longer working on rx480

2017-10-12 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=196615 --- Comment #22 from Alex Deucher (alexdeuc...@gmail.com) --- (In reply to Peter Spiess-Knafl from comment #20) > Alex can you help out here? Why was the patch fixing the suspend/resume > issue removed in 4.13? The fix was only applied to 4.12.

Re: [PATCH] drm/vblank: Fix flip event vblank count

2017-10-12 Thread Ville Syrjälä
On Tue, Oct 10, 2017 at 04:33:22PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > On machines where the vblank interrupt fires some time after the start > of vblank (or we just manage to race with the vblank interrupt handler) > we will currently stuff a stale vblank counter value into the

Re: [09/10] driver:video: return -ENOMEM on allocation failure.

2017-10-12 Thread Bartlomiej Zolnierkiewicz
[ cc: list trimmed down do linux-fbdev/dri-devel/linux-kernel ] On Wednesday, September 13, 2017 01:02:18 PM Allen wrote: > Signed-off-by: Allen Pais Patch queued for 4.15 (with patch description fixed to "video: fbdev: matrox: return -ENOMEM on allocation failure"), thanks. Best regards, -- B

Re: [PULL] drm-intel-next

2017-10-12 Thread Jani Nikula
On Wed, 11 Oct 2017, Jani Nikula wrote: > Hi Dave, more v4.15 features. Okay, so I suck and there's still one more batch to come after this. I'm a bit out of rhythm here. When do you want the pull request for that at the latest? BR, Jani. > > Our tooling now supports signed tags, this one is pr

Re: [PATCH] drivers/video/fbdev/atyfb: make const arrays static, reduces object code size

2017-10-12 Thread Bartlomiej Zolnierkiewicz
On Wednesday, September 13, 2017 04:03:09 PM Colin King wrote: > From: Colin Ian King > > Don't populate the const arrays ragepro_tbl and ragexl_tbl on the stack, > instead make them static. Makes the object code smaller by over 380 bytes: > > Before: >text data bss dec

[PATCH v12 0/3] Move backlight helper functions from tinydrm-helpers to linux/backlight

2017-10-12 Thread Meghana Madhyastha
Move drm helper functions from tinydrm-helpers to linux/backlight for ease of use by callers in other drivers. Changes in v12: -Move backlight_put() to the patch 2/3 from patch 3/3. -Remove #if IS_ENABLED(CONFIG_BACKLIGHT_CLASS_DEVICE)..#endif because the file is not built if it isn't enabled

[PATCH v12 1/3] drm/tinydrm: Move helper functions from tinydrm-helpers to backlight.h

2017-10-12 Thread Meghana Madhyastha
Move the helper functions enable_backlight and disable_backlight from tinydrm-helpers.c to backlight.h as static inline functions so that they can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v12: -None drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 55 --

Re: [PATCH] video: fbdev: sis: make const array specialtv static, reduces object code size

2017-10-12 Thread Bartlomiej Zolnierkiewicz
On Wednesday, September 13, 2017 04:41:37 PM Colin King wrote: > From: Colin Ian King > > Don't populate the const array specialtv on the stack, instead make it > static. Makes the object code smaller by over 1100 bytes: > > Before: >text data bss dec hex filename > 17

[PATCH v12 2/3] drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c

2017-10-12 Thread Meghana Madhyastha
Rename tinydrm_of_find_backlight to backlight_get and move it to linux/backlight.c so that it can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v12: -Move backlight_put() to the patch 2/3 from patch 3/3. -Remove #if IS_ENABLED(CONFIG_BACKLIGHT_CLASS_DEVICE)..#endif

[PATCH v12 3/3] drm/tinydrm: Add devres versions of backlight_get

2017-10-12 Thread Meghana Madhyastha
Add devm_backlight_get and the corresponding release function because some drivers use devres versions of functions for requiring device resources. Signed-off-by: Meghana Madhyastha --- Changes in v12: -Move backlight_put() to the patch 2/3 from patch 3/3. drivers/gpu/drm/tinydrm/mi0283qt.c |

[pull] amdgpu drm-fixes-4.14

2017-10-12 Thread Alex Deucher
Hi Dave, One memory management regression fix. The following changes since commit 545036a9944e9d6e50fed4ca03117147c880ff71: Merge tag 'drm-misc-fixes-2017-10-11' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes (2017-10-12 10:38:09 +1000) are available in the git repository at:

Re: [PATCH] video: fbdev: make fb_var_screeninfo static, const and __initconst

2017-10-12 Thread Bartlomiej Zolnierkiewicz
[ added dri-devel & sparclinux MLs to cc: ] On Thursday, September 14, 2017 06:02:14 PM Bhumika Goyal wrote: > Make these structures static as they are not referenced in any other > file. Make them const as they are used only during a copy operation. > Replace __initdata with __initconst in file

  1   2   >