diff options
| author | 2016-07-15 15:57:13 +0800 | |
|---|---|---|
| committer | 2016-08-08 11:32:05 -0400 | |
| commit | 35d782feae7f0b817016315d8718a82c61968894 (patch) | |
| tree | 0e96ddedc96c8be182678c9965f33e0b05d0af3c /drivers/gpu/drm/amd/include/amd_shared.h | |
| parent | drm/amdgpu: add gfx8 pre soft reset (diff) | |
| download | linux-dev-35d782feae7f0b817016315d8718a82c61968894.tar.xz linux-dev-35d782feae7f0b817016315d8718a82c61968894.zip | |
drm/amdgpu: add amdgpu soft reset
Check gpu status first, if MC/VMC/DISPLAY hang, directly triger full reset.
If engine hangs, then triger engine soft reset, if soft reset fails, will
fallback to full reset.
Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/include/amd_shared.h')
| -rw-r--r-- | drivers/gpu/drm/amd/include/amd_shared.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/include/amd_shared.h b/drivers/gpu/drm/amd/include/amd_shared.h index 2a2a5aa39b99..db710418f35f 100644 --- a/drivers/gpu/drm/amd/include/amd_shared.h +++ b/drivers/gpu/drm/amd/include/amd_shared.h @@ -165,6 +165,8 @@ struct amd_ip_funcs { int (*pre_soft_reset)(void *handle); /* soft reset the IP block */ int (*soft_reset)(void *handle); + /* post soft reset the IP block */ + int (*post_soft_reset)(void *handle); /* enable/disable cg for the IP block */ int (*set_clockgating_state)(void *handle, enum amd_clockgating_state state); |
