mirror of
https://github.com/openbsd/src.git
synced 2026-06-18 07:13:36 +02:00
drm/amdgpu: validate the flush_gpu_tlb_pasid()
From Prike Liang fd78e63459ab6fe99b9fd026c420808d09eaa8be in linux-6.18.y/6.18.32 f4db9913e4d3dabe9ff3ea6178f2c1bc286012b8 in mainline linux
This commit is contained in:
@@ -737,6 +737,10 @@ int amdgpu_gmc_flush_gpu_tlb_pasid(struct amdgpu_device *adev, uint16_t pasid,
|
||||
return 0;
|
||||
|
||||
if (!adev->gmc.flush_pasid_uses_kiq || !ring->sched.ready) {
|
||||
|
||||
if (!adev->gmc.gmc_funcs->flush_gpu_tlb_pasid)
|
||||
return 0;
|
||||
|
||||
if (adev->gmc.flush_tlb_needs_extra_type_2)
|
||||
adev->gmc.gmc_funcs->flush_gpu_tlb_pasid(adev, pasid,
|
||||
2, all_hub,
|
||||
|
||||
Reference in New Issue
Block a user