[PATCH 5/5] drm/amdgpu: enable uvd mgcg for Fiji.

2016-11-08 Thread Rex Zhu
Change-Id: I96b937c8b97589d1f98a8351f3653b89163c84a0 Signed-off-by: Rex Zhu --- drivers/gpu/drm/amd/amdgpu/vi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c index a230b39..d09c25a 100644

[PATCH 3/5] drm/amdgpu: refine uvd 5.0 clock gate feature.

2016-11-08 Thread Rex Zhu
1. fix uvd cg status not correct. 2. fix uvd pg can't work on tonga. 3. enable uvd mgcg. Change-Id: Ia3911f2bd0f982e2fd00a9041ec03f47ab5338ed Signed-off-by: Rex Zhu Reviewed-by: Alex Deucher Reviewed-by: Tom St Denis ---

[PATCH 2/5] drm/amd/powerplay: partial revert commit 01b0e7fb1.

2016-11-08 Thread Rex Zhu
when uvd is idle, we gate uvd clock. and uvd is busy, we ungate uvd clock. Change-Id: Ic2fa6149389b0113faf36ec7aad857e77d01af33 Reviewed-by: Alex Deucher Signed-off-by: Rex Zhu --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c | 4 ++--

[PATCH 1/5] drm/amdgpu: not set bypass mode for uvd5.0/uvd6.0

2016-11-08 Thread Rex Zhu
Change-Id: I99b307d2026d6fec0b5b18349455df2c38d78c6a Signed-off-by: Rex Zhu Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c | 15 --- drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 18 ++ 2 files changed, 2

Re: [PATCH 1/3] drm/amd/amdgpu: add SI defines/registers

2016-11-08 Thread Christian König
Am 08.11.2016 um 22:02 schrieb Alex Deucher: From: Tom St Denis Add missing gca MMIO registers and defines necessary for the next patch which re-works a lot of gfx v6 to use the new SI headers. Signed-off-by: Tom St Denis Reviewed-by: Alex Deucher

[PATCH xf86-video-ati 1/2] Refactor radeon_mode_hotplug

2016-11-08 Thread Michel Dänzer
From: Michel Dänzer Preparation for the next change, no functional change intended. Signed-off-by: Michel Dänzer --- src/drmmode_display.c | 58 ++- 1 file changed, 34 insertions(+), 24

[PATCH xf86-video-ati 2/2] Use pRADEONEnt to find both screens of a GPU in radeon_mode_hotplug

2016-11-08 Thread Michel Dänzer
From: Michel Dänzer Fixes misbehaviour when hotplugging DisplayPort connectors on secondary GPUs. Fixes: c801f9f10a5d ("Handle Zaphod mode correctly in radeon_mode_hotplug") Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98626 Signed-off-by: Michel Dänzer

[PATCH xf86-video-ati] Reindent code in radeon_dri2_create_buffer2

2016-11-08 Thread Michel Dänzer
From: Michel Dänzer Fixes warning about misleading indentation from recent versions of gcc: ../../src/radeon_dri2.c: In function ‘radeon_dri2_create_buffer2’: ../../src/radeon_dri2.c:224:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if

[REGRESSION][drm-next-4.10-wip] commit 86f8c599b09c916f9aad30563271440dbd79213a breaks hibernation on AMDGPU CIK

2016-11-08 Thread Shawn Starr
Hello, I've bisected kernel and have found the regression that deadlocks GPU on hibernation. Bug https://bugs.freedesktop.org/show_bug.cgi?id=98513 [spstarr@segfault linux]$ git bisect bad 86f8c599b09c916f9aad30563271440dbd79213a is the first bad commit commit

[PATCH 1/3] drm/amd/amdgpu: add SI defines/registers

2016-11-08 Thread Alex Deucher
From: Tom St Denis Add missing gca MMIO registers and defines necessary for the next patch which re-works a lot of gfx v6 to use the new SI headers. Signed-off-by: Tom St Denis Reviewed-by: Alex Deucher Signed-off-by: Alex

[PATCH 3/3] drm/amd/amdgpu: add wave reader to gfx v6

2016-11-08 Thread Alex Deucher
From: Tom St Denis Add support for the debugfs wave reader. Signed-off-by: Tom St Denis Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 36

Re: [PATCH 1/2] drm/amdgpu: access stolen VRAM directly on KV/KB

2016-11-08 Thread Christian König
Am 08.11.2016 um 14:36 schrieb Deucher, Alexander: -Original Message- From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of Michel Dänzer Sent: Tuesday, November 08, 2016 4:37 AM To: Christian König Cc: amd-gfx@lists.freedesktop.org Subject: Re: [PATCH 1/2]

RE: [PATCH 1/2] drm/amdgpu: access stolen VRAM directly on KV/KB

2016-11-08 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Michel Dänzer > Sent: Tuesday, November 08, 2016 4:37 AM > To: Christian König > Cc: amd-gfx@lists.freedesktop.org > Subject: Re: [PATCH 1/2] drm/amdgpu: access stolen VRAM directly on >

Re: [PATCH] drm/amd/amdgpu : Fix NULL pointer comparison

2016-11-08 Thread Christian König
Am 08.11.2016 um 06:49 schrieb Ravikant Bijendra Sharma: From: Ravikant B Sharma Replace direct comparisons to NULL i.e. 'x == NULL' with '!x'. As per coding standard. Signed-off-by: Ravikant B Sharma Please stop CCing random people who

Re: [PATCH 1/2] drm/amdgpu: disable the VRAM manager on special placements v2

2016-11-08 Thread Christian König
Am 04.11.2016 um 12:00 schrieb Christian König: From: Christian König This disables the VRAM manager when a special placement is requested, otherwise we play ping/pong with the buffers on every command submission. v2: only check lpfn Signed-off-by: Christian König

Re: amdgpu: ratelimit on vm faults to avoid spaming console

2016-11-08 Thread Christian König
I would rather say that we need to add this to the per context lockup informations. Marek had a rather good start for this, but from the VM fault handler it is actually rather tricky to figure out reliable who caused it. Because of this we didn't followed this approach to the end.

Re: [PATCH 1/2] drm/amdgpu: access stolen VRAM directly on KV/KB

2016-11-08 Thread Michel Dänzer
On 08/11/16 06:23 PM, Christian König wrote: > Am 08.11.2016 um 08:31 schrieb Michel Dänzer: >> On 07/11/16 06:33 PM, Christian König wrote: >>> Am 07.11.2016 um 10:29 schrieb Michel Dänzer: On 07/11/16 06:21 PM, Christian König wrote: > From: Christian König

Re: [PATCH 1/2] drm/amdgpu: access stolen VRAM directly on KV/KB

2016-11-08 Thread Christian König
Am 08.11.2016 um 08:31 schrieb Michel Dänzer: On 07/11/16 06:33 PM, Christian König wrote: Am 07.11.2016 um 10:29 schrieb Michel Dänzer: On 07/11/16 06:21 PM, Christian König wrote: From: Christian König We don't need to use the PCI BAR on APUs. This allows us to

Re: [PATCH libdrm] amdgpu: add the function to get the marketing name (v3)

2016-11-08 Thread Michel Dänzer
On 08/11/16 01:02 AM, Emil Velikov wrote: > On 7 November 2016 at 11:43, Emil Velikov wrote: >> On 7 November 2016 at 09:09, Michel Dänzer wrote: >> >>> +static struct amdgpu_asic_id_table_t { >>> + uint32_t did; >>> + uint32_t rid; >>> +