aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorRobin Murphy <[email protected]>2023-09-12 16:18:44 +0000
committerJoerg Roedel <[email protected]>2023-09-25 10:04:38 +0000
commitafad94a93ef12887390d67aa9b6dd6be2657712f (patch)
tree18fd841c462906f012ce240af755a093e87ecc5b /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parentiommu: Retire map/unmap ops (diff)
downloadkernel-afad94a93ef12887390d67aa9b6dd6be2657712f.tar.gz
kernel-afad94a93ef12887390d67aa9b6dd6be2657712f.zip
iommu: Improve map/unmap sanity checks
The current checks for the __IOMMU_DOMAIN_PAGING capability seem a bit stifled, since it is quite likely now that a non-paging domain won't have a pgsize_bitmap and/or mapping ops, and thus get caught by the earlier condition anyway. Swap them around to test the more fundamental condition first, then we can reasonably also upgrade the other to a WARN_ON, since if a driver does ever expose a paging domain without the means to actually page, it's clearly very broken. Signed-off-by: Robin Murphy <[email protected]> Link: https://lore.kernel.org/r/524db1ec0139c964d26928a6a264945aa66d010c.1694525662.git.robin.murphy@arm.com Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions