]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: initialize vm_inv_eng0_sem for gfxhub and mmhub
authorchangzhu <Changfeng.Zhu@amd.com>
Tue, 19 Nov 2019 02:18:39 +0000 (10:18 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 22 Nov 2019 19:55:19 +0000 (14:55 -0500)
commit3582284faba6726836d78fee84b6be75a3db73f1
tree9e7c8e146dcc8da7a8431969611cdb151ea2267b
parentd38e95f9805ba5c5eb98b15b5813ee4331714407
drm/amdgpu: initialize vm_inv_eng0_sem for gfxhub and mmhub

SW must acquire/release one of the vm_invalidate_eng*_sem around the
invalidation req/ack. Through this way,it can avoid losing invalidate
acknowledge state across power-gating off cycle.
To use vm_invalidate_eng*_sem, it needs to initialize
vm_invalidate_eng*_sem firstly.

Signed-off-by: changzhu <Changfeng.Zhu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c
drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c