aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c
diff options
context:
space:
mode:
authorHuang Rui <[email protected]>2020-03-09 18:52:06 +0000
committerAlex Deucher <[email protected]>2020-04-28 20:20:30 +0000
commitf77c9aff85caa9e9b0c2b6fc5be1fc2c76fe02b2 (patch)
tree52f0e76d85c682da0d83af922bf910ecb801a35c /drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c
parentdrm/amdgpu: Fine-grained TMZ support (diff)
downloadkernel-f77c9aff85caa9e9b0c2b6fc5be1fc2c76fe02b2.tar.gz
kernel-f77c9aff85caa9e9b0c2b6fc5be1fc2c76fe02b2.zip
drm/amdgpu: Fix per-IB secure flag GFX hang
Since commit "Move to a per-IB secure flag (TMZ)", we've been seeing hangs in GFX. We need to send FRAME CONTROL stop/start back-to-back, every time we flip the TMZ flag. That is, when we transition from TMZ to non-TMZ we have to send a stop with TMZ followed by a start with non-TMZ, and similarly for transitioning from non-TMZ into TMZ. This patch implements this, thus fixing the GFX hang. v1 -> v2: As suggested by Luben, and accept part of implemetation from this patch: - Put "secure" closed to the loop and use optimization - Change "secure" to bool again, and move "secure == -1" out of loop. v3: Small fixes/optimizations. Reported-and-Tested-by: Pierre-Eric Pelloux-Prayer <[email protected]> Signed-off-by: Huang Rui <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Luben Tuikov <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c')
0 files changed, 0 insertions, 0 deletions