Re: [PATCH] drm/i915: Fix the kernel panic when using aliasing ppgtt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Chris Wilson [mailto:chris@xxxxxxxxxxxxxxxxxx]
> Sent: Friday, July 7, 2017 5:38 PM
> To: Dong, Chuanxiao <chuanxiao.dong@xxxxxxxxx>; intel-
> gfx@xxxxxxxxxxxxxxxxxxxxx
> Cc: intel-gvt-dev@xxxxxxxxxxxxxxxxxxxxx; Dong, Chuanxiao
> <chuanxiao.dong@xxxxxxxxx>; Auld, Matthew <matthew.auld@xxxxxxxxx>;
> Zhenyu Wang <zhenyuw@xxxxxxxxxxxxxxx>
> Subject: Re: [PATCH] drm/i915: Fix the kernel panic when using aliasing ppgtt
> 
> Quoting Chuanxiao Dong (2017-07-07 07:00:09)
> > The ppgtt should be get directly from i915_address_space *vm instead
> > of
> > vma->vm as in alias ppgtt case the vma->vm is not same with vm.
> 
> And for consistency, also
> 
> @@ -2242,7 +2242,7 @@ static void
> bxt_vtd_ggtt_insert_entries__BKL(struct i915_address_space *vm,
>                                              enum i915_cache_level level,
>                                              u32 unused)  {
> -       struct insert_entries arg = { vma->vm, vma, level };
> +       struct insert_entries arg = { vm, vma, level };
> 
>         stop_machine(bxt_vtd_ggtt_insert_entries__cb, &arg, NULL);  }

Good catch! Will send out v2 to include this.

Thanks
Chuanxiao
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux