[PATCH 02/11] dma-buf/fence: add fence_array fences v6

2016-06-01 Thread Sumit Semwal
Hi Christian, Gustavo, Thanks for these patches. On 1 June 2016 at 20:55, Gustavo Padovan wrote: > 2016-06-01 Christian König : > >> From: Gustavo Padovan >> >> struct fence_collection inherits from struct fence and carries a >> collection of fences that needs to be waited together. >> >> It

[RFC PATCH 3/4] PM / devfreq: rockchip: add devfreq driver for rk3399 dmc

2016-06-01 Thread Chanwoo Choi
Hi Lin, This patch include the two features as following: - Monitor the ddr load - Control the ddr's clock with ondemand governor based on load The "Monitor the ddr load" has the specific the address in SoC. Namely, it is separate the module. So, I implemented the devfreq-event framework[1]

[BISECTED] 0955c1250e oops at drm_connector_cleanup+0x5c/0x1d0

2016-06-01 Thread George Spelvin
With 6e86d58be3, I get working X. With 0955c1250e ("drm/crtc: take references to connectors used in a modeset. (v2)"), startx produces a kernel oops and a blank screen. 4.7-rc1 with 0955c1250e reverted also works, which seems definitive. The oops is: [ 212.149973] nouveau :02:00.0: DRM:

[RFC PATCH 3/4] PM / devfreq: rockchip: add devfreq driver for rk3399 dmc

2016-06-01 Thread MyungJoo Ham
On Wed, Jun 1, 2016 at 6:35 PM, Lin Huang wrote: > there is dfi controller on rk3399 platform, it can monitor > ddr load, register this controller to devfreq framework, and > default to use simple_ondeamnd policy, and do ddr frequency > scaling base on this result. > > Signed-off-by: Lin Huang >

[Nouveau] [PATCH 4/4] drm/nouveau/acpi: fix lockup with PCIe runtime PM

2016-06-01 Thread Lukas Wunner
On Wed, Jun 01, 2016 at 06:51:51PM +0200, Peter Wu wrote: > On Tue, May 31, 2016 at 02:20:26PM +0200, Lukas Wunner wrote: > > On Mon, May 30, 2016 at 06:13:51PM +0200, Peter Wu wrote: > > > Do you have any suggestions for the case where the pcieport driver > > > refuses to put the bridge in D3

[PATCH 4/4] drm/nouveau/acpi: fix lockup with PCIe runtime PM

2016-06-01 Thread Peter Wu
On Wed, Jun 01, 2016 at 12:28:47PM +0300, Mika Westerberg wrote: > On Tue, May 31, 2016 at 01:02:31PM +0200, Peter Wu wrote: > > On Tue, May 31, 2016 at 11:43:56AM +0300, Mika Westerberg wrote: > > > On Mon, May 30, 2016 at 06:13:51PM +0200, Peter Wu wrote: > > > > Do you have any suggestions for

[Nouveau] [PATCH 4/4] drm/nouveau/acpi: fix lockup with PCIe runtime PM

2016-06-01 Thread Peter Wu
On Tue, May 31, 2016 at 02:20:26PM +0200, Lukas Wunner wrote: > On Mon, May 30, 2016 at 06:13:51PM +0200, Peter Wu wrote: > > Do you have any suggestions for the case where the pcieport driver > > refuses to put the bridge in D3 (because the BIOS is too old)? In that > > case the nouveau driver

[GIT PULL] imx-drm: LVDS updates and some cleanup

2016-06-01 Thread Philipp Zabel
Hi Dave, this tag contains support for pixel clock polarity configuration, LVDS panel EDID reading via DDC, video mode selection via native-mode DT property, UYVY/YUYV plane support, and some cleanups. regards Philipp The following changes since commit 1a695a905c18548062509178b98bc91e67510864:

[GIT PULL] drm/mediatek: MT8173 DSI and DPI fixes

2016-06-01 Thread Philipp Zabel
Hi Dave, this tag contains two fixes, one each for an oversight in the DPI and DSI driver, respectively. regards Philipp The following changes since commit 1a695a905c18548062509178b98bc91e67510864: Linux 4.7-rc1 (2016-05-29 09:29:24 -0700) are available in the git repository at:

[PATCH 4/4] drm/amdgpu: modify sdma start sequence

2016-06-01 Thread Alex Deucher
From: Monk Liu should fist halt engine, and then doing the register programing, and later unhalt engine, and finally run ring_test. this help fix reloading driver hang issue of SDMA ring original sequence is wrong for it programing engine after unhalt, which will lead to

[PATCH 3/4] drm/amdgpu: init more register for sdma

2016-06-01 Thread Alex Deucher
From: Monk Liu This help fix reloading driver hang issue of SDMA ring Signed-off-by: Monk Liu Reviewed-by: Alex Deucher Reviewed-by: Christian König Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/cik_sdma.c | 2 ++ drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c | 2

[PATCH 2/4] drm/amdgpu: clear SA bo when created

2016-06-01 Thread Alex Deucher
From: Monk Liu This help fix reloading driver hang issue of SDMA ring Signed-off-by: Monk Liu Reviewed-by: Alex Deucher Reviewed-by: Christian König Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 1/4] drm/amdgpu: clear RB at ring init

2016-06-01 Thread Alex Deucher
From: Monk Liu This help fix reloading driver hang issue of SDMA ring. Signed-off-by: Monk Liu Reviewed-by: Alex Deucher Reviewed-by: Christian König Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 3 +++ 1 file changed, 3 insertions(+) diff

[PATCH 0/4] Fix SDMA after module reload

2016-06-01 Thread Alex Deucher
This patch set fixes SDMA after module reload. Monk Liu (4): drm/amdgpu: clear RB at ring init drm/amdgpu: clear SA bo when created drm/amdgpu: init more register for sdma drm/amdgpu: modify sdma start sequence drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 3 +++

[Bug 88458] The monitor turns off when playing starcraft 2 in wine

2016-06-01 Thread bugzilla-dae...@freedesktop.org
ming it's done through the engine...). > > -- Oh, and Mesa is 12.0 rc1. -- 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/20160601/8c26e858/attachment.html>

[Bug 88458] The monitor turns off when playing starcraft 2 in wine

2016-06-01 Thread bugzilla-dae...@freedesktop.org
for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160601/8aeb71b9/attachment.html>

[PATCH 23/27] drm/sun4i: Use lockless gem BO free callback

2016-06-01 Thread Maxime Ripard
A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160601/aa4d3560/attachment.sig>

[Bug 88458] The monitor turns off when playing starcraft 2 in wine

2016-06-01 Thread bugzilla-dae...@freedesktop.org
art -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160601/d7f1cc00/attachment.html>

[PATCH 19/26] drm/sun4i: Implement some semblance of vblank event handling

2016-06-01 Thread Maxime Ripard
scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160601/51ed5154/attachment-0001.sig>

[PATCH v4 1/2] drm: bridge: Add sii902x driver

2016-06-01 Thread Boris Brezillon
On Tue, 17 May 2016 08:47:11 +0200 Daniel Vetter wrote: > > +static struct drm_encoder *sii902x_best_encoder(struct drm_connector > > *connector) > > +{ > > + struct sii902x *sii902x = connector_to_sii902x(connector); > > + > > + return sii902x->bridge.encoder; > > +} > >

[Bug 117151] amdgpu: Fails to initialize R7 260x (Bonaire)

2016-06-01 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=117151 --- Comment #6 from Parker Reed --- Created attachment 218661 --> https://bugzilla.kernel.org/attachment.cgi?id=218661=edit 4.7.0-rc1 log -- You are receiving this mail because: You are watching the assignee of the bug.

[Bug 117151] amdgpu: Fails to initialize R7 260x (Bonaire)

2016-06-01 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=117151 --- Comment #5 from Parker Reed --- Compiled git today and issue persists. Log attached. -- You are receiving this mail because: You are watching the assignee of the bug.

[Bug 117151] amdgpu: Fails to initialize R7 260x (Bonaire)

2016-06-01 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=117151 Parker Reed changed: What|Removed |Added Kernel Version|4.6 |4.7 -- You are receiving this mail

[PATCH] drm: atomic: Handle funcs->best_encoder == NULL case

2016-06-01 Thread Boris Brezillon
Fallback drm_atomic_helper_best_encoder() is funcs->best_encoder() is NULL so that DRM drivers can leave this hook unassigned if they know they want to use drm_atomic_helper_best_encoder(). Signed-off-by: Boris Brezillon --- drivers/gpu/drm/drm_atomic_helper.c | 4 +++- 1 file changed, 3

[PATCH] drm/rockchip: vop: do axi reset in vop initial time

2016-06-01 Thread Mark yao
On 2016年06月01日 17:19, Yakir Yang wrote: > There is a bug in RK3399 VOP, when bootloader/kernel only enable > VOP Big or VOP Little to display, then VOP IOMMU would failed to > reset at the initial time and VOP register couldn't write rightly. > > After do the pure reset of VOP module, then

[RFC PATCH 2/4] clk: rockchip: rk3399: add ddrc clock support

