Re: [PATCH] resource: export iomem_get_mapping() for loadable modules

From: Ravi Kumar Bandi

Date: Tue May 12 2026 - 03:55:16 EST


On 5/11/26, Bjorn Helgaas wrote:
> Which endpoint driver?

Thank you for checking.

It is Marvell PCIe driver for a device without a hot-plug pin routed
to the CPU. The link-down event is detected by the in-tree Xilinx DMA PL
PCIe controller driver (drivers/pci/controller/pcie-xilinx-dma-pl.c).

> Why would the endpoint driver map iomem to userspace?

sysfs exposed BAR resource files are mmap'd directly by a third-party
userspace driver.

> Well, we need to see the user(s) first, but once they materialize this
> begs for a higher level API. Until then it is moot anyway.

Understood. Thank you for the feedback. We will work on a higher level
API proposal and get back.

Regards,
Ravi Kumar Bandi