On Wed, Jan 24, 2018 at 7:39 AM, Christian König
<[email protected]> wrote:
> It can easily be that the VM is already destroyed when this runs.
>
> Signed-off-by: Christian König <[email protected]>
> ---
>  drivers/gpu/drm/amd/amdgpu/vega10_ih.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/vega10_ih.c 
> b/drivers/gpu/drm/amd/amdgpu/vega10_ih.c
> index 9589e0a2f14a..ee7e16d576c0 100644
> --- a/drivers/gpu/drm/amd/amdgpu/vega10_ih.c
> +++ b/drivers/gpu/drm/amd/amdgpu/vega10_ih.c
> @@ -278,7 +278,7 @@ static bool vega10_ih_prescreen_iv(struct amdgpu_device 
> *adev)
>         /* Track retry faults in per-VM fault FIFO. */
>         spin_lock(&adev->vm_manager.pasid_lock);
>         vm = idr_find(&adev->vm_manager.pasid_idr, pasid);
> -       if (WARN_ON_ONCE(!vm)) {
> +       if (vm) {

Should be !vm.  With that fixed:
Acked-by: Alex Deucher <[email protected]>


>                 /* VM not found, process it normally */
>                 spin_unlock(&adev->vm_manager.pasid_lock);
>                 amdgpu_ih_clear_fault(adev, key);
> --
> 2.14.1
>
> _______________________________________________
> amd-gfx mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to