[PATCH 04/10] drm/amdgpu: add soft reset asic func
Chunming Zhou
David1.Zhou at amd.com
Wed Jul 13 10:32:16 UTC 2016
Change-Id: I9f6fc1ada26bb1295ec33b1a6a23a27494af4d91
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 5f79a31..bdd989e 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -1834,6 +1834,7 @@ struct amdgpu_asic_funcs {
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);
+ void (*gpu_soft_reset)(struct amdgpu_device *adev, u32 reset_mask);
int (*reset)(struct amdgpu_device *adev);
/* wait for mc_idle */
int (*wait_for_mc_idle)(struct amdgpu_device *adev);
@@ -2241,6 +2242,13 @@ static inline u32 amdgpu_asic_check_soft_reset(struct amdgpu_device *adev)
return 0;
}
+static inline void amdgpu_gpu_soft_reset(struct amdgpu_device *adev,
+ u32 reset_mask)
+{
+ if(adev->asic_funcs->gpu_soft_reset)
+ adev->asic_funcs->gpu_soft_reset(adev, reset_mask);
+}
+
/*
* ASICs macro.
*/
--
1.9.1
More information about the amd-gfx
mailing list