Files
linux/drivers/gpu/drm
Yi Liu 4dc334cab1 i915/gvt: Move gvt mapping cache initialization to intel_vgpu_init_dev()
vfio container registers .dma_unmap() callback after the device is opened.
So it's fine for mdev drivers to initialize internal mapping cache in
.open_device(). See vfio_device_container_register().

Now with iommufd an access ops with an unmap callback is registered when
the device is bound to iommufd which is before .open_device() is
called. This implies gvt's .dma_unmap() could be called before its
internal mapping cache is initialized.

The fix is moving gvt mapping cache initialization to vGPU init. While at
it also move ptable initialization together.

Link: https://lore.kernel.org/r/20221202135402.756470-2-yi.l.liu@intel.com
Reviewed-by: Zhi Wang <zhi.a.wang@intel.com>
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2022-12-02 11:49:26 -04:00
..
2022-09-26 09:11:47 +02:00
2022-08-16 12:46:26 +02:00
2022-09-20 09:37:12 +02:00
2022-08-26 14:22:59 +02:00
2022-06-28 07:56:32 +02:00
2021-11-30 09:41:28 +01:00
2021-11-30 09:41:28 +01:00
2022-04-12 09:27:20 +03:00