summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorAndreas Oetken <andreas.oetken@siemens.com>2021-02-19 09:41:50 +0300
committerLey Foon Tan <ley.foon.tan@intel.com>2021-02-19 10:02:09 +0300
commit7f7bc20bc41a4fbcd2db75b375ac95e5faf958ae (patch)
tree7fd0a643490252fa9278414d1f5364e4521fc362 /Documentation
parent9abcfcb20320e8f693e89d86573b58e6289931cb (diff)
downloadlinux-7f7bc20bc41a4fbcd2db75b375ac95e5faf958ae.tar.xz
nios2: Don't use _end for calculating min_low_pfn
If there is a initramfs linked into the kernel which will be freed later on there is free memory somewhere between _etext and _end, thus using _end for min_low_pfn is not correct. This may lead to issues in dma_capable when checking 'min(addr, end) < phys_to_dma(dev, PFN_PHYS(min_low_pfn)))' as the address addr might be below min_low_pfn. Picked find_limits from architecture arm for applying min_low_pfn and max_low_pfn. Maybe using _etext for min_low_pfn would be fine too. Signed-off-by: Andreas Oetken <andreas.oetken@siemens.com> Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions