aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/irq_remapping.h
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2020-02-17 17:20:59 +0100
committerJoerg Roedel <jroedel@suse.de>2020-02-18 17:21:51 +0100
commita11bfde9c77df1fd350ea27169ab921f511bf5d0 (patch)
tree3e2015c9a9582206e8dae95bed93cebed7b0e66c /drivers/iommu/irq_remapping.h
parentiommu/vt-d: Move deferred device attachment into helper function (diff)
downloadlinux-dev-a11bfde9c77df1fd350ea27169ab921f511bf5d0.tar.xz
linux-dev-a11bfde9c77df1fd350ea27169ab921f511bf5d0.zip
iommu/vt-d: Do deferred attachment in iommu_need_mapping()
The attachment of deferred devices needs to happen before the check whether the device is identity mapped or not. Otherwise the check will return wrong results, cause warnings boot failures in kdump kernels, like WARNING: CPU: 0 PID: 318 at ../drivers/iommu/intel-iommu.c:592 domain_get_iommu+0x61/0x70 [...] Call Trace: __intel_map_single+0x55/0x190 intel_alloc_coherent+0xac/0x110 dmam_alloc_attrs+0x50/0xa0 ahci_port_start+0xfb/0x1f0 [libahci] ata_host_start.part.39+0x104/0x1e0 [libata] With the earlier check the kdump boot succeeds and a crashdump is written. Fixes: 1ee0186b9a12 ("iommu/vt-d: Refactor find_domain() helper") Cc: stable@vger.kernel.org # v5.5 Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com> Acked-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/irq_remapping.h')
0 files changed, 0 insertions, 0 deletions