2016-06-01 Thread Heiko Stübner
Am Mittwoch, 1. Juni 2016, 08:24:48 schrieb Doug Anderson: > Lin Huang, > > On Wed, Jun 1, 2016 at 2:35 AM, Lin Huang wrote: > > add ddrc clock setting, so we can do ddr frequency > > scaling on rk3399 platform in future. > > > > Signed-off-by: Lin Huang > > --- > > > >

[RFC PATCH 4/4] drm/rockchip: Add dmc notifier in vop driver

2016-06-01 Thread Lin Huang
when in ddr frequency scaling process, vop can not do enable or disable operate, since dcf will base on vop vblank time to do frequency scaling and need to get vop irq if there have vop enabled. So need register to dmc notifier, and we can get the dmc status. Signed-off-by: Lin Huang ---

[RFC PATCH 3/4] PM / devfreq: rockchip: add devfreq driver for rk3399 dmc

2016-06-01 Thread Lin Huang
there is dfi controller on rk3399 platform, it can monitor ddr load, register this controller to devfreq framework, and default to use simple_ondeamnd policy, and do ddr frequency scaling base on this result. Signed-off-by: Lin Huang --- drivers/devfreq/Kconfig | 2 +-

[RFC PATCH 2/4] clk: rockchip: rk3399: add ddrc clock support

2016-06-01 Thread Lin Huang
add ddrc clock setting, so we can do ddr frequency scaling on rk3399 platform in future. Signed-off-by: Lin Huang --- drivers/clk/rockchip/clk-rk3399.c | 16 include/dt-bindings/clock/rk3399-cru.h | 1 + 2 files changed, 17 insertions(+) diff --git

[RFC PATCH 1/4] rockchip: rockchip: add new clock-type for the ddrclk

2016-06-01 Thread Lin Huang
On new rockchip platform(rk3399 etc), there have dcf controller to do ddr frequency scaling, and this controller will implement in arm-trust-firmware. We add a special clock-type to handle that. Signed-off-by: Lin Huang --- drivers/clk/rockchip/Makefile | 1 + drivers/clk/rockchip/clk-ddr.c

[RFC PATCH 0/4] rk3399 support ddr frequency scaling

2016-06-01 Thread Lin Huang
rk3399 platform have dfi controller can monitor ddr load, and dcf controller to handle ddr register so we can get the right ddr frequency and make ddr controller happy work(which will implement in bl31). So we do ddr frequency scaling with following flow: kernel

[PATCH 3/3] drm/radeon: load different smc firmware on some CI variants

2016-06-01 Thread Alex Deucher
The power tables on some variants require different firmware. This may fix stability issues on some newer CI parts. bug: https://bugs.freedesktop.org/show_bug.cgi?id=91880 Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 14 +- 1 file changed, 13 insertions(+), 1

[PATCH 2/3] drm/radeon: load different smc firmware on some SI variants

2016-06-01 Thread Alex Deucher
The power tables on some variants require different firmware. This may fix stability issues on some newer SI parts. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/si.c | 45 - 1 file changed, 44 insertions(+), 1 deletion(-) diff --git

[PATCH 1/3] drm/amdgpu: load different smc firmware on some CI variants

2016-06-01 Thread Alex Deucher
The power tables on some variants require different firmware. This fixes stability issues on some newer CI parts. bug: https://bugs.freedesktop.org/show_bug.cgi?id=91880 Signed-off-by: Alex Deucher Signed-off-by: Huang Rui Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/ci_dpm.c |

[PULL v2] drm: atmel-hlcdc: fixes for 4.7-rc2

2016-06-01 Thread Boris Brezillon
Hi Dave, Same pull request but after fixing the prototype mismatch in patch 1 (this time I tested it). This pull request contains 2 trivial fixes for the atmel-hlcdc driver. The first one is making use of __drm_atomic_helper_crtc_destroy_state() instead of duplicating its logic in

[PATCH] drm/vc4: Fix ioctl permissions for render nodes.

2016-06-01 Thread Eric Anholt
From: Herve Jourdain Contrary to other flags to DRM_IOCTL_DEF_DRV(), which restrict usage, the flag for render node is an enabler (the IOCTL can't be used from render node if it's not present). So DRM_RENDER_ALLOW needs to be added to all the flags that were previously

[PATCH 01/27] drm/armada: Use lockless gem BO free callback

2016-06-01 Thread Russell King - ARM Linux
On Mon, May 30, 2016 at 07:52:53PM +0200, Daniel Vetter wrote: > No dev->struct_mutex anywhere to be seen. > > Cc: Russell King Acked-by: Russell King (please note the new address.) Thanks. -- RMK's Patch system:

[PATCH] drm/rockchip: vop: do axi reset in vop initial time

2016-06-01 Thread Thierry Reding
ahb_rst = devm_reset_control_get(vop->dev, "ahb"); This uses the same pattern, so you might want to consider reworking this as well, though it should be a separate patch. Thierry -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160601/1374c3a6/attachment.sig>

[PATCH] drm/rockchip: vop: do axi reset in vop initial time

2016-06-01 Thread Yakir Yang
There is a bug in RK3399 VOP, when bootloader/kernel only enable VOP Big or VOP Little to display, then VOP IOMMU would failed to reset at the initial time and VOP register couldn't write rightly. After do the pure reset of VOP module, then things back to right. Signed-off-by: Yakir Yang ---

[PATCH 3/3] drm/amdgpu: fix pplib finish bug

2016-06-01 Thread Alex Deucher
From: Monk Liu 1,should use late_fini to kfree all resource otherwise the released pointer maybe accessed in IRQ ip fini routine. 2,hwmgr should not be kfree by pem_fini which is invoked by hw fini path. Signed-off-by: Monk Liu Reviewed-by: Alex Deucher Reviewed-by:

[PATCH 2/3] drm/amdgpu: impl late_fini for amdgpu_pp_ip

2016-06-01 Thread Alex Deucher
From: Monk Liu This adds a late_fini callback for the powerplay ip module. Signed-off-by: Monk Liu Reviewed-by: Alex Deucher Reviewed-by: Christian König Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 17 + 1 file changed,

[PATCH 1/3] drm/amdgpu: add late_fini for ip_funcs

2016-06-01 Thread Alex Deucher
From: Monk Liu This adds a late_fini function for handling special ordering issues between ip modules at tear down time. Signed-off-by: Monk Liu Reviewed-by: Alex Deucher Reviewed-by: Christian König Signed-off-by: Alex Deucher ---

[PATCH 0/3] fix module unloading with powerplay enabled

2016-06-01 Thread Alex Deucher
This fixes a crash in module unloading with powerplay enabled due to cross IP module dependencies. Monk Liu (3): drm/amdgpu: add late_fini for ip_funcs drm/amdgpu: impl late_fini for amdgpu_pp_ip drm/amdgpu: fix pplib finish bug drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 5 +

[RFC v2 3/5] drm/mediatek: add *driver_data for different hardware settings

2016-06-01 Thread YT Shen
Hi Thierry, On Mon, 2016-05-30 at 12:45 +0200, Thierry Reding wrote: > On Mon, May 23, 2016 at 05:43:02PM +0800, CK Hu wrote: > > Hi, YT: > > > > One comment below. > > > > On Fri, 2016-05-20 at 23:05 +0800, yt.shen at mediatek.com wrote: > > > From: YT Shen > > > > > > There are some

[RFC v2 1/5] drm/mediatek: rename macros, add chip suffix

2016-06-01 Thread YT Shen
Hi Thierry, On Mon, 2016-05-30 at 12:41 +0200, Thierry Reding wrote: > On Fri, May 20, 2016 at 11:05:32PM +0800, yt.shen at mediatek.com wrote: > > From: YT Shen > > > > Add MT8173 suffix for hardware related macros. > > > > Signed-off-by: YT Shen > > --- > >

[PATCH 12/12] drm/radeon/atpx: drop forcing of dGPU power control

2016-06-01 Thread Alex Deucher
Now that we handle this correctly, there is no need to force it. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_atpx_handler.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_atpx_handler.c b/drivers/gpu/drm/radeon/radeon_atpx_handler.c

[PATCH 11/12] drm/radeon: use PCI_D3hot for PX systems without dGPU power control

2016-06-01 Thread Alex Deucher
On PX systems without dGPU power control, use PCI_D3hot. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_drv.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c index 2dc43f5..ec80050

[PATCH 10/12] drm/radeon/atpx: add a query for ATPX dGPU power control

2016-06-01 Thread Alex Deucher
The runtime pm sequence is different depending on whether or not the platform supports ATPX dGPU power control. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_atpx_handler.c | 4 drivers/gpu/drm/radeon/radeon_drv.c | 2 ++ 2 files changed, 6 insertions(+) diff

[PATCH 09/12] drm/radeon: add a delay after ATPX dGPU power off

2016-06-01 Thread Alex Deucher
ATPX dGPU power control requires a 200ms delay between power off and on. This should fix dGPU failures on resume from power off. Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/radeon_atpx_handler.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH 08/12] drm/radeon: clean up atpx power control handling

2016-06-01 Thread Alex Deucher
The presence of the power control method should be determined via the presence of the method in function 0. However, some sbioses only set the appropriate bits in function 1 so use then to override a missing power control function. Signed-off-by: Alex Deucher ---

[PATCH 07/12] drm/radeon: disable power control on hybrid laptops

2016-06-01 Thread Alex Deucher
Windows 10 (and some 8.1) systems use standardized ACPI calls for hybrid laptops to control dGPU power. Detect those cases and disable the AMD specific ATPX power control. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_atpx_handler.c | 5 + 1 file changed, 5 insertions(+)

[PATCH 06/12] drm/amdgpu/atpx: drop forcing of dGPU power control

2016-06-01 Thread Alex Deucher
Now that we handle this correctly, there is no need to force it. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c

[PATCH 05/12] drm/amdgpu: use PCI_D3hot for PX systems without dGPU power control

2016-06-01 Thread Alex Deucher
On PX systems without dGPU power control, use PCI_D3hot. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index

[PATCH 04/12] drm/amdgpu/atpx: add a query for ATPX dGPU power control

2016-06-01 Thread Alex Deucher
The runtime pm sequence is different depending on whether or not the platform supports ATPX dGPU power control. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 4 2 files changed, 6 insertions(+)

[PATCH 03/12] drm/amdgpu: add a delay after ATPX dGPU power off

2016-06-01 Thread Alex Deucher
ATPX dGPU power control requires a 200ms delay between power off and on. This should fix dGPU failures on resume from power off. Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH 02/12] drm/amdgpu: clean up atpx power control handling

2016-06-01 Thread Alex Deucher
The presence of the power control method should be determined via the presence of the method in function 0. However, some sbioses only set the appropriate bits in function 1 so use then to override a missing power control function. Signed-off-by: Alex Deucher ---

[PATCH 01/12] drm/amdgpu: disable power control on hybrid laptops

2016-06-01 Thread Alex Deucher
Windows 10 (and some 8.1) systems use standardized ACPI calls for hybrid laptops to control dGPU power. Detect those cases and disable the AMD specific ATPX power control. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 5 + 1 file changed, 5 insertions(+)

[PATCH 00/12] Improve PX support in radeon and amdgpu

2016-06-01 Thread Alex Deucher
This patch set cleans up and attempts to make runtime pm more reliable in radeon and amdgpu on PX systems. If you have a PX system that requires setting the runpm=0 module parameter for stability, please try this patch set. The main fix is that a minimum of 200ms of delay is required between a

[PATCH v2 4/5] drm: hdlcd: Don't touch vsync interrupts during vblank enable/disable.

2016-06-01 Thread Daniel Vetter
On Wed, Jun 01, 2016 at 03:48:38PM +0100, Liviu Dudau wrote: > Because the HDLCD lacks a hardware counter for vsync signal, the DRM > framework expects that the vsync interrupts are left running to feed > the internal software counter. Currently the HDLCD is masking/unmasking > the vsync interrupt

[PATCH] drm/doc: Switch to sphinx/rst fixed-width quoting

2016-06-01 Thread Jani Nikula
On Wed, 01 Jun 2016, Daniel Vetter wrote: > On Wed, Jun 1, 2016 at 11:46 AM, Jani Nikula > wrote: >> On Wed, 01 Jun 2016, Daniel Vetter wrote: >>> There's still something very fishy going on with some of these, e.g. >>> the drm_modeset_lock Example: and the "Standard GTF Parameters:" Line >>>

[PATCH] drm/doc: Switch to sphinx/rst fixed-width quoting

2016-06-01 Thread Daniel Vetter
Just fallout from switching from asciidoc to sphinx/rst. v2: Found more. Also s/\//#/ in the vgpu ascii-art - sphinx treats those as comments and switch to variable-width, which wreaks the layout. v3: Undo some of the hacks, rebasing onto latest version of Jani's series fixed it. Signed-off-by:

[PATCH] drm/doc: Switch to sphinx/rst fixed-width quoting

2016-06-01 Thread Daniel Vetter
On Wed, Jun 01, 2016 at 04:46:10PM +0300, Jani Nikula wrote: > On Wed, 01 Jun 2016, Daniel Vetter wrote: > > On Wed, Jun 1, 2016 at 11:46 AM, Jani Nikula > > wrote: > >> On Wed, 01 Jun 2016, Daniel Vetter wrote: > >>> There's still something very fishy going on with some of these, e.g. > >>>

[PATCH v2 02/21] drm: Add a callback from connector registering

2016-06-01 Thread Daniel Vetter
On Wed, Jun 01, 2016 at 11:38:03AM +0100, Chris Wilson wrote: > On Wed, Jun 01, 2016 at 11:57:09AM +0200, Daniel Vetter wrote: > > On Mon, May 30, 2016 at 09:38:20AM +0100, Chris Wilson wrote: > > > If a driver wants to more precisely control its initialisation and in > > > particular, defer

[Nouveau] [PATCH 9/9] drm: Turn off crtc before tearing down its data structure

