[PATCH 4/5] drm/amdgpu: Wait for end of last waited-for vblank before programming flip

2016-06-14 Thread Michel Dänzer
On 06/13/16 23:06, Daniel Vetter wrote: > On Mon, Jun 13, 2016 at 05:58:29PM +0900, Michel Dänzer wrote: >> On 06/13/16 17:06, Daniel Vetter wrote: >>> On Mon, Jun 13, 2016 at 10:54:37AM +0900, Michel Dänzer wrote: On 10.06.2016 23:43, Daniel Vetter wrote: > On Fri, Jun 10, 2016 at 05:57

linux-next: manual merge of the drm tree with the drm-intel-fixes tree

2016-06-14 Thread Stephen Rothwell
Hi Dave, Today's linux-next merge of the drm tree got a conflict in: drivers/gpu/drm/i915/intel_display.c between commit: a5aac5ab876a ("drm/i915: Check VBT for port presence in addition to the strap on VLV/CHV") from the drm-intel-fixes tree and commit: 457c52d87e5d ("drm/i915: Only i

[PATCH 1/2] drm/amdgpu: stop trying to schedule() with a spin held

2016-06-14 Thread Michel Dänzer
On 06/13/16 23:12, Christian König wrote: > From: Christian König > > Drop the lock before calling cancel_delayed_work_sync(). > > Signed-off-by: Christian König > Tested-by: Nicolai Hähnle Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96445 -- Earthling Michel Dänzer

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

2016-06-14 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=119631 --- Comment #6 from Michel Dänzer --- Does the problem also occur with xserver 1.18.3 or newer? -- You are receiving this mail because: You are watching the assignee of the bug.

[PATCH 1/2] drm/mediatek: Add gamma correction

2016-06-14 Thread Bibby Hsieh
Apply gamma function to correct brightness values. It applies arbitrary mapping curve to compensate the incorrect transfer function of the panel. Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 12 ++ drivers/gpu/drm/mediatek/mtk_drm_crtc.h |1 + driver

[PATCH 2/2] drm/mediatek: set mt8173 dithering function

2016-06-14 Thread Bibby Hsieh
Some panels only accept bpc (bit per color) 6-bit. But, the default bpc in mt8173 display data path is 8-bit. If we didn't enable dithering function to convert bpc, display cannot show the smooth grayscale image. In mt8173, the dithering function in OD (OverDrive) and GAMMA module, we have to conf

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

2016-06-14 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=119631 --- Comment #7 from Mathieu Belanger --- Yes, I just updated xserver to 1.18.3, bug still present. -- You are receiving this mail because: You are watching the assignee of the bug.

[PATCH 1/2] drm/mediatek: Add gamma correction

2016-06-14 Thread Daniel Vetter
On Tue, Jun 14, 2016 at 10:55:52AM +0800, Bibby Hsieh wrote: > Apply gamma function to correct brightness values. > It applies arbitrary mapping curve to compensate the > incorrect transfer function of the panel. > > Signed-off-by: Bibby Hsieh I think it would be much better to use the new atomi

[PATCH 4/5] drm/amdgpu: Wait for end of last waited-for vblank before programming flip

2016-06-14 Thread Daniel Vetter
On Tue, Jun 14, 2016 at 11:09:10AM +0900, Michel Dänzer wrote: > On 06/13/16 23:06, Daniel Vetter wrote: > > On Mon, Jun 13, 2016 at 05:58:29PM +0900, Michel Dänzer wrote: > >> On 06/13/16 17:06, Daniel Vetter wrote: > >>> On Mon, Jun 13, 2016 at 10:54:37AM +0900, Michel Dänzer wrote: > On

[Bug 90481] Radeonsi driver, X crash while playing "Spec ops: the line"

2016-06-14 Thread bugzilla-dae...@freedesktop.org
sible. -- 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/20160614/e2fae2a4/attachment.html>

[Intel-gfx] [PATCH] drm/i915: Fix missing unlock on error in i915_ppgtt_info()

2016-06-14 Thread Daniel Vetter
On Mon, Jun 13, 2016 at 11:42:00PM +, weiyj_lk at 163.com wrote: > From: Wei Yongjun > > Add the missing unlock before return from function i915_ppgtt_info() > in the error handling case. > > Fixes: 1d2ac403ae3b(drm: Protect dev->filelist with its own mutex) > Signed-off-by: Wei Yongjun Ap

[PATCH 4/5] drm/amdgpu: Wait for end of last waited-for vblank before programming flip

2016-06-14 Thread Michel Dänzer
On 14.06.2016 14:53, Daniel Vetter wrote: > On Tue, Jun 14, 2016 at 11:09:10AM +0900, Michel Dänzer wrote: >> On 06/13/16 23:06, Daniel Vetter wrote: >>> On Mon, Jun 13, 2016 at 05:58:29PM +0900, Michel Dänzer wrote: On 06/13/16 17:06, Daniel Vetter wrote: > On Mon, Jun 13, 2016 at 10:54

[PATCH v8 2/2] drm/bridge: Add sii902x DT bindings doc

