[PATCH v6 6/8] Documentation: bindings: add dt documentation for rk3399 dmc

2016-08-22 Thread hl
Hi Chanwoo Choi, On 2016年08月17日 12:50, Chanwoo Choi wrote: > Hi Lin, > > On 2016년 08월 17일 07:36, Lin Huang wrote: >> This patch adds the documentation for rockchip rk3399 dmc driver. >> >> Signed-off-by: Lin Huang >> --- >> Changes in v6: >> -Add more detail in Documentation >> >> Cha

[Bug 97428] Specific OpenGL applications deadlock on AMD GPU drivers

2016-08-22 Thread bugzilla-dae...@freedesktop.org
part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160822/1929afa5/attachment.html>

[Bug 93652] Random crashes/freezing with amdgpu Fury X mesa 11.1

2016-08-22 Thread bugzilla-dae...@freedesktop.org
ever program has the bug and not the entire xorg session? -- 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/20160822/660f10dd/attachment-0001.html>

[PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from "

2016-08-22 Thread Daniel Vetter
On Sat, Aug 20, 2016 at 2:20 PM, Emil Velikov wrote: >> While I understand some people want to discuss this further, these >> patches must land first in order bring back the compatibility with >> libdrm. > This is where the misunderstanding lies - there _must_ _not_ be > compatible with the libdr

[PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from "

2016-08-22 Thread Daniel Vetter
On Sat, Aug 20, 2016 at 8:58 PM, Emil Velikov wrote: > On 20 August 2016 at 16:08, Marek Olšák wrote: >> On Sat, Aug 20, 2016 at 2:20 PM, Emil Velikov >> wrote: >>> On 20 August 2016 at 12:47, Marek Olšák wrote: On Sat, Aug 20, 2016 at 1:08 PM, Emil Velikov >>> gmail.com> wrote:

linux-next: manual merge of the jc_docs tree with the drm-misc tree

2016-08-22 Thread Daniel Vetter
On Fri, Aug 19, 2016 at 11:50:09AM -0600, Jonathan Corbet wrote: > On Fri, 19 Aug 2016 11:52:15 +1000 > Stephen Rothwell wrote: > > > Today's linux-next merge of the jc_docs tree got a conflict in: > > > > Documentation/gpu/index.rst > > > > between commit: > > > > b754b35b089d ("vgaarbite

[PATCH v3 1/3] drm/atomic-helper: Add atomic_disable CRTC helper callback

2016-08-22 Thread Daniel Vetter
On Fri, Aug 19, 2016 at 05:36:57PM +0800, Liu Ying wrote: > Some display controllers need plane(s) to be disabled together with > the relevant CRTC, e.g., the IPUv3 display controller for imx-drm. > This patch adds atomic_disable CRTC helper callback so that > old_crtc_state(as a parameter of the c

[PATCH v3 3/3] drm/imx: Add active plane reconfiguration support

2016-08-22 Thread Daniel Vetter
On Fri, Aug 19, 2016 at 05:36:59PM +0800, Liu Ying wrote: > We don't support configuring active plane on-the-fly for imx-drm. > The relevant CRTC should be disabled before the plane configuration. > Of course, the plane itself should be disabled as well. > > This patch adds active plane reconfigur

[PATCH] reservation: fix small comment typo

2016-08-22 Thread Daniel Vetter
On Fri, Aug 19, 2016 at 04:55:34PM -0400, Rob Clark wrote: > Signed-off-by: Rob Clark > --- > drivers/dma-buf/reservation.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/dma-buf/reservation.c b/drivers/dma-buf/reservation.c > index b528edb..1461b51 100644 > ---

[PATCH 1/1] drm: avoid exposing kernel stack in compat_drm_getstats

2016-08-22 Thread Daniel Vetter
On Sun, Aug 21, 2016 at 07:56:19PM +0200, Heinrich Schuchardt wrote: > The C standard does not specify the size of the integer used > to store an enum. Hence in structure drm_stats32_t alignment > bytes may exist. > > To avoid exposing bytes from the kernel stack it is > necessary to initialize va

[PATCH] drm/gma500: dont expose bytes from kernel stack

2016-08-22 Thread Daniel Vetter
On Sun, Aug 21, 2016 at 08:39:38PM +0200, Heinrich Schuchardt wrote: > Components m1, m2, p2, dot, vco of variable clock should be > initialized to avoid bytes from the kernel stack to be > exposed. > > Signed-off-by: Heinrich Schuchardt Might be a silly question, but where exactly would we expo

[PATCH v3 1/3] drm/atomic-helper: Add atomic_disable CRTC helper callback

2016-08-22 Thread Ying Liu
On Mon, Aug 22, 2016 at 3:01 PM, Daniel Vetter wrote: > On Fri, Aug 19, 2016 at 05:36:57PM +0800, Liu Ying wrote: >> Some display controllers need plane(s) to be disabled together with >> the relevant CRTC, e.g., the IPUv3 display controller for imx-drm. >> This patch adds atomic_disable CRTC help

[PATCH v3 3/3] drm/imx: Add active plane reconfiguration support

2016-08-22 Thread Ying Liu
Hi Daniel, On Mon, Aug 22, 2016 at 3:20 PM, Daniel Vetter wrote: > On Fri, Aug 19, 2016 at 05:36:59PM +0800, Liu Ying wrote: >> We don't support configuring active plane on-the-fly for imx-drm. >> The relevant CRTC should be disabled before the plane configuration. >> Of course, the plane itself

[PATCH v3 3/3] drm/imx: Add active plane reconfiguration support

2016-08-22 Thread Daniel Vetter
On Mon, Aug 22, 2016 at 9:43 AM, Ying Liu wrote: >>> + >>> + /* >>> + * The relevant plane's ->atomic_check callback may set >>> + * crtc_state->mode_changed to be true when the active >>> + * plane needs to be reconfigured. In this case and only >>> + * this case, active_

[PATCH v3 1/3] drm/atomic-helper: Add atomic_disable CRTC helper callback

2016-08-22 Thread Daniel Vetter
On Mon, Aug 22, 2016 at 9:37 AM, Ying Liu wrote: >> kernel-doc is a bit lacking compared to the one for @disable. And I think >> on top of that it should explain better the difference with @disable (and >> @disable should reference @atomic_disable too). > > Will improve the kernel-doc in the next

[PATCH v7 2/8] clk: rockchip: rk3399: add SCLK_DDRCLK ID for ddrc

2016-08-22 Thread Lin Huang
Signed-off-by: Lin Huang --- Changes in v7: -None Changes in v6: -None Changes in v5: -None Changes in v4: -None Changes in v3: -None Changes in v2: -None Changes in v1: -None include/dt-bindings/clock/rk3399-cru.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/clo

[PATCH v7 3/8] clk: rockchip: rk3399: add ddrc clock support

2016-08-22 Thread Lin Huang
add ddrc clock setting, so we can do ddr frequency scaling on rk3399 platform in future. Signed-off-by: Lin Huang --- Changes in v7: - change SCLK_DDRC name from clk_ddrc to sclk_ddrc Changes in v6: - None Changes in v5: - fit for the ddr type Changes in v4: - None Changes in v3: - None Chan

[PATCH v7 4/8] Documentation: bindings: add dt documentation for dfi controller

2016-08-22 Thread Lin Huang
This patch adds the documentation for rockchip dfi devfreq-event driver. Signed-off-by: Lin Huang --- Changes in v7: -None Changes in v6: -None Changes in v5: -None Changes in v4: -None Changes in v3: -None Changes in v2: -None Changes in v1: -None .../bindings/devfreq/event/rockchip-dfi.

[PATCH] drm/doc: Document uapi requirements in DRM

2016-08-22 Thread Daniel Vetter
Everyone knows them, except all the new folks joining from the ARM side haven't lived through all the pain of the past years and are entirely surprised when I raise this. Definitely time to document this. Last time this was a big discussion was about 6 years ago, when qcom tried to land a kernel d

[PATCH v7 0/8] rk3399 support ddr frequency scaling

2016-08-22 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 v7 1/8] clk: rockchip: add new clock-type for the ddrclk

2016-08-22 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 --- Changes in v7: - add rockchip_ddrclk_sip_ops so we can distinguish other

[PATCH v7 5/8] PM / devfreq: event: support rockchip dfi controller

2016-08-22 Thread Lin Huang
on rk3399 platform, there is dfi conroller can monitor ddr load, base on this result, we can do ddr freqency scaling. Signed-off-by: Lin Huang Acked-by: Chanwoo Choi --- Changes in v7: -access need to *4 to get right DDR loading Changes in v6: -None Changes in v5: -None Changes in v4: -None

[PATCH v7 6/8] Documentation: bindings: add dt documentation for rk3399 dmc

2016-08-22 Thread Lin Huang
This patch adds the documentation for rockchip rk3399 dmc driver. Signed-off-by: Lin Huang --- Changes in v7: -None Changes in v6: -Add more detail in Documentation Changes in v5: -None Changes in v4: -None Changes in v3: -None Changes in v2: -None Changes in v1: -None .../devicetree/bind

[PATCH v7 7/8] PM / devfreq: rockchip: add devfreq driver for rk3399 dmc

2016-08-22 Thread Lin Huang
base on dfi result, we do ddr frequency scaling, register dmc driver to devfreq framework, and use simple-ondemand policy. Signed-off-by: Lin Huang Reviewed-by: Chanwoo Choi --- Changes in v7: - remove a blank line Changes in v6: - fix some nit suggest by Chanwoo Choi Changes in v5: - improve

[PATCH v7 8/8] drm/rockchip: Add dmc notifier in vop driver

2016-08-22 Thread Lin Huang
when in ddr frequency scaling process, vop can not do enable or disable operation, since in dcf we check vop clock to see whether vop work. If vop work, dcf do ddr frequency scaling when vop in vblank status, and we need to read vop register to check whether vop go into vblank status. If vop not wo

[PATCH 1/1] drm/amdgpu/gmc7: remove dead code

2016-08-22 Thread Christian König
Am 21.08.2016 um 20:06 schrieb Heinrich Schuchardt: > In an if block for (running == 0) running cannot be non-zero. > > Signed-off-by: Heinrich Schuchardt The following patches are all Reviewed-by: Christian König : [PATCH 1/1] drm/amdgpu/gmc7: remove dead code [PATCH 1/1] drm/amdgpu/gmc8: rem

[PATCH v3 3/3] drm/imx: Add active plane reconfiguration support

2016-08-22 Thread Ying Liu
On Mon, Aug 22, 2016 at 3:53 PM, Daniel Vetter wrote: > On Mon, Aug 22, 2016 at 9:43 AM, Ying Liu wrote: + + /* + * The relevant plane's ->atomic_check callback may set + * crtc_state->mode_changed to be true when the active + * plane needs to be reconf

[PATCH v12 2/7] drm/i915/skl: Add support for the SAGV, fix underrun hangs

2016-08-22 Thread Maarten Lankhorst
Op 18-08-16 om 16:05 schreef Lyude Paul: > On Thu, 2016-08-18 at 09:39 +0200, Maarten Lankhorst wrote: >> Hey, >> >> Op 17-08-16 om 21:55 schreef Lyude: >>> Since the watermark calculations for Skylake are still broken, we're apt >>> to hitting underruns very easily under multi-monitor configuratio

[PATCH 1/1] drm: avoid exposing kernel stack in compat_drm_getstats

2016-08-22 Thread Jani Nikula
On Mon, 22 Aug 2016, Daniel Vetter wrote: > On Sun, Aug 21, 2016 at 07:56:19PM +0200, Heinrich Schuchardt wrote: >> The C standard does not specify the size of the integer used >> to store an enum. Hence in structure drm_stats32_t alignment >> bytes may exist. >> >> To avoid exposing bytes from t

[PATCH] drm/gma500: dont expose bytes from kernel stack

2016-08-22 Thread Jani Nikula
On Sun, 21 Aug 2016, Heinrich Schuchardt wrote: > Components m1, m2, p2, dot, vco of variable clock should be > initialized to avoid bytes from the kernel stack to be > exposed. > > Signed-off-by: Heinrich Schuchardt > --- > drivers/gpu/drm/gma500/oaktrail_crtc.c | 1 + > 1 file changed, 1 inser

[PATCH 1/1] drm/gma500: dont expose stack, mrst_lvds_find_best_pll

2016-08-22 Thread Jani Nikula
On Sun, 21 Aug 2016, Heinrich Schuchardt wrote: > All components of variable clock should be initialized > to avoid bytes from the kernel stack to be exposed. > > Reported-by: Joe Perches > Signed-off-by: Heinrich Schuchardt > --- > drivers/gpu/drm/gma500/oaktrail_crtc.c | 1 + > 1 file changed

[RFC] Using C99 stdint vs kernel __uX types in kernel drmUAPI (was Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from ")

2016-08-22 Thread Emil Velikov
On 20 August 2016 at 23:31, Rob Clark wrote: > On Sat, Aug 20, 2016 at 1:58 PM, Mikko Rapeli wrote: >> Cc'ing lkml too. >> >> On Fri, Aug 19, 2016 at 11:54:21PM +0100, Emil Velikov wrote: >>> Story time: >>> I was dreaming of a day were we can stop installing these headers, >>> thus making deprec

[RFC] Using C99 stdint vs kernel __uX types in kernel drmUAPI (was Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from ")

2016-08-22 Thread Christian König
Am 22.08.2016 um 10:48 schrieb Emil Velikov: > > Although last time around people leaned towards the __uX types, if we > have a consensus amongst drm (kernel) developers about using stdint > ones everything should be fine. > We just need a handful of acks from the different maintainers. For the re

[PATCH] drm/gma500: dont expose bytes from kernel stack

2016-08-22 Thread One Thousand Gnomes
On Mon, 22 Aug 2016 09:29:17 +0200 Daniel Vetter wrote: > On Sun, Aug 21, 2016 at 08:39:38PM +0200, Heinrich Schuchardt wrote: > > Components m1, m2, p2, dot, vco of variable clock should be > > initialized to avoid bytes from the kernel stack to be > > exposed. > > > > Signed-off-by: Heinrich S

[PATCH 3/3] drm/etnaviv: remove unneeded variable initialization

2016-08-22 Thread Lucas Stach
Am Sonntag, den 21.08.2016, 19:32 -0300 schrieb Fabio Estevam: > There is no need to initialize variable 'err' with 0 because it will > be properly assigned later on. > > Signed-off-by: Fabio Estevam > --- > drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 2 +- > 1 file changed, 1 insertion(+), 1 delet

[RFC 1/2] drm: add support for framebuffer processors

2016-08-22 Thread Marek Szyprowski
This patch extends DRM API with generic support for hardware modules, which can be used for processing image data from the one memory buffer to another. Typical memory-to-memory operations are: rotation, scaling, colour space conversion or mix of them. I named such hardware modules a framebuffer pr

[RFC 2/2] drm/exynos: register rotator as fbproc instead of custom ipp framework

2016-08-22 Thread Marek Szyprowski
This is a quick conversion of Exynos DRM rotator driver from Exynos IPP framework to generic DRM FBProc API to demonstrate how to use it from the driver side. Not-for-merge-yet: the code of the driver must be cleaned up first, because its internals still depends on Exynos IPP structures. Signed-o

[RFC libdrm] add support for framebuffer processor (fbproc) objects

2016-08-22 Thread Marek Szyprowski
This patch extends DRM API with generic support for hardware modules, which can be used for processing image data from the one memory buffer to another. Typical memory-to-memory operations are: rotation, scaling, colour space conversion or mix of them. I named such hardware modules a framebuffer pr

[RFC 0/2] New feature: Framebuffer processors

2016-08-22 Thread Marek Szyprowski
Dear all, This is the initial proposal for extending DRM API with generic support for hardware modules, which can be used for processing image data from the one memory buffer to another. Typical memory-to-memory operations are: rotation, scaling, colour space conversion or mix of them. In this pro

[RFC code example] example code for testing fbproc drivers

2016-08-22 Thread Marek Szyprowski
This is simple example how DRM FBProc API can be used from userspace. The code allocates 2 dumb framebuffers, fill first with test pattern and then performs 180 degree rotation of the image data. TODO: add code to release all allocated resources Signed-off-by: Marek Szyprowski --- rotate.c | 33

[RFC 0/2] New feature: Framebuffer processors

2016-08-22 Thread Tobias Jakobi
Hey Marek, I had a quick look at the series and I really like the new approach. I was wondering about the following though. If I understand this correctly I can only perform m2m operations on buffers which are registered as framebuffers. Is this possible to weaken that requirements such that arbi

[RFC] Using C99 stdint vs kernel __uX types in kernel drmUAPI (was Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from ")

2016-08-22 Thread Mikko Rapeli
On Mon, Aug 22, 2016 at 09:48:10AM +0100, Emil Velikov wrote: > On 20 August 2016 at 23:31, Rob Clark wrote: > > On Sat, Aug 20, 2016 at 1:58 PM, Mikko Rapeli > > wrote: > >> Cc'ing lkml too. > >> > >> On Fri, Aug 19, 2016 at 11:54:21PM +0100, Emil Velikov wrote: > >>> Story time: > >>> I was dr

[RFC 0/2] New feature: Framebuffer processors

2016-08-22 Thread Christian König
Am 22.08.2016 um 11:44 schrieb Marek Szyprowski: > Dear all, > > This is the initial proposal for extending DRM API with generic support for > hardware modules, which can be used for processing image data from the one > memory buffer to another. Typical memory-to-memory operations are: > rotation,

[RFC] Using C99 stdint vs kernel __uX types in kernel drmUAPI (was Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from ")

2016-08-22 Thread Rob Clark
On Mon, Aug 22, 2016 at 4:48 AM, Emil Velikov wrote: > On 20 August 2016 at 23:31, Rob Clark wrote: >> On Sat, Aug 20, 2016 at 1:58 PM, Mikko Rapeli wrote: >>> Cc'ing lkml too. >>> >>> On Fri, Aug 19, 2016 at 11:54:21PM +0100, Emil Velikov wrote: Story time: I was dreaming of a day we

[RFC 0/2] New feature: Framebuffer processors

2016-08-22 Thread Marek Szyprowski
Dear Tobias On 2016-08-22 12:07, Tobias Jakobi wrote: > Hey Marek, > > I had a quick look at the series and I really like the new approach. > > I was wondering about the following though. If I understand this > correctly I can only perform m2m operations on buffers which are > registered as frame

[PATCH 01/18] drm/etnaviv: reset GPU when coming back from suspend

2016-08-22 Thread Lucas Stach
The GPU may still keep its state when in suspend, which breaks the assumption that the hardware is in a clean state before the init routine runs. Make sure to reset the GPU when coming back from suspend, so this assumption is validated. Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etna

[PATCH 04/18] drm/etnaviv: rename etnaviv_iommu_domain_restore to etnaviv_iommuv1_restore

2016-08-22 Thread Lucas Stach
This function has external visibility and only handles the Vivant IOMMU version 1. Rename to make this more clear and allow a clear separation of the different IOMMU versions. Also drop the domain parameter, as we can infer it from the GPU we are dealing with. Signed-off-by: Lucas Stach --- dri

[PATCH 00/18] drm/etnaviv: MMUv2 and new hardware support

2016-08-22 Thread Lucas Stach
Hi all, this series adds support for the new MMU version 2, found on newer Vivante cores. The new MMU provides full isolation, with no way for the GPU to bypass it. This may enable optimizations like skipping commandstream validation later on. For now we stick with a single address space for all c

[PATCH 03/18] drm/etnaviv: only check if the cmdbuf is inside the linear window on MMUv1

2016-08-22 Thread Lucas Stach
There is no linear window on MMUv2 and the FE can access the full 4GB address space either directly (as long as the MMU isn't configured) or through the MMU, once it is up. Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(

[PATCH 02/18] drm/etnaviv: only try to use the linear window on MMUv1

2016-08-22 Thread Lucas Stach
As the comment above the code states, the linear window is only available on MMUv1. Don't try to use it on MMUv2. Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_mmu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_mmu.c b/dr

[PATCH 07/18] drm/etnaviv: move IOMMU domain allocation into etnaviv MMU

2016-08-22 Thread Lucas Stach
The GPU code doesn't need to deal with the IOMMU directly, instead it can all be hidden behind the etnaviv mmu interface. Move the last remaining part into etnaviv mmu. Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 33 +++--- drivers/gpu/drm/

[PATCH 06/18] drm/etnaviv: indirect IOMMU restore through etnaviv MMU

2016-08-22 Thread Lucas Stach
So we can call the v2 restore code once it is there. Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 2 +- drivers/gpu/drm/etnaviv/etnaviv_mmu.c | 9 + drivers/gpu/drm/etnaviv/etnaviv_mmu.h | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/drive

[PATCH 10/18] drm/etnaviv: split out wait for gpu idle

2016-08-22 Thread Lucas Stach
Split out into a new externally visible function, as the IOMMUv2 code needs this functionality, too. Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 40 +++ drivers/gpu/drm/etnaviv/etnaviv_gpu.h | 1 + 2 files changed, 23 insertions(+), 18

[PATCH 12/18] drm/etnaviv: split out iova search and MMU reaping logic

2016-08-22 Thread Lucas Stach
With MMUv2 the command buffers need to be mapped through the MMU. Split out the iova search and MMU reaping logic so it can be reused for the cmdbuf mapping, where no GEM object is involved. Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_mmu.c | 62 +--

[PATCH 11/18] drm/etnaviv: split out FE start

2016-08-22 Thread Lucas Stach
Split out into a new externally visible function, as the IOMMUv2 code needs this functionality, too. Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 15 ++- drivers/gpu/drm/etnaviv/etnaviv_gpu.h | 1 + 2 files changed, 11 insertions(+), 5 deletions(-) diff --

[PATCH 13/18] drm/etnaviv: map cmdbuf through MMU on version 2

2016-08-22 Thread Lucas Stach
With MMUv2 all buffers need to be mapped through the MMU once it is enabled. Align the buffer size to 4K, as the MMU is only able to map page aligned buffers. Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 4 drivers/gpu/drm/etnaviv/etnaviv_gpu.h | 2 ++ drivers/gp

[PATCH 15/18] drm/etnaviv: add flushing logic for MMUv2

2016-08-22 Thread Lucas Stach
Flushing works differently on MMUv2, in that it's only necessary to set a single bit in the control register to flush all translation units. A semaphore stall then makes sure that the flush has propagated properly. Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_buffer.c | 31

[PATCH 18/18] drm/etnaviv: fix up model and revision for GC2000+

2016-08-22 Thread Lucas Stach
GC2000+ on the i.MX6QP is just a re-branded GC3000, lets call it by its real name to avoid confusion in other parts of the driver. Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnavi

[PATCH 05/18] drm/etnaviv: move linear window setup into etnaviv_iommuv1_restore

2016-08-22 Thread Lucas Stach
It is only relevant for the V1 MMU, so we should not do this in the common code. Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 9 + drivers/gpu/drm/etnaviv/etnaviv_iommu.c | 7 +++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/d

[PATCH 14/18] drm/etnaviv: add function to construct MMUv2 init buffer

2016-08-22 Thread Lucas Stach
Both the safe/scratch address and the master TLB address are per pipe with the CPU mapped registers not properly propagating to the different translation units. The only way to correctly configure all translation units is to have a command stream snipped executed by the FE, before any other execut

[PATCH 08/18] drm/etnaviv: remove unused iommu_v2 header

2016-08-22 Thread Lucas Stach
This has been there from the original merge, but has never been used. Get rid of it. Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_iommu_v2.h | 25 - 1 file changed, 25 deletions(-) delete mode 100644 drivers/gpu/drm/etnaviv/etnaviv_iommu_v2.h diff --gi

[PATCH 09/18] drm/etnaviv: move gpu_va() to etnaviv mmu

2016-08-22 Thread Lucas Stach
The GPU virtual address for the command buffers differs depending on the IOMMU version. Move the calculation of the iova into etnaviv mmu, to enable proper dispatch. Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_buffer.c | 16 ++-- drivers/gpu/drm/etnaviv/etnaviv_gpu

[PATCH 16/18] drm/etnaviv: handle MMU exception in IRQ handler

2016-08-22 Thread Lucas Stach
Bit 30 of the interrupt status signals an MMU exception. Handle this condition properly and dump some useful registers. Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 12 drivers/gpu/drm/etnaviv/state_hi.xml.h | 9 + 2 files changed, 17 insertions(+

[PATCH 17/18] drm/etnaviv: implement IOMMUv2 translation

2016-08-22 Thread Lucas Stach
All other parts are now in place, so implement the actual translation step and hook it up, so the driver claims support for cores with the new MMU. Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_iommu.h| 3 +- drivers/gpu/drm/etnaviv/etnaviv_iommu_v2.c | 255 +++

[PATCH v12 4/7] drm/i915/skl: Update plane watermarks atomically during plane updates

2016-08-22 Thread Maarten Lankhorst
Op 17-08-16 om 21:55 schreef Lyude: > Thanks to Ville for suggesting this as a potential solution to pipe > underruns on Skylake. > > On Skylake all of the registers for configuring planes, including the > registers for configuring their watermarks, are double buffered. New > values written to them

[RFC 0/2] New feature: Framebuffer processors

2016-08-22 Thread Tobias Jakobi
Hello Marek, Marek Szyprowski wrote: > Dear Tobias > > > On 2016-08-22 12:07, Tobias Jakobi wrote: >> Hey Marek, >> >> I had a quick look at the series and I really like the new approach. >> >> I was wondering about the following though. If I understand this >> correctly I can only perform m2m o

[Bug 153121] UVD not responding, trying to reset the VCPU, ATI Mobility Radeon HD 5650

2016-08-22 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=153121 --- Comment #32 from Kontantin Ivanov --- Created attachment 229671 --> https://bugzilla.kernel.org/attachment.cgi?id=229671&action=edit 4.8.0-040800rc3 dmesg yet another dmesg for 4.8.0-rc3 -- You are receiving this mail because: You are wa

[Bug 153121] UVD not responding, trying to reset the VCPU, ATI Mobility Radeon HD 5650

2016-08-22 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=153121 --- Comment #33 from Kontantin Ivanov --- Created attachment 229681 --> https://bugzilla.kernel.org/attachment.cgi?id=229681&action=edit 4.8.0-040800rc3 Xorg.0.log yet another Xorg.0.log (4.8.0-rc3) -- You are receiving this mail because: Yo

[PATCH 01/18] drm/etnaviv: reset GPU when coming back from suspend

2016-08-22 Thread Lucas Stach
Am Montag, den 22.08.2016, 12:20 +0100 schrieb Russell King - ARM Linux: > On Mon, Aug 22, 2016 at 01:00:55PM +0200, Lucas Stach wrote: > > The GPU may still keep its state when in suspend, which breaks the > > assumption that the hardware is in a clean state before the init > > routine runs. Make

[PATCH 03/18] drm/etnaviv: only check if the cmdbuf is inside the linear window on MMUv1

2016-08-22 Thread Lucas Stach
Am Montag, den 22.08.2016, 12:22 +0100 schrieb Russell King - ARM Linux: > On Mon, Aug 22, 2016 at 01:00:57PM +0200, Lucas Stach wrote: > > There is no linear window on MMUv2 and the FE can access the full 4GB > > address space either directly (as long as the MMU isn't configured) or > > through th

[Bug 97371] AMDGPU/Iceland amdgpu: failed testing IB on ring 9/10

2016-08-22 Thread bugzilla-dae...@freedesktop.org
il because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160822/2aee8c0a/attachment.html>

[PATCH 01/18] drm/etnaviv: reset GPU when coming back from suspend

2016-08-22 Thread Lucas Stach
Am Montag, den 22.08.2016, 13:27 +0100 schrieb Russell King - ARM Linux: > On Mon, Aug 22, 2016 at 02:15:25PM +0200, Lucas Stach wrote: > > Am Montag, den 22.08.2016, 12:20 +0100 schrieb Russell King - ARM Linux: > > > On Mon, Aug 22, 2016 at 01:00:55PM +0200, Lucas Stach wrote: > > > > The GPU may

[PATCH 1/1] drm/gma500: dont expose stack, mrst_lvds_find_best_pll

2016-08-22 Thread kbuild test robot
Hi Heinrich, [auto build test ERROR on drm/drm-next] [also build test ERROR on v4.8-rc3 next-20160822] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to rec

[PATCH -next] drm/i915: Fix non static symbol warning

2016-08-22 Thread Jani Nikula
On Sun, 21 Aug 2016, Wei Yongjun wrote: > From: Wei Yongjun > > Fixes the following sparse warning: > > drivers/gpu/drm/i915/intel_hotplug.c:480:6: warning: > symbol 'i915_hpd_poll_init_work' was not declared. Should it be static? > > Also move the '{' to new line. Thanks for the patch, but we'

[PATCH v2 4/7] drm/bridge: Add RGB to VGA bridge support

2016-08-22 Thread Maxime Ripard
and Kernel engineering http://free-electrons.com -- 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/20160822/846b3b46/attachment.sig>

[PATCH] drm/gma500: dont expose bytes from kernel stack

2016-08-22 Thread kbuild test robot
Hi Heinrich, [auto build test ERROR on drm/drm-next] [also build test ERROR on v4.8-rc3 next-20160822] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to rec

[PATCH 01/18] drm/etnaviv: reset GPU when coming back from suspend

2016-08-22 Thread Russell King - ARM Linux
On Mon, Aug 22, 2016 at 01:00:55PM +0200, Lucas Stach wrote: > The GPU may still keep its state when in suspend, which breaks the > assumption that the hardware is in a clean state before the init > routine runs. Make sure to reset the GPU when coming back from > suspend, so this assumption is vali

[PATCH 01/18] drm/etnaviv: reset GPU when coming back from suspend

2016-08-22 Thread Russell King - ARM Linux
On Mon, Aug 22, 2016 at 02:15:25PM +0200, Lucas Stach wrote: > Am Montag, den 22.08.2016, 12:20 +0100 schrieb Russell King - ARM Linux: > > On Mon, Aug 22, 2016 at 01:00:55PM +0200, Lucas Stach wrote: > > > The GPU may still keep its state when in suspend, which breaks the > > > assumption that the

[PATCH v2] drm/fsl-dcu: Implement gamma_lut atomic crtc properties

2016-08-22 Thread Meng Yi
Hi Stefan, What do you think about this patch for gamma correction. I see many people approach gamma correction this way. Do you have any comments? Best Regards, Meng > +static void fsl_crtc_gamma_set(struct drm_crtc *crtc, struct drm_color_lut > *lut, > +

[PATCH] drm/doc: Document uapi requirements in DRM

2016-08-22 Thread Jani Nikula
On Mon, 22 Aug 2016, Daniel Vetter wrote: > Everyone knows them, except all the new folks joining from the ARM > side haven't lived through all the pain of the past years and are > entirely surprised when I raise this. Definitely time to document > this. > > Last time this was a big discussion was

[8086:0416] i915 Inability to drive internal (eDP) panel since 4.7 final

2016-08-22 Thread Tony Vroon
tps://lists.freedesktop.org/archives/dri-devel/attachments/20160822/a0b6e532/attachment-0001.sig>

[PATCH 03/18] drm/etnaviv: only check if the cmdbuf is inside the linear window on MMUv1

2016-08-22 Thread Russell King - ARM Linux
On Mon, Aug 22, 2016 at 01:00:57PM +0200, Lucas Stach wrote: > There is no linear window on MMUv2 and the FE can access the full 4GB > address space either directly (as long as the MMU isn't configured) or > through the MMU, once it is up. > > Signed-off-by: Lucas Stach > --- > drivers/gpu/drm/e

[RFC] Using C99 stdint vs kernel __uX types in kernel drmUAPI (was Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from ")

2016-08-22 Thread Daniel Vetter
On Mon, Aug 22, 2016 at 12:38 PM, Rob Clark wrote: >> That said, _note_ that some applications are built with -C89 -pedantic >> [1] which means that using stdint.h may or may not work as expected. >> So we'll want a __STDC_VESION__ check + #error in case of pre-C99 ? >> If the affected programs ar

[PATCH v3 3/3] drm/imx: Add active plane reconfiguration support

2016-08-22 Thread Daniel Vetter
On Mon, Aug 22, 2016 at 04:23:36PM +0800, Ying Liu wrote: > On Mon, Aug 22, 2016 at 3:53 PM, Daniel Vetter wrote: > > On Mon, Aug 22, 2016 at 9:43 AM, Ying Liu wrote: > + > + /* > + * The relevant plane's ->atomic_check callback may set > + * crtc_state->mode_cha

[RFC 0/2] New feature: Framebuffer processors

2016-08-22 Thread Daniel Vetter
On Mon, Aug 22, 2016 at 11:59:24AM +0200, Christian König wrote: > Am 22.08.2016 um 11:44 schrieb Marek Szyprowski: > > Dear all, > > > > This is the initial proposal for extending DRM API with generic support for > > hardware modules, which can be used for processing image data from the one > >

[RFC] Using C99 stdint vs kernel __uX types in kernel drmUAPI (was Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from ")

2016-08-22 Thread Emil Velikov
On 22 August 2016 at 15:38, Daniel Vetter wrote: > On Mon, Aug 22, 2016 at 12:38 PM, Rob Clark wrote: >>> That said, _note_ that some applications are built with -C89 -pedantic >>> [1] which means that using stdint.h may or may not work as expected. >>> So we'll want a __STDC_VESION__ check + #er

[PATCH v2 0/2] doc: dma-buf: sphinx conversion

2016-08-22 Thread Sumit Semwal
Convert dma-buf documentation over to sphinx. While at that, convert dma-buf-sharing.txt as well, and make it the dma-buf API guide. There is no content change yet; only format conversion and creation of some hyperlinks. v2: Address review comments from Jonathan Corbet and Markus Heiser. Sumit

[PATCH v2 1/2] Documentation: move dma-buf documentation to rst

2016-08-22 Thread Sumit Semwal
Branch out dma-buf related documentation into its own rst file to allow adding it to the sphinx documentation generated. While at it, move dma-buf-sharing.txt into rst as the dma-buf guide too; adjust MAINTAINERS accordingly. v2: - Removed authorship as suggested by Jani, - Address review comment

[PATCH v2 2/2] Documentation/sphinx: link dma-buf rsts

2016-08-22 Thread Sumit Semwal
Include dma-buf sphinx documentation into top level index. Signed-off-by: Sumit Semwal --- Documentation/index.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/index.rst b/Documentation/index.rst index e0fc72963e87..8d05070122c2 100644 --- a/Documentation/index.rst +++ b/D

[RFC 0/2] New feature: Framebuffer processors

2016-08-22 Thread Rob Clark
On Mon, Aug 22, 2016 at 5:59 AM, Christian König wrote: > Am 22.08.2016 um 11:44 schrieb Marek Szyprowski: >> >> Dear all, >> >> This is the initial proposal for extending DRM API with generic support >> for >> hardware modules, which can be used for processing image data from the one >> memory b

[RFC 0/2] New feature: Framebuffer processors

2016-08-22 Thread Benjamin Gaignard
In STM SoC we have hardware block doing scaling/colorspace conversion, we have decide to use v4l2 mem2mem API for it: https://linuxtv.org/downloads/v4l-dvb-apis/selection-api.html the code is here: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/media/platform/sti/bdis

[PATCH 0/4] Backported vlv fixes for 4.7.y

2016-08-22 Thread Lyude
Hope this didn't take too long! Here's the backported versions of the patches you had trouble applying to stable. The patch for FBC won't be necessary as that is already present in 4.7.y. Cheers, Lyude Lyude (4): drm/i915/vlv: Make intel_crt_reset() per-encoder drm/i915/vlv: Reset the

[PATCH 1/4] drm/i915/vlv: Make intel_crt_reset() per-encoder

2016-08-22 Thread Lyude
This lets call intel_crt_reset() in contexts where IRQs are disabled and as such, can't hold the locks required to work with the connectors. Cc: stable at vger.kernel.org Cc: Ville Syrjälä Acked-by: Daniel Vetter Signed-off-by: Lyude --- drivers/gpu/drm/i915/intel_crt.c | 10 +- 1 fi

[PATCH 2/4] drm/i915/vlv: Reset the ADPA in vlv_display_power_well_init()

2016-08-22 Thread Lyude
While VGA hotplugging worked(ish) before, it looks like that was mainly because we'd unintentionally enable it in valleyview_crt_detect_hotplug() when we did a force trigger. This doesn't work reliably enough because whenever the display powerwell on vlv gets disabled, the values set in VLV_ADPA ge

[PATCH 3/4] drm/i915/vlv: Disable HPD in valleyview_crt_detect_hotplug()

2016-08-22 Thread Lyude
One of the things preventing us from using polling is the fact that calling valleyview_crt_detect_hotplug() when there's a VGA cable connected results in sending another hotplug. With polling enabled when HPD is disabled, this results in a scenario like this: - We enable power wells and reset the

[PATCH 4/4] drm/i915: Enable polling when we don't have hpd

2016-08-22 Thread Lyude
Unfortunately, there's two situations where we lose hpd right now: - Runtime suspend - When we've shut off all of the power wells on Valleyview/Cherryview While it would be nice if this didn't cause issues, this has the ability to get us in some awkward states where a user won't be able to get t

[RFC] Using C99 stdint vs kernel __uX types in kernel drmUAPI (was Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from ")

2016-08-22 Thread Daniel Vetter
On Mon, Aug 22, 2016 at 04:05:21PM +0100, Emil Velikov wrote: > On 22 August 2016 at 15:38, Daniel Vetter wrote: > > On Mon, Aug 22, 2016 at 12:38 PM, Rob Clark wrote: > >>> That said, _note_ that some applications are built with -C89 -pedantic > >>> [1] which means that using stdint.h may or may

[Bug 95306] Random Blank(black) screens on "Carrizo"

2016-08-22 Thread bugzilla-dae...@freedesktop.org
ng 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/20160822/08a6b961/attachment-0001.html>

[Bug 95306] Random Blank(black) screens on "Carrizo"

2016-08-22 Thread bugzilla-dae...@freedesktop.org
to TTY and back. -- 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/20160822/d6c63e21/attachment.html>

[Bug 95306] Random Blank(black) screens on "Carrizo"

2016-08-22 Thread bugzilla-dae...@freedesktop.org
is 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/20160822/2f5f165c/attachment.html>

  1   2   >