diff options
author | Oak Zeng <ozeng@amd.com> | 2018-11-26 11:41:23 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-11-28 15:55:31 -0500 |
commit | 5253163a11fba4ad0a0fafc2f7486ca02e56f295 (patch) | |
tree | bc7641663dd674dd3c831c369c02443549773fa2 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | 409c5191b4999abef6687a18eb59aa8b88d714d3 (diff) |
drm/amdgpu: Add asic func interface to init doorbell index
This is preparation to move doorbell index initialization
to amdgpu_asic_funcs
Signed-off-by: Oak Zeng <ozeng@amd.com>
Proposed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 66a4da783899..78406cd45047 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -654,6 +654,8 @@ struct amdgpu_asic_funcs { | |||
654 | struct amdgpu_ring *ring); | 654 | struct amdgpu_ring *ring); |
655 | /* check if the asic needs a full reset of if soft reset will work */ | 655 | /* check if the asic needs a full reset of if soft reset will work */ |
656 | bool (*need_full_reset)(struct amdgpu_device *adev); | 656 | bool (*need_full_reset)(struct amdgpu_device *adev); |
657 | /* initialize doorbell layout for specific asic*/ | ||
658 | void (*init_doorbell_index)(struct amdgpu_device *adev); | ||
657 | }; | 659 | }; |
658 | 660 | ||
659 | /* | 661 | /* |
@@ -1209,6 +1211,7 @@ int emu_soc_asic_init(struct amdgpu_device *adev); | |||
1209 | #define amdgpu_asic_flush_hdp(adev, r) (adev)->asic_funcs->flush_hdp((adev), (r)) | 1211 | #define amdgpu_asic_flush_hdp(adev, r) (adev)->asic_funcs->flush_hdp((adev), (r)) |
1210 | #define amdgpu_asic_invalidate_hdp(adev, r) (adev)->asic_funcs->invalidate_hdp((adev), (r)) | 1212 | #define amdgpu_asic_invalidate_hdp(adev, r) (adev)->asic_funcs->invalidate_hdp((adev), (r)) |
1211 | #define amdgpu_asic_need_full_reset(adev) (adev)->asic_funcs->need_full_reset((adev)) | 1213 | #define amdgpu_asic_need_full_reset(adev) (adev)->asic_funcs->need_full_reset((adev)) |
1214 | #define amdgpu_asic_init_doorbell_index(adev) (adev)->asic_funcs->init_doorbell_index((adev)) | ||
1212 | 1215 | ||
1213 | /* Common functions */ | 1216 | /* Common functions */ |
1214 | bool amdgpu_device_should_recover_gpu(struct amdgpu_device *adev); | 1217 | bool amdgpu_device_should_recover_gpu(struct amdgpu_device *adev); |