[PATCH xf86-video-amdgpu] Pass pitch from drmmode_crtc_scanout_allocate to drmmode_create_bo_pixmap

2017-01-06 Thread Michel Dänzer
From: Michel Dänzer Mostly to align with radeon commit ea30d856ba5e7274c8ea499293b8b0e721b8e082, but also gets rid of a gbm_bo_get_stride call. Signed-off-by: Michel Dänzer --- src/drmmode_display.c | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/sr

[PATCH 2/8] drm/amd/display: Fix misleading indentation bug in link_encoder

2017-01-06 Thread Harry Wentland
Change-Id: Ib5b1446544a388d769cd5e614949693a61d960cf Signed-off-by: Harry Wentland Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c b/dri

[PATCH 1/8] drm/amd/display: Remove unused function in gamma_calcs

2017-01-06 Thread Harry Wentland
Change-Id: I80cd95f412679f56ecc71a8c13f62e7da88912f9 Signed-off-by: Harry Wentland Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/calcs/gamma_calcs.c | 39 -- 1 file changed, 39 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/calcs/gamma_calcs.c b/driv

[PATCH 4/8] drm/amd/display: Fix wrong index bug in set_avi_info_frame

2017-01-06 Thread Harry Wentland
Change-Id: I55fbea6bedae383d9ba50b02d30b25e7c09ff9d9 Signed-off-by: Harry Wentland Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/

[PATCH 3/8] drm/amd/display: Fix warnings in DC

2017-01-06 Thread Harry Wentland
Change-Id: I4adb6f7c439b9d3bba581d5c4abbfd1a4b1c1fba Signed-off-by: Harry Wentland Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 9 - drivers/gpu/drm/amd/display/dc/dce/dce_opp.c| 6 -- drivers/gpu/drm/amd/display/dc/dce110

[PATCH 7/8] drm/amd/display: remove HDMI deep color debug flag

2017-01-06 Thread Harry Wentland
From: Tony Cheng Change-Id: I509f7524c9e6dd35521b500cf6b52a9be2743f95 Signed-off-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dc.h | 1 - drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c | 3 --- 2 files changed, 4 deletions(-) diff --git a

[PATCH 5/8] drm/amd/display: Check hdr support before setting.

2017-01-06 Thread Harry Wentland
From: Yongqiang Sun In case of programing info frame to some monitors don't support HDR, it will result in black screen or corruption when unplug monitor. By checking hdr flag to avoid unnecessary setting for monitors don't support HDR. Change-Id: Ic01b8b888ab6402d6c53c37a9ab9cccd64787b0d Signed

[PATCH 6/8] drm/amd/display: fix Infoframe byte 28-31 doesn't get written out to register

2017-01-06 Thread Harry Wentland
From: Tony Cheng Change-Id: I9b38e1b564392ccb2d329401e16543265f11d125 Signed-off-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c | 4 ++-- drivers/gpu/drm/amd/display/dc/inc/hw/stream_encoder.h | 2 +- 2 files changed, 3 insertions(+), 3 del

[PATCH 8/8] drm/amd/display: Don't fail validation for SIGNAL_TYPE_VIRTUAL

2017-01-06 Thread Harry Wentland
From: Yongqiang Sun Change-Id: Ic8c814fcb8a18aaf34b8da87abbcc8529b6cb02e Signed-off-by: Yongqiang Sun Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c

[PATCH 0/8] DC Patches Jan 6, 2017

2017-01-06 Thread Harry Wentland
* warning fixes * small cleanups * minor fixes Harry Wentland (4): drm/amd/display: Remove unused function in gamma_calcs drm/amd/display: Fix misleading indentation bug in link_encoder drm/amd/display: Fix warnings in DC drm/amd/display: Fix wrong index bug in set_avi_info_frame Tony Che

[pull] radeon and amdgpu drm-fixes-4.10

2017-01-06 Thread Alex Deucher
Hi Dave, Fixes for 4.10: - Polaris 12 support - Add new amd-gfx mailing list to MAINTAINERS file - UVD clockgating fix - SI dpm fixes The following changes since commit 4a401ceeef7bf3bc55f5e913cbf19d6038cf83c6: Merge tag 'drm-intel-next-fixes-2016-12-22' of git://anongit.freedesktop.org/git/d

RE: [PATCH xf86-video-ati] Pass pitch from drmmode_crtc_scanout_allocate to drmmode_create_bo_pixmap

2017-01-06 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Michel Dänzer > Sent: Friday, January 06, 2017 3:37 AM > To: amd-gfx@lists.freedesktop.org > Subject: [PATCH xf86-video-ati] Pass pitch from > drmmode_crtc_scanout_allocate to drmmode_create_b

