Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: reconfigure spm golden settings on Navi1x after GFXOFF exit(v3)

On Navi1x, the SPM golden settings are lost after GFXOFF
enter/exit, so reconfigure the golden settings after GFXOFF
exit.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Tianci.Yin <tianci.yin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Tianci.Yin and committed by
Alex Deucher
425a78f4 d58fe3cf

+7 -1
+7 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
··· 560 560 if (enable && !adev->gfx.gfx_off_state && !adev->gfx.gfx_off_req_count) { 561 561 schedule_delayed_work(&adev->gfx.gfx_off_delay_work, GFX_OFF_DELAY_ENABLE); 562 562 } else if (!enable && adev->gfx.gfx_off_state) { 563 - if (!amdgpu_dpm_set_powergating_by_smu(adev, AMD_IP_BLOCK_TYPE_GFX, false)) 563 + if (!amdgpu_dpm_set_powergating_by_smu(adev, AMD_IP_BLOCK_TYPE_GFX, false)) { 564 564 adev->gfx.gfx_off_state = false; 565 + 566 + if (adev->gfx.funcs->init_spm_golden) { 567 + dev_dbg(adev->dev, "GFXOFF is disabled, re-init SPM golden settings\n"); 568 + amdgpu_gfx_init_spm_golden(adev); 569 + } 570 + } 565 571 } 566 572 567 573 mutex_unlock(&adev->gfx.gfx_off_mutex);