aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
diff options
context:
space:
mode:
authorGravatar Christian König <christian.koenig@amd.com> 2023-09-04 15:50:35 +0200
committerGravatar Alex Deucher <alexander.deucher@amd.com> 2023-09-26 16:55:09 -0400
commit3983c9fd2d8b5aa254f5f467604d30f977bb1a04 (patch)
treef594cd89cfd2f95fee07aa373dd2108143a33ab6 /drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
parentdrm/amdgpu: fix and cleanup gmc_v11_0_flush_gpu_tlb_pasid (diff)
downloadlinux-3983c9fd2d8b5aa254f5f467604d30f977bb1a04.tar.gz
linux-3983c9fd2d8b5aa254f5f467604d30f977bb1a04.tar.bz2
linux-3983c9fd2d8b5aa254f5f467604d30f977bb1a04.zip
drm/amdgpu: drop error return from flush_gpu_tlb_pasid
That function never fails, drop the error return. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
index 0219a4e00bb7..8ee6e99d51b7 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
@@ -423,15 +423,15 @@ static int gmc_v7_0_mc_init(struct amdgpu_device *adev)
*
* Flush the TLB for the requested pasid.
*/
-static int gmc_v7_0_flush_gpu_tlb_pasid(struct amdgpu_device *adev,
- uint16_t pasid, uint32_t flush_type,
- bool all_hub, uint32_t inst)
+static void gmc_v7_0_flush_gpu_tlb_pasid(struct amdgpu_device *adev,
+ uint16_t pasid, uint32_t flush_type,
+ bool all_hub, uint32_t inst)
{
u32 mask = 0x0;
int vmid;
if (!down_read_trylock(&adev->reset_domain->sem))
- return 0;
+ return;
for (vmid = 1; vmid < 16; vmid++) {
u32 tmp = RREG32(mmATC_VMID0_PASID_MAPPING + vmid);
@@ -444,7 +444,6 @@ static int gmc_v7_0_flush_gpu_tlb_pasid(struct amdgpu_device *adev,
WREG32(mmVM_INVALIDATE_REQUEST, mask);
RREG32(mmVM_INVALIDATE_RESPONSE);
up_read(&adev->reset_domain->sem);
- return 0;
}
/*