diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2019-07-10 17:05:17 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-07-11 17:02:09 +0200 |
commit | 33439620680be5225c1b8806579a291e0d761ca0 (patch) | |
tree | 5fe6deef47c4b804058fb5f7a3a8a2c3f4285048 /arch/powerpc/configs/chrp32_defconfig | |
parent | ocxl: Update for AFU descriptor template version 1.1 (diff) | |
download | linux-33439620680be5225c1b8806579a291e0d761ca0.tar.xz linux-33439620680be5225c1b8806579a291e0d761ca0.zip |
powerpc/eeh: Handle hugepages in ioremap space
In commit 4a7b06c157a2 ("powerpc/eeh: Handle hugepages in ioremap
space") support for using hugepages in the vmalloc and ioremap areas was
enabled for radix. Unfortunately this broke EEH MMIO error checking.
Detection works by inserting a hook which checks the results of the
ioreadXX() set of functions. When a read returns a 0xFFs response we
need to check for an error which we do by mapping the (virtual) MMIO
address back to a physical address, then mapping physical address to a
PCI device via an interval tree.
When translating virt -> phys we currently assume the ioremap space is
only populated by PAGE_SIZE mappings. If a hugepage mapping is found we
emit a WARN_ON(), but otherwise handles the check as though a normal
page was found. In pathalogical cases such as copying a buffer
containing a lot of 0xFFs from BAR memory this can result in the system
not booting because it's too busy printing WARN_ON()s.
There's no real reason to assume huge pages can't be present and we're
prefectly capable of handling them, so do that.
Fixes: 4a7b06c157a2 ("powerpc/eeh: Handle hugepages in ioremap space")
Reported-by: Sachin Sant <sachinp@linux.vnet.ibm.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Tested-by: Sachin Sant <sachinp@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190710150517.27114-1-oohall@gmail.com
Diffstat (limited to 'arch/powerpc/configs/chrp32_defconfig')
0 files changed, 0 insertions, 0 deletions