diff options
author | Doug Berger <opendmb@gmail.com> | 2023-04-15 00:29:25 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2023-04-16 09:23:10 +0300 |
commit | a90922fa25370902322e9de6640e58737d459a50 (patch) | |
tree | 5095c5b77e92ac3b2b9a141a1db1378e9a895e9a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | c00a60d6f4a14b06264bb6f9fcc754b8ddbf67e3 (diff) | |
download | linux-a90922fa25370902322e9de6640e58737d459a50.tar.xz |
swiotlb: relocate PageHighMem test away from rmem_swiotlb_setup
The reservedmem_of_init_fn's are invoked very early at boot before the
memory zones have even been defined. This makes it inappropriate to test
whether the page corresponding to a PFN is in ZONE_HIGHMEM from within
one.
Removing the check allows an ARM 32-bit kernel with SPARSEMEM enabled to
boot properly since otherwise we would be de-referencing an
uninitialized sparsemem map to perform pfn_to_page() check.
The arm64 architecture happens to work (and also has no high memory) but
other 32-bit architectures could also be having similar issues.
While it would be nice to provide early feedback about a reserved DMA
pool residing in highmem, it is not possible to do that until the first
time we try to use it, which is where the check is moved to.
Fixes: 0b84e4f8b793 ("swiotlb: Add restricted DMA pool initialization")
Signed-off-by: Doug Berger <opendmb@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions