resource sanity check, mapping multiple BARs

From: Ferry Toth
Date: Mon Dec 06 2021 - 15:57:00 EST


Hi,

Between v5.15 and v5.16-rc the following (unrelated?) errors are appearing in kernel.log:

resource sanity check: requesting [mem 0xff200000-0xff3fffff], which spans more than 0000:00:0e.0 [mem 0xff298000-0xff29bfff]
caller devm_ioremap+0x45/0x80 mapping multiple BARs
pmd_set_huge: Cannot satisfy [mem 0x05e00000-0x06000000] with a huge-page mapping due to MTRR override.

This is on Intel Edison (Merrifield), which has (from lspci):

00:0e.0 System peripheral: Intel Corporation Device 119b (rev 01)
    Flags: fast devsel, IRQ 25
    Memory at ff298000 (32-bit, non-prefetchable) [size=16K]
    Memory at ff2a2000 (32-bit, non-prefetchable) [size=4K]
    Capabilities: [b0] Power Management version 3
    Capabilities: [b8] Vendor Specific Information: Len=08 <?>
    Capabilities: [c0] PCI-X non-bridge device
    Capabilities: [100] Vendor Specific Information: ID=0000 Rev=0 Len=024 <?>

Any suggestions on the cause of this would be welcome.

Ferry