Skip to contentSkip to conversation

Add MSI support to e1000

PATCH Andi Kleen 2 participants 2 messages Aug 23, 2004 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andi Kleen

author
#2 lore raw
Quoted 8 lines · Roland Dreier

Tom> I do not see anything wrong with the patch and the kernel MSI Tom> support because it works for a short time. Ganesh may provide Tom> an answer on the MSI support in e1000 hardware.

Based on the e1000 documentation I have, the only thing required for the e1000 to use MSI is to set the MSI enable bit in the PCI header. Of course there may be some e1000 erratum involving MSI but I have not been able to find any indication that this is the case.

There seems to be something wrong with the MSI code in the kernel. I tried to add MSI support to the s2io driver on x86-64, but it just didn't work (/proc/interrupts still displayed IO-APIC mode). I haven't investigated in detail yet though.

-Andi

#3 lore raw

Andi> There seems to be something wrong with the MSI code in the Andi> kernel. I tried to add MSI support to the s2io driver on Andi> x86-64, but it just didn't work (/proc/interrupts still Andi> displayed IO-APIC mode). I haven't investigated in detail Andi> yet though.

Hmm... I've not tried MSI on x86-64 (although I have tried it on Nocona running a 32-bit kernel). I have successfully used both MSI and MSI-X on i386 with my mthca (InfiniBand HCA) driver, although with some occasional stability glitches, which may be connected to the e1000 problem I'm seeing. In any case, /proc/interrupts definitely shows "PCI-MSI" mode with a non-zero number of interrupts delivered with my patched e1000 driver.

- Roland