[PATCH] drm/amdgpu: flush the correct vmid tlb for specific pasid

Christian König christian.koenig at amd.com
Thu Oct 12 08:36:37 UTC 2023


Am 12.10.23 um 09:41 schrieb Yifan Zhang:
> flush the correct vmid tlb for specific pasid on gmc 11.
>
> Signed-off-by: Yifan Zhang <yifan1.zhang at amd.com>

Good catch, Reviewed-by: Christian König <christian.koenig at amd.com>

> ---
>   drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
> index f4bb3886d1bc..19eaada35ede 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
> @@ -314,7 +314,7 @@ static void gmc_v11_0_flush_gpu_tlb_pasid(struct amdgpu_device *adev,
>   
>   		valid = gmc_v11_0_get_vmid_pasid_mapping_info(adev, vmid,
>   							      &queried);
> -		if (!valid || queried == pasid)
> +		if (!valid || queried != pasid)
>   			continue;
>   
>   		if (all_hub) {



More information about the amd-gfx mailing list