[drm-intel:topic/drm-misc 33/40] htmldocs: include/drm/drm_drv.h:295: warning: Incorrect use of kernel-doc format: * Hook for allocating the GEM object struct, for use by core

2016-11-16 Thread kbuild test robot
evel, 85e634bc Daniel Vetter 2016-11-14 364 unsigned int category, const char *function_name, :: The code at line 295 was first introduced by commit :: 85e634bce01af582a0fa549c904154b0e3c56db5 drm: Extract drm_drv.h :: TO: Daniel Vetter :: CC: Daniel Vetter --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation -- next part -- A non-text attachment was scrubbed... Name: .config.gz Type: application/gzip Size: 6425 bytes Desc: not available URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161116/c9ca145f/attachment-0001.gz>

[drm-intel:topic/drm-misc 45/47] drivers/gpu/drm/drm_irq.c:237:12: error: static declaration of 'drm_vblank_count' follows non-static declaration

2016-11-16 Thread kbuild test robot
.01.org/pipermail/kbuild-all Intel Corporation -- next part -- A non-text attachment was scrubbed... Name: .config.gz Type: application/gzip Size: 26786 bytes Desc: not available URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161116/b9ddc002/attachment-0001.gz>

[RFCv2 PATCH 3/5] drm/bridge: dw_hdmi: add HDMI notifier support

2016-11-16 Thread Pierre-Hugues Husson
Hi Hans, 2016-11-14 16:22 GMT+01:00 Hans Verkuil : > From: Russell King > > Add HDMI notifiers to the HDMI bridge driver. > > Signed-off-by: Russell King > --- > drivers/gpu/drm/bridge/Kconfig | 1 + > drivers/gpu/drm/bridge/dw-hdmi.c | 25 - > 2 files changed, 25 ins

[PATCH] drm/bridge: analogix_dp: return error if transfer none byte

2016-11-16 Thread Jianqun Xu
Reference from drm_dp_aux description (about transfer): Upon success, the implementation should return the number of payload bytes that were transferred, or a negative error-code on failure. Helpers propagate errors from the .transfer() function, with the exception of the -EBUSY error, which causes

[PATCH] clk: rockchip: rk3399: fix copy-paste error

2016-11-16 Thread Jianqun Xu
Fix RK3368_CLKSEL_CON to RK3399_CLKSEL_CON for rk3399 clock driver. Signed-off-by: Jianqun Xu --- drivers/clk/rockchip/clk-rk3399.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drivers/clk/rockchip/clk-rk3399.c index 2c7cba7..2bde6c

[PATCH] clk: rockchip: rk3399: fix copy-paste error

2016-11-16 Thread Jianqun Xu
Fix RK3368_* to RK3399_* for rk3399 clk_test clock. Signed-off-by: Jianqun Xu --- drivers/clk/rockchip/clk-rk3399.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drivers/clk/rockchip/clk-rk3399.c index 2c7cba7..ccbf558b 100644 --- a/

[RFCv2 PATCH 2/5] drm/bridge: dw_hdmi: remove CEC engine register definitions

2016-11-16 Thread Pierre-Hugues Husson
2016-11-16 0:27 GMT+01:00 Russell King - ARM Linux : > On Wed, Nov 16, 2016 at 12:23:50AM +0100, Pierre-Hugues Husson wrote: >> Hi, >> >> >> 2016-11-14 16:22 GMT+01:00 Hans Verkuil : >> > From: Russell King >> > >> > We don't need the CEC engine register definitions, so let's remove them. >> > >>

[RFCv2 PATCH 2/5] drm/bridge: dw_hdmi: remove CEC engine register definitions

2016-11-16 Thread Pierre-Hugues Husson
Hi, 2016-11-14 16:22 GMT+01:00 Hans Verkuil : > From: Russell King > > We don't need the CEC engine register definitions, so let's remove them. > > Signed-off-by: Russell King > --- > drivers/gpu/drm/bridge/dw-hdmi.h | 45 > > 1 file changed, 45 deleti

[Bug 187761] Nvidia GPU unusable after suspend.

2016-11-16 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=187761 Zhang Rui changed: What|Removed |Added CC||rui.zhang at intel.com Component|Hi

[Bug 98738] AMD E450| HD 6320 - crashing playback with kodi, maybe vdpau problem, mesa, r600

2016-11-16 Thread bugzilla-dae...@freedesktop.org
|| -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161116/2d017969/attachment.html>

[Bug 98738] AMD E450| HD 6320 - crashing playback with kodi, maybe vdpau problem, mesa, r600

2016-11-16 Thread bugzilla-dae...@freedesktop.org
|| -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161116/ea741dfe/attachment.html>

[Bug 98738] AMD E450| HD 6320 - crashing playback with kodi, maybe vdpau problem, mesa, r600

2016-11-16 Thread bugzilla-dae...@freedesktop.org
-- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161116/a7108c1f/attachment.html>

[Bug 98738] AMD E450| HD 6320 - crashing playback with kodi, maybe vdpau problem, mesa, r600

2016-11-16 Thread bugzilla-dae...@freedesktop.org
: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161116/cf5da525/attachment.html>

[PATCH v5] drm/mediatek: fixed the calc method of data rate per lane

2016-11-16 Thread Jitao Shi
Tune dsi frame rate by pixel clock, dsi add some extra signal (i.e. Tlpx, Ths-prepare, Ths-zero, Ths-trail,Ths-exit) when enter and exit LP mode, those signals will cause h-time larger than normal and reduce FPS. So need to multiply a coefficient to offset the extra signal's effect. coefficient =

[PATCH v5] drm/mediatek: fixed the calc method of data rate per lane

2016-11-16 Thread Daniel Kurtz
Hi Jitao, On Wed, Nov 16, 2016 at 11:20 AM, Jitao Shi wrote: > > Tune dsi frame rate by pixel clock, dsi add some extra signal (i.e. > Tlpx, Ths-prepare, Ths-zero, Ths-trail,Ths-exit) when enter and exit LP > mode, those signals will cause h-time larger than normal and reduce FPS. > So need to mu

[PATCH] drm/bridge: analogix_dp: return error if transfer none byte

2016-11-16 Thread Archit Taneja
On 11/15/2016 10:39 PM, Sean Paul wrote: > On Thu, Nov 3, 2016 at 3:17 AM, Jianqun Xu wrote: >> Reference from drm_dp_aux description (about transfer): >> Upon success, the implementation should return the number of payload bytes >> that were transferred, or a negative error-code on failure. Hel

[Intel-gfx] [PATCH 2/5] drm: Set DRM connector link status property

2016-11-16 Thread Daniel Vetter
On Tue, Nov 15, 2016 at 05:13:43PM -0800, Manasi Navare wrote: > On Tue, Nov 15, 2016 at 08:53:27AM +0100, Daniel Vetter wrote: > > On Mon, Nov 14, 2016 at 07:13:20PM -0800, Manasi Navare wrote: > > > In the usual working scenarios, this property is "Good". > > > If something fails during modeset,

[Intel-gfx] [PATCH 2/5] drm: Set DRM connector link status property

2016-11-16 Thread Daniel Vetter
On Tue, Nov 15, 2016 at 03:56:09PM -0800, Manasi Navare wrote: > On Tue, Nov 15, 2016 at 08:49:21AM +0100, Daniel Vetter wrote: > > On Mon, Nov 14, 2016 at 07:13:20PM -0800, Manasi Navare wrote: > > > + * If userspace is not aware of this property, the user experience is > > > the same > > > + * a

[PATCH] drm/nouveau: Use drm_crtc_vblank_off/on

2016-11-16 Thread Ben Skeggs
< dev->mode_config.num_crtc; head++) > - drm_vblank_on(dev, head); > - > list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { > struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); > > -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: OpenPGP digital signature URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161116/269ad83a/attachment.sig>

[PATCH] drm/fence: add fence timeline to drm_crtc

2016-11-16 Thread Daniel Vetter
On Tue, Nov 15, 2016 at 11:37:08PM +0900, Gustavo Padovan wrote: > From: Gustavo Padovan > > Create one timeline context for each CRTC to be able to handle out-fences > and signal them. It adds a few members to struct drm_crtc: fence_context, > where we store the context we get from fence_context

[linux-sunxi] Re: [PATCH v3 1/2] drm/bridge: dumb-vga-dac: Support a VDD regulator supply

2016-11-16 Thread Archit Taneja
Hi, On 11/15/2016 08:29 AM, Chen-Yu Tsai wrote: > Hi, > > On Wed, Nov 2, 2016 at 9:33 AM, Chen-Yu Tsai wrote: >> On Mon, Oct 31, 2016 at 2:28 PM, Rob Herring wrote: >>> On Sat, Oct 29, 2016 at 07:06:10PM +0800, Chen-Yu Tsai wrote: Some dumb VGA DACs are active components which require exter

[Bug 98238] witcher 2: objects are black when changing lod

2016-11-16 Thread bugzilla-dae...@freedesktop.org
u are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161116/b7030c01/attachment.html>

[Bug 98705] GPU fault with DRI3 on

2016-11-16 Thread bugzilla-dae...@freedesktop.org
avoid that via the LD_PRELOAD environment variable. -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161116/a73d6e59/attachment.html>

[Bug 98693] Mad Max: Long lags when VRAM full

2016-11-16 Thread bugzilla-dae...@freedesktop.org
-created . -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161116/82e14b96/attachment.html>

[PATCH] drm/fence: add fence timeline to drm_crtc

2016-11-16 Thread Gustavo Padovan
2016-11-16 Daniel Vetter : > On Tue, Nov 15, 2016 at 11:37:08PM +0900, Gustavo Padovan wrote: > > From: Gustavo Padovan > > > > Create one timeline context for each CRTC to be able to handle out-fences > > and signal them. It adds a few members to struct drm_crtc: fence_context, > > where we sto

[PATCH v12 3/3] drm/fence: add out-fences support

2016-11-16 Thread Chris Wilson
On Tue, Nov 15, 2016 at 10:06:41PM +0900, Gustavo Padovan wrote: > From: Gustavo Padovan > > Support DRM out-fences by creating a sync_file with a fence for each CRTC > that sets the OUT_FENCE_PTR property. > > We use the out_fence pointer received in the OUT_FENCE_PTR prop to send > the sync_fi

[PATCH v2 3/3] drm/tilcdc: Add drm bridge support for attaching drm bridge drivers

2016-11-16 Thread Bartosz Golaszewski
2016-11-15 21:46 GMT+01:00 Jyri Sarha : > On 11/15/16 19:36, Bartosz Golaszewski wrote: >> 2016-11-14 17:54 GMT+01:00 Jyri Sarha : >>> Adds drm bride support for attaching drm bridge drivers to tilcdc. The >>> decision whether a video port leads to an external encoder or bridge >>> is made simply b

[PATCH] drm/fence: add fence timeline to drm_crtc

2016-11-16 Thread Daniel Vetter
On Wed, Nov 16, 2016 at 06:02:10PM +0900, Gustavo Padovan wrote: > 2016-11-16 Daniel Vetter : > > On Tue, Nov 15, 2016 at 11:37:08PM +0900, Gustavo Padovan wrote: > > > From: Gustavo Padovan > > > > > > Create one timeline context for each CRTC to be able to handle out-fences > > > and signal the

[RFCv2 PATCH 1/5] video: add HDMI state notifier support

2016-11-16 Thread Hans Verkuil
On 11/15/16 21:41, Hans Verkuil wrote: > Hi Philipp, > > On 11/15/2016 07:24 PM, Philipp Zabel wrote: >> Hi Hans, >> >> Am Montag, den 14.11.2016, 16:22 +0100 schrieb Hans Verkuil: >>> From: Hans Verkuil >>> >>> Add support for HDMI hotplug and EDID notifiers, which is used to convey >>> informati

[PATCH 0/7] drm/tilcdc: LCDC Revision 1 related fixes

2016-11-16 Thread Jyri Sarha
These patches are inspired by this series form Bartosz Golaszewski: https://www.spinics.net/lists/arm-kernel/msg539629.html The patches are based on drm-next plus the earlier patches that I plan to send in a pull request for 4.10. The base + these patches are pushed here: https://github.com/jsarh

[Bug 98664] Fragment shader while loop causes geometry corruption

2016-11-16 Thread bugzilla-dae...@freedesktop.org
. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161116/7d00b98c/attachment.html>

[PATCH] clk: rockchip: rk3399: fix copy-paste error

2016-11-16 Thread Heiko Stuebner
Am Mittwoch, 16. November 2016, 08:19:41 CET schrieb Jianqun Xu: > Fix RK3368_* to RK3399_* for rk3399 clk_test clock. > > Signed-off-by: Jianqun Xu applied to my clk branch for 4.10 Thanks Heiko

[PATCH libdrm] xf86drm: introduce drmGetDeviceNameFromFd2

2016-11-16 Thread Nicolai Hähnle
On 10.11.2016 18:43, Emil Velikov wrote: > From: Emil Velikov > > The original version considered only card devices, while this will pick > the device/node name regardless - card, control, renderD, other... > > Current implementation is "linux" specific, in such that it relies on > sysfs/uevent fi

[RFC][PATCH] drm: Nuke modifier[1-3]

2016-11-16 Thread ville.syrj...@linux.intel.com
From: Ville Syrjälä It has been suggested that having per-plane modifiers is making life more difficult for userspace, so let's just retire modifier[1-3] and use modifier[0] to apply to the entire framebuffer. Obviosuly this means that if individual planes need different tiling layouts and wha

[PATCH v5 1/2] drm: tilcdc: implement palette loading for rev1

