OSDN Git Service

drm/amdgpu: correct the wrong cached state for GMC on PICASSO
authorEvan Quan <evan.quan@amd.com>
Mon, 13 Dec 2021 06:38:38 +0000 (14:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Dec 2021 21:09:31 +0000 (16:09 -0500)
commit17252701ecb5ef3bdfb912aae5a011f93978781a
tree5cfb7852e0da50a93ac58e1cddf18ce01f418ad7
parente0f943b4f9a366ac7f24fa3f0e52141178d4f1b5
drm/amdgpu: correct the wrong cached state for GMC on PICASSO

Pair the operations did in GMC ->hw_init and ->hw_fini. That
can help to maintain correct cached state for GMC and avoid
unintention gate operation dropping due to wrong cached state.

BugLink: https://gitlab.freedesktop.org/drm/amd/-/issues/1828
Signed-off-by: Evan Quan <evan.quan@amd.com>
Acked-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c
drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c