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 22:56:53 +0000 (17:56 -0500)
commit17c65d6fca844ee72a651944d8ce721e9040bf70
tree74c9ebd2be6292d80d2bc916a04d22365163244e
parent791255ca9fbe38042cfd55df5deb116dc11fef18
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