On Wed, Sep 26, 2018 at 10:59:49AM -0700, Dennis Dalessandro wrote: > From: Mitko Haralanov <mitko.haralanov@xxxxxxxxx> > > With previous version of the HFI driver, user level tools > which required access to the device's BAR made use of the > 'resourceXX' files provided by the core kernel in sysfs. > > However, recent distro kernels have started compiling and > distributing their kernels with CONFIG_STRICT_IO_DEVMEM > turned on. No to creating a backdoor around CONFIG_STRICT_IO_DEVMEM prohibitions. Unless you can explain that the device has sufficient HW protections for this to be completely safe in userspace. Hint: if your BAR can trigger DMA in any way this is a hard NAK. Jason