>> No, the driver needs to enable memory on the device around the iomap >> rather than assuming the initial state. Thanks, >> >> Alex > > Ack, thanks for the suggestion. > > I'll change nvgrace_gpu_wait_device_ready to read the PCI_COMMAND > through pci_read_config_word before pci_iomap. And if PCI_COMMAND_MEMORY > is not set, update through pci_write_config_word. Or perhaps better to call vfio_pci_memory_lock_and_enable(). I'll make the change and send out the next version.