diff options
author | Florian Fainelli | 2019-06-11 19:58:25 +0200 |
---|---|---|
committer | Konrad Rzeszutek Wilk | 2019-06-11 20:36:33 +0200 |
commit | 4aa095ea329d76aeb2ae043e0d1ed96049d47940 (patch) | |
tree | bfd0952a76628ee9ff1e709fc3429147a510e4ad /kernel/sched/features.h | |
parent | swiotlb: Group identical cleanup in swiotlb_cleanup() (diff) | |
download | kernel-qcow2-linux-4aa095ea329d76aeb2ae043e0d1ed96049d47940.tar.gz kernel-qcow2-linux-4aa095ea329d76aeb2ae043e0d1ed96049d47940.tar.xz kernel-qcow2-linux-4aa095ea329d76aeb2ae043e0d1ed96049d47940.zip |
swiotlb: Return consistent SWIOTLB segments/nr_tbl
With a specifically contrived memory layout where there is no physical
memory available to the kernel below the 4GB boundary, we will fail to
perform the initial swiotlb_init() call and set no_iotlb_memory to true.
There are drivers out there that call into swiotlb_nr_tbl() to determine
whether they can use the SWIOTLB. With the right DMA_BIT_MASK() value
for these drivers (say 64-bit), they won't ever need to hit
swiotlb_tbl_map_single() so this can go unoticed and we would be
possibly lying about those drivers.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'kernel/sched/features.h')
0 files changed, 0 insertions, 0 deletions