drm/amdgpu/gfx10: move update_spm_vmid() out of rlc_init()
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Jul 2023 21:57:59 +0000 (17:57 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Jul 2023 14:57:22 +0000 (10:57 -0400)
commit95b88ea1af4b4c0de3f151347605dbc6734e6cb2
treea27fb466d180a01d50a5233357ab9ab39a0f2545
parent08b6e1725dd44be584c55fce1bdc9fe7b4510a49
drm/amdgpu/gfx10: 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.

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