]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: invalidate mmhub semaphore workaround in gmc9/gmc10
authorchangzhu <Changfeng.Zhu@amd.com>
Tue, 19 Nov 2019 03:13:29 +0000 (11:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 22 Nov 2019 19:55:19 +0000 (14:55 -0500)
commit1349c99dcdbd281d54945c8d7216a98addb6c83c
treec560b92f063d212f13ae9f534f644c1ed4e9a39d
parent3582284faba6726836d78fee84b6be75a3db73f1
drm/amdgpu: invalidate mmhub semaphore workaround in gmc9/gmc10

It may lose gpuvm invalidate acknowldege state across power-gating off
cycle. To avoid this issue in gmc9/gmc10 invalidation, add semaphore acquire
before invalidation and semaphore release after invalidation.

After adding semaphore acquire before invalidation, the semaphore
register become read-only if another process try to acquire semaphore.
Then it will not be able to release this semaphore. Then it may cause
deadlock problem. If this deadlock problem happens, it needs a semaphore
firmware fix.

Signed-off-by: changzhu <Changfeng.Zhu@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
drivers/gpu/drm/amd/amdgpu/soc15.h