aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/include/amd_shared.h
diff options
context:
space:
mode:
authorChunming Zhou <[email protected]>2016-07-15 03:19:20 +0000
committerAlex Deucher <[email protected]>2016-08-08 15:32:00 +0000
commit63fbf42f7307a5911237fed3285e669d9d4d0d1a (patch)
tree41ad327f379df42ac305aeb3bd5da13057b23cb3 /drivers/gpu/drm/amd/include/amd_shared.h
parentdrm: Paper over locking inversion after registration rework (diff)
downloadkernel-63fbf42f7307a5911237fed3285e669d9d4d0d1a.tar.gz
kernel-63fbf42f7307a5911237fed3285e669d9d4d0d1a.zip
drm/amdgpu: add check_soft_reset ip func
It is used to identify if the ip block is hang. Signed-off-by: Chunming Zhou <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/include/amd_shared.h')
-rw-r--r--drivers/gpu/drm/amd/include/amd_shared.h2
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 a74a0d2ff1ca..fe4aa09252ab 100644
--- a/drivers/gpu/drm/amd/include/amd_shared.h
+++ b/drivers/gpu/drm/amd/include/amd_shared.h
@@ -159,6 +159,8 @@ struct amd_ip_funcs {
bool (*is_idle)(void *handle);
/* poll for idle */
int (*wait_for_idle)(void *handle);
+ /* check soft reset the IP block */
+ int (*check_soft_reset)(void *handle);
/* soft reset the IP block */
int (*soft_reset)(void *handle);
/* enable/disable cg for the IP block */