netdev
[Top] [All Lists]

Re: [PATCH 2.6.11 4/8] tg3: Add msi test

To: "Jeff Garzik" <jgarzik@xxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>
Subject: Re: [PATCH 2.6.11 4/8] tg3: Add msi test
From: "Michael Chan" <mchan@xxxxxxxxxxxx>
Date: Tue, 22 Mar 2005 14:07:13 -0800
Cc: netdev@xxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
Thread-index: AcUvId9elZovvXdPRk2S+TUl8AMnDgABfxwg
Thread-topic: [PATCH 2.6.11 4/8] tg3: Add msi test
"Jeff Garzik" wrote:

> Michael Chan wrote:
> > Add an MSI test to make sure MSI is working at the system level. If 
> > the test fails, the driver will go back to INTx mode.
> > 
> > Signed-off-by: Michael Chan <mchan@xxxxxxxxxxxx
> 
> In theory, this patch is not necessary.
> 
> pci_enable_msi() should fail, if MSI is not available at the 
> system level.
> 
> What behavior are you seeing?
> 
>       Jeff
> 
 
Some older chipsets/APICs in older PCI machines do not properly support MSI.
In some cases you will get no interrupts and in a few cases you can get
SERR/NMI because the MSI cycle terminates abnormally. The pci_msi_quirk does
not cover all problem chipsets out there. pci_enable_msi() can succeed on
these problem machines.

Most newer PCI Express machines have no problem with MSI, but we have at
least one machine in the lab that doesn't work with MSI.

The interrupt test code is very small and can conclusively determine if MSI
is working on the machine or not. The code can later be used as part of the
ethtool self test. Without the test, we'll have to resort of a parameter or a
config option to disable MSI in tg3.

Michael




<Prev in Thread] Current Thread [Next in Thread>