diff options
author | Pali Rohár <[email protected]> | 2022-01-10 02:50:07 +0100 |
---|---|---|
committer | Lorenzo Pieralisi <[email protected]> | 2022-02-08 10:43:47 +0000 |
commit | 754e449889b22fc3c34235e8836f08f51121d307 (patch) | |
tree | fe75c9e9a12da2306356b770b77c47371dc87365 /net/lapb/lapb_subr.c | |
parent | 46ad3dc4171b5ee1d12267d70112563d5760210a (diff) |
PCI: aardvark: Enable MSI-X support
According to PCI 3.0 specification, sending both MSI and MSI-X interrupts
is done by DWORD memory write operation to doorbell message address. The
write operation for MSI has zero upper 16 bits and the MSI interrupt number
in the lower 16 bits, while the write operation for MSI-X contains a 32-bit
value from MSI-X table.
Since the driver only uses interrupt numbers from range 0..31, the upper
16 bits of the DWORD memory write operation to doorbell message address
are zero even for MSI-X interrupts. Thus we can enable MSI-X interrupts.
Testing proves that kernel can correctly receive MSI-X interrupts from PCIe
cards which supports both MSI and MSI-X interrupts.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Pali Rohár <[email protected]>
Signed-off-by: Marek Behún <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions