Re: [RFC PATCH v2 0/5] Add vblank hooks to struct drm_crtc_funcs

2017-02-06 Thread Daniel Vetter
On Tue, Jan 24, 2017 at 08:55:35AM +0100, Daniel Vetter wrote: > On Sun, Jan 22, 2017 at 02:09:01PM +0800, Shawn Guo wrote: > > From: Shawn Guo > > > > The vblank is mostly CRTC specific and implemented as part of CRTC > > driver. The first patch adds 3 vblank core-driver hooks into struct > > d

[Bug 99687] Radeon RV790 Choppy cursor and framerates under xwayland

2017-02-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99687 --- Comment #3 from Michel Dänzer --- FWIW, I did some more testing, and there does seem to be an issue in Xwayland, see bug 99702. I'm not sure if that explains all the issues you're seeing though. -- You are receiving this mail because: You a

Re: [PATCH] drm/atmel-hlcdc: Simplify the HLCDC layer logic

2017-02-06 Thread Daniel Vetter
On Mon, Feb 06, 2017 at 07:27:07PM +0100, Boris Brezillon wrote: > An HLCDC layers in Atmel's nomenclature is either a DRM plane or a 'Post > Processing Layer' which can be used to output the results of the HLCDC > composition in a memory buffer. > > atmel_hlcdc_layer.c was designed to be generic

Re: [PATCH v3 2/7] drm/tinydrm: Add helper functions

2017-02-06 Thread Daniel Vetter
On Mon, Feb 06, 2017 at 04:55:55PM -0600, Rob Herring wrote: > On Mon, Feb 6, 2017 at 5:08 AM, Thierry Reding > wrote: > > On Mon, Feb 06, 2017 at 11:07:42AM +0100, Daniel Vetter wrote: > >> On Mon, Feb 6, 2017 at 10:35 AM, Thierry Reding > >> wrote: > >> > >> > > > > +EXPORT_SYMBOL(tinydrm_disa

[GIT PULL] exynos-drm-next

2017-02-06 Thread Inki Dae
Hi Dave, Summary: - Add UHD support on TM2/TM2E boards. . adding interlace mode support and 297MHz pixel clock support for UHD mode, setting sysreg register in case of HW trigger mode, and adding SiI8620 MHL bridge device support. - Fix trigger mode issue on Rinato boar

Re: [PATCH v3 2/7] drm/tinydrm: Add helper functions

2017-02-06 Thread Daniel Vetter
On Tue, Feb 07, 2017 at 08:28:16AM +1000, Dave Airlie wrote: > > > > I definitely don't want that we don't attempt this. But brought from years > > of experience, I recommend to merge first (with pre-refactoring already > > applied, but helpers only extracted, not yet at the right spot), and then >

Re: [PATCH v3 1/7] drm: Add DRM support for tiny LCD displays

2017-02-06 Thread Daniel Vetter
On Mon, Feb 06, 2017 at 08:23:36PM +0100, Noralf Trønnes wrote: > > Den 06.02.2017 10.17, skrev Thierry Reding: > > On Tue, Jan 31, 2017 at 05:03:13PM +0100, Noralf Trønnes wrote: > > > tinydrm provides helpers for very simple displays that can use > > > CMA backed framebuffers and need flushing o

Re: [PATCH 1/4] drm/rockchip: Do not use DMA mapping API if attached to IOMMU domain

2017-02-06 Thread Tomasz Figa
Hi Mark, Thanks for reviving this series and sorry for not taking care of it myself. Please see some comments inline. On Tue, Feb 7, 2017 at 3:09 PM, Mark Yao wrote: > From: Tomasz Figa > > The API is not suitable for subsystems consisting of multiple devices > and requires severe hacks to use

[Bug 37724] r300g with HyperZ/Z compression: occlusion queries are messed up in ut2004 (regression, bisected)

2017-02-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=37724 --- Comment #17 from Pavel Ondračka --- (In reply to cosiekvfj from comment #16) > Is it enabled by default now? IIRC the HyperZ should be enabled by default on r500 but was never enabled on r300 and r400 due to lack of testing. -- You are rec

[PATCH 2/4] drm/rockchip: Use common IOMMU API to attach devices

2017-02-06 Thread Mark Yao
From: Shunqian Zheng Rockchip DRM used the arm special API, arm_iommu_*(), to attach iommu for ARM32 SoCs. This patch convert to common iommu API so it would support ARM64 like RK3399. Since previous patch added support for direct IOMMU address space management, there is no need to use DMA API a

[PATCH 4/4] drm/rockchip: gem: fixup iommu_map_sg error path

2017-02-06 Thread Mark Yao
The return value of iommu_map_sg is size_t, it's unsigned, So check ret < 0 is wrong. And if iommu_map_sg is error, it's return value is zero, but rockchip_gem_iommu_map feel the zero return value is success, bug happen: [5.227458] [drm:rockchip_gem_iommu_map] *ERROR* failed to map buffer: 0

[PATCH 3/4] drm/rockchip: gem: add mutex lock for drm mm

2017-02-06 Thread Mark Yao
drm_mm_insert_node_generic and drm_mm_remove_node may access same resource with list ops, it's not threads safe, so protect this context with mutex lock. Fix bug: [49451.856244] == [49451.856350] BUG: KASAN: wild-memory-access on add

[PATCH 0/4] drm/rockchip: switch to drm_mm for support arm64 iommu

2017-02-06 Thread Mark Yao
Some iommu patches on the series[0] "iommu/rockchip: Fix bugs and enable on ARM64" already landed, So drm/rockchip related patches [1] and [2] ready to landed, this series just rebase them to lastest drm-next. And fix some bugs for drm/rockchip drm_mm [0]: http://www.spinics.net/lists/arm-kernel/

[PATCH 1/4] drm/rockchip: Do not use DMA mapping API if attached to IOMMU domain

2017-02-06 Thread Mark Yao
From: Tomasz Figa The API is not suitable for subsystems consisting of multiple devices and requires severe hacks to use it. To mitigate this, this patch implements allocation and address space management locally by using helpers provided by DRM framework, like other DRM drivers do, e.g. Tegra.

Re: [GIT PULL] drm/rockchip: add cdn-dp support and some fixes

2017-02-06 Thread Mark yao
On 2017年02月07日 09:05, Dave Airlie wrote: On 5 February 2017 at 18:40, Mark yao wrote: Hi Dave drm/rockchip cdn-dp driver is v17 now, I think it's ready to land it. Thanks. The following changes since commit 99743ae4c5f52f8f8ceb17783056fcc9b4f8b64c: Merge branch 'drm-etnaviv-next' of http

Do no reset the max link parameters when userspace reprobes modes

2017-02-06 Thread Manasi Navare
Hi, I am working on a solution for handling link failures during or after the modeset. In case of link failure, the max link rate/lane count values are updated to lower link rate/lane count as per the spec and uevent is sent to the userspace with link-status BAD. The userspace is expected to fir

[PATCH] drm/rockchip: cdn-dp: fix cdn-dp complie warning

2017-02-06 Thread Mark Yao
fix warning: drivers/gpu/drm/rockchip/cdn-dp-reg.c:632:24: warning: 'val[1]' may be used uninitialized in this function [-Wmaybe-uninitialized] msa_misc = 2 * val[0] + 32 * val[1] + Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/cdn-dp-reg.c | 2 +- 1 file changed, 1 insertion(+), 1 d

Re: [GIT PULL] drm/rockchip: add cdn-dp support and some fixes

2017-02-06 Thread Dave Airlie
On 5 February 2017 at 18:40, Mark yao wrote: > Hi Dave > > drm/rockchip cdn-dp driver is v17 now, I think it's ready to land it. > > Thanks. > > The following changes since commit 99743ae4c5f52f8f8ceb17783056fcc9b4f8b64c: > > Merge branch 'drm-etnaviv-next' of > https://git.pengutronix.de/git/ls

Re: [PATCH -next] drm: mxsfb: fix error return code in mxsfb_load()

2017-02-06 Thread Marek Vasut
On 02/05/2017 05:00 PM, Wei Yongjun wrote: > From: Wei Yongjun > > Fix to return a negative error code from the error handling > case instead of 0, as done elsewhere in this function. > > Signed-off-by: Wei Yongjun Acked-by: Marek Vasut > --- > drivers/gpu/drm/mxsfb/mxsfb_drv.c | 1 + > 1 f

Re: [PATCH 2/5] drm: of: introduce drm_of_find_panel_or_bridge

2017-02-06 Thread Philipp Zabel
On Mon, 2017-02-06 at 10:53 -0600, Rob Herring wrote: > On Mon, Feb 06, 2017 at 11:42:48AM +0100, Philipp Zabel wrote: > > On Fri, 2017-02-03 at 21:36 -0600, Rob Herring wrote: > > > Many drivers have a common pattern of searching the OF graph for either an > > > attached panel or bridge and then f

Re: [PATCH 3/5] drm: convert drivers to use of_graph_get_remote_node

2017-02-06 Thread Liviu Dudau
On Mon, Feb 06, 2017 at 05:34:07PM +, Russell King - ARM Linux wrote: > On Mon, Feb 06, 2017 at 05:23:06PM +, Liviu Dudau wrote: > > On Mon, Feb 06, 2017 at 11:09:49AM -0600, Rob Herring wrote: > > > On Mon, Feb 06, 2017 at 10:29:33AM +, Liviu Dudau wrote: > > > > On Fri, Feb 03, 2017 a

Re: [PATCH 3/5] drm: convert drivers to use of_graph_get_remote_node

2017-02-06 Thread Russell King - ARM Linux
On Mon, Feb 06, 2017 at 05:55:33PM +, Liviu Dudau wrote: > OK, I will fix the driver if Rob's patch still requires it. I don't think you ever needed it. As Rob says, what you're testing won't ever change unless you're using overlays - it's certainly not dependent on the tda998x module being l

Re: [PATCH 3/5] drm: convert drivers to use of_graph_get_remote_node

2017-02-06 Thread Rob Herring
On Mon, Feb 6, 2017 at 11:23 AM, Liviu Dudau wrote: > On Mon, Feb 06, 2017 at 11:09:49AM -0600, Rob Herring wrote: >> On Mon, Feb 06, 2017 at 10:29:33AM +, Liviu Dudau wrote: >> > On Fri, Feb 03, 2017 at 09:36:33PM -0600, Rob Herring wrote: >> > > Convert drivers to use the new of_graph_get_re

[Bug 98405] No signal on HDMI output after upgrade to kernel 4.8.3-1

2017-02-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98405 poma changed: What|Removed |Added See Also||https://bugzilla.suse.com/s |

[Bug 98405] No signal on HDMI output after upgrade to kernel 4.8.3-1

2017-02-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98405 poma changed: What|Removed |Added See Also||https://bugzilla.redhat.com |

[Bug 37724] r300g with HyperZ/Z compression: occlusion queries are messed up in ut2004 (regression, bisected)

2017-02-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=37724 --- Comment #16 from cosiek...@o2.pl --- Is it enabled by default now? -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing list dri-devel@lists.freedesktop.or

Re: [PATCH v3 2/7] drm/tinydrm: Add helper functions

2017-02-06 Thread Rob Herring
On Mon, Feb 6, 2017 at 5:08 AM, Thierry Reding wrote: > On Mon, Feb 06, 2017 at 11:07:42AM +0100, Daniel Vetter wrote: >> On Mon, Feb 6, 2017 at 10:35 AM, Thierry Reding >> wrote: >> >> > > > > +EXPORT_SYMBOL(tinydrm_disable_backlight); >> > > > > +#endif >> > > > >> > > > These look like they re

Re: [PATCH v3 2/7] drm/tinydrm: Add helper functions

2017-02-06 Thread Dave Airlie
> > I definitely don't want that we don't attempt this. But brought from years > of experience, I recommend to merge first (with pre-refactoring already > applied, but helpers only extracted, not yet at the right spot), and then > follow up with. Because on average, there's way too many trees with

Re: [PATCH v3 2/7] drm/tinydrm: Add helper functions

2017-02-06 Thread Noralf Trønnes
Den 06.02.2017 16.53, skrev Daniel Vetter: On Mon, Feb 06, 2017 at 12:08:47PM +0100, Thierry Reding wrote: On Mon, Feb 06, 2017 at 11:07:42AM +0100, Daniel Vetter wrote: On Mon, Feb 6, 2017 at 10:35 AM, Thierry Reding wrote: +EXPORT_SYMBOL(tinydrm_disable_backlight); +#endif These look lik

[Bug 43698] On PPC, OpenGL programs use incorrect texture colors.

2017-02-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=43698 cosiek...@o2.pl changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug 98869] Electronic Super Joy graphic artefacts (regression)

