Re: mmap/munmap in sysfs

2019-06-26 Thread Rafael J. Wysocki
On Wednesday, June 26, 2019 3:07:46 AM CEST Greg Kroah-Hartman wrote: > On Tue, Jun 25, 2019 at 05:36:08PM -0500, Bjorn Helgaas wrote: > > Hi Greg, et al, > > > > Userspace can mmap PCI device memory via the resourceN files in sysfs, > > which use pci_mmap_resource(). I think this path is unaware

Re: mmap/munmap in sysfs

2019-06-25 Thread Greg Kroah-Hartman
On Tue, Jun 25, 2019 at 05:36:08PM -0500, Bjorn Helgaas wrote: > Hi Greg, et al, > > Userspace can mmap PCI device memory via the resourceN files in sysfs, > which use pci_mmap_resource(). I think this path is unaware of power > management, so the device may be runtime-suspended, e.g., it may be