On 21-09-21, 13:15, Dave Jiang wrote: > Fault triggers on ioread32() when pci driver unbind is envoked. The > placement of idxd sub-driver removal causes the probing of the device mmio > region after the mmio mapping being torn down. The driver needs the > sub-drivers to be unbound but not release the idxd context until all > shutdown activities has been done. Move the sub-driver unregistering up > before the remove() calls shutdown(). But take a device ref on the > idxd->conf_dev so that the memory does not get freed in ->release(). When > all cleanup activities has been done, release the ref to allow the idxd > memory to be freed. Applied, thanks -- ~Vinod