2017-02-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98869 cosiek...@o2.pl changed: What|Removed |Added Priority|high|medium Severity|major

[Bug 71789] [r300g] Visuals not found in (default) depth = 24

2017-02-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=71789 --- Comment #34 from cosiek...@o2.pl --- Fix for this bug result in regression: https://bugs.freedesktop.org/show_bug.cgi?id=98869 -- You are receiving this mail because: You are the assignee for the bug._

[Bug 98869] Electronic Super Joy graphic artefacts (regression)

2017-02-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98869 --- Comment #17 from cosiek...@o2.pl --- 172bfdaa9e80342ade3f023f72d455d76713b866 Is cause of the problem! https://cgit.freedesktop.org/mesa/mesa/commit/?h=12.0&id=172bfdaa9e80342ade3f023f72d455d76713b866 -- You are receiving this mail because:

Re: [PATCH 03/11] drm/msm: Add hint to DRM_IOCTL_MSM_GEM_INFO to return an object IOVA

2017-02-06 Thread Rob Clark
On Mon, Feb 6, 2017 at 3:24 PM, Emil Velikov wrote: > On 6 February 2017 at 19:57, Rob Clark wrote: >> On Mon, Feb 6, 2017 at 2:20 PM, Emil Velikov >> wrote: >>> Hi Jordan, >>> >>> On 6 February 2017 at 17:39, Jordan Crouse wrote: Modify the 'pad' member of struct drm_msm_gem_info to 'hin

Re: [PATCH 03/11] drm/msm: Add hint to DRM_IOCTL_MSM_GEM_INFO to return an object IOVA

2017-02-06 Thread Emil Velikov
On 6 February 2017 at 19:57, Rob Clark wrote: > On Mon, Feb 6, 2017 at 2:20 PM, Emil Velikov wrote: >> Hi Jordan, >> >> On 6 February 2017 at 17:39, Jordan Crouse wrote: >>> Modify the 'pad' member of struct drm_msm_gem_info to 'hint'. If the >>> user sets 'hint' to non-zero it means that they w

[PATCH] drm/radeon: avoid kernel segfault in vce when gpu fails to resume

2017-02-06 Thread j . glisse
From: Jérôme Glisse When GPU fails to resume we can not trust that value we write to GPU memory will post and we might get garbage (more like 0x on x86) when reading them back. This trigger out of range memory access in the kernel inside the vce resume code path. This patch use canonical

Re: [PATCH 03/11] drm/msm: Add hint to DRM_IOCTL_MSM_GEM_INFO to return an object IOVA

2017-02-06 Thread Rob Clark
On Mon, Feb 6, 2017 at 2:20 PM, Emil Velikov wrote: > Hi Jordan, > > On 6 February 2017 at 17:39, Jordan Crouse wrote: >> Modify the 'pad' member of struct drm_msm_gem_info to 'hint'. If the >> user sets 'hint' to non-zero it means that they want a IOVA for the >> GEM object instead of a mmap() o

Re: [PATCH v3 1/7] drm: Add DRM support for tiny LCD displays

2017-02-06 Thread Noralf Trønnes
Den 06.02.2017 10.17, skrev Thierry Reding: On Tue, Jan 31, 2017 at 05:03:13PM +0100, Noralf Trønnes wrote: tinydrm provides helpers for very simple displays that can use CMA backed framebuffers and need flushing on changes. Signed-off-by: Noralf Trønnes Acked-by: Daniel Vetter --- Changes

Re: [PATCH 03/11] drm/msm: Add hint to DRM_IOCTL_MSM_GEM_INFO to return an object IOVA

2017-02-06 Thread Emil Velikov
Hi Jordan, On 6 February 2017 at 17:39, Jordan Crouse wrote: > Modify the 'pad' member of struct drm_msm_gem_info to 'hint'. If the > user sets 'hint' to non-zero it means that they want a IOVA for the > GEM object instead of a mmap() offset. Return the iova in the 'offset' > member. > > Signed-o

Re: [Intel-gfx] [PATCH 00/11] drm/msm: A5XX preemption

2017-02-06 Thread Rob Clark
On Mon, Feb 6, 2017 at 1:23 PM, Daniel Stone wrote: > Hi, > > On 6 February 2017 at 17:59, Daniel Vetter wrote: >> On Mon, Feb 06, 2017 at 10:39:28AM -0700, Jordan Crouse wrote: >>> This initial series implements 4 ringbuffers to give sufficient coverage >>> for the >>> range of priority levels

Re: [PATCH 00/11] drm/msm: A5XX preemption

2017-02-06 Thread Alex Deucher
On Mon, Feb 6, 2017 at 12:59 PM, Daniel Vetter wrote: > On Mon, Feb 06, 2017 at 10:39:28AM -0700, Jordan Crouse wrote: >> This series of patches implements multiple ringbuffers and preemption for >> Adreno >> A5XX targets. Preemption allows a command to be interrupted at specific >> preemption po

[PATCH] drm/atmel-hlcdc: Simplify the HLCDC layer logic

2017-02-06 Thread Boris Brezillon
An HLCDC layers in Atmel's nomenclature is either a DRM plane or a 'Post Processing Layer' which can be used to output the results of the HLCDC composition in a memory buffer. atmel_hlcdc_layer.c was designed to be generic enough to be re-usable in both cases, but we're not exposing the post-proce

Re: [PATCH 00/11] drm/msm: A5XX preemption

2017-02-06 Thread Daniel Stone
Hi, On 6 February 2017 at 17:59, Daniel Vetter wrote: > On Mon, Feb 06, 2017 at 10:39:28AM -0700, Jordan Crouse wrote: >> This initial series implements 4 ringbuffers to give sufficient coverage for >> the >> range of priority levels requested by the GLES and compute extensions. The >> targeted

Re: [PATCH 00/11] drm/msm: A5XX preemption

2017-02-06 Thread Daniel Vetter
On Mon, Feb 06, 2017 at 10:39:28AM -0700, Jordan Crouse wrote: > This series of patches implements multiple ringbuffers and preemption for > Adreno > A5XX targets. Preemption allows a command to be interrupted at specific > preemption points and execution switched to a different ringbuffer. > > T

[pull] drm/msm: msm-next for 4.11

2017-02-06 Thread Rob Clark
Hi Dave, The big things this time around are: 1) support for hw cursor on newer mdp5 devices (snapdragon 820+, tested on db820c) 2) dsi encoder cleanup 3) gpu dt bindings cleanup so we can get the gpu nodes merged upstream The following changes since commit 99743ae4c5f52f8f8ceb17783056fcc9b4f8b64

[PATCH 02/11] drm/msm: Improve the zap shader

2017-02-06 Thread Jordan Crouse
Simply the code, use snprintf correctly and make sure that we memset the rest of the segment if the memory size in the ELF file is larger than the file size. Signed-off-by: Jordan Crouse --- drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 60 +-- 1 file changed, 30 insert

Re: [PATCH 3/5] drm: convert drivers to use of_graph_get_remote_node

2017-02-06 Thread Rob Herring
On Mon, Feb 6, 2017 at 4:52 AM, Philipp Zabel wrote: > On Fri, 2017-02-03 at 21:36 -0600, Rob Herring wrote: >> Convert drivers to use the new of_graph_get_remote_node() helper >> instead of parsing the endpoint node and then getting the remote device >> node. Now drivers can just specify the devi

[PATCH 08/11] drm/msm: Support multiple ringbuffers

2017-02-06 Thread Jordan Crouse
Add the infrastructure to support the idea of multiple ringbuffers. Assign each ringbuffer an id and use that as an index for the various ring specific operations. The biggest delta is to support legacy fences. Each fence gets its own sequence number but the legacy functions expect to use a unique

[PATCH 0/5] Fix the parse_dt of exynos dsi

2017-02-06 Thread Hoegeun Kwon
This patch fixed the parse_dt function of exynos dsi and fixed the related exynos3250, exynos4210, exynos4412, exynos5433 dts. Hoegeun Kwon (5): drm/exynos: dsi: Fix the parse_dt function arm64: dts: exynos: Move the clock-frequency property arm: dts: Move the clock-frequency property for ex

Re: [PATCH 3/5] drm: convert drivers to use of_graph_get_remote_node

2017-02-06 Thread Rob Herring
On Mon, Feb 06, 2017 at 10:29:33AM +, Liviu Dudau wrote: > On Fri, Feb 03, 2017 at 09:36:33PM -0600, Rob Herring wrote: > > Convert drivers to use the new of_graph_get_remote_node() helper > > instead of parsing the endpoint node and then getting the remote device > > node. Now drivers can just

