• J
    iommu/amd: Ignore BUS_NOTIFY_UNBOUND_DRIVER event · 7139a2e9
    Joerg Roedel 提交于
    Detaching a device from its domain at this event is
    problematic for several reasons:
    
    	* The device might me in an alias group and
    	  detaching it will also detach all other devices in
    	  the group. This removes valid DMA mappings from
    	  the other devices causing io-page-faults and lets
    	  these devices fail.
    
    	* Devices might have unity mappings specified by the
    	  IVRS table. These mappings are required for the
    	  device even when no device driver is attached.
    	  Detaching the device from its domain in driver
    	  unbind will also remove these unity mappings.
    
    This patch removes the handling of the BUS_NOTIFY_UNBOUND_DRIVER
    event to prevent these issues and align it better with the
    behavior of the VT-d driver.
    Tested-by: NSuravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
    Signed-off-by: NJoerg Roedel <jroedel@suse.de>
    7139a2e9
amd_iommu.c 96.8 KB