diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2023-09-27 20:47:39 -0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2023-10-26 16:54:26 +0200 |
commit | bbc70e0aec287e164344b1a071bd46466a4f29b3 (patch) | |
tree | 8e10f49bdc5b57e9a360cf807fc8f7ea75922c87 /net/wireless/sysfs.c | |
parent | 482feb5c649261cd2a7ad02e4ca63c159d6ec795 (diff) | |
download | linux-stable-bbc70e0aec287e164344b1a071bd46466a4f29b3.tar.gz linux-stable-bbc70e0aec287e164344b1a071bd46466a4f29b3.tar.bz2 linux-stable-bbc70e0aec287e164344b1a071bd46466a4f29b3.zip |
iommu/dart: Remove the force_bypass variable
This flag just caches if the IO page size is larger than the CPU
PAGE_SIZE. This only needs to be checked in two places so remove the
confusingly named cache.
dart would like to not support paging domains at all if the IO page size
is larger than the CPU page size. In this case we should ideally fail
domain_alloc_paging(), as there is no point in creating a domain that can
never be attached. Move the test into apple_dart_finalize_domain().
The check in apple_dart_mod_streams() will prevent the domain from being
attached to the wrong dart
There is no HW limitation that prevents BLOCKED domains from working,
remove that test.
The check in apple_dart_of_xlate() is redundant since immediately after
the pgsize is checked. Remove it.
Remove the variable.
Suggested-by: Janne Grunau <j@jannau.net>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Janne Grunau <j@jannau.net>
Acked-by: Sven Peter <sven@svenpeter.dev>
Link: https://lore.kernel.org/r/9-v2-bff223cf6409+282-dart_paging_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'net/wireless/sysfs.c')
0 files changed, 0 insertions, 0 deletions