summaryrefslogtreecommitdiffstats
path: root/kernel/kprobes.c
diff options
context:
space:
mode:
authorPetr Tesarik <petr.tesarik.ext@huawei.com>2023-08-01 08:24:02 +0200
committerChristoph Hellwig <hch@lst.de>2023-08-01 18:02:24 +0200
commitad96ce3252dbab773cb343220662df3d84dd8e80 (patch)
tree6040e0ce1f17a95c5b8f035214cfddf2c0c0296b /kernel/kprobes.c
parent79636caad3618e2b38457f6e298c9b31ba82b489 (diff)
downloadlinux-stable-ad96ce3252dbab773cb343220662df3d84dd8e80.tar.gz
linux-stable-ad96ce3252dbab773cb343220662df3d84dd8e80.tar.bz2
linux-stable-ad96ce3252dbab773cb343220662df3d84dd8e80.zip
swiotlb: determine potential physical address limit
The value returned by default_swiotlb_limit() should be constant, because it is used to decide whether DMA can be used. To allow allocating memory pools on the fly, use the maximum possible physical address rather than the highest address used by the default pool. For swiotlb_init_remap(), this is either an arch-specific limit used by memblock_alloc_low(), or the highest directly mapped physical address if the initialization flags include SWIOTLB_ANY. For swiotlb_init_late(), the highest address is determined by the GFP flags. Signed-off-by: Petr Tesarik <petr.tesarik.ext@huawei.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'kernel/kprobes.c')
0 files changed, 0 insertions, 0 deletions