AMD-Vi Failed to allocate IRTE

Bug #2054860 reported by Zhanglei Mao
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-hwe-5.15 (Ubuntu)
New
Undecided
Unassigned

Bug Description

A partner report below error which seems a fixed issue from upstream and it affect NVME performance, hope to backport it.

Oct 27 06:05:17 quanta kernel: [ 1238.707245] AMD-Vi: Failed to allocate IRTE

The related patch and discussion is below:
https://lkml.org/lkml/2020/10/14/1153

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.