summaryrefslogtreecommitdiff
path: root/arch/riscv/kernel/stacktrace.c
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2020-05-19 15:03:40 +0200
committerJoerg Roedel <jroedel@suse.de>2020-05-19 15:05:43 +0200
commitbd421264ed307dd296eab036851221b225071a32 (patch)
tree61927cf6cef2607118ec52d79611abd56354039e /arch/riscv/kernel/stacktrace.c
parentea90228c7b2ae6646bb6381385229aabb6f14cd2 (diff)
iommu: Fix deferred domain attachment
The IOMMU core code has support for deferring the attachment of a domain to a device. This is needed in kdump kernels where the new domain must not be attached to a device before the device driver takes it over. When the AMD IOMMU driver got converted to use the dma-iommu implementation, the deferred attaching got lost. The code in dma-iommu.c has support for deferred attaching, but it calls into iommu_attach_device() to actually do it. But iommu_attach_device() will check if the device should be deferred in it code-path and do nothing, breaking deferred attachment. Move the is_deferred_attach() check out of the attach_device path and into iommu_group_add_device() to make deferred attaching work from the dma-iommu code. Fixes: 795bbbb9b6f8 ("iommu/dma-iommu: Handle deferred devices") Reported-by: Jerry Snitselaar <jsnitsel@redhat.com> Suggested-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Joerg Roedel <jroedel@suse.de> Tested-by: Jerry Snitselaar <jsnitsel@redhat.com> Cc: Jerry Snitselaar <jsnitsel@redhat.com> Cc: Tom Murphy <murphyt7@tcd.ie> Cc: Robin Murphy <robin.murphy@arm.com> Link: https://lore.kernel.org/r/20200519130340.14564-1-joro@8bytes.org
Diffstat (limited to 'arch/riscv/kernel/stacktrace.c')
0 files changed, 0 insertions, 0 deletions