Guide: How to fix lsirec error message "mmap bar1: Invalid argument"

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

nezach

Active Member
Oct 14, 2012
210
128
43
When running lsirec on Linux kernel 4.5 or later it will fail with error message:
mmap bar1: Invalid argument
You can work around this by booting with the "iomem=relaxed" paramter.

More info is provided here: HPE Support document - HPE Support Center
Kernel versions 4.5 (and later) enable a new kernel security measure "CONFIG_IO_STRICT_DEVMEM" by default that prevents user space tools from memory mapping device BAR when the device driver is loaded (resource is marked as BUSY). As a result, the "hfi1_eprom" tool cannot query/flash the device while the "hfi1" kernel module is loaded.