On 3/8/23 8:35 AM, Jason Gunthorpe wrote:
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.
Reviewed-by: Kevin Tiankevin.tian@intel.com Signed-off-by: Jason Gunthorpejgg@nvidia.com
Reviewed-by: Lu Baolu baolu.lu@linux.intel.com
Best regards, baolu