[PATCH] drm/amd/display: check if modeset is required before adding plane

2017-10-26 Thread S, Shirish
From: Shirish S Adding affected planes without checking if modeset is requested from the user space causes performance regression in video p/b scenarios when full screen p/b is not composited. Hence add a check before adding a plane as affected. bug: https://bugs.freedesktop.org/show_bug.cgi

Re: [PATCH 00/29] DC Linux Patches Oct 25, 2017

2017-10-26 Thread Andrey Grodzovsky
Patches 1,2,6,24-26,28 are Reviewed-by: Andrey Grodzovsky On 2017-10-26 02:34 PM, Harry Wentland wrote: * Remove annoyning Freesync warning * Fix Freesync and amd-stg which was broken in last set of patches * Fix issue with plugging in displays during S3 * Bunch of generic fixes found

Re: [PATCH 03/29] drm/amd/display: Complete TODO item: use new DRM iterator

2017-10-26 Thread Andrey Grodzovsky
On 2017-10-26 02:34 PM, Harry Wentland wrote: From: "Leo (Sunpeng) Li" Abandon new_crtcs array and use for_each_new iterator to acquire new crtcs. Signed-off-by: Leo (Sunpeng) Li Reviewed-by: Harry Wentland --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 36 +-

Re: [PATCH 27/29] drm/amd/display: Explicitly call ->reset for each object

2017-10-26 Thread Andrey Grodzovsky
On 2017-10-26 02:35 PM, Harry Wentland wrote: We need to avoid calling reset after detection. Could you explain why please ? This is much simpler if we call ->reset on the connector right after creation but before detection. To stay consistent call ->reset on every other object as well afte

Re: [pull] amdgpu dc drm-next-4.15-dc

2017-10-26 Thread Dieter Nützel
Am 26.10.2017 19:26, schrieb Alex Deucher: On Thu, Oct 26, 2017 at 10:10 AM, Dieter Nützel wrote: Hello Alex & Rex, any progress? The 'screen blank' (monitor standby mode) is really annoying. Does this patch help? https://cgit.freedesktop.org/~agd5f/linux/commit/?h=amd-staging-drm-next&id=dd

[PATCH libdrm 2/2] amdgpu: Add VMID reservation per GPU context test.

2017-10-26 Thread Andrey Grodzovsky
The test will Reserve a VMID, submit a command and unreserve the VMID. Change-Id: I2e5320b2c3044d1375bc5b18d936d3c0637f5daa Signed-off-by: Andrey Grodzovsky --- tests/amdgpu/Makefile.am | 3 +- tests/amdgpu/amdgpu_test.c | 7 +++ tests/amdgpu/amdgpu_test.h | 15 + tests/amdgpu/vm_test

[PATCH libdrm 1/2] amdgpu: Add wrappers for AMDGPU_VM IOCTL.

2017-10-26 Thread Andrey Grodzovsky
Change-Id: I7eafb85c1ca96d6d255f0183bed0ce4129746fe0 Signed-off-by: Andrey Grodzovsky --- amdgpu/Makefile.sources | 1 + amdgpu/amdgpu.h | 20 +++ amdgpu/amdgpu_vm.c | 52 + 3 files changed, 73 insertions(+) create mod

RE: [PATCH 5/8] drm/amdgpu: don't use ttm_bo_move_ttm in amdgpu_ttm_bind

2017-10-26 Thread Deucher, Alexander
> -Original Message- > From: Christian König [mailto:ckoenig.leichtzumer...@gmail.com] > Sent: Thursday, October 26, 2017 2:39 PM > To: Deucher, Alexander; 'Christian König'; amd-gfx@lists.freedesktop.org > Subject: Re: [PATCH 5/8] drm/amdgpu: don't use ttm_bo_move_ttm in > amdgpu_ttm_bind

Re: [PATCH v2] drm/amd/display: Don't print error when bo_pin is interrupted

2017-10-26 Thread Andrey Grodzovsky
On 2017-10-26 04:08 PM, Harry Wentland wrote: v2: Also don't print for ERESTARTSYS or EAGAIN Signed-off-by: Harry Wentland Reviewed-by: Andrey Grodzovsky Thanks, Andrey --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH v2] drm/amd/display: Don't print error when bo_pin is interrupted

2017-10-26 Thread Harry Wentland
v2: Also don't print for ERESTARTSYS or EAGAIN Signed-off-by: Harry Wentland --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdg

Re: [PATCH] drm/amd/display: Don't print error when bo_pin is interrupted

