]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iommu/amd: Increase interrupt remapping table limit to 512 entries
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Thu, 15 Oct 2020 02:50:02 +0000 (02:50 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Nov 2020 18:18:45 +0000 (19:18 +0100)
commitf440ef2a292e74081d5f4352057c4ca13a4b78fe
treec2e5fd2c6a92bca1e9ce3ad360c77087c10b3f52
parent509e215d161ead66ea3cc39aca61a5b1845cc048
iommu/amd: Increase interrupt remapping table limit to 512 entries

[ Upstream commit 73db2fc595f358460ce32bcaa3be1f0cce4a2db1 ]

Certain device drivers allocate IO queues on a per-cpu basis.
On AMD EPYC platform, which can support up-to 256 cpu threads,
this can exceed the current MAX_IRQ_PER_TABLE limit of 256,
and result in the error message:

    AMD-Vi: Failed to allocate IRTE

This has been observed with certain NVME devices.

AMD IOMMU hardware can actually support upto 512 interrupt
remapping table entries. Therefore, update the driver to
match the hardware limit.

Please note that this also increases the size of interrupt remapping
table to 8KB per device when using the 128-bit IRTE format.

Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Link: https://lore.kernel.org/r/20201015025002.87997-1-suravee.suthikulpanit@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iommu/amd_iommu_types.h