[PATCH 04/11] drm/msm: Remove idle function hook

2017-02-06 Thread Jordan Crouse
There isn't any generic code that uses ->idle so remove it. Signed-off-by: Jordan Crouse --- drivers/gpu/drm/msm/adreno/a3xx_gpu.c | 4 ++-- drivers/gpu/drm/msm/adreno/a4xx_gpu.c | 4 ++-- drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 9 - drivers/gpu/drm/msm/adreno/a5xx_gpu.h | 1 + d

[PATCH 00/11] drm/msm: A5XX preemption

2017-02-06 Thread Jordan Crouse
This series of patches implements multiple ringbuffers and preemption for Adreno A5XX targets. Preemption allows a command to be interrupted at specific preemption points and execution switched to a different ringbuffer. The software alogrithm uses preemption to enforce quality of service for prio

Re: [PATCH 1/5] of: introduce of_graph_get_remote_node

2017-02-06 Thread Philipp Zabel
Hi Rob, thanks for this clean-up series! I was not aware how far the duplication has spread over time. On Fri, 2017-02-03 at 21:36 -0600, Rob Herring wrote: > The OF graph API leaves too much of the graph walking to clients when > in many cases the driver doesn't care about accessing the port or

[PATCH 07/11] drm/msm: Remove memptrs->wptr

2017-02-06 Thread Jordan Crouse
memptrs->wptr seems to be unused. Remove it to avoid confusing the upcoming preemption code. Signed-off-by: Jordan Crouse --- drivers/gpu/drm/msm/adreno/adreno_gpu.c | 3 --- drivers/gpu/drm/msm/adreno/adreno_gpu.h | 1 - 2 files changed, 4 deletions(-) diff --git a/drivers/gpu/drm/msm/adreno/a

[PATCH 10/11] drm/msm: Make the value of RB_CNTL (almost) generic

2017-02-06 Thread Jordan Crouse
We use a global ringbuffer size and block size for all targets and at least for 5XX preemption we need to know the value the RB_CNTL in several locations so it makes sense to caculate it once and use it everywhere. The only monkey wrench is that we need to disable the RPTR shadow for A430 targets

[PATCH 11/11] drm/msm: Implement preemption for A5XX targets

2017-02-06 Thread Jordan Crouse
Implement preemption for A5XX targets - this allows multiple ringbuffers for different priorities with automatic preemption of a lower priority ringbuffer if a higher one is ready. Signed-off-by: Jordan Crouse --- drivers/gpu/drm/msm/Makefile | 1 + drivers/gpu/drm/msm/adreno/a5xx

[PATCH 05/11] drm/msm: get an iova from the address space instead of an id

2017-02-06 Thread Jordan Crouse
In the future we won't have a fixed set of addresses spaces. Instead of going through the effort of assigning a ID for each address space just use the address space itself as a token for getting / putting an iova. This forces a few changes in the gem object however: instead of using a simple index

Re: [PATCH 3/5] drm: convert drivers to use of_graph_get_remote_node

2017-02-06 Thread Neil Armstrong
On 02/04/2017 04:36 AM, Rob Herring wrote: > Convert drivers to use the new of_graph_get_remote_node() helper > instead of parsing the endpoint node and then getting the remote device > node. Now drivers can just specify the device node and which > port/endpoint and get back the connected remote de

Re: [PATCH 3/5] drm: convert drivers to use of_graph_get_remote_node

2017-02-06 Thread Jyri Sarha
Thanks Rob, for nice cleanup, but ... On 02/04/17 05:36, Rob Herring wrote: > diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c > b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c > index 6dfdb145f3bb..e74cc236a79b 100644 > --- a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c > +++ b/drivers/gpu/drm/tilcdc/tilcdc_crt

Re: [PATCH 1/5] of: introduce of_graph_get_remote_node

2017-02-06 Thread Philipp Zabel
On Mon, 2017-02-06 at 07:54 -0600, Rob Herring wrote: > On Mon, Feb 6, 2017 at 4:32 AM, Philipp Zabel wrote: > > Hi Rob, > > > > thanks for this clean-up series! I was not aware how far the duplication > > has spread over time. > > > > On Fri, 2017-02-03 at 21:36 -0600, Rob Herring wrote: > >> The

[PATCH 09/11] drm/msm: Shadow current pointer in the ring until command is complete

2017-02-06 Thread Jordan Crouse
Add a shadow pointer to track the current command being written into the ring. Don't commit it as 'cur' until the command is submitted. Because 'cur' is used to construct the software copy of the wptr this ensures that somebody peeking in on the ring doesn't assume that a command is inflight while

Re: [PATCH 4/5] drm: convert drivers to use drm_of_find_panel_or_bridge

2017-02-06 Thread Philipp Zabel
On Fri, 2017-02-03 at 21:36 -0600, Rob Herring wrote: > Similar to the previous commit, convert drivers open coding OF graph > parsing to use drm_of_find_panel_or_bridge instead. > > This changes some error messages to debug messages (in the graph core). > Graph connections are often "no connects"

Re: [PATCH 4/5] drm: convert drivers to use drm_of_find_panel_or_bridge