2017-10-26 Thread Andrey Grodzovsky
On 2017-10-26 03:42 PM, Harry Wentland wrote: Signed-off-by: Harry Wentland --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/

Re: [PATCH 4/8] drm/amdgpu: don't wait interruptible while binding GART space

2017-10-26 Thread Harry Wentland
On 2017-10-26 02:56 PM, Andrey Grodzovsky wrote: > > > On 2017-10-26 02:43 PM, Christian König wrote: >> Am 26.10.2017 um 19:56 schrieb Deucher, Alexander: -Original Message- From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of Christian König Sent

[PATCH] drm/amd/display: Don't print error when bo_pin is interrupted

2017-10-26 Thread Harry Wentland
Signed-off-by: Harry Wentland --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index cf15701f208d..5593ff05d2a6 100644

Re: [PATCH 4/8] drm/amdgpu: don't wait interruptible while binding GART space

2017-10-26 Thread Andrey Grodzovsky
On 2017-10-26 02:43 PM, Christian König wrote: Am 26.10.2017 um 19:56 schrieb Deucher, Alexander: -Original Message- From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of Christian König Sent: Thursday, October 26, 2017 12:06 PM To: amd-gfx@lists.freedesktop.org Sub

Re: [PATCH 02/16] drm/amdkfd: Don't dereference kfd_process.mm