RE: [PART1 PATCH v2 2/8] drm/amdgpu: add parse clock gating state

2017-01-06 Thread Deucher, Alexander
> -Original Message- > From: Huang Rui [mailto:ray.hu...@amd.com] > Sent: Friday, January 06, 2017 2:46 AM > To: Deucher, Alexander; amd-gfx@lists.freedesktop.org > Cc: Zhu, Rex; Mao, David; Fu, Ping; Zhang, Hawking; Kuehling, Felix; Huang, > Ray; William Lewis > Subject: [PART1 PATCH v2 2/

Re: [PATCH 01/10] drm/radeon/si: load special ucode for certain MC configs

2017-01-06 Thread Edward O'Callaghan
On 01/06/2017 05:10 AM, Alex Deucher wrote: > Required for certain MC configs. > > Signed-off-by: Alex Deucher > --- > drivers/gpu/drm/radeon/si.c | 11 ++- > 1 file changed, 10 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/radeon/si.c b/drivers/gpu/drm/radeon/si.c > i

amd-gfx@lists.freedesktop.org

2017-01-06 Thread StDenis, Tom
There's already the adev->pm.mutex which is held while gating/ungating blocks. There's no need for a second mutex right? Tom From: amd-gfx on behalf of Christian König Sent: Friday, January 6, 2017 07:52 To: Huang, Ray; Deucher, Alexander; amd-gfx@lists.fre

amd-gfx@lists.freedesktop.org

2017-01-06 Thread StDenis, Tom
It was added late last year so that debugfs mmio could read vce/uvd registers without triggering a race condition between transitions. Cheers, Tom From: Koenig, Christian Sent: Friday, January 6, 2017 08:45 To: StDenis, Tom; Huang, Ray; Deucher, Alexander; amd

amd-gfx@lists.freedesktop.org

2017-01-06 Thread Christian König
Good point, I wasn't ware that the pm mutex still existed and is taken under all code flows. Christian. Am 06.01.2017 um 14:42 schrieb StDenis, Tom: There's already the adev->pm.mutex which is held while gating/ungating blocks. There's no need for a second mutex right? Tom ---

amd-gfx@lists.freedesktop.org

2017-01-06 Thread Christian König
Am 06.01.2017 um 11:51 schrieb Huang Rui: Signed-off-by: Huang Rui --- Changes from V2 -> V3: - add mutex to protect the is_powergated flag. --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++ drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c | 37 +-- drivers/gpu/drm/am

[PART1 PATCH v3 8/8] drm/amdgpu: add get clockgating_state method for vce v3

2017-01-06 Thread Huang Rui
Signed-off-by: Huang Rui --- Changes from V2 -> V3: - use mutex to protect the is_powergated flag. --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 44 +++ 2 files changed, 41 insertions(+), 4 deletions(-) diff --git a/dr

amd-gfx@lists.freedesktop.org

2017-01-06 Thread Huang Rui
Signed-off-by: Huang Rui --- Changes from V2 -> V3: - add mutex to protect the is_powergated flag. --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++ drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c | 37 +-- drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 37 ++

amd-gfx@lists.freedesktop.org

2017-01-06 Thread Huang Rui
On Fri, Jan 06, 2017 at 06:14:27PM +0800, Huang Rui wrote: > On Fri, Jan 06, 2017 at 10:52:25AM +0100, Christian König wrote: > > Am 06.01.2017 um 08:45 schrieb Huang Rui: > > >+static void uvd_v6_0_get_clockgating_state(void *handle, u32 *flags) > > >+{ > > >+ struct amdgpu_device *adev = (struct

amd-gfx@lists.freedesktop.org

2017-01-06 Thread Huang Rui
On Fri, Jan 06, 2017 at 10:52:25AM +0100, Christian König wrote: > Am 06.01.2017 um 08:45 schrieb Huang Rui: > >+static void uvd_v6_0_get_clockgating_state(void *handle, u32 *flags) > >+{ > >+struct amdgpu_device *adev = (struct amdgpu_device *)handle; > >+int data; > >+ > >+if (adev->u

amd-gfx@lists.freedesktop.org

2017-01-06 Thread Christian König
Am 06.01.2017 um 08:45 schrieb Huang Rui: Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c | 26 -- drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 26 -- 3 files changed, 49 insertions(+

[PATCH xf86-video-ati] Pass pitch from drmmode_crtc_scanout_allocate to drmmode_create_bo_pixmap

2017-01-06 Thread Michel Dänzer
From: Michel Dänzer radeon_bo_get_tiling can fail, e.g. for linear BOs. Fixes TearFree not working in those cases. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97873 Signed-off-by: Michel Dänzer --- src/drmmode_display.c | 24 +--- 1 file changed, 9 insertions(+)