linux/drivers/iommu/iommufd
Jason Gunthorpe 17bad52708 iommufd: Add enforced_cache_coherency to iommufd_hw_pagetable_alloc()
Logically the HWPT should have the coherency set properly for the device
that it is being created for when it is created.

This was happening implicitly if the immediate_attach was set because
iommufd_hw_pagetable_attach() does it as the first thing.

Do it unconditionally so !immediate_attach works properly.

Link: https://lore.kernel.org/r/9-v8-6659224517ea+532-iommufd_alloc_jgg@nvidia.com
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2023-07-26 10:19:52 -03:00
..
device.c iommufd: Add enforced_cache_coherency to iommufd_hw_pagetable_alloc() 2023-07-26 10:19:52 -03:00
double_span.h
hw_pagetable.c iommufd: Add enforced_cache_coherency to iommufd_hw_pagetable_alloc() 2023-07-26 10:19:52 -03:00
io_pagetable.c iommufd: Keep track of each device's reserved regions instead of groups 2023-07-26 10:19:32 -03:00
io_pagetable.h
ioas.c iommu/iommufd: Pass iommufd_ctx pointer in iommufd_get_ioas() 2023-03-29 16:52:41 -03:00
iommufd_private.h iommufd: Add enforced_cache_coherency to iommufd_hw_pagetable_alloc() 2023-07-26 10:19:52 -03:00
iommufd_test.h iommufd/selftest: Rename the sefltest 'device_id' to 'stdev_id' 2023-03-06 10:51:58 -04:00
Kconfig vfio: Compile vfio_group infrastructure optionally 2023-07-25 10:20:50 -06:00
main.c iommufd: Add iommufd_group 2023-07-26 10:19:17 -03:00
Makefile
pages.c mm/gup: remove unused vmas parameter from pin_user_pages_remote() 2023-06-09 16:25:25 -07:00
selftest.c iommufd/selftest: Set varaiable mock_iommu_device storage-class-specifier to static 2023-04-04 11:02:39 -03:00
vfio_compat.c iommu/iommufd: Pass iommufd_ctx pointer in iommufd_get_ioas() 2023-03-29 16:52:41 -03:00