2016-06-01 Thread Daniel Vetter
On Wed, Jun 01, 2016 at 02:36:41PM +0200, Lukas Wunner wrote: > On Wed, May 25, 2016 at 03:43:42PM +0200, Daniel Vetter wrote: > > On Wed, May 25, 2016 at 12:51 PM, Lukas Wunner wrote: > > > On Tue, May 24, 2016 at 11:30:42PM +0200, Daniel Vetter wrote: > > >> On Tue, May 24, 2016 at 06:03:27PM

[PATCH] drm: Update obsolete information from {enable/disable}_vblank hooks.

2016-06-01 Thread Liviu Dudau
Since commit 4dfd64862ff8 ("drm: Use vblank timestamps to guesstimate how many vblanks were missed"), the DRM framework can cope with devices that don't have a hardware counter for vsync events without having to keep the vsync interrupts enabled all the time. Drivers handling such hardware should

[PATCH v3 4/4] drm: hdlcd: Add information about the underlying framebuffers in debugfs

2016-06-01 Thread Liviu Dudau
drm_fb_cma code has a nice helper function to display in the debugfs information about the underlying framebuffers used by HDLCD: $ cat /sys/kernel/debug/dri/0/fb fb: 1920x1200 at XR24 0: offset=0 pitch=7680, obj: 0 ( 2) 001011ba 0xfc30 ff800a27c000 9338880 fb: 1920x1200 at

[PATCH v3 3/4] drm: hdlcd: Cleanup the atomic plane operations

2016-06-01 Thread Liviu Dudau
Harden the plane_check() code to drop attempts at scaling because that is not supported. Make hdlcd_plane_atomic_update() set the pitch and line length registers that correctly reflect the plane's values. And make hdlcd_crtc_mode_set_nofb() a helper function for hdlcd_crtc_enable() rather than an

[PATCH v3 2/4] drm/hdlcd: Fix up crtc_state->event handling

2016-06-01 Thread Liviu Dudau
From: Daniel Vetter event_list just reimplemented what drm_crtc_arm_vblank_event does. And we also need to send out drm events when shutting down a pipe. With this it's possible to use the new nonblocking commit support in the helpers. Signed-off-by: Daniel Vetter

[PATCH v3 1/4] drm: hdlcd: Revamp runtime power management

2016-06-01 Thread Liviu Dudau
Because the HDLCD driver acts as a component master it can end up enabling the runtime PM functionality before the encoders are initialised. This can cause crashes if the component slave never probes (missing module) or if the PM operations kick in before the probe finishes. Move the enabling of

[PATCH v3 0/4] HDLCD cleanups for v4.7

2016-06-01 Thread Liviu Dudau
Hello, Here are a series of patches that I would like to add to v4.7. It fixes issues with suspend/resume on Juno (support for which has been added in v4.7-rc1). When doing the work I've noticed some breakage on the vsync behaviour so I've fixed that as well. In order to ease the introduction of

[PULL] drm: atmel-hlcdc: fixes for 4.7-rc2

2016-06-01 Thread Boris Brezillon
Hi Dave, On Wed, 1 Jun 2016 14:23:27 +0200 Boris Brezillon wrote: > Hi Dave, > > This pull request contains 2 trivial fixes for the atmel-hlcdc driver. Please ignore this PR. The __drm_atomic_helper_crtc_destroy_state() prototype has changed between my submission and the 4.7-rc1 release and

[PATCH v2 5/5] drm: hdlcd: Add information about the underlying framebuffers in debugfs

2016-06-01 Thread Liviu Dudau
drm_fb_cma code has a nice helper function to display in the debugfs information about the underlying framebuffers used by HDLCD: $ cat /sys/kernel/debug/dri/0/fb fb: 1920x1200 at XR24 0: offset=0 pitch=7680, obj: 0 ( 2) 001011ba 0xfc30 ff800a27c000 9338880 fb: 1920x1200 at

[PATCH v2 4/5] drm: hdlcd: Don't touch vsync interrupts during vblank enable/disable.

2016-06-01 Thread Liviu Dudau
Because the HDLCD lacks a hardware counter for vsync signal, the DRM framework expects that the vsync interrupts are left running to feed the internal software counter. Currently the HDLCD is masking/unmasking the vsync interrupt on vblank enable/disable calls, which break that expectation. Fix

[PATCH v2 3/5] drm: hdlcd: Cleanup the atomic plane operations

2016-06-01 Thread Liviu Dudau
Harden the plane_check() code to drop attempts at scaling because that is not supported. Make hdlcd_plane_atomic_update() set the pitch and line length registers that correctly reflect the plane's values. And make hdlcd_crtc_mode_set_nofb() a helper function for hdlcd_crtc_enable() rather than an

