summaryrefslogtreecommitdiffstats
path: root/scripts/decodecode
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@nvidia.com>2023-04-25 16:04:15 -0300
committerJoerg Roedel <jroedel@suse.de>2023-05-22 17:26:45 +0200
commit29f54745f24547a84b18582e054df9bea1a7bf3e (patch)
treeb72dcff6f5a9ac5c889601edaed49c17914e289d /scripts/decodecode
parent8ec4e2befef10c7679cd59251956a428e783c0b5 (diff)
downloadlinux-stable-29f54745f24547a84b18582e054df9bea1a7bf3e.tar.gz
linux-stable-29f54745f24547a84b18582e054df9bea1a7bf3e.tar.bz2
linux-stable-29f54745f24547a84b18582e054df9bea1a7bf3e.zip
iommu/amd: Add missing domain type checks
Drivers are supposed to list the domain types they support in their domain_alloc() ops so when we add new domain types, like BLOCKING or SVA, they don't start breaking. This ended up providing an empty UNMANAGED domain when the core code asked for a BLOCKING domain, which happens to be the fallback for drivers that don't support it, but this is completely wrong for SVA. Check for the DMA types AMD supports and reject every other kind. Fixes: 136467962e49 ("iommu: Add IOMMU SVA domain support") Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Reviewed-by: Vasant Hegde <vasant.hegde@amd.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Link: https://lore.kernel.org/r/0-v1-2ac37b893728+da-amd_check_types_jgg@nvidia.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'scripts/decodecode')
0 files changed, 0 insertions, 0 deletions