]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite1618961a691668039623289d21f750a3c062e7f
tree74c9ebd2be6292d80d2bc916a04d22365163244e
parentc5a23adc93cec2701b05b64e36133d6a5ac7365b
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