]> git.itanic.dy.fi Git - linux-stable/commit
drm/amdgpu/gfx9: move update_spm_vmid() out of rlc_init()
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Jul 2023 22:13:43 +0000 (18:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Jul 2023 14:57:15 +0000 (10:57 -0400)
commit08b6e1725dd44be584c55fce1bdc9fe7b4510a49
treead7dd2cd0ae553f3f3b388e2990cd92049737fe0
parent6dda3f18bdbdc4a836980b31fdb711019a340f97
drm/amdgpu/gfx9: move update_spm_vmid() out of rlc_init()

rlc_init() is part of sw_init() so it should not touch hardware.
Additionally, calling the rlc update_spm_vmid() callback
directly invokes a gfx on/off cycle which could result in
powergating being enabled before hw init is complete.  Split
update_spm_vmid() into an internal implementation for local
use without gfxoff interaction and then the rlc callback
which includes gfxoff handling.  lbpw_init also touches
hardware so mvoe that to rlc_resume as well.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c