2017-10-26 Thread Felix Kuehling
On 2017-10-26 02:11 PM, Christian König wrote: > But now reading the patch there is something else which I stumbled over: >> -    WARN_ON(atomic_read(&p->mm->mm_count) <= 0); >> +    /* >> + * This cast should be safe here because we grabbed a >> + * reference to the mm in kfd_process_notif

Re: [PATCH 4/8] drm/amdgpu: don't wait interruptible while binding GART space

2017-10-26 Thread Christian König
Am 26.10.2017 um 19:56 schrieb Deucher, Alexander: -Original Message- From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of Christian König Sent: Thursday, October 26, 2017 12:06 PM To: amd-gfx@lists.freedesktop.org Subject: [PATCH 4/8] drm/amdgpu: don't wait interrupt

Re: [PATCH 2/8] drm/amdgpu: always bind pinned BOs

2017-10-26 Thread Christian König
Am 26.10.2017 um 19:55 schrieb Deucher, Alexander: -Original Message- From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of Christian König Sent: Thursday, October 26, 2017 12:06 PM To: amd-gfx@lists.freedesktop.org Subject: [PATCH 2/8] drm/amdgpu: always bind pinned B

Re: [PATCH 5/8] drm/amdgpu: don't use ttm_bo_move_ttm in amdgpu_ttm_bind

2017-10-26 Thread Christian König
Am 26.10.2017 um 20:11 schrieb Deucher, Alexander: -Original Message- From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of Christian König Sent: Thursday, October 26, 2017 12:06 PM To: amd-gfx@lists.freedesktop.org Subject: [PATCH 5/8] drm/amdgpu: don't use ttm_bo_mov

[PATCH 24/29] drm/amd/display: Move conn_state to header

2017-10-26 Thread Harry Wentland
We'll need it in amdgpu_dm_mst_types.c as well. Signed-off-by: Harry Wentland Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 13 - drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 12 2 files changed, 12 inse

[PATCH 27/29] drm/amd/display: Explicitly call ->reset for each object

2017-10-26 Thread Harry Wentland
We need to avoid calling reset after detection. This is much simpler if we call ->reset on the connector right after creation but before detection. To stay consistent call ->reset on every other object as well after creation. Signed-off-by: Harry Wentland Reviewed-by: Roman Li Acked-by: Harry We

[PATCH 20/29] drm/amd/display: Don't reject 3D timings

2017-10-26 Thread Harry Wentland
From: Andrew Jiang Signed-off-by: Andrew Jiang Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_timing_generator.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_timing_generator.c b/drivers/gpu/

[PATCH 28/29] drm/amd/display: Don't access legacy properties

2017-10-26 Thread Harry Wentland
We're an atomic driver and shouldn't access legacy properties. Doing so will only scare users with stack traces. Instead save the prop in the state and access it directly. Much simpler. Signed-off-by: Harry Wentland Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/disp

[PATCH 25/29] drm/amd/display: Use plane pointer to avoid line breaks

2017-10-26 Thread Harry Wentland
Signed-off-by: Harry Wentland Reviewed-by: Mikita Lipski Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/d

[PATCH 29/29] drm/amd/display: Fix Freesync enablement

2017-10-26 Thread Harry Wentland
With our recent change to save Freesync properties as part of the atomic state we removed the call to enable freesync when the property is being set. Apparently that is still needed. Signed-off-by: Harry Wentland Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/

[PATCH 23/29] drm/amd/display: dal 3.1.10

2017-10-26 Thread Harry Wentland
From: Tony Cheng Signed-off-by: Tony Cheng Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h index e39371797eeb

[PATCH 26/29] drm/amd/display: Use single fail label in init_drm_dev

2017-10-26 Thread Harry Wentland
No need for multiple labels as kfree will always do a NULL check before freeing the memory. Signed-off-by: Harry Wentland Reviewed-by: Bhawanpreet Lakha Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 24 +++ 1 file

[PATCH 22/29] drm/amd/display: correct DP is always in full range or bt609

2017-10-26 Thread Harry Wentland
From: Charlene Liu Signed-off-by: Charlene Liu Reviewed-by: Krunoslav Kovac Acked-by: Harry Wentland --- .../drm/amd/display/dc/dce/dce_stream_encoder.c| 25 +++--- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_stream

[PATCH 19/29] drm/amd/display: fix bug from last commit for hubbub

2017-10-26 Thread Harry Wentland
From: Yue Hin Lau fix memory leak Signed-off-by: Yue Hin Lau Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resour

[PATCH 15/29] drm/amd/display: Handle as MST first and then DP dongle if sink support both

2017-10-26 Thread Harry Wentland
From: Hersen Wu Signed-off-by: Hersen Wu Reviewed-by: Tony Cheng Reviewed-by: Wenjing Liu Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 32 +-- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/amd/display/d

[PATCH 18/29] drm/amd/display: Move hdr_metadata from plane to stream

2017-10-26 Thread Harry Wentland
From: Anthony Koo Need to move HDR Metadata from Surface to Stream since there is only one infoframe possible per stream. Also cleaning up some duplicate definitions. Signed-off-by: Anthony Koo Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc.c

[PATCH 14/29] drm/amd/display: fix split recout calculation

2017-10-26 Thread Harry Wentland
From: Dmytro Laktyushkin Recout split rounding code was wrong Signed-off-by: Dmytro Laktyushkin Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/a

[PATCH 21/29] drm/amd/display: fix split recout offset

2017-10-26 Thread Harry Wentland
From: Dmytro Laktyushkin Previous recout calculation fix changed recout size rounding and affected the offset when it should not have Signed-off-by: Dmytro Laktyushkin Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 4 ++-- 1 file chan

[PATCH 12/29] drm/amd/display: Added disconnect dchub.

2017-10-26 Thread Harry Wentland
From: Yongqiang Sun Add disable ttu interface to dcn10, when remove mpc, disable ttu as well. Signed-off-by: Yongqiang Sun Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c | 9 + drivers/gpu/drm/amd/display/dc/dcn10/dcn10_

[PATCH 04/29] drm/amd/display: Add timing validation against dongle cap

2017-10-26 Thread Harry Wentland
From: Eric Yang For DP active dongles, the dpcd dongle caps are read but not used to validate mode timing. This addresses this. In particular, this change fixes light up on the HDMI 4k TV connected through DP active dongle. Since the 4k TV defaults to YCbCr420, which the dongle don't support. T

[PATCH 09/29] drm/amd/display: Not reset front end when program back end.

2017-10-26 Thread Harry Wentland
From: Yongqiang Sun Since front end is programmed before back end programming, no need to reset front end in back end programming. Signed-off-by: Yongqiang Sun Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc.c | 3 +- .../drm/amd/display

[PATCH 05/29] drm/amd/display: create new files for hubbub functions

2017-10-26 Thread Harry Wentland
From: Yue Hin Lau moving hubbub functions to new file Signed-off-by: Yue Hin Lau Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dcn10/Makefile | 3 +- .../gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.c| 494 + .../gpu/drm/amd/d

[PATCH 06/29] drm/amd/display: Fix S3 topology change

2017-10-26 Thread Harry Wentland
From: Roman Li Clean fake sink flag on resume if real sink connected. Fixing S3 topology change problem like this: 1) x desktop with 1 or > displays 2) unplug display 3) suspend 4) replug same display 5) resume without this change replugged display doesn't light up Signed-off-by: Roman Li Revie

[PATCH 00/29] DC Linux Patches Oct 25, 2017

2017-10-26 Thread Harry Wentland
* Remove annoyning Freesync warning * Fix Freesync and amd-stg which was broken in last set of patches * Fix issue with plugging in displays during S3 * Bunch of generic fixes found during Raven bringup * Whole bunch of Raven fixes and work Andrew Jiang (3): drm/amd/display: Reject PPLib cl

[PATCH 03/29] drm/amd/display: Complete TODO item: use new DRM iterator

2017-10-26 Thread Harry Wentland
From: "Leo (Sunpeng) Li" Abandon new_crtcs array and use for_each_new iterator to acquire new crtcs. Signed-off-by: Leo (Sunpeng) Li Reviewed-by: Harry Wentland --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 36 +-- 1 file changed, 14 insertions(+), 22 deletions(-

[PATCH 08/29] drm/amd/display: Power down front end in init_hw.

2017-10-26 Thread Harry Wentland
From: Yongqiang Sun front end is initialized during init_hw, but not power gated. There are some left over valuse and will cause some diags test failed. Power gated all front end pipes will make sure every test has same starting point. Signed-off-by: Yongqiang Sun Reviewed-by: Tony Cheng Acked

[PATCH 17/29] drm/amd/display: Apply VQ adjustments in MPO case

2017-10-26 Thread Harry Wentland
From: SivapiriyanKumarasamy Signed-off-by: SivapiriyanKumarasamy Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc.c | 4 +- drivers/gpu/drm/amd/display/dc/dc.h| 7 ++ drivers/gpu/drm/amd/display/dc/dc_types.h | 5

[PATCH 16/29] drm/amd/display: create new structure for hubbub

2017-10-26 Thread Harry Wentland
From: Yue Hin Lau instantiating new structure hubbub in resource.c Signed-off-by: Yue Hin Lau Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- .../gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.c| 88 ++- .../gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.h| 162 ++

[PATCH 13/29] drm/amd/display: dal 3.1.09

2017-10-26 Thread Harry Wentland
From: Tony Cheng Signed-off-by: Tony Cheng Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h index 32d71ef20c67

[PATCH 10/29] drm/amd/display: dal 3.1.08

2017-10-26 Thread Harry Wentland
From: Tony Cheng Signed-off-by: Tony Cheng Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h index 9ca838b3c4d7

[PATCH 07/29] drm/amd/display: Reject PPLib clock values if they are invalid

2017-10-26 Thread Harry Wentland
From: Andrew Jiang We should be sticking with the default clock values if the values obtained from PPLib are bogus. Signed-off-by: Andrew Jiang Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c | 68 1 file changed,

[PATCH 11/29] drm/amd/display: Use constants from atom.h for HDMI caps read

2017-10-26 Thread Harry Wentland
From: Andrew Jiang Get rid of the constant we copied over before and just directly use the constants from the file. Signed-off-by: Andrew Jiang Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 6 +++--- 1 file changed, 3 insertions(+), 3 de

[PATCH 01/29] drm/amdgpu: Remove immutable flag from freesync_capable property

2017-10-26 Thread Harry Wentland
Atomic drivers should not use legacy properties but atomic properties don't support the immutable flag. Remove the immutable flag for now. This will be followed by a bunch of DC patches to start treating freesync_capable as an atomic property on a connector_state. Eventually we'll want to remove

[PATCH 02/29] drm/amd/display: Fix styling of freesync code in commit_tail

2017-10-26 Thread Harry Wentland
From: "Leo (Sunpeng) Li" For better readability. Signed-off-by: Leo (Sunpeng) Li Reviewed-by: Bhawanpreet Lakha Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/d

Re: [PATCH 02/16] drm/amdkfd: Don't dereference kfd_process.mm

2017-10-26 Thread Christian König
Am 26.10.2017 um 18:47 schrieb Felix Kuehling: On 2017-10-26 03:33 AM, Christian König wrote: Am 21.10.2017 um 02:23 schrieb Felix Kuehling: The kfd_process doesn't own a reference to the mm_struct, so it can disappear without warning even while the kfd_process still exists. In fact, the delaye

RE: [PATCH 5/8] drm/amdgpu: don't use ttm_bo_move_ttm in amdgpu_ttm_bind

2017-10-26 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Christian König > Sent: Thursday, October 26, 2017 12:06 PM > To: amd-gfx@lists.freedesktop.org > Subject: [PATCH 5/8] drm/amdgpu: don't use ttm_bo_move_ttm in > amdgpu_ttm_bind > > From: Chr

Re: [PATCH 6/8] drm/amd/display: enable GPU VM support

2017-10-26 Thread Andrey Grodzovsky
Reviewed-by: Andrey Grodzovsky On 2017-10-26 12:06 PM, Christian König wrote: From: Christian König Just set the bit so that DC does the hardware programming. Signed-off-by: Christian König --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 ++ 1 file changed, 2 insertions(+) dif

RE: [PATCH 8/8] drm/amdgpu: allow framebuffer in GART memory as well

2017-10-26 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Christian König > Sent: Thursday, October 26, 2017 12:06 PM > To: amd-gfx@lists.freedesktop.org > Subject: [PATCH 8/8] drm/amdgpu: allow framebuffer in GART memory as > well > > From: Christi

RE: [PATCH 7/8] drm/amdgpu: fix indentation in amdgpu_display.h

2017-10-26 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Christian König > Sent: Thursday, October 26, 2017 12:06 PM > To: amd-gfx@lists.freedesktop.org > Subject: [PATCH 7/8] drm/amdgpu: fix indentation in amdgpu_display.h > > From: Christian Köni

RE: [PATCH 6/8] drm/amd/display: enable GPU VM support

2017-10-26 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Christian König > Sent: Thursday, October 26, 2017 12:06 PM > To: amd-gfx@lists.freedesktop.org > Subject: [PATCH 6/8] drm/amd/display: enable GPU VM support > > From: Christian König > > J

RE: [PATCH 2/8] drm/amdgpu: always bind pinned BOs

2017-10-26 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Christian König > Sent: Thursday, October 26, 2017 12:06 PM > To: amd-gfx@lists.freedesktop.org > Subject: [PATCH 2/8] drm/amdgpu: always bind pinned BOs > > From: Christian König > > We al

RE: [PATCH 3/8] drm/amdgpu: fix pin domain compatibility check

2017-10-26 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Christian König > Sent: Thursday, October 26, 2017 12:06 PM > To: amd-gfx@lists.freedesktop.org > Subject: [PATCH 3/8] drm/amdgpu: fix pin domain compatibility check > > From: Christian König

RE: [PATCH 4/8] drm/amdgpu: don't wait interruptible while binding GART space

2017-10-26 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Christian König > Sent: Thursday, October 26, 2017 12:06 PM > To: amd-gfx@lists.freedesktop.org > Subject: [PATCH 4/8] drm/amdgpu: don't wait interruptible while binding > GART space > > From

RE: [PATCH 1/8] drm/amdgpu: use the actual placement for pin accounting

2017-10-26 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Christian König > Sent: Thursday, October 26, 2017 12:06 PM > To: amd-gfx@lists.freedesktop.org > Subject: [PATCH 1/8] drm/amdgpu: use the actual placement for pin > accounting > > From: Chri

Re: [pull] amdgpu dc drm-next-4.15-dc

2017-10-26 Thread Alex Deucher
On Thu, Oct 26, 2017 at 10:10 AM, Dieter Nützel wrote: > Hello Alex & Rex, > > any progress? > The 'screen blank' (monitor standby mode) is really annoying. Does this patch help? https://cgit.freedesktop.org/~agd5f/linux/commit/?h=amd-staging-drm-next&id=ddabbf65aae36e21b4c79354940f80eae6c36104

Re: Upstream repo for libhsakmt

2017-10-26 Thread Felix Kuehling
If a pull request would be a set of patches, that would be lots of patches. The freedesktop.org repository has an amd-staging branch that seems to be the closest to my WIP branch. The difference is 84 patches. Regards,   Felix On 2017-10-26 03:48 AM, Oded Gabbay wrote: > I have no problem. > Do

Re: [PATCH 02/16] drm/amdkfd: Don't dereference kfd_process.mm

2017-10-26 Thread Felix Kuehling
On 2017-10-26 03:33 AM, Christian König wrote: > Am 21.10.2017 um 02:23 schrieb Felix Kuehling: >> The kfd_process doesn't own a reference to the mm_struct, so it can >> disappear without warning even while the kfd_process still exists. >> In fact, the delayed kfd_process teardown is triggered by a

[PATCH 5/8] drm/amdgpu: don't use ttm_bo_move_ttm in amdgpu_ttm_bind

2017-10-26 Thread Christian König
From: Christian König Just unbind and rebind to force updates of the GART space. This prevents forcing the BO to be idle. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/dr

[PATCH 3/8] drm/amdgpu: fix pin domain compatibility check

2017-10-26 Thread Christian König
From: Christian König We need to test if any domain fits, not all of them. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/

[PATCH 6/8] drm/amd/display: enable GPU VM support

2017-10-26 Thread Christian König
From: Christian König Just set the bit so that DC does the hardware programming. Signed-off-by: Christian König --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/d

[PATCH 8/8] drm/amdgpu: allow framebuffer in GART memory as well

2017-10-26 Thread Christian König
From: Christian König On CZ and newer APUs we can pin the fb into GART as well as VRAM. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 13 - drivers/gpu/drm/amd/amdgpu/amdgpu_display.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c

[PATCH 7/8] drm/amdgpu: fix indentation in amdgpu_display.h

2017-10-26 Thread Christian König
From: Christian König That was somehow completely of. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_display.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_display

[PATCH 4/8] drm/amdgpu: don't wait interruptible while binding GART space

2017-10-26 Thread Christian König
From: Christian König Display can't seem to handle this correctly. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c i

[PATCH 2/8] drm/amdgpu: always bind pinned BOs

2017-10-26 Thread Christian König
From: Christian König We always need to bind pinned BOs, not just when the caller requested the address. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/a

[PATCH 1/8] drm/amdgpu: use the actual placement for pin accounting

2017-10-26 Thread Christian König
From: Christian König This allows us to specify multiple possible placements again. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgp

Re: [PATCH] drm/amd/display: Remove fb_location parameter from get_fb_info

2017-10-26 Thread Christian König
Am 26.10.2017 um 17:09 schrieb Michel Dänzer: From: Michel Dänzer It's dead code. Signed-off-by: Michel Dänzer Just wanted to do the same thing while working on GART scanout on CZ. Patch is Reviewed-by: Christian König . Christian. --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Re: [PATCH 1/3] amdgpu/dce: Use actual number of CRTCs and HPDs in set_irq_funcs

2017-10-26 Thread Christian König
Am 26.10.2017 um 16:46 schrieb Michel Dänzer: From: Michel Dänzer Hardcoding the maximum numbers could result in spurious error messages from the IRQ state callbacks, e.g. on Polaris 11/12: [drm:dce_v11_0_set_pageflip_irq_state [amdgpu]] *ERROR* invalid pageflip crtc 5 [drm:amdgpu_irq_disable_

RE: [PATCH 3/3] amdgpu: Remove AMDGPU_{HPD,CRTC_IRQ,PAGEFLIP_IRQ}_LAST

2017-10-26 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Michel Dänzer > Sent: Thursday, October 26, 2017 10:46 AM > To: amd-gfx@lists.freedesktop.org > Subject: [PATCH 3/3] amdgpu: Remove > AMDGPU_{HPD,CRTC_IRQ,PAGEFLIP_IRQ}_LAST > > From: Michel

Re: [PATCH 7/9] drm/amdgpu:block kms open during gpu_reset

2017-10-26 Thread Christian König
Am 26.10.2017 um 13:08 schrieb Liu, Monk: "Clear operation on the page table " is some kind of SDMA activity right? What if ASIC RESET from amd_gpu_recover() interrupted this activity in fly ??? I can't see any difference between the handling of existing VMs and new created ones. Either we ha

Re: [PATCH 1/7] amd/scheduler:imple job skip feature(v2)

2017-10-26 Thread Christian König
Unnecessary, we know that the scheduler is already awake because it is processing this function. [ml] WHAT ??? this wake_up operate on job_scheduled, like the one at the bottom of sched_main(), It is used to wake up the thread waiting in "sched_entity_fini" on this "sched->job_scheduled", I do

[PATCH] drm/amd/display: Remove fb_location parameter from get_fb_info

2017-10-26 Thread Michel Dänzer
From: Michel Dänzer It's dead code. Signed-off-by: Michel Dänzer --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 21 ++--- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amd

[PATCH 2/3] drm/amd/display: Use real number of CRTCs and HPDs in set_irq_funcs

2017-10-26 Thread Michel Dänzer
From: Michel Dänzer Corresponding to the previous non-DC change. Signed-off-by: Michel Dänzer --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ++- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c | 9 ++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/d

[PATCH 1/3] amdgpu/dce: Use actual number of CRTCs and HPDs in set_irq_funcs

2017-10-26 Thread Michel Dänzer
From: Michel Dänzer Hardcoding the maximum numbers could result in spurious error messages from the IRQ state callbacks, e.g. on Polaris 11/12: [drm:dce_v11_0_set_pageflip_irq_state [amdgpu]] *ERROR* invalid pageflip crtc 5 [drm:amdgpu_irq_disable_all [amdgpu]] *ERROR* error disabling interrupt

[PATCH 3/3] amdgpu: Remove AMDGPU_{HPD,CRTC_IRQ,PAGEFLIP_IRQ}_LAST

2017-10-26 Thread Michel Dänzer
From: Michel Dänzer Not used anymore. Signed-off-by: Michel Dänzer --- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h index 2b1f96ce2a04..4069a3b2f55f 100644 ---

Re: [pull] amdgpu dc drm-next-4.15-dc

2017-10-26 Thread Dieter Nützel
Hello Alex & Rex, any progress? The 'screen blank' (monitor standby mode) is really annoying. Thanks, Dieter Am 23.10.2017 03:03, schrieb Dieter Nützel: Am 22.10.2017 23:48, schrieb Dieter Nützel: Am 21.10.2017 23:22, schrieb Alex Deucher: Hi Dave, Last batch of new stuff for DC. Highlights

RE: [PATCH] drm/amd/powerplay: describe the PCIE link speed in right GT/s

2017-10-26 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Evan Quan > Sent: Thursday, October 26, 2017 5:36 AM > To: amd-gfx@lists.freedesktop.org > Cc: Quan, Evan > Subject: [PATCH] drm/amd/powerplay: describe the PCIE link speed in right > GT/s >

RE: [PATCH 1/7] amd/scheduler:imple job skip feature(v2)

2017-10-26 Thread Liu, Monk
The simple way I can think of to remove the @skip param for run_job is that we introduce a new member "skip" in sched_job, and remove fake_signal() function, So we always set "skip" in sched_job before run_job(), and in run_job() we skip the real ib_schedule if found job->skip == true, That way

RE: [PATCH 7/9] drm/amdgpu:block kms open during gpu_reset

2017-10-26 Thread Liu, Monk
"Clear operation on the page table " is some kind of SDMA activity right? What if ASIC RESET from amd_gpu_recover() interrupted this activity in fly ??? BR Monk -Original Message- From: Koenig, Christian Sent: 2017年10月26日 18:54 To: Liu, Monk ; amd-gfx@lists.freedesktop.org Subject: Re:

RE: [PATCH] drm/amd/display: assign fb_location only if bo is pinned

2017-10-26 Thread S, Shirish
I have reverted [PATCH 2/2] drm/amd/display: cleanup addReq and fix fb_location and applied [PATCH] drm/amd/display: fix high part address in dm_plane_helper_prepare_fb() onto amd-drm-staging kernel. Regards, Shirish S -Original Message- From: Michel Dänzer [mailto:mic...@daenzer.net

RE: [PATCH 1/7] amd/scheduler:imple job skip feature(v2)

2017-10-26 Thread Liu, Monk
> + dma_fence_set_error(&s_fence->finished, -ECANCELED); > + > + /* fake signaling the scheduled fence */ > + atomic_inc(&sched->hw_rq_count); > + amd_sched_fence_scheduled(s_fence); > + wake_up(&sched->job_scheduled); Unnecessary, we know that the scheduler is already awake be

