diff options
author | Nicolin Chen <[email protected]> | 2023-10-23 18:29:58 -0700 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2023-10-24 12:56:37 -0300 |
commit | 2ccabf81ddff81355bf044bdad3c44e9e6ac32d9 (patch) | |
tree | d8a4a81488d15704280614ff7826a1090dcc4cc3 /scripts/gdb/linux/slab.py | |
parent | 0795b305da8902e7d092f90bf9a1a2c98f34b1db (diff) |
iommufd: Only enforce cache coherency in iommufd_hw_pagetable_alloc
According to the conversation in the following link:
https://lore.kernel.org/linux-iommu/[email protected]/
The enforce_cache_coherency should be set/enforced in the hwpt allocation
routine. The iommu driver in its attach_dev() op should decide whether to
reject or not a device that doesn't match with the configuration of cache
coherency. Drop the enforce_cache_coherency piece in the attach/replace()
and move the remaining "num_devices" piece closer to the refcount that is
using it.
Accordingly drop its function prototype in the header and mark it static.
Also add some extra comments to clarify the expected behaviors.
Link: https://lore.kernel.org/r/[email protected]
Suggested-by: Kevin Tian <[email protected]>
Reviewed-by: Lu Baolu <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Signed-off-by: Nicolin Chen <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/slab.py')
0 files changed, 0 insertions, 0 deletions