drm/amdgpu: Restore HQD persistent state register
authorLijo Lazar <lijo.lazar@amd.com>
Tue, 25 Jul 2023 05:30:08 +0000 (11:00 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jul 2023 17:47:27 +0000 (13:47 -0400)
commitb5ac08806c07ab86645c6fbaa5832214c1d10e34
tree929f222f1185063a72e4d934cb5e8e2f63b37661
parent355da5d48e10620c52ef262bb857266e24b67be4
drm/amdgpu: Restore HQD persistent state register

On GFX v9.4.3, compute queue MQD is populated using the values in HQD
persistent state register. Hence don't clear the values on module
unload, instead restore it to the default reset value so that MQD is
initialized correctly during next module load. In particular, preload
flag needs to be set on compute queue MQD, otherwise it could cause
uninitialized values being used at device reset state resulting in EDC.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c