Re: [PATCH 7/9] drm/amdgpu:block kms open during gpu_reset

2017-10-26 Thread Christian König
if we don't block device open while gpu doing recover, the vm init (SDMA working on page table creating) would be ruined by ASIC RESET That is not a problem at all. SDMA just does some clear operation on the page tables and those are either recovered from the shadow or run after the reset. Re

Re: [PATCH 1/7] amd/scheduler:imple job skip feature(v2)

2017-10-26 Thread Christian König
Am 26.10.2017 um 12:30 schrieb Monk Liu: jobs are skipped under two cases 1)when the entity behind this job marked guilty, the job poped from this entity's queue will be dropped in sched_main loop. 2)in job_recovery(), skip the scheduling job if its karma detected above limit, and also skipped a

[PATCH 4/7] drm/amdgpu:cleanup ucode_init_bo

2017-10-26 Thread Monk Liu
1,no sriov check since gpu recover is unified 2,need CPU_ACCESS_REQUIRED flag for VRAM if SRIOV because otherwise after following PIN the first allocated VRAM bo is wasted due to some TTM mgr reason. Change-Id: I4d029f2da8bb463942c7861d3e52f309bdba9576 Signed-off-by: Monk Liu --- drivers/gpu/drm

[PATCH 5/7] drm/amdgpu:block kms open during gpu_reset

2017-10-26 Thread Monk Liu
Change-Id: Ibdb0ea9e3769d572fbbc13bbf1ef73f1af2ab7be Signed-off-by: Monk Liu --- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c index 4a9f749..c155ce4 100644 --- a/dr

[PATCH 2/7] drm/amdgpu:implement new GPU recover(v3)

2017-10-26 Thread Monk Liu
1,new imple names amdgpu_gpu_recover which gives more hint on what it does compared with gpu_reset 2,gpu_recover unify bare-metal and SR-IOV, only the asic reset part is implemented differently 3,gpu_recover will increase hang job karma and mark its entity/context as guilty if exceeds limit V2:

[PATCH 7/7] drm/amdgpu:fix random missing of FLR NOTIFY

2017-10-26 Thread Monk Liu
Signed-off-by: Monk Liu --- drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c b/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c index f8522a0..a43cffb 100644 --- a/drivers/gpu/drm/amd/amdgpu/mxgpu

[PATCH 6/7] drm/amdgpu/sriov:fix memory leak in psp_load_fw

2017-10-26 Thread Monk Liu
for SR-IOV when doing gpu reset this routine shouldn't do resource allocating otherwise memory leak Change-Id: I25da3a5b475196c75c7e639adc40751754625968 Signed-off-by: Monk Liu --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 20 1 file changed, 12 insertions(+), 8 deletions(-)