[PATCH v2 2/5] drm/hdlcd: Fix up crtc_state->event handling

2016-06-01 Thread Liviu Dudau
From: Daniel Vetter event_list just reimplemented what drm_crtc_arm_vblank_event does. And we also need to send out drm events when shutting down a pipe. With this it's possible to use the new nonblocking commit support in the helpers. Signed-off-by: Daniel Vetter

[PATCH v2 1/5] drm: hdlcd: Revamp runtime power management

2016-06-01 Thread Liviu Dudau
Because the HDLCD driver acts as a component master it can end up enabling the runtime PM functionality before the encoders are initialised. This can cause crashes if the component slave never probes (missing module) or if the PM operations kick in before the probe finishes. Move the enabling of

[PATCH v2 0/5] HDLCD cleanups for v4.7

2016-06-01 Thread Liviu Dudau
Hello, Here are a series of patches that I would like to add to v4.7. It fixes issues with suspend/resume on Juno (support for which has been added in v4.7-rc1). When doing the work I've noticed some breakage on the vsync behaviour so I've fixed that as well. In order to ease the introduction of

[PATCH] drm/doc: Switch to sphinx/rst fixed-width quoting

2016-06-01 Thread Daniel Vetter
On Wed, Jun 1, 2016 at 11:46 AM, Jani Nikula wrote: > On Wed, 01 Jun 2016, Daniel Vetter wrote: >> There's still something very fishy going on with some of these, e.g. >> the drm_modeset_lock Example: and the "Standard GTF Parameters:" Line >> somehow get treated as heading when just appending a

[PATCH 11/11] drm/amdgpu: remove now unnecessary checks

2016-06-01 Thread Christian König
From: Christian König vm_flush() now comes directly after vm_grab_id(). Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 1 - drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 31 +++ 2 files changed, 11 insertions(+),

[PATCH 10/11] drm/amdgpu: use a fence array for VMID management

2016-06-01 Thread Christian König
From: Christian König Just wait for any fence to become available, instead of waiting for the last entry of the LRU. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 10 +- drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 2 +-

[PATCH 09/11] drm/amdgpu: reuse VMIDs assigned to a VM only if there is also a free one

2016-06-01 Thread Christian König
From: Christian König This fixes a fairness problem with the GPU scheduler. VM having lot of jobs could previously starve VM with less jobs. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 113 + 1 file

[PATCH 08/11] drm/amdgpu: prefer VMIDs idle on the current ring

2016-06-01 Thread Christian König
From: Christian König Prefer to use a VMIDs which are idle on the ring we want to submit to. This also removes bubbling idle VMIDs up on the LRU, which is actually not beneficial. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 24

[PATCH 07/11] drm/amdgpu: add optional ring to amdgpu_sync_is_idle

2016-06-01 Thread Christian König
From: Christian König Check if the sync object is idle depending on the ring a submission works with. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 2 +-

[PATCH 06/11] drm/amdgpu: remove amdgpu_sync_wait

2016-06-01 Thread Christian König
From: Christian König Stop hiding bugs, instead print a proper error when the scheduler doesn't handle all dependencies. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 - drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 6 +-

[PATCH 05/11] drm/amdgpu: generalize the scheduler fence

2016-06-01 Thread Christian König
From: Christian König Make it two events, one for the job being scheduled and one when it is finished. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 4 +- drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 4 +-

[PATCH 04/11] drm/amdgpu: document amdgpu_sync_get_fence

2016-06-01 Thread Christian König
From: Christian König It's not obvious what it should do. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c

[PATCH 03/11] dma-buf/fence: add signal_on_any to the fence array v2

2016-06-01 Thread Christian König
From: Christian König If @signal_on_any is true the fence array signals if any fence in the array signals, otherwise it signals when all fences in the array signal. v2: fix signaled test and add comment suggested by Chris Wilson. Signed-off-by: Christian König ---

[PATCH 02/11] dma-buf/fence: add fence_array fences v6

2016-06-01 Thread Christian König
From: Gustavo Padovan struct fence_collection inherits from struct fence and carries a collection of fences that needs to be waited together. It is useful to translate a sync_file to a fence to remove the complexity of dealing with sync_files on DRM drivers. So

[PATCH 01/11] dma-buf/fence: make fence context 64 bit v2

2016-06-01 Thread Christian König
From: Christian König Fence contexts are created on the fly (for example) by the GPU scheduler used in the amdgpu driver as a result of an userspace request. Because of this userspace could in theory force a wrap around of the 32bit context number if it doesn't behave

Fence array patchset

2016-06-01 Thread Christian König
Hi guys, this is the next iteration of the fence array patch set. Daniel suggested that I provide an example on how this functionality might be used by a driver. So I added a few additional patches in this series to show what I want to do with this in the amdgpu driver. The main idea is that

[PATCH 2/3] drm/exynos: fimd: add HW trigger support

2016-06-01 Thread Inki Dae
Hi Javier, 2016년 05월 31일 07:58에 Javier Martinez Canillas 이(가) 쓴 글: > Hello Inki, > > On 04/05/2016 04:27 AM, Inki Dae wrote: >> This patch adds HW trigger support on i80 mode. >> >> Until now, Exynos DRM only supported SW trigger which was set >> SWTRGCMD bit of TRIGCON register

[PATCH] drm/exynos: fimd: fix trigger mode change regression

2016-06-01 Thread Inki Dae
This patch fixes a regression that Display panel doesn't work since HW trigger mode was supported. The trigger mode should be changed on PSR(Panel Self Refresh) mode of Panel device according to HW guy's saying. However, with previous HW trigger support, trigger mode could been changed in normal

[PATCH v7 00/12] Support non-lru page migration

2016-06-01 Thread Andrew Morton
On Wed, 1 Jun 2016 08:21:09 +0900 Minchan Kim wrote: > Recently, I got many reports about perfermance degradation in embedded > system(Android mobile phone, webOS TV and so on) and easy fork fail. > > The problem was fragmentation caused by zram and GPU driver mainly. > With memory pressure,

[Nouveau] [PATCH 9/9] drm: Turn off crtc before tearing down its data structure

2016-06-01 Thread Lukas Wunner
On Wed, May 25, 2016 at 03:43:42PM +0200, Daniel Vetter wrote: > On Wed, May 25, 2016 at 12:51 PM, Lukas Wunner wrote: > > On Tue, May 24, 2016 at 11:30:42PM +0200, Daniel Vetter wrote: > >> On Tue, May 24, 2016 at 06:03:27PM +0200, Lukas Wunner wrote: > >> > When a drm_crtc structure is

[PATCH] drm: hdlcd: Cleanup the atomic plane operations and vsync handling

2016-06-01 Thread Liviu Dudau
Don't disable the vsync interrupt, as the hardware lacks hardware counters for vsync time stamping and that breaks the DRM assumptions. Also harden the plane_check() code to drop attempts at scaling because that is not supported. Make hdlcd_plane_atomic_update() set the pitch and line length

[PULL] drm: atmel-hlcdc: fixes for 4.7-rc2

2016-06-01 Thread Boris Brezillon
Hi Dave, This pull request contains 2 trivial fixes for the atmel-hlcdc driver. The first one is making use of __drm_atomic_helper_crtc_destroy_state() instead of duplicating its logic in atmel_hlcdc_crtc_reset() and risking memory leaks if other objects are added to the common CRTC state. The

[PATCH v5 1/1] drm: sti: Add ASoC generic hdmi codec support.

2016-06-01 Thread Benjamin Gaignard
Ack-by: Benjamin Gaignard 2016-05-30 15:31 GMT+02:00 Arnaud Pouliquen : > Add the interface needed by audio hdmi-codec driver. > > Signed-off-by: Arnaud Pouliquen > --- > drivers/gpu/drm/sti/Kconfig| 1 + > drivers/gpu/drm/sti/sti_hdmi.c | 294 > ++---

[PATCH] drm: atmel-hlcdc: actually disable scaling when no scaling is required

2016-06-01 Thread Boris Brezillon
The driver is only enabling scaling, but never disabling it, thus, if you enable the scaling feature once it stays enabled forever. Signed-off-by: Boris Brezillon Reported-by: Alex Vazquez Fixes: 1a396789f65a ("drm: add Atmel HLCDC Display Controller support") Cc: ---

[PATCH v3] drm: Only create a cmdline mode if no probed modes match

2016-06-01 Thread Ville Syrjälä
On Wed, Jun 01, 2016 at 10:47:51AM +0100, Chris Wilson wrote: > On Wed, Jun 01, 2016 at 12:43:53PM +0300, Ville Syrjälä wrote: > > On Wed, Jun 01, 2016 at 10:34:36AM +0100, Chris Wilson wrote: > > > The intention of using video=: is primarily to select > > > the user's preferred resolution at

[PATCH] drm/doc: Switch to sphinx/rst fixed-width quoting

2016-06-01 Thread Jani Nikula
On Wed, 01 Jun 2016, Daniel Vetter wrote: > There's still something very fishy going on with some of these, e.g. > the drm_modeset_lock Example: and the "Standard GTF Parameters:" Line > somehow get treated as heading when just appending a :: at the end of > those lines. But it seems to work

  1   2   >