2016-06-14 Thread Boris Brezillon
Add Sii9022 DT bindings description. Signed-off-by: Boris Brezillon Acked-by: Rob Herring --- Changes since v6: - make 'reset-gpios' optional Changes since v1: - rename doc file - s/sil902/sii902/ --- .../devicetree/bindings/display/bridge/sii902x.txt | 35 ++ 1 file change

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

2016-06-14 Thread Boris Brezillon
Add basic support for the sii902x RGB -> HDMI bridge. This driver does not support audio output yet. Signed-off-by: Boris Brezillon Tested-by: Nicolas Ferre --- Changes in v8: - remove useless headers inclusion - fix macro names (s/SIL/SII) - drop unneeded hotplug_work field from struct sii902x

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

2016-06-14 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=119631 --- Comment #8 from Michel Dänzer --- Does setting the environment variable thread_submit=true for the EVE-Online process avoid the problem? -- You are receiving this mail because: You are watching the assignee of the bug.

[Bug 87682] Horizontal lines in radeon driver on kernel 3.15 and upwards

2016-06-14 Thread bugzilla-dae...@freedesktop.org
. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160614/deaf09e5/attachment.html>

[PATCH 4/5] drm/amdgpu: Wait for end of last waited-for vblank before programming flip

2016-06-14 Thread Daniel Vetter
On Tue, Jun 14, 2016 at 04:25:28PM +0900, Michel Dänzer wrote: > On 14.06.2016 14:53, Daniel Vetter wrote: > > On Tue, Jun 14, 2016 at 11:09:10AM +0900, Michel Dänzer wrote: > >> On 06/13/16 23:06, Daniel Vetter wrote: > >>> On Mon, Jun 13, 2016 at 05:58:29PM +0900, Michel Dänzer wrote: > O

[Bug 96445] [amdgpu][tonga] display freezes soon after X start

2016-06-14 Thread bugzilla-dae...@freedesktop.org
|--- |FIXED -- 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/20160614/539b244a/attachment.html>

[PATCH 4/5] drm/amdgpu: Wait for end of last waited-for vblank before programming flip

2016-06-14 Thread Chris Wilson
On Tue, Jun 14, 2016 at 07:53:41AM +0200, Daniel Vetter wrote: > On Tue, Jun 14, 2016 at 11:09:10AM +0900, Michel Dänzer wrote: > > E.g.: In cases where page flipping cannot be used, Xorg / the DDX driver > > waits for the target vertical blank period before emitting the drawing > > commands for a

Looking for pointers on diagnosing ring test failure in amdgpu

2016-06-14 Thread Christian König
Hi Matthew, see inline below. Am 14.06.2016 um 00:03 schrieb Matthew Macy: > On Mon, 13 Jun 2016 01:35:34 -0700 Christian König at amd.com> wrote > > Hi Matthew, > > > > sounds like the UVD block doesn't want to initialize. No idea off hand > > why, could be anything. I woul

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

2016-06-14 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=119631 --- Comment #9 from Mathieu Belanger --- No,thread_submit=true just remove more fps. Big drop if I run EVE without DRM_MODE_PAGE_FLIP_ASYNC Small drop if I run EVE with DRM_MODE_PAGE_FLIP_ASYNC -- You are receiving this mail because: You are

[Bug 76130] Radeon HD 4570 set dpm state fails after suspend

2016-06-14 Thread bugzilla-dae...@freedesktop.org
_state -- 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/20160614/9fe571e2/attachment.html>

[PATCH v3 4/6] drm/panel: simple: Add support for Samsung LSN122DL01-C01 2560x1600 panel

2016-06-14 Thread Thierry Reding
that I added. While it isn't documented I hope that other panels did round, rather than truncate, as well. 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/20160614/4761a5ca/attachment-0001.sig>

[PATCH 1/3] RFC: drm: Restrict vblank ioctl to master