[PATCH 1/7] amd/scheduler:imple job skip feature(v2)

2017-10-26 Thread Monk Liu
jobs are skipped under two cases 1)when the entity behind this job marked guilty, the job poped from this entity's queue will be dropped in sched_main loop. 2)in job_recovery(), skip the scheduling job if its karma detected above limit, and also skipped as well for other jobs sharing the same fenc

[PATCH 3/7] drm/amdgpu:cleanup in_sriov_reset and lock_reset

2017-10-26 Thread Monk Liu
since now gpu reset is unified with gpu_recover for both bare-metal and SR-IOV: 1)rename in_sriov_reset to in_gpu_reset 2)move lock_reset from adev->virt to adev Change-Id: I9f4dbab9a4c916fbc156f669824d15ddcd0f2322 Signed-off-by: Monk Liu --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 3 ++-

[PATCH 0/7] *** gpu recover patches series v2 ***

2017-10-26 Thread Monk Liu
v2 series: fixed some logic error in "imple job skip feature" merge two patches into "implement new GPU recover(v3)" Monk Liu (7): amd/scheduler:imple job skip feature(v2) drm/amdgpu:implement new GPU recover(v3) drm/amdgpu:cleanup in_sriov_reset and lock_reset drm/amdgpu:cleanup ucode_i

