diff options
| author | yipechai <[email protected]> | 2022-02-14 08:10:32 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-03-02 23:40:06 +0000 |
| commit | f148c143ef3f6e897f4a1012d1bcae3aa240bd8a (patch) | |
| tree | 7c56d97f0d9ef0f75b25a9596ff7b0b6749dc190 /drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | |
| parent | drm/amdgpu: Remove redundant calls of amdgpu_ras_block_late_fini in umc ras b... (diff) | |
| download | kernel-f148c143ef3f6e897f4a1012d1bcae3aa240bd8a.tar.gz kernel-f148c143ef3f6e897f4a1012d1bcae3aa240bd8a.zip | |
drm/amdgpu: Remove redundant calls of amdgpu_ras_block_late_fini in xgmi ras block
Remove redundant calls of amdgpu_ras_block_late_fini in xgmi ras block.
Signed-off-by: yipechai <[email protected]>
Reviewed-by: Tao Zhou <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c index a54257760f9e..05dc76f6fdc6 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c @@ -768,13 +768,6 @@ static int amdgpu_xgmi_ras_late_init(struct amdgpu_device *adev, struct ras_comm return amdgpu_ras_block_late_init(adev, ras_block); } -static void amdgpu_xgmi_ras_fini(struct amdgpu_device *adev, struct ras_common_if *ras_block) -{ - if (amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__XGMI_WAFL) && - ras_block) - amdgpu_ras_block_late_fini(adev, ras_block); -} - uint64_t amdgpu_xgmi_get_relative_phy_addr(struct amdgpu_device *adev, uint64_t addr) { @@ -982,6 +975,6 @@ struct amdgpu_xgmi_ras xgmi_ras = { }, .hw_ops = &xgmi_ras_hw_ops, .ras_late_init = amdgpu_xgmi_ras_late_init, - .ras_fini = amdgpu_xgmi_ras_fini, + .ras_fini = amdgpu_ras_block_late_fini, }, }; |
