drm/amdgpu: fix CG enabling hang with gfxoff enabled
After defer the execution of clockgating enabling, at that time, gfx already enter into "off" state. Howerver, clockgating enabling will use MMIO to access the gfx registers, then get the gfx hung. So here we should move the gfx powergating and gfxoff enabling behavior at the end of initialization behind clockgating. Signed-off-by: Huang Rui <ray.huang@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Cc: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Tento commit je obsažen v:
@@ -245,7 +245,7 @@ static int pp_set_powergating_state(void *handle,
|
||||
}
|
||||
|
||||
if (hwmgr->hwmgr_func->enable_per_cu_power_gating == NULL) {
|
||||
pr_info("%s was not implemented.\n", __func__);
|
||||
pr_debug("%s was not implemented.\n", __func__);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -313,7 +313,7 @@ static int smu10_disable_gfx_off(struct pp_hwmgr *hwmgr)
|
||||
|
||||
static int smu10_disable_dpm_tasks(struct pp_hwmgr *hwmgr)
|
||||
{
|
||||
return smu10_disable_gfx_off(hwmgr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int smu10_enable_gfx_off(struct pp_hwmgr *hwmgr)
|
||||
@@ -328,7 +328,7 @@ static int smu10_enable_gfx_off(struct pp_hwmgr *hwmgr)
|
||||
|
||||
static int smu10_enable_dpm_tasks(struct pp_hwmgr *hwmgr)
|
||||
{
|
||||
return smu10_enable_gfx_off(hwmgr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int smu10_gfx_off_control(struct pp_hwmgr *hwmgr, bool enable)
|
||||
|
Odkázat v novém úkolu
Zablokovat Uživatele