[PATCH] drm/amd/powerplay: describe the PCIE link speed in right GT/s

2017-10-26 Thread Evan Quan
Change-Id: Icfd2c50ce168d8ccf3cc329eb906a56bab0a8c1d Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/ci_dpm.c| 6 +++--- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 6 +++--- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 6 +++--- 3 files changed, 9 inserti

RE: [PATCH 7/9] drm/amdgpu:block kms open during gpu_reset

2017-10-26 Thread Liu, Monk
When amdgpu_gpu_recover() routine is in the fly, we shouldn't let UMD open our device, otherwise the VM init would be ruined by gpu_recover(). e.g. VM init need to create page table, but keep In mind that gpu_recover() calls ASIC RESET, if we don't block device open while gpu doing recover, th

Re: [PATCH 4/9] drm/amdgpu:replace deprecated gpu reset

2017-10-26 Thread Christian König
I spit the patch due to convenience for reviewing Thought so, but this way we can't see the delta for reviewing. Splitting up in multiple patches makes only sense if you can limit the patch to one component or functionality change at a time. Christian. Am 26.10.2017 um 10:13 schrieb Liu, Mon

RE: [PATCH 4/9] drm/amdgpu:replace deprecated gpu reset

2017-10-26 Thread Liu, Monk
Yeah I know I can squash them, I spit the patch due to convenience for reviewing -Original Message- From: Christian König [mailto:ckoenig.leichtzumer...@gmail.com] Sent: 2017年10月26日 15:13 To: Liu, Monk ; amd-gfx@lists.freedesktop.org Subject: Re: [PATCH 4/9] drm/amdgpu:replace deprecate

RE: [PATCH 2/9] amd/scheduler:imple job skip feature

2017-10-26 Thread Liu, Monk
Christian Looks something is misunderstanding in this patch: > - if (job->vram_lost_counter != atomic_read(&adev->vram_lost_counter)) { > + > + if (skip || job->vram_lost_counter != > atomic_read(&adev->vram_lost_counter)) { > + /* skip ib schedule if looks needed, and set err

Re: Upstream repo for libhsakmt

2017-10-26 Thread Oded Gabbay
I have no problem. Do you think you could send me a pull request ? In any case, we probably should add more people to the project's git access list. Oded On Thu, Oct 26, 2017 at 6:37 AM, Tom Stellard wrote: > On 10/24/2017 10:24 AM, Oded Gabbay wrote: >> Hi Tom, >> I have commit access. > > Wha

  1   2   >