linux/drivers/gpu/drm/amd
Huang Rui f77c9aff85 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 <pierre-eric.pelloux-prayer@amd.com>
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-04-28 16:20:30 -04:00
..
acp drm: amd/acp: fix broken menu structure 2020-03-13 11:52:35 -04:00
amdgpu drm/amdgpu: Fix per-IB secure flag GFX hang 2020-04-28 16:20:30 -04:00
amdkfd drm/amdkfd: Put ASIC revision into HSA capability 2020-04-28 11:04:56 -04:00
display drm/amd/display: Indicate use of TMZ buffers to DC 2020-04-28 16:20:29 -04:00
include drm/amd/powerplay: revise the way to retrieve the board parameters 2020-04-22 18:11:45 -04:00
powerplay drm/amd/powerplay: avoid using pm_en before it is initialized revised 2020-04-28 11:44:11 -04:00