2016-11-16 Thread Bartosz Golaszewski
2016-10-31 17:05 GMT+01:00 Jyri Sarha : > On 10/31/16 16:19, Bartosz Golaszewski wrote: >> Revision 1 of the IP doesn't work if we don't load the palette (even >> if it's not used, which is the case for the RGB565 format). >> >> Add a function called from tilcdc_crtc_enable() which performs all >>

[Bug 98724] garbled output using glDrawElementsIndirect

2016-11-16 Thread bugzilla-dae...@freedesktop.org
post your dmesg and the output of sha1sum $(find /lib/firmware -iname *oland*)? -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachm

[PATCH 1/7] drm/tilcdc: Enable sync lost error and recovery handling for rev 1 LCDC

2016-11-16 Thread Jyri Sarha
Revision 1 LCDC support also sync lost errors and can benefit from sync lost recovery routine. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 39 ++-- drivers/gpu/drm/tilcdc/tilcdc_regs.h | 1 + 2 files changed, 21 insertions(+), 19 deletion

[PATCH 2/7] drm: tilcdc: implement palette loading for rev1

2016-11-16 Thread Jyri Sarha
From: Bartosz Golaszewski Revision 1 of the IP doesn't work if we don't load the palette (even if it's not used, which is the case for the RGB565 format). Add a function called from tilcdc_crtc_enable() which performs all required actions if we're dealing with a rev1 chip. Signed-off-by: Bartos

[PATCH 3/7] drm/tilcdc: Fix tilcdc_crtc_create() return value handling

2016-11-16 Thread Jyri Sarha
Failed tilcdc_crtc_create() error handling was broken, this patch should fix it. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 12 +++- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 11 --- drivers/gpu/drm/tilcdc/tilcdc_drv.h | 2 +- 3 files changed, 12 insertio

[PATCH 5/7] drm/tilcdc: Add tilcdc_write_mask() to tilcdc_regs.h

2016-11-16 Thread Jyri Sarha
Add tilcdc_write_mask() for handling register field wider than one bit and mask values for those fields. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_regs.h | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_regs.h b/drivers/gpu/drm/tilcdc/

[PATCH 7/7] drm/tilcdc: Load palette at the end of mode_set_nofb()

2016-11-16 Thread Jyri Sarha
Load palette at the end of mode_set_nofb() and only if the palette has not been loaded since last runtime resume. Moving the palette loading to mode_set_nofb() saves us from storing and restoring of LCDC dma addresses that were just recently updated. Signed-off-by: Jyri Sarha --- drivers/gpu/drm

[PATCH 6/7] drm/tilcdc: Enable palette loading for revision 2 LCDC too

2016-11-16 Thread Jyri Sarha
The LCDC revision 2 documentation also mentions the mandatory palette for true color modes. Even if the rev 2 LCDC appears to work just fine without the palette being loaded loading it helps in testing the feature. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 88 +

[PATCH 4/7] drm/tilcdc: Free palette dma memory in tilcdc_crtc_destroy()

2016-11-16 Thread Jyri Sarha
We should free the palette dma memory too. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c index 67b50c0..6d2ce53b 100644 --- a/drivers/gpu/drm/

[Bug 98664] Fragment shader while loop causes geometry corruption

2016-11-16 Thread bugzilla-dae...@freedesktop.org
achment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161116/cf18c2f9/attachment.html>

[PATCH 6/7] drm/tilcdc: Enable palette loading for revision 2 LCDC too

2016-11-16 Thread Jyri Sarha
On 11/16/16 13:43, Jyri Sarha wrote: > The LCDC revision 2 documentation also mentions the mandatory palette > for true color modes. Even if the rev 2 LCDC appears to work just fine > without the palette being loaded loading it helps in testing the > feature. > > Signed-off-by: Jyri Sarha > --- >

[RFC][PATCH] drm: Nuke modifier[1-3]

2016-11-16 Thread Eric Engestrom
On Wednesday, 2016-11-16 13:33:16 +0200, ville.syrjala at linux.intel.com wrote: > From: Ville Syrjälä > > It has been suggested that having per-plane modifiers is making life > more difficult for userspace, so let's just retire modifier[1-3] and > use modifier[0] to apply to the entire framebu

[Intel-gfx] [PATCH v11 3/4] drm/i915: Use new CRC debugfs API

2016-11-16 Thread Tomeu Vizoso
On 15 November 2016 at 09:27, Jani Nikula wrote: > On Tue, 15 Nov 2016, David Weinehall wrote: >> On Mon, Nov 14, 2016 at 12:44:25PM +0200, Jani Nikula wrote: >>> On Thu, 06 Oct 2016, Tomeu Vizoso wrote: >>> > diff --git a/drivers/gpu/drm/i915/intel_display.c >>> > b/drivers/gpu/drm/i915/intel

[Bug 98743] Incorrect colormapping in Verdun game

2016-11-16 Thread bugzilla-dae...@freedesktop.org
... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161116/63f97cd2/attachment.html>

[RFC][PATCH] drm: Nuke modifier[1-3]

2016-11-16 Thread Ville Syrjälä
On Wed, Nov 16, 2016 at 12:10:42PM +, Eric Engestrom wrote: > On Wednesday, 2016-11-16 13:33:16 +0200, ville.syrjala at linux.intel.com > wrote: > > From: Ville Syrjälä > > > > It has been suggested that having per-plane modifiers is making life > > more difficult for userspace, so let's j

[PATCH v2 0/7] drm/tilcdc: LCDC Revision 1 related fixes

2016-11-16 Thread Jyri Sarha
Changes since first version of the series: - Move tilcdc_regs.h changes from "drm/tilcdc: Enable palette loading for revision 2 LCDC too" to "drm/tilcdc: Add tilcdc_write_mask() to tilcdc_regs.h" These patches are inspired by this series form Bartosz Golaszewski: https://www.spinics.net/lists

[PATCH v2 2/7] drm: tilcdc: implement palette loading for rev1

2016-11-16 Thread Jyri Sarha
From: Bartosz Golaszewski Revision 1 of the IP doesn't work if we don't load the palette (even if it's not used, which is the case for the RGB565 format). Add a function called from tilcdc_crtc_enable() which performs all required actions if we're dealing with a rev1 chip. Signed-off-by: Bartos

[PATCH v2 1/7] drm/tilcdc: Enable sync lost error and recovery handling for rev 1 LCDC

2016-11-16 Thread Jyri Sarha
Revision 1 LCDC support also sync lost errors and can benefit from sync lost recovery routine. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 39 ++-- drivers/gpu/drm/tilcdc/tilcdc_regs.h | 1 + 2 files changed, 21 insertions(+), 19 deletion

[PATCH v2 5/7] drm/tilcdc: Add tilcdc_write_mask() to tilcdc_regs.h

2016-11-16 Thread Jyri Sarha
Add tilcdc_write_mask() for handling register field wider than one bit and mask values for those fields. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_regs.h | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_regs.h b/drivers/gpu/drm/t

[PATCH v2 3/7] drm/tilcdc: Fix tilcdc_crtc_create() return value handling

2016-11-16 Thread Jyri Sarha
Failed tilcdc_crtc_create() error handling was broken, this patch should fix it. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 12 +++- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 11 --- drivers/gpu/drm/tilcdc/tilcdc_drv.h | 2 +- 3 files changed, 12 insertio

[PATCH v2 6/7] drm/tilcdc: Enable palette loading for revision 2 LCDC too

2016-11-16 Thread Jyri Sarha
The LCDC revision 2 documentation also mentions the mandatory palette for true color modes. Even if the rev 2 LCDC appears to work just fine without the palette being loaded loading it helps in testing the feature. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 88 +

[PATCH v2 7/7] drm/tilcdc: Load palette at the end of mode_set_nofb()

2016-11-16 Thread Jyri Sarha
Load palette at the end of mode_set_nofb() and only if the palette has not been loaded since last runtime resume. Moving the palette loading to mode_set_nofb() saves us from storing and restoring of LCDC dma addresses that were just recently updated. Signed-off-by: Jyri Sarha --- drivers/gpu/drm

[PATCH v2 4/7] drm/tilcdc: Free palette dma memory in tilcdc_crtc_destroy()

2016-11-16 Thread Jyri Sarha
We should free the palette dma memory too. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c index 67b50c0..6d2ce53b 100644 --- a/drivers/gpu/drm/

[PATCH 0/7] drm/tilcdc: LCDC Revision 1... PLEASE IGNORE and move directly to v2 series

2016-11-16 Thread Jyri Sarha
On 11/16/16 12:00, Jyri Sarha wrote: > These patches are inspired by this series form Bartosz Golaszewski: > https://www.spinics.net/lists/arm-kernel/msg539629.html > > The patches are based on drm-next plus the earlier patches that I plan > to send in a pull request for 4.10. The base + these pat

[Intel-gfx] [PATCH 01/19] drm/atomic: Add new iterators over all state

2016-11-16 Thread Maarten Lankhorst
Op 03-11-16 om 16:11 schreef Ville Syrjälä: > On Wed, Nov 02, 2016 at 09:28:46AM +0100, Maarten Lankhorst wrote: >> Op 01-11-16 om 14:41 schreef Ville Syrjälä: >>> On Tue, Nov 01, 2016 at 02:34:00PM +0100, Maarten Lankhorst wrote: Op 01-11-16 om 14:09 schreef Ville Syrjälä: > On Mon,

[PATCH v6] drm: tilcdc: implement palette loading for rev1

2016-11-16 Thread Bartosz Golaszewski
Revision 1 of the IP doesn't work if we don't load the palette (even if it's not used, which is the case for the RGB565 format). Add a function called from tilcdc_crtc_enable() which performs all required actions if we're dealing with a rev1 chip. Signed-off-by: Bartosz Golaszewski --- v1 -> v2:

[Intel-gfx] [PATCH v11 3/4] drm/i915: Use new CRC debugfs API

2016-11-16 Thread Jani Nikula
On Wed, 16 Nov 2016, Tomeu Vizoso wrote: > On 15 November 2016 at 09:27, Jani Nikula > wrote: >> On Tue, 15 Nov 2016, David Weinehall wrote: >>> On Mon, Nov 14, 2016 at 12:44:25PM +0200, Jani Nikula wrote: On Thu, 06 Oct 2016, Tomeu Vizoso wrote: > diff --git a/drivers/gpu/drm/i915/i

[PATCH v13] drm/fence: add out-fences support

2016-11-16 Thread Gustavo Padovan
From: Gustavo Padovan Support DRM out-fences by creating a sync_file with a fence for each CRTC that sets the OUT_FENCE_PTR property. We use the out_fence pointer received in the OUT_FENCE_PTR prop to send the sync_file fd back to userspace. The sync_file and fd are allocated/created before com

[RFC][PATCH] drm: Nuke modifier[1-3]

2016-11-16 Thread Rob Clark
On Wed, Nov 16, 2016 at 7:33 AM, Ville Syrjälä wrote: > On Wed, Nov 16, 2016 at 12:10:42PM +, Eric Engestrom wrote: >> On Wednesday, 2016-11-16 13:33:16 +0200, ville.syrjala at linux.intel.com >> wrote: >> > From: Ville Syrjälä >> > >> > It has been suggested that having per-plane modifi

BUG: 'list_empty(&vgdev->free_vbufs)' is true!

2016-11-16 Thread Gerd Hoffmann
On Fr, 2016-11-11 at 17:28 +0100, Jiri Slaby wrote: > On 11/09/2016, 09:01 AM, Gerd Hoffmann wrote: > > On Di, 2016-11-08 at 22:37 +0200, Michael S. Tsirkin wrote: > >> On Mon, Nov 07, 2016 at 09:43:24AM +0100, Jiri Slaby wrote: > >>> Hi, > >>> > >>> I can relatively easily reproduce this bug: > >

[Bug 98541] [bisected] gpu hang

2016-11-16 Thread bugzilla-dae...@freedesktop.org
ssignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161116/e32ebc83/attachment.html>

[PATCH v2 2/3] drm/bridge: Add ti-tfp410 DVI transmitter driver

2016-11-16 Thread Rob Herring
On Mon, Nov 14, 2016 at 06:54:17PM +0200, Jyri Sarha wrote: > Add very basic ti-ftp410 DVI transmitter driver. The only feature > separating this from a completely dummy bridge is the EDID read > support trough DDC I2C. Even that functionality should be in a > separate generic connector driver. How

[Bug 98541] [bisected] gpu hang

2016-11-16 Thread bugzilla-dae...@freedesktop.org
esktop.org/archives/dri-devel/attachments/20161116/29190ee6/attachment.html>

[PATCH v13] drm/fence: add out-fences support

2016-11-16 Thread Daniel Vetter
On Wed, Nov 16, 2016 at 10:00:21PM +0900, Gustavo Padovan wrote: > From: Gustavo Padovan > > Support DRM out-fences by creating a sync_file with a fence for each CRTC > that sets the OUT_FENCE_PTR property. > > We use the out_fence pointer received in the OUT_FENCE_PTR prop to send > the sync_fi

[PATCH 1/2] MAINTAINERS: Add drm-misc

2016-11-16 Thread Daniel Vetter
KS happened, time to make this official! Well, scripting work to make this all happen is still ongoing, but I'm trying to at least keep the new tree semi-in-sync with the temporary topic/drm-misc branch in the drm-intel.git repo. So for now still no new committers, and existing ones still need to

[PATCH 2/2] MAINTAINERS: Move dma-buf to drm-misc git

2016-11-16 Thread Daniel Vetter
Sumit still takes care about dma-buf, but we've merged the trees together since way too much overlap. And Gustavo is also part of the drm-misc team to be able to help out. Cc: Sumit Semwal Cc: Gustavo Padovan Signed-off-by: Daniel Vetter --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+

[PATCH 1/2] MAINTAINERS: Add drm-misc

2016-11-16 Thread Sean Paul
On Wed, Nov 16, 2016 at 8:51 AM, Daniel Vetter wrote: > KS happened, time to make this official! > > Well, scripting work to make this all happen is still ongoing, but I'm > trying to at least keep the new tree semi-in-sync with the temporary > topic/drm-misc branch in the drm-intel.git repo. So

[PATCH v2 1/4] drm/atomic: Add new iterators over all state, v2.

2016-11-16 Thread Maarten Lankhorst
Add for_each_(old)(new)_(plane,connector,crtc)_in_state iterators to replace the old for_each_xxx_in_state ones. This is useful for >1 flip depth and getting rid of all xxx->state dereferences. This requires extra fixups done when committing a state after duplicating, which in general isn't valid

[PATCH v2 2/4] drm/atomic: Add accessor macros for the current state.

2016-11-16 Thread Maarten Lankhorst
With checks! This will allow safe access to the current state, while ensuring that the correct locks are held. Signed-off-by: Maarten Lankhorst --- include/drm/drm_atomic.h | 66 ++ include/drm/drm_modeset_lock.h | 21 ++ 2 files changed,

[PATCH v2 0/4] drm/atomic: Add accessor macros for all atomic state.

2016-11-16 Thread Maarten Lankhorst
Second approach. Instead of trying to convert all drivers straight away, implement all macros that are required to get state working. Current situation: Use obj->state, which can refer to old or new state. Use drm_atomic_get_(existing_)obj_state, which can refer to new or old state. Use for_each_o

[PATCH v2 3/4] drm/atomic: Add macros to access existing old/new state

2016-11-16 Thread Maarten Lankhorst
During atomic check/commit, these macros should be used in place of get_existing_state. We also ban the use of get_xx_state after atomic check, because at that point no new locks should be taken and get_new/old_state should be used instead. Signed-off-by: Maarten Lankhorst --- include/drm/drm_a

[PATCH v2 4/4] drm/atomic: Add checks to ensure get_state is not called after swapping.

2016-11-16 Thread Maarten Lankhorst
This isn't allowed, callers should use get_new_state or get_old_state, but lets be paranoid.. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/drm_atomic.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/d

[Intel-gfx] [PATCH v11 3/4] drm/i915: Use new CRC debugfs API

2016-11-16 Thread Tomeu Vizoso
On 16 November 2016 at 13:58, Jani Nikula wrote: > On Wed, 16 Nov 2016, Tomeu Vizoso wrote: >> On 15 November 2016 at 09:27, Jani Nikula >> wrote: >>> On Tue, 15 Nov 2016, David Weinehall wrote: On Mon, Nov 14, 2016 at 12:44:25PM +0200, Jani Nikula wrote: > On Thu, 06 Oct 2016, Tomeu

[PATCH 1/3] MAINTAINERS: Add drm-misc

2016-11-16 Thread Daniel Vetter
KS happened, time to make this official! Well, scripting work to make this all happen is still ongoing, but I'm trying to at least keep the new tree semi-in-sync with the temporary topic/drm-misc branch in the drm-intel.git repo. So for now still no new committers, and existing ones still need to

[Intel-gfx] [PATCH v11 3/4] drm/i915: Use new CRC debugfs API

2016-11-16 Thread Jani Nikula
On Wed, 16 Nov 2016, Tomeu Vizoso wrote: > On 16 November 2016 at 13:58, Jani Nikula > wrote: >> On Wed, 16 Nov 2016, Tomeu Vizoso wrote: >>> On 15 November 2016 at 09:27, Jani Nikula >>> wrote: On Tue, 15 Nov 2016, David Weinehall wrote: > On Mon, Nov 14, 2016 at 12:44:25PM +0200,

[PATCH 2/3] MAINTAINERS: Move dma-buf to drm-misc git

2016-11-16 Thread Daniel Vetter
Sumit still takes care about dma-buf, but we've merged the trees together since way too much overlap. And Gustavo is also part of the drm-misc team to be able to help out. Cc: Sumit Semwal Cc: Gustavo Padovan Signed-off-by: Daniel Vetter --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+

[PATCH 3/3] MAINTAINERS: Add Archit as drm bridge maintainer

2016-11-16 Thread Daniel Vetter
Again something that's in the drm-misc fold. Cc: Archit Taneja Signed-off-by: Daniel Vetter --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2fd160817603..61979cf461e7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4039,6 +4039,12 @@ M:

[Intel-gfx] [PATCH v11 3/4] drm/i915: Use new CRC debugfs API

2016-11-16 Thread Daniel Vetter
On Wed, Nov 16, 2016 at 04:08:30PM +0200, Jani Nikula wrote: > On Wed, 16 Nov 2016, Tomeu Vizoso wrote: > > On 16 November 2016 at 13:58, Jani Nikula > > wrote: > >> On Wed, 16 Nov 2016, Tomeu Vizoso wrote: > >>> On 15 November 2016 at 09:27, Jani Nikula >>> linux.intel.com> wrote: > On T

[PATCH v2 0/4] drm/atomic: Add accessor macros for all atomic state.

2016-11-16 Thread Daniel Vetter
On Wed, Nov 16, 2016 at 02:58:04PM +0100, Maarten Lankhorst wrote: > Second approach. Instead of trying to convert all drivers straight away, > implement all macros that are required to get state working. > > Current situation: > Use obj->state, which can refer to old or new state. > Use drm_atomi

[PATCH] drm/vmwgfx: avoid gcc-7 parentheses warning

2016-11-16 Thread Arnd Bergmann
gcc-7 warns about slightly suspicious code in vmw_cmd_invalid: drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c: In function 'vmw_cmd_invalid': drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c:522:23: error: the omitted middle operand in ?: will always be 'true', suggest explicit middle operand [-Werror=parenthes

[PATCH v2 2/4] drm/atomic: Add accessor macros for the current state.

2016-11-16 Thread Ville Syrjälä
On Wed, Nov 16, 2016 at 02:58:06PM +0100, Maarten Lankhorst wrote: > With checks! This will allow safe access to the current state, > while ensuring that the correct locks are held. > > Signed-off-by: Maarten Lankhorst > --- > include/drm/drm_atomic.h | 66 > ++

[PATCH v2 2/3] drm/bridge: Add ti-tfp410 DVI transmitter driver

2016-11-16 Thread Jyri Sarha
On 11/16/16 15:33, Rob Herring wrote: >> +Optional properties >> > + - reg: I2C address. If and only if present the driver node >> > +should be placed into the i2c controller node where the >> > +tfp410 i2c is connected to (the current implementation does >> > +not yet support this). >

[PATCH v5 1/2] drm: tilcdc: implement palette loading for rev1

2016-11-16 Thread Jyri Sarha
On 11/16/16 13:34, Bartosz Golaszewski wrote: > 2016-10-31 17:05 GMT+01:00 Jyri Sarha : >> On 10/31/16 16:19, Bartosz Golaszewski wrote: >>> Revision 1 of the IP doesn't work if we don't load the palette (even >>> if it's not used, which is the case for the RGB565 format). >>> >>> Add a function ca

[RFC][PATCH] drm: Nuke modifier[1-3]

2016-11-16 Thread Ville Syrjälä
On Wed, Nov 16, 2016 at 08:04:23AM -0500, Rob Clark wrote: > On Wed, Nov 16, 2016 at 7:33 AM, Ville Syrjälä > wrote: > > On Wed, Nov 16, 2016 at 12:10:42PM +, Eric Engestrom wrote: > >> On Wednesday, 2016-11-16 13:33:16 +0200, ville.syrjala at linux.intel.com > >> wrote: > >> > From: Ville

[Bug 98541] [bisected] gpu hang

2016-11-16 Thread bugzilla-dae...@freedesktop.org
. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161116/cd3110b8/attachment.html>

[RFC][PATCH] drm: Nuke modifier[1-3]

2016-11-16 Thread Daniel Vetter
On Wed, Nov 16, 2016 at 04:43:23PM +0200, Ville Syrjälä wrote: > On Wed, Nov 16, 2016 at 08:04:23AM -0500, Rob Clark wrote: > > On Wed, Nov 16, 2016 at 7:33 AM, Ville Syrjälä > > wrote: > > > On Wed, Nov 16, 2016 at 12:10:42PM +, Eric Engestrom wrote: > > >> On Wednesday, 2016-11-16 13:33:

[Bug 98541] [bisected] gpu hang

2016-11-16 Thread bugzilla-dae...@freedesktop.org
are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161116/1fcca6c5/attachment-0001.html>

[PATCH v2 2/4] drm/atomic: Add accessor macros for the current state.

2016-11-16 Thread Daniel Vetter
On Wed, Nov 16, 2016 at 04:35:45PM +0200, Ville Syrjälä wrote: > On Wed, Nov 16, 2016 at 02:58:06PM +0100, Maarten Lankhorst wrote: > > With checks! This will allow safe access to the current state, > > while ensuring that the correct locks are held. > > > > Signed-off-by: Maarten Lankhorst > >

[Bug 98664] Fragment shader while loop causes geometry corruption

2016-11-16 Thread bugzilla-dae...@freedesktop.org
-- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161116/4a79c915/attachment.html>

[RFC][PATCH] drm: Nuke modifier[1-3]

2016-11-16 Thread Rob Clark
On Wed, Nov 16, 2016 at 9:43 AM, Ville Syrjälä wrote: > On Wed, Nov 16, 2016 at 08:04:23AM -0500, Rob Clark wrote: >> On Wed, Nov 16, 2016 at 7:33 AM, Ville Syrjälä >> wrote: >> > On Wed, Nov 16, 2016 at 12:10:42PM +, Eric Engestrom wrote: >> >> On Wednesday, 2016-11-16 13:33:16 +0200, vi

[PATCH v2 0/7] drm/tilcdc: LCDC Revision 1 related fixes

2016-11-16 Thread Bartosz Golaszewski
2016-11-16 13:40 GMT+01:00 Jyri Sarha : > Changes since first version of the series: > > - Move tilcdc_regs.h changes from "drm/tilcdc: Enable palette loading > for revision 2 LCDC too" to "drm/tilcdc: Add tilcdc_write_mask() to > tilcdc_regs.h" > > These patches are inspired by this series for

[RFC][PATCH] drm: Nuke modifier[1-3]

2016-11-16 Thread Ben Widawsky
Acked-by: Ben Widawsky On 16-11-16 13:33:16, Ville Syrjälä wrote: >From: Ville Syrjälä > >It has been suggested that having per-plane modifiers is making life >more difficult for userspace, so let's just retire modifier[1-3] and >use modifier[0] to apply to the entire framebuffer. > >Obviosu

[RFC][PATCH] drm: Nuke modifier[1-3]

2016-11-16 Thread Daniel Stone
Hi, On 16 November 2016 at 11:33, wrote: > It has been suggested that having per-plane modifiers is making life > more difficult for userspace, so let's just retire modifier[1-3] and > use modifier[0] to apply to the entire framebuffer. > > Obviosuly this means that if individual planes need dif

[PATCH v7 1/7] drm/hisilicon/hibmc: Add hisilicon hibmc drm master driver

2016-11-16 Thread Sean Paul
On Wed, Nov 16, 2016 at 8:43 AM, Rongrong Zou wrote: > Add DRM master driver for Hisilicon Hibmc SoC which used for > Out-of-band management. Blow is the general hardware connection, > both the Hibmc and the host CPU are on the same mother board. > > +--+ +--+ > | |

[PATCH v7 2/7] drm/hisilicon/hibmc: Add video memory management

2016-11-16 Thread Sean Paul
On Wed, Nov 16, 2016 at 8:43 AM, Rongrong Zou wrote: > Hibmc have 32m video memory which can be accessed through PCIe by host, > we use ttm to manage these memory. > > Signed-off-by: Rongrong Zou Reviewed-by: Sean Paul > --- > drivers/gpu/drm/hisilicon/hibmc/Makefile| 2 +- > driver

[PATCH v7 3/7] drm/hisilicon/hibmc: Add support for frame buffer

2016-11-16 Thread Sean Paul
On Wed, Nov 16, 2016 at 8:43 AM, Rongrong Zou wrote: > Add support for fbdev and kms fb management. > > Signed-off-by: Rongrong Zou Reviewed-by: Sean Paul > --- > drivers/gpu/drm/hisilicon/hibmc/Makefile | 2 +- > drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 7 + > drivers

  1   2   >