[PATCH 02/10] drm/amdgpu: add check_soft_reset asic funcs
Chunming Zhou
David1.Zhou at amd.com
Wed Jul 13 10:32:14 UTC 2016
Change-Id: Ifd4be8dccdf58f5fd04270b539027ad908467b74
Signed-off-by: Chunming Zhou <David1.Zhou at amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 2295747..9aa2a79 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -1831,6 +1831,7 @@ struct amdgpu_asic_funcs {
int (*read_register)(struct amdgpu_device *adev, u32 se_num,
u32 sh_num, u32 reg_offset, u32 *value);
void (*set_vga_state)(struct amdgpu_device *adev, bool state);
+ uint32_t (*check_soft_reset)(struct amdgpu_device *adev);
int (*reset)(struct amdgpu_device *adev);
/* wait for mc_idle */
int (*wait_for_mc_idle)(struct amdgpu_device *adev);
@@ -2231,6 +2232,13 @@ amdgpu_get_sdma_instance(struct amdgpu_ring *ring)
return NULL;
}
+static inline u32 amdgpu_asic_check_soft_reset(struct amdgpu_device *adev)
+{
+ if(adev->asic_funcs->check_soft_reset)
+ return adev->asic_funcs->check_soft_reset(adev);
+ return 0;
+}
+
/*
* ASICs macro.
*/
--
1.9.1
More information about the amd-gfx
mailing list