[PATCH] drm/amd/amdkfd: Fix kernel panic when reset failed and been triggered again

2021-11-14 Thread shaoyunl
In SRIOV configuration, the reset may failed to bring asic back to normal but stop cpsch already been called, the start_cpsch will not be called since there is no resume in this case. When reset been triggered again, driver should avoid to do uninitialization again. Signed-off-by: shaoyunl --

[PATCH] drm/amd/amdkfd: Fix kernel panic when reset failed and been triggered again

2021-11-14 Thread shaoyunl
In SRIOV configuration, the reset may failed to bring asic back to normal but stop cpsch already been called, the start_cpsch will not be called since there is no resume in this case. When reset been triggered again, driver should avoid to do uninitialization again. Signed-off-by: shaoyunl --

RE: [PATCH] drm/amd/pm: avoid duplicate powergate/ungate setting

2021-11-14 Thread Quan, Evan
[AMD Official Use Only] > -Original Message- > From: Lazar, Lijo > Sent: Friday, November 12, 2021 4:46 PM > To: Quan, Evan ; amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander ; Borislav Petkov > > Subject: Re: [PATCH] drm/amd/pm: avoid duplicate powergate/ungate > setting > > >

[PATCH V3] drm/amd/pm: avoid duplicate powergate/ungate setting

2021-11-14 Thread Evan Quan
Just bail out if the target IP block is already in the desired powergate/ungate state. This can avoid some duplicate settings which sometimes may cause unexpected issues. Link: https://lore.kernel.org/all/yv81vidwqlwva...@zn.tnic/ Change-Id: I66346c69f121df0f5ee20182451313ae4fda2d04 Signed-off-by

Re: [PATCH V3] drm/amd/pm: avoid duplicate powergate/ungate setting

2021-11-14 Thread Lazar, Lijo
On 11/15/2021 8:21 AM, Evan Quan wrote: Just bail out if the target IP block is already in the desired powergate/ungate state. This can avoid some duplicate settings which sometimes may cause unexpected issues. Link: https://lore.kernel.org/all/yv81vidwqlwva...@zn.tnic/ Change-Id: I66346c69f

Re: Questions about KMS flip

2021-11-14 Thread Christian König
Am 12.11.21 um 17:10 schrieb Michel Dänzer: On 2021-11-12 16:03, Christian König wrote: Am 12.11.21 um 15:30 schrieb Michel Dänzer: On 2021-11-12 15:29, Michel Dänzer wrote: On 2021-11-12 13:47, Christian König wrote: Anyway this unfortunately turned out to be work for Harray and Nicholas. In

[PATCH] drm/amd/pm: Remove artificial freq level on Navi1x

2021-11-14 Thread Lijo Lazar
Print Navi1x fine grained clocks in a consistent manner with other SOCs. Don't show aritificial DPM level when the current clock equals min or max. Signed-off-by: Lijo Lazar --- drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) d

RE: [PATCH V3] drm/amd/pm: avoid duplicate powergate/ungate setting

2021-11-14 Thread Quan, Evan
[AMD Official Use Only] > -Original Message- > From: Lazar, Lijo > Sent: Monday, November 15, 2021 12:34 PM > To: Quan, Evan ; amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander ; Borislav Petkov > > Subject: Re: [PATCH V3] drm/amd/pm: avoid duplicate powergate/ungate > setting >

Re: [PATCH] drm/amdgpu: always reset the asic in suspend (v2)

2021-11-14 Thread Lazar, Lijo
On 11/12/2021 9:55 PM, Alex Deucher wrote: If the platform suspend happens to fail and the power rail is not turned off, the GPU will be in an unknown state on resume, so reset the asic so that it will be in a known good state on resume even if the platform suspend failed. Any more backgrou