2017-02-06 Thread Maxime Ripard
Hi Rob, On Fri, Feb 03, 2017 at 09:36:34PM -0600, Rob Herring wrote: > Similar to the previous commit, convert drivers open coding OF graph > parsing to use drm_of_find_panel_or_bridge instead. > > This changes some error messages to debug messages (in the graph core). > Graph connections are oft

Re: [PATCH 3/5] drm: convert drivers to use of_graph_get_remote_node

2017-02-06 Thread Liviu Dudau
On Fri, Feb 03, 2017 at 09:36:33PM -0600, Rob Herring wrote: > Convert drivers to use the new of_graph_get_remote_node() helper > instead of parsing the endpoint node and then getting the remote device > node. Now drivers can just specify the device node and which > port/endpoint and get back the c

Re: [PATCH 1/5] of: introduce of_graph_get_remote_node

2017-02-06 Thread Daniel Vetter
On Fri, Feb 03, 2017 at 09:36:31PM -0600, Rob Herring wrote: > The OF graph API leaves too much of the graph walking to clients when > in many cases the driver doesn't care about accessing the port or > endpoint nodes. The drivers typically just want the device connected via > a particular graph co

Re: [PATCH 2/5] drm: of: introduce drm_of_find_panel_or_bridge

2017-02-06 Thread Philipp Zabel
On Fri, 2017-02-03 at 21:36 -0600, Rob Herring wrote: > Many drivers have a common pattern of searching the OF graph for either an > attached panel or bridge and then finding the DRM struct for the panel > or bridge. Also, most drivers need to handle deferred probing when the > DRM device is not ye

[PATCH 03/11] drm/msm: Add hint to DRM_IOCTL_MSM_GEM_INFO to return an object IOVA

2017-02-06 Thread Jordan Crouse
Modify the 'pad' member of struct drm_msm_gem_info to 'hint'. If the user sets 'hint' to non-zero it means that they want a IOVA for the GEM object instead of a mmap() offset. Return the iova in the 'offset' member. Signed-off-by: Jordan Crouse --- drivers/gpu/drm/msm/msm_drv.c | 29

Re: [PATCH 4/5] drm: convert drivers to use drm_of_find_panel_or_bridge

2017-02-06 Thread Fabio Estevam
On Sun, Feb 5, 2017 at 10:01 PM, Fabio Estevam wrote: > > The tda998x_probe() returns success, but tda998x_bind() is never called. > > I am trying to understand what needs to be done in > drivers/gpu/drm/mxsfb/ so that it can bind the tda998x driver. Looks like that converting to component style

Re: [PATCH 2/5] drm: of: introduce drm_of_find_panel_or_bridge

2017-02-06 Thread Liviu Dudau
On Fri, Feb 03, 2017 at 09:36:32PM -0600, Rob Herring wrote: > Many drivers have a common pattern of searching the OF graph for either an > attached panel or bridge and then finding the DRM struct for the panel > or bridge. Also, most drivers need to handle deferred probing when the > DRM device is

[PATCH 01/11] drm/msm: Make sure to detach the MMU during GPU cleanup

2017-02-06 Thread Jordan Crouse
We should be detaching the MMU before destroying the address space. To do this cleanly, the detach has to happen in adreno_gpu_cleanup() because it needs access to structs in adreno_gpu.c. Plus it is better symmetry to have the attach and detach at the same code level. Signed-off-by: Jordan Crous

[PATCH 1/5] drm/exynos: dsi: Fix the parse_dt function

2017-02-06 Thread Hoegeun Kwon
The bridge_node may or may not be required. For example, mic and dsi are connected to OF graph, but fimd and dsi are not connected. Also the OF graph is not needed because the panel is a child of dsi. So not have to go to the endpoint and parse the burst, esc clock-frequency. Signed-off-by: Hoegeu

Re: [PATCH 3/5] drm: convert drivers to use of_graph_get_remote_node

2017-02-06 Thread Russell King - ARM Linux
On Mon, Feb 06, 2017 at 05:23:06PM +, Liviu Dudau wrote: > On Mon, Feb 06, 2017 at 11:09:49AM -0600, Rob Herring wrote: > > On Mon, Feb 06, 2017 at 10:29:33AM +, Liviu Dudau wrote: > > > On Fri, Feb 03, 2017 at 09:36:33PM -0600, Rob Herring wrote: > > > > - /* add the remote encoder p

[PATCH 06/11] drm/msm: Add a struct to pass configuration to msm_gpu_init()

2017-02-06 Thread Jordan Crouse
The amount of information that we need to pass into msm_gpu_init() is steadily increasing, so add a new struct to stabilize the function call and make it easier to add new configuration down the line. Signed-off-by: Jordan Crouse --- drivers/gpu/drm/msm/adreno/adreno_gpu.c | 12 ++-- dri

Re: [PATCH 2/5] drm: of: introduce drm_of_find_panel_or_bridge

2017-02-06 Thread Rob Herring
On Mon, Feb 06, 2017 at 11:42:48AM +0100, Philipp Zabel wrote: > On Fri, 2017-02-03 at 21:36 -0600, Rob Herring wrote: > > Many drivers have a common pattern of searching the OF graph for either an > > attached panel or bridge and then finding the DRM struct for the panel > > or bridge. Also, most

Re: [PATCH V7 3/4] drm/bridge: Add driver for GE B850v3 LVDS/DP++ Bridge

2017-02-06 Thread Daniel Vetter
On Fri, Feb 03, 2017 at 12:25:24PM +, Emil Velikov wrote: > On 3 February 2017 at 08:00, Daniel Vetter wrote: > > On Thu, Feb 02, 2017 at 12:37:21PM +, Emil Velikov wrote: > >> - Daniel, gents - is drm-misc aimed at devs with limited (no?) > >> review/commit history in the area and/or the

Re: [PATCH 3/5] drm: convert drivers to use of_graph_get_remote_node

2017-02-06 Thread Philipp Zabel
On Fri, 2017-02-03 at 21:36 -0600, Rob Herring wrote: > Convert drivers to use the new of_graph_get_remote_node() helper > instead of parsing the endpoint node and then getting the remote device > node. Now drivers can just specify the device node and which > port/endpoint and get back the connecte

[PATCH 3/5] arm: dts: Move the clock-frequency property for exynos3250 dts

2017-02-06 Thread Hoegeun Kwon
The OF graph is not needed because the panel is a child of dsi. So removed the ports and moved burst, esc clock-frequency property to the top. Signed-off-by: Hoegeun Kwon --- arch/arm/boot/dts/exynos3250-rinato.dts | 23 ++- 1 file changed, 2 insertions(+), 21 deletions(-) d

Re: [PATCH 1/5] of: introduce of_graph_get_remote_node

2017-02-06 Thread Rob Herring
On Mon, Feb 6, 2017 at 4:32 AM, Philipp Zabel wrote: > Hi Rob, > > thanks for this clean-up series! I was not aware how far the duplication > has spread over time. > > On Fri, 2017-02-03 at 21:36 -0600, Rob Herring wrote: >> The OF graph API leaves too much of the graph walking to clients when >>

[PATCH 5/5] arm: dts: Move the clock-frequency property for exynos4210 dts

2017-02-06 Thread Hoegeun Kwon
The OF graph is not needed because the panel is a child of dsi. So removed the ports and moved burst, esc clock-frequency property to the top. Signed-off-by: Hoegeun Kwon --- arch/arm/boot/dts/exynos4210-trats.dts | 23 ++- 1 file changed, 2 insertions(+), 21 deletions(-) di

[PATCH 2/5] arm64: dts: exynos: Move the clock-frequency property

2017-02-06 Thread Hoegeun Kwon
The OF graph is not needed because the panel is a child of dsi. So removed the ports and moved burst, esc clock-frequency property to the top. Signed-off-by: Hoegeun Kwon --- arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi | 16 ++-- 1 file changed, 2 insertions(+), 14 deletion

[PATCH 4/5] arm: dts: Move the clock-frequency property for exynos4412 dts

2017-02-06 Thread Hoegeun Kwon
The OF graph is not needed because the panel is a child of dsi. So removed the ports and moved burst, esc clock-frequency property to the top. Signed-off-by: Hoegeun Kwon --- arch/arm/boot/dts/exynos4412-trats2.dts | 23 ++- 1 file changed, 2 insertions(+), 21 deletions(-) d

Re: [PATCH 4/5] drm: convert drivers to use drm_of_find_panel_or_bridge

2017-02-06 Thread Rob Herring
On Mon, Feb 06, 2017 at 11:03:01AM +0100, Maxime Ripard wrote: > Hi Rob, > > On Fri, Feb 03, 2017 at 09:36:34PM -0600, Rob Herring wrote: > > Similar to the previous commit, convert drivers open coding OF graph > > parsing to use drm_of_find_panel_or_bridge instead. > > > > This changes some erro

Re: [PATCH 3/5] drm: convert drivers to use of_graph_get_remote_node

2017-02-06 Thread Liviu Dudau
On Mon, Feb 06, 2017 at 11:09:49AM -0600, Rob Herring wrote: > On Mon, Feb 06, 2017 at 10:29:33AM +, Liviu Dudau wrote: > > On Fri, Feb 03, 2017 at 09:36:33PM -0600, Rob Herring wrote: > > > Convert drivers to use the new of_graph_get_remote_node() helper > > > instead of parsing the endpoint n

Re: [PATCH 2/5] drm: of: introduce drm_of_find_panel_or_bridge

2017-02-06 Thread Rob Herring
On Mon, Feb 6, 2017 at 4:18 AM, Liviu Dudau wrote: > On Fri, Feb 03, 2017 at 09:36:32PM -0600, Rob Herring wrote: >> Many drivers have a common pattern of searching the OF graph for either an >> attached panel or bridge and then finding the DRM struct for the panel >> or bridge. Also, most drivers

Re: [PATCH 1/5] of: introduce of_graph_get_remote_node

2017-02-06 Thread Rob Herring
On Mon, Feb 6, 2017 at 2:50 AM, Daniel Vetter wrote: > On Fri, Feb 03, 2017 at 09:36:31PM -0600, Rob Herring wrote: >> The OF graph API leaves too much of the graph walking to clients when >> in many cases the driver doesn't care about accessing the port or >> endpoint nodes. The drivers typically

[PATCH] dim: use annotated tags everywhere

2017-02-06 Thread Daniel Vetter
Kinda no reason only to use them for drm-intel-next ... Acked-by: Jani Nikula Signed-off-by: Daniel Vetter --- dim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dim b/dim index 20eac8c58c58..457bf93d8a11 100755 --- a/dim +++ b/dim @@ -1232,9 +1232,9 @@ function dim_pul

Re: [PATCH] drm/panel: simple: ensure Sharp lq123p1jx31 isn't turned off too soon

2017-02-06 Thread Doug Anderson
Hi, On Mon, Feb 6, 2017 at 4:03 AM, Thierry Reding wrote: > On Thu, Feb 02, 2017 at 03:38:53PM -0800, Douglas Anderson wrote: >> The Sharp lq123p1jx31 has a requirement that the VDD is on for at >> least 300 ms before being turned off. At the moment nothing anywhere >> in the kernel is ensuring

Re: [PATCH] drm: Micro-optimise drm_mm_for_each_node_in_range()

2017-02-06 Thread Daniel Vetter
On Mon, Feb 06, 2017 at 12:21:48PM +0200, Joonas Lahtinen wrote: > On la, 2017-02-04 at 11:19 +, Chris Wilson wrote: > > As we require valid start/end parameters, we can replace the initial > > potential NULL with a pointer to the drm_mm.head_node and so reduce the > > test on every iteration f

Re: [PATCH v3 2/7] drm/tinydrm: Add helper functions

2017-02-06 Thread Daniel Vetter
On Mon, Feb 06, 2017 at 12:08:47PM +0100, Thierry Reding wrote: > On Mon, Feb 06, 2017 at 11:07:42AM +0100, Daniel Vetter wrote: > > On Mon, Feb 6, 2017 at 10:35 AM, Thierry Reding > > wrote: > > > > > > > > +EXPORT_SYMBOL(tinydrm_disable_backlight); > > > > > > +#endif > > > > > > > > > > These

Re: [RFC PATCH xserver] modesetting: re-set the crtc's mode when link-status goes BAD

2017-02-06 Thread Martin Peres
On 03/02/17 10:04, Daniel Vetter wrote: On Fri, Feb 03, 2017 at 01:30:14AM +0200, Martin Peres wrote: On 01/02/17 22:05, Manasi Navare wrote: On Wed, Feb 01, 2017 at 11:58:16AM -0800, Eric Anholt wrote: Jani Nikula writes: On Tue, 31 Jan 2017, Eric Anholt wrote: Martin Peres writes: De

Re: [PATCH v3 3/7] drm/tinydrm: Add MIPI DBI support

2017-02-06 Thread Noralf Trønnes
(Adding Maxime) Den 06.02.2017 13.34, skrev Andrzej Hajda: On 06.02.2017 12:53, Thierry Reding wrote: On Mon, Feb 06, 2017 at 01:30:09PM +0200, Jani Nikula wrote: On Mon, 06 Feb 2017, Thierry Reding wrote: On Tue, Jan 31, 2017 at 05:03:15PM +0100, Noralf Trønnes wrote: Add support for MIPI

[Bug 99637] VLC video has corrupted colors when using VDPAU output on Radeon SI

2017-02-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99637 Nayan Deshmukh changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Bug 99683] Powerplay features request: manually set GPU (Fiji) frequency beyond default limits and per application

2017-02-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99683 Alex Deucher changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug 98869] Electronic Super Joy graphic artefacts (regression)

2017-02-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98869 --- Comment #16 from cosiek...@o2.pl --- Hi. I was searching for r300 in 11.2 and 12.0 branch. And it's look like this five patches are in 12 and not in 11.2. It is likely one of them that breaks the game? https://cgit.freedesktop.org/mesa/mesa/

[Bug 98869] Electronic Super Joy graphic artefacts (regression)

2017-02-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98869 cosiek...@o2.pl changed: What|Removed |Added Version|12.0|13.0 -- You are receiving this mail be

[PATCH v2 4/6] drm: scrambling support in drm layer

2017-02-06 Thread Shashank Sharma
HDMI 2.0 spec mandates scrambling for modes with pixel clock higher than 340 MHz. This patch adds few new functions in drm layer for core drivers to enable/disable scrambling. This patch adds: - A function to detect scrambling support parsing HF-VSDB - A function to check scrambling status runtime

[PATCH v2 6/6] drm/i915: allow HDMI 2.0 clock rates

2017-02-06 Thread Shashank Sharma
Geminilake has a native HDMI 2.0 controller, which is capable of driving clocks upto 594Mhz. This patch updates the max tmds clock limit for the same. V2: rebase Cc: Ander Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_hdmi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a

[PATCH v2 5/6] drm/i915: enable scrambling

2017-02-06 Thread Shashank Sharma
Geminilake platform sports a native HDMI 2.0 controller, and is capable of driving pixel-clocks upto 594Mhz. HDMI 2.0 spec mendates scrambling for these higher clocks, for reduced RF footprint. This patch checks if the monitor supports scrambling, and if required, enables it during the modeset. V

[PATCH v2 1/6] drm: Add SCDC helpers

2017-02-06 Thread Shashank Sharma
From: Thierry Reding SCDC is a mechanism defined in the HDMI 2.0 specification that allows the source and sink devices to communicate. This commit introduces helpers to access the SCDC and provides the symbolic names for the various registers defined in the specification. Signed-off-by: Thierry

[PATCH v2 0/6] HDMI 2.0: Scrambling in DRM layer

2017-02-06 Thread Shashank Sharma
HDMI 2.0 spec defines a method to reduce the RF footprint while operating at higher pixel clocks, which is called Scrambling. Scrambling can be controlled over a new set of I2C registers which are accessible over existing DDC I2C lines, called SCDC register set. This patch series contains 6 patche

  1   2   >