2016-06-14 Thread Daniel Vetter
Somehow this escaped us, this is a KMS ioctl which should only be used by the master (which is the thing that's also in control of kms resources). Everything else is bound to result in fail. Clients shouldn't have a trouble coping with this, since a pile of drivers don't support vblank waits (or j

[PATCH 3/3] drm: Mark set/drop master ioctl as unlocked.

2016-06-14 Thread Daniel Vetter
Again this is neatly protected by the dev->master_mutex now. There is a driver callback both for set and drop, but it's only used by vmwgfx. And vmwgfx has it's own solid locking for shared resources (besides dev->master_mutex), hence is all safe. Let's drop another place where the drm legacy bkl i

[PATCH 2/3] drm: Mark authmagic ioctls as unlocked

2016-06-14 Thread Daniel Vetter
All protected by dev->master_mutex. And there's no driver callbacks, which means no need to sync with old dri1 horror show drivers at all. Hence safe to drop the drm legacy BKL from these paths. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_ioctl.c | 4 ++-- 1 file changed, 2 insertions(+

[PATCH 1/3] RFC: drm: Restrict vblank ioctl to master

2016-06-14 Thread Michel Dänzer
On 14.06.2016 18:03, Daniel Vetter wrote: > Somehow this escaped us, this is a KMS ioctl which should only be used > by the master (which is the thing that's also in control of kms > resources). Everything else is bound to result in fail. > > Clients shouldn't have a trouble coping with this, sinc

[PATCH 1/3] RFC: drm: Restrict vblank ioctl to master

2016-06-14 Thread Daniel Vetter
On Tue, Jun 14, 2016 at 11:09 AM, Michel Dänzer wrote: > On 14.06.2016 18:03, Daniel Vetter wrote: >> Somehow this escaped us, this is a KMS ioctl which should only be used >> by the master (which is the thing that's also in control of kms >> resources). Everything else is bound to result in fail

[PATCH v2 1/2] drm/fsl-dcu: Add HDMI driver for freescale DCU

2016-06-14 Thread Meng Yi
This patch creates another Encoder for HDMI port, and linking the Encoder to appropriate DRM bridge. And this Encoder using same CRTC with RGB-LCD. For RGB-LCD and HDMI using the same hardware connection to DCU, RGB-LCD panel should be unplugged when using the HDMI connection. Signed-off-by: Aliso

[PATCH 2/2 v16] drm/bridge: Add I2C based driver for ps8640 bridge

2016-06-14 Thread Daniel Kurtz
Hi Jitao, On Thu, Jun 2, 2016 at 5:57 PM, Jitao Shi wrote: > > This patch adds drm_bridge driver for parade DSI to eDP bridge chip. > > Signed-off-by: Jitao Shi > Reviewed-by: Daniel Kurtz > --- > Changes since v15: > - Drop drm_connector_(un)register calls from parade ps8640. >The main DR

[PATCH v2 1/2] drm/fsl-dcu: Add HDMI driver for freescale DCU

2016-06-14 Thread Alexander Stein
On Tuesday 14 June 2016 17:20:36, Meng Yi wrote: > This patch creates another Encoder for HDMI port, and linking the Encoder > to appropriate DRM bridge. And this Encoder using same CRTC with RGB-LCD. > For RGB-LCD and HDMI using the same hardware connection to DCU, RGB-LCD > panel should be unplug

[PATCH] virtio-gpu: use src not crtc

2016-06-14 Thread Marc-André Lureau
Hi On Tue, May 31, 2016 at 2:52 PM, Gerd Hoffmann wrote: > Pick up the correct source rectangle from framebuffer. > Without this multihead setups are not working correctly. > > Signed-off-by: Gerd Hoffmann Reviewed-by: Marc-André Lureau Additionally, I had to modify the page_flip() function

[PATCH 2/2] drm/edid: Add 6 bpc quirk for display AEO model 0.

2016-06-14 Thread Ville Syrjälä
On Thu, May 26, 2016 at 04:39:04PM +0200, Mario Kleiner wrote: > Bugzilla https://bugzilla.kernel.org/show_bug.cgi?id=105331 > reports that the "AEO model 0" display is driven with 8 bpc > without dithering by default, which looks bad because that > panel is apparently a 6 bpc DP panel with faulty

[PATCH 1/2] drm/i915/dp: Revert "drm/i915/dp: fall back to 18 bpp when sink capability is unknown"

2016-06-14 Thread Daniel Vetter
On Thu, May 26, 2016 at 4:39 PM, Mario Kleiner wrote: > This reverts commit 013dd9e03872 > ("drm/i915/dp: fall back to 18 bpp when sink capability is unknown") > > This commit introduced a regression into stable kernels, > as it reduces output color depth to 6 bpc for any video > sink connected to

[PATCH v4 2/2] drm/panel: Add JDI LT070ME05000 WUXGA DSI Panel

2016-06-14 Thread Thierry Reding
;> + PTR_ERR(jdi->reset_gpio)); > > > > This is a third variant of error reporting. Please stick to one. > for PTR_ERR(jdi->reset_gpio) returns unsigned long, so this error reporting > cannot be changed to ret, > others error reporting incorporated consistently. PTR_ERR() returns signed long, not unsigned. You can still use the same format for the message and substitute the %ld printk specifier to match the type. 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/20160614/ed1d7e6d/attachment.sig>

[PATCH v3 0/10]

2016-06-14 Thread Yakir Yang
RK3399 and RK3288 shared the same eDP IP controller, only some light difference with VOP configure and GRF configure. Also same misc fix to analogix_dp driver: - Hotplug invalid which report by Dan Carpenter - Make panel detect to an optional action - correct the register bit define error in ANALO

[PATCH 1/5] drm/tilcdc: Restore old dmps state in pm_resume()

2016-06-14 Thread Jyri Sarha
Restore old dpms state in pm_resume(). The dpms is turned off in pm_suspend() and it should be restored to its original state in pm_resume(). Fixes commit 614b3cfeb8d2 ("drm/tilcdc: disable the lcd controller/dma engine when suspend invoked") Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc

[PATCH 4/5] drm/tilcdc: Refer to panel.txt and tfp410.txt bindings in tilcdc.txt

2016-06-14 Thread Jyri Sarha
The legacy panel.txt and tfp410.txt bindings are still the only supported way to connect lcd panel and tfp410 DVI encoder to tilcdc. Signed-off-by: Jyri Sarha --- Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/dev

[PATCH 0/5] drm/tilcdc Fixes and cleanups

2016-06-14 Thread Jyri Sarha
Some fixes and cleanups that should get merged to tilcdc even if my atomic changes are still a work in progress. Jyri Sarha (5): drm/tilcdc: Restore old dmps state in pm_resume() drm/tilcdc: Write to LCDC_END_OF_INT_IND_REG at the end of IRQ function drm/tilcdc: Move waiting of LCDC_FRAM

[PATCH 2/5] drm/tilcdc: Write to LCDC_END_OF_INT_IND_REG at the end of IRQ function

2016-06-14 Thread Jyri Sarha
Reorder the IRQ function so that the write to LCDC_END_OF_INT_IND_REG is done last. The write to LCDC_END_OF_INT_IND_REG indicates to LCDC that the interrupt service routine has completed (see section 13.3.6.1.6 in AM335x TRM). This is needed if LCDC's ipgvmodirq module is configured for pulse inte

[PATCH 3/5] drm/tilcdc: Move waiting of LCDC_FRAME_DONE IRQ into stop()

2016-06-14 Thread Jyri Sarha
Move wait queue waiting of LCDC_FRAME_DONE IRQ from tilcdc_crtc_dpms() into stop() function. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 31 --- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc

[PATCH 5/5] drm/tilcdc: Avoid error print by of_graph_get_next_endpoint()

2016-06-14 Thread Jyri Sarha
Avoid error print by of_graph_get_next_endpoint() if there is no ports present. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_external.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_external.c b/drivers/gpu/drm/tilcdc/tilcdc_extern

[PATCH v3 02/10] drm/rockchip: analogix_dp: split the lcdc select setting into device data

2016-06-14 Thread Yakir Yang
eDP controller need to declare which vop provide the video source, and it's defined in GRF registers. But different chips have different GRF register address, so we need to create a device data to declare the GRF messages for each chips. Signed-off-by: Yakir Yang Acked-by: Mark Yao --- Changes

[PATCH v3 03/10] drm/bridge: analogix_dp: correct the register bit define error in ANALOGIX_DP_PLL_REG_1

2016-06-14 Thread Yakir Yang
There're an register define error in ANALOGIX_DP_PLL_REG_1 which introduced by commit bcec20fd5ad6 ("drm: bridge: analogix/dp: add some rk3288 special registers setting"). The PHY PLL input clock source is selected by ANALOGIX_DP_PLL_REG_1 BIT 0, not BIT 1. Signed-off-by: Yakir Yang Reviewed-by:

[PATCH v3 04/10] drm/bridge: analogix_dp: some rockchip chips need to flip REF_CLK bit setting

2016-06-14 Thread Yakir Yang
As vendor document indicate, when REF_CLK bit set 0, then DP phy's REF_CLK should switch to 24M source clock. But due to IC PHY layout mistaken, some chips need to flip this bit(like RK3288), and unfortunately they didn't indicate in the DP version register. That's why we have to make this little

[PATCH v3 07/10] drm/bridge: analogix_dp: passing the connector as an argument in .get_modes()

2016-06-14 Thread Yakir Yang
It's better to pass the connector to platform driver in .get_modes() callback, just like what the .get_modes() helper function designed. Signed-off-by: Yakir Yang --- Changes in v3: - Avoid to change any internal driver state in .mode_valid interface. (Tomasz, reviewed at Google Gerrit) [ht

[PATCH v3 08/10] drm/rockchip: analogix_dp: correct the connector display color format and bpc

2016-06-14 Thread Yakir Yang
Rockchip VOP couldn't output YUV video format for eDP controller, so when driver detect connector support YUV video format, we need to hack it down to RGB888. Signed-off-by: Yakir Yang Acked-by: Mark Yao --- Changes in v3: - Hook the connector's color_formats in .get_modes directly. (Tomasz, rev

[PATCH v3 01/10] drm/bridge: analogix_dp: rename RK3288_DP to ROCKCHIP_DP

2016-06-14 Thread Yakir Yang
Rename RK3288_DP macros to ROCKCHIP_DP, prepare to add eDP support for more Rockchip chips. Signed-off-by: Yakir Yang Reviewed-by: Stéphane Marchesin Tested-by: Javier Martinez Canillas --- Changes in v3: - Correct the misspell of "marcos" in commit message (Dominik, reviewed at Google Gerri

[PATCH v3 05/10] drm/rockchip: analogix_dp: add rk3399 eDP support

2016-06-14 Thread Yakir Yang
RK3399 and RK3288 shared the same eDP IP controller, only some light difference with VOP configure and GRF configure. Signed-off-by: Yakir Yang Acked-by: Mark Yao --- Changes in v3: - Give the "rk3399-edp" a separate line for clarity in document (Tomasz, reviewed at Google Gerrit) [https:/

[PATCH v3 06/10] drm/rockchip: analogix_dp: make panel detect to an optional action

2016-06-14 Thread Yakir Yang
Some boards don't need to declare a panel device node, like the display interface is DP monitors, so it's necessary to make the panel detect to an optional action. Signed-off-by: Yakir Yang Acked-by: Mark Yao --- Changes in v3: - Add the acked flag from Mark. Changes in v2: None drivers/gpu/d

[PATCH v3 09/10] drm/rockchip: analogix_dp: update the comments about why need to hardcode VOP output mode

2016-06-14 Thread Yakir Yang
The hardware IC designed that VOP must output the RGB10 video format to eDP contoller, and if eDP panel only support RGB8, then eDP contoller should cut down the video data, not via VOP contoller, that's why we need to hardcode the VOP output mode to RGA10 here. Signed-off-by: Yakir Yang Acked-by

[PATCH v3 10/10] drm/bridge: analogix_dp: fix no drm hpd event when panel plug in

2016-06-14 Thread Yakir Yang
The enum value of DP_IRQ_TYPE_HP_CABLE_IN is zero, but driver only send drm hp event when the irq_type and the enum value is true. if (irq_type & DP_IRQ_TYPE_HP_CABLE_IN || ...) drm_helper_hpd_irq_event(dp->drm_dev); So there would no drm hpd event when cable plug in, to fix that just nee

[PATCH 1/5] drm/tilcdc: Restore old dmps state in pm_resume()

2016-06-14 Thread Tomi Valkeinen
OpenPGP digital signature URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160614/4bdd350f/attachment-0001.sig>

[PATCH 5/5] drm/tilcdc: Avoid error print by of_graph_get_next_endpoint()

2016-06-14 Thread Jyri Sarha
On 06/14/16 14:45, Jyri Sarha wrote: > Avoid error print by of_graph_get_next_endpoint() if there is no ports > present. > > Signed-off-by: Jyri Sarha > --- > drivers/gpu/drm/tilcdc/tilcdc_external.c | 11 +++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/gpu/drm/tilcdc/ti

[PATCH v2 1/2] drm/crtc: fix connector reference counting mismatch in drm_crtc_helper_set_config

2016-06-14 Thread Lucas Stach
Am Montag, den 13.06.2016, 20:18 +0200 schrieb Daniel Vetter: [...] > > > > Only the reference count of connectors that weren't previously bound to > > > > an encoder should be incremented after a call to > > > > drm_crtc_helper_set_config. > > > > And only the reference count of connectors that w

[PATCH v2 08/10] dt-bindings: msm/dsi: Modify port and PHY bindings

2016-06-14 Thread Rob Herring
On Fri, Jun 10, 2016 at 04:16:38PM +0530, Archit Taneja wrote: > The DSI node now has two ports that describe the connection between the > MDP interface output and the DSI input, and the connection between the DSI > output and the connected panel/bridge. Update the properties and the > example. >

[PATCH 1/2] drm: vc4: set permissions for ioctls

2016-06-14 Thread Emil Velikov
On 10 June 2016 at 21:08, Eric Anholt wrote: > Emil Velikov writes: > >> On 10 June 2016 at 00:42, Eric Anholt wrote: >>> Rob Herring writes: >>> Ioctls generally have DRM_AUTH and DRM_RENDER_ALLOW set to restrict them to authorized clients and render nodes. Without this, access from

[PATCH v2 10/10] dt-bindings: msm/dsi: Some binding doc cleanups

2016-06-14 Thread Rob Herring
On Fri, Jun 10, 2016 at 04:16:40PM +0530, Archit Taneja wrote: > Some cleanups: > > - Use simpler names for DT nodes in the example > - Use references instead of dumping Document links everywhere > > Signed-off-by: Archit Taneja > --- > .../devicetree/bindings/display/msm/dsi.txt| 45 >

[PATCH] virtio-gpu: use src not crtc

2016-06-14 Thread Gerd Hoffmann
On Di, 2016-06-14 at 12:13 +0200, Marc-André Lureau wrote: > Hi > > On Tue, May 31, 2016 at 2:52 PM, Gerd Hoffmann wrote: > > Pick up the correct source rectangle from framebuffer. > > Without this multihead setups are not working correctly. > > > > Signed-off-by: Gerd Hoffmann > > Reviewed-by

Looking for pointers on diagnosing ring test failure in amdgpu

2016-06-14 Thread Alex Deucher
On Tue, Jun 14, 2016 at 4:10 AM, Christian König wrote: > Hi Matthew, > > see inline below. > > Am 14.06.2016 um 00:03 schrieb Matthew Macy: >> >> On Mon, 13 Jun 2016 01:35:34 -0700 Christian König >> wrote >> > Hi Matthew, >> > >> > sounds like the UVD block doesn't want to i

[PATCH 2/2] drm/edid: Add 6 bpc quirk for display AEO model 0.

2016-06-14 Thread Mario Kleiner
On 06/14/2016 12:44 PM, Ville Syrjälä wrote: > On Thu, May 26, 2016 at 04:39:04PM +0200, Mario Kleiner wrote: >> Bugzilla https://bugzilla.kernel.org/show_bug.cgi?id=105331 >> reports that the "AEO model 0" display is driven with 8 bpc >> without dithering by default, which looks bad because that

[PATCH 1/2] drm/i915/dp: Revert "drm/i915/dp: fall back to 18 bpp when sink capability is unknown"

2016-06-14 Thread Mario Kleiner
On 06/14/2016 01:05 PM, Daniel Vetter wrote: > On Thu, May 26, 2016 at 4:39 PM, Mario Kleiner > wrote: >> This reverts commit 013dd9e03872 >> ("drm/i915/dp: fall back to 18 bpp when sink capability is unknown") >> >> This commit introduced a regression into stable kernels, >> as it reduces output

[PATCH] drm/virtio: Don't reinvent a flipping wheel

2016-06-14 Thread Gerd Hoffmann
> >> Gerd, can you pls retest? I think due to your change in the above > >> referenced commit to switch to active_only=true in commit_planes() this is > >> now broken. > > > > Yes, probably it'll break things. > > > > Any branch I can test? Your "stuff" branch seems to not yet have the > > commit

[PATCH] drm/virtio: Don't reinvent a flipping wheel

2016-06-14 Thread Daniel Vetter
On Tue, Jun 14, 2016 at 04:25:45PM +0200, Gerd Hoffmann wrote: > > >> Gerd, can you pls retest? I think due to your change in the above > > >> referenced commit to switch to active_only=true in commit_planes() this > > >> is > > >> now broken. > > > > > > Yes, probably it'll break things. > > > >

[Bug 96512] Portal Stories Mel: Player's hands appear black at high shader quality

2016-06-14 Thread bugzilla-dae...@freedesktop.org
-- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160614/2958bf10/attachment.html>

[PATCH v2 1/2] drm/crtc: fix connector reference counting mismatch in drm_crtc_helper_set_config

2016-06-14 Thread Philipp Zabel
Am Dienstag, den 14.06.2016, 13:57 +0200 schrieb Lucas Stach: > Am Montag, den 13.06.2016, 20:18 +0200 schrieb Daniel Vetter: > [...] > > > > > Only the reference count of connectors that weren't previously bound > > > > > to > > > > > an encoder should be incremented after a call to > > > > > dr

[PATCH v5] drm/i915/ilk: Don't disable SSC source if it's in use

2016-06-14 Thread Lyude
Thanks to Ville Syrjälä for pointing me towards the cause of this issue. Unfortunately one of the sideaffects of having the refclk for a DPLL set to SSC is that as long as it's set to SSC, the GPU will prevent us from powering down any of the pipes or transcoders using it. A couple of BIOSes ena

[PATCH v3 05/10] drm/rockchip: analogix_dp: add rk3399 eDP support

2016-06-14 Thread Doug Anderson
Yakir, On Tue, Jun 14, 2016 at 4:46 AM, Yakir Yang wrote: > RK3399 and RK3288 shared the same eDP IP controller, only some light > difference with VOP configure and GRF configure. > > Signed-off-by: Yakir Yang > Acked-by: Mark Yao > --- > Changes in v3: > - Give the "rk3399-edp" a separate line

[PATCH 1/2] drm: vc4: set permissions for ioctls

2016-06-14 Thread Eric Anholt
ioctls, dropping DRM_AUTH > everywhere (if DRM_RENDER_ALLOW is present on the said ioclt) or > something else. DRM_AUTH is not safe to remove from other drivers, unless they enforce access control to their buffers. -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 818 bytes Desc: not available URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160614/771165da/attachment.sig>

[PATCH v2 1/2] drm/crtc: fix connector reference counting mismatch in drm_crtc_helper_set_config

2016-06-14 Thread Daniel Vetter
On Tue, Jun 14, 2016 at 04:51:27PM +0200, Philipp Zabel wrote: > Am Dienstag, den 14.06.2016, 13:57 +0200 schrieb Lucas Stach: > > Am Montag, den 13.06.2016, 20:18 +0200 schrieb Daniel Vetter: > > [...] > > > > > > Only the reference count of connectors that weren't previously > > > > > > bound to

[PATCH v2 1/2] drm/crtc: fix connector reference counting mismatch in drm_crtc_helper_set_config

2016-06-14 Thread Daniel Vetter
On Thu, Jun 02, 2016 at 07:27:51PM +0200, Philipp Zabel wrote: > Since commit 0955c1250e96 ("drm/crtc: take references to connectors used > in a modeset. (v2)"), the reference counts of all connectors in the > drm_mode_set given to drm_crtc_helper_set_config are incremented, and then > the referenc

[PATCH 3/3] drm: Mark set/drop master ioctl as unlocked.

2016-06-14 Thread Daniel Vetter
On Tue, Jun 14, 2016 at 11:03:34AM +0200, Daniel Vetter wrote: > Again this is neatly protected by the dev->master_mutex now. There is > a driver callback both for set and drop, but it's only used by vmwgfx. > And vmwgfx has it's own solid locking for shared resources (besides > dev->master_mutex),

[PATCH 1/5] drm/tilcdc: Restore old dmps state in pm_resume()

2016-06-14 Thread Daniel Vetter
On Tue, Jun 14, 2016 at 02:48:44PM +0300, Tomi Valkeinen wrote: > On 14/06/16 14:45, Jyri Sarha wrote: > > Restore old dpms state in pm_resume(). The dpms is turned off in > > pm_suspend() and it should be restored to its original state in > > pm_resume(). > > > > Fixes commit 614b3cfeb8d2 ("drm/t

[PATCH 3/5] drm/tilcdc: Move waiting of LCDC_FRAME_DONE IRQ into stop()

2016-06-14 Thread Daniel Vetter
On Tue, Jun 14, 2016 at 02:45:04PM +0300, Jyri Sarha wrote: > Move wait queue waiting of LCDC_FRAME_DONE IRQ from tilcdc_crtc_dpms() > into stop() function. > > Signed-off-by: Jyri Sarha You should also call drm_crtc_vblank_on/off, to make sure any vblank waits and anything else gets properly cl

[PATCH v3 07/10] drm/bridge: analogix_dp: passing the connector as an argument in .get_modes()

2016-06-14 Thread Daniel Vetter
On Tue, Jun 14, 2016 at 07:46:29PM +0800, Yakir Yang wrote: > It's better to pass the connector to platform driver in .get_modes() > callback, just like what the .get_modes() helper function designed. > > Signed-off-by: Yakir Yang > --- > Changes in v3: > - Avoid to change any internal driver sta

[PATCH v3 07/10] drm/bridge: analogix_dp: passing the connector as an argument in .get_modes()

2016-06-14 Thread Daniel Vetter
On Tue, Jun 14, 2016 at 07:46:29PM +0800, Yakir Yang wrote: > It's better to pass the connector to platform driver in .get_modes() > callback, just like what the .get_modes() helper function designed. > > Signed-off-by: Yakir Yang Also please drop the analogix prefix from the subject, this is fo

[PATCH v3 07/10] drm/bridge: analogix_dp: passing the connector as an argument in .get_modes()

2016-06-14 Thread Daniel Vetter
On Tue, Jun 14, 2016 at 06:26:56PM +0200, Daniel Vetter wrote: > On Tue, Jun 14, 2016 at 07:46:29PM +0800, Yakir Yang wrote: > > It's better to pass the connector to platform driver in .get_modes() > > callback, just like what the .get_modes() helper function designed. > > > > Signed-off-by: Yakir

[PATCH v2 1/2] drm/crtc: fix connector reference counting mismatch in drm_crtc_helper_set_config

2016-06-14 Thread Daniel Vetter
On Tue, Jun 14, 2016 at 06:08:35PM +0200, Daniel Vetter wrote: > On Thu, Jun 02, 2016 at 07:27:51PM +0200, Philipp Zabel wrote: > > Since commit 0955c1250e96 ("drm/crtc: take references to connectors used > > in a modeset. (v2)"), the reference counts of all connectors in the > > drm_mode_set given

[PATCH] drm/atomic-helpers: Stall on the right commit

2016-06-14 Thread Daniel Vetter
stall_checks carefully picked out the right commit to stall on, then promptly used the wrong variable. Due to the break in the next loop iteration this could be the 3rd commit, or if the list only has 2 entries commit would now point into the struct drm_crtc itself, at some offset. Hilarity eventua

[PATCH 00/14] Cruft removal around drm_master

2016-06-14 Thread Daniel Vetter
Hi all, These are the final bits of my dev->struct_mutex crusade, taking care of a few things related to drm_master. Since I just couldnt' grok this dense web of legacy dungeons, also includes some cleanups. On top of that also patches to mark auth and master ioctls as DRM_UNLOCKED, which means th

[PATCH 01/14] drm: Nuke legacy maps debugfs files

2016-06-14 Thread Daniel Vetter
GEM stopped using those a while ago, and no one should ever need to use them again to debug legacy horror show drivers. Nuke it all. Aside: It would kinda be nice if we'd have some generic debugfs dumps for at least kms ... Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_debugfs.c | 3 --

[PATCH 02/14] drm: Hide hw.lock cleanup in filp->release better

2016-06-14 Thread Daniel Vetter
A few things: - Rename the cleanup function from drm_master_release to drm_legacy_lock_release. It doesn't relase any master stuff, but just the legacy hw lock. - Hide it in drm_lock.c, which allows us to make a few more functions static in there. To avoid forward decl we need to shuffle the

[PATCH 03/14] drm: Link directly from drm_master to drm_device

2016-06-14 Thread Daniel Vetter
Master-based auth only exists for the legacy/primary drm_minor, hence there can only be one per device. The goal here is to untangle the epic dereference games of minor->master and master->minor which is just massively confusing. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_drv.c |

[PATCH 04/14] drm: Move master functions into drm_auth.c

2016-06-14 Thread Daniel Vetter
For modern drivers pretty much the only thing drm_master does is handling authentication for the primary/legacy drm_minor node. Instead of having it all over drm files, move it all together into drm_auth.c. This patch just does code-motion, follow up patches will also extract the master logic from

[PATCH 06/14] drm: Extract drm_master_relase

2016-06-14 Thread Daniel Vetter
Like with drm_master_open protect it with a check for primary_client to make it clear that this can't happen on render/control nodes. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_auth.c | 37 + drivers/gpu/drm/drm_fops.c | 35 ++

[PATCH 05/14] drm: Extract drm_master_open

2016-06-14 Thread Daniel Vetter
And pull out the primary_client check to make it really obvious that this can't happen on control/render nodes. Bonus that we can avoid the master lock in this case. v2: Don't leak locks on error path (and simplify control flow while at it), reported by Julia. Cc: Julia Lawall Signed-off-by: Dan

[PATCH 07/14] drm: Only do the hw.lock cleanup in master_relase for !MODESET

2016-06-14 Thread Daniel Vetter
Another place gone where modern drivers could have hit dev->struct_mutex. To avoid too deeply nesting control flow rework it a bit. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_auth.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/d

[PATCH 08/14] drm: Move authmagic cleanup into drm_master_release

2016-06-14 Thread Daniel Vetter
It's related, and soon authmagic will also use the master_mutex. There is an ever-so-slightly semantic change here: - authmagic will only be cleaned up for primary_client drm_minors. But it's impossible to create authmagic on render/control nodes, so this is fine. - The cleanup is moved down a

[PATCH 09/14] drm: Protect authmagic with master_mutex

2016-06-14 Thread Daniel Vetter
Simplifies cleanup, and there's no reason drivers should ever care about authmagic at all - it's all handled in the core. And with that, Ladies and Gentlemen, it's time to pop the champagen and celebrate: dev->struct_mutex is now officially gone from modern drivers, and if a driver is using gem_fr

[PATCH 10/14] drm: Mark authmagic ioctls as unlocked

2016-06-14 Thread Daniel Vetter
All protected by dev->master_mutex. And there's no driver callbacks, which means no need to sync with old dri1 horror show drivers at all. Hence safe to drop the drm legacy BKL from these paths. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_ioctl.c | 4 ++-- 1 file changed, 2 insertions(+

[PATCH 11/14] drm: Mark set/drop master ioctl as unlocked.

2016-06-14 Thread Daniel Vetter
Again this is neatly protected by the dev->master_mutex now. There is a driver callback both for set and drop, but it's only used by vmwgfx. And vmwgfx has it's own solid locking for shared resources (besides dev->master_mutex), hence is all safe. Let's drop another place where the drm legacy bkl i

[PATCH 12/14] drm: Move master pointer from drm_minor to drm_device

2016-06-14 Thread Daniel Vetter
There can only be one current master, and it's for the overall device. Render/control minors don't support master-based auth at all. This simplifies the master logic a lot, at least in my eyes: All these additional pointer chases are just confusing. While doing the conversion I spotted some locki

[PATCH 13/14] drm: Clean up drm_crtc.h

2016-06-14 Thread Daniel Vetter
- Group declarations for separate files (drm_bridge.c, drm_edid.c) - Move declarations only used within drm.ko to drm_crtc_internal.h - drm_property_type_valid to drm_crtc.c, its only callsite Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_crtc.c | 7 ++ drivers/gpu/drm/drm_crtc

[PATCH 14/14] drm: Use dev->name as fallback for dev->unique

2016-06-14 Thread Daniel Vetter
Lots of arm drivers get this wrong and for most arm boards this is the right thing actually. And anyway with most loaders you want to chase sysfs links anyway to figure out which dri device you want. This will fix dmesg noise for rockchip and sti. Also add a fallback to driver->name for entirely

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

2016-06-14 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=119631 Axel Davy changed: What|Removed |Added CC||vebveb at hotmail.fr --- Comment #10 from Ax

[PATCH v2 1/2] dt-bindings: add Starry KR122EA0SRA panel binding

2016-06-14 Thread Rob Herring
On Fri, Jun 10, 2016 at 10:02:06AM -0700, Douglas Anderson wrote: > The Starry KR122EA0SRA is a 12.2", 1920x1200 TFT-LCD panel connected > using eDP interfaces. > > Signed-off-by: Douglas Anderson > --- > Changes in v2: > - Proper title (sorry!) > > .../devicetree/bindings/display/panel/starry,

Looking for pointers on diagnosing ring test failure in amdgpu

2016-06-14 Thread Matthew Macy
On Tue, 14 Jun 2016 06:02:09 -0700 Alex Deucher wrote >On Tue, Jun 14, 2016 at 4:10 AM, Christian König > wrote: >> Hi Matthew, >> >> see inline below. >> >> Am 14.06.2016 um 00:03 schrieb Matthew Macy: >>> >>> On Mon, 13 Jun 2016 01:35:34 -0700 Christian König >>> wrot

Looking for pointers on diagnosing ring test failure in amdgpu

2016-06-14 Thread Matthew Macy
> > The two issues are definitely related. They both go through a bounded delay > loop waiting for some operation to complete. > I realized that sounded really dumb after I sent it. But what makes me think it's all related is that timing perturbations / random seemingly unrelated code cha

Looking for pointers on diagnosing ring test failure in amdgpu

2016-06-14 Thread Deucher, Alexander
> -Original Message- > From: Matthew Macy [mailto:mmacy at nextbsd.org] > Sent: Tuesday, June 14, 2016 4:03 PM > To: Alex Deucher > Cc: Koenig, Christian; Deucher, Alexander; Zhu, Rex; dri- > devel at lists.freedesktop.org > Subject: Re: Re: Looking for pointers on diagnosing ring test fail

[PATCH v2 00/15] Runtime pm ref leak bonanza

2016-06-14 Thread Alex Deucher
On Thu, Jun 9, 2016 at 2:50 AM, Daniel Vetter wrote: > On Wed, Jun 08, 2016 at 06:47:27PM +0200, Lukas Wunner wrote: >> Second iteration of my endeavour to rid nouveau, radeon and amdgpu of >> runtime pm ref leaks. >> >> Patches 1 to 8 are identical to v1. >> >> Patch 9 of v1 modified the DRM core

  1   2   >