]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
iommu/amd: Set DTE[IntTabLen] to represent 512 IRTEs
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Mon, 7 Dec 2020 09:19:20 +0000 (03:19 -0600)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 20 Jan 2021 13:25:03 +0000 (14:25 +0100)
commit2f53e84b7d761fadb0ef458060f6261d8075713a
treed444d10ae35481d4fefb18b7a3bc4487d945884f
parenteeb9a272f54cd8ec918509331c799c606cf7cee5
iommu/amd: Set DTE[IntTabLen] to represent 512 IRTEs

BugLink: https://bugs.launchpad.net/bugs/1910784
commit 4165bf015ba9454f45beaad621d16c516d5c5afe upstream.

According to the AMD IOMMU spec, the commit 73db2fc595f3
("iommu/amd: Increase interrupt remapping table limit to 512 entries")
also requires the interrupt table length (IntTabLen) to be set to 9
(power of 2) in the device table mapping entry (DTE).

Fixes: 73db2fc595f3 ("iommu/amd: Increase interrupt remapping table limit to 512 entries")
Reported-by: Jerry Snitselaar <jsnitsel@redhat.com>
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Link: https://lore.kernel.org/r/20201207091920.3052-1-suravee.suthikulpanit@amd.com
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/iommu/amd_iommu_types.h