]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Siena: Disable write-combining when SR-IOV is enabled
authorSteve Hodgson <shodgson@solarflare.com>
Tue, 22 Mar 2011 19:46:43 +0000 (19:46 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Wed, 23 Mar 2011 01:35:15 +0000 (01:35 +0000)
commit9889d7d4e70e90b08b2924aa8e8dc999583ad33d
treeba6286ba53298271070c217492f39bdb259681e4
parent0be93bdc52ac156b2354e88a464c922857f71276
sfc: Siena: Disable write-combining when SR-IOV is enabled

If SR-IOV is enabled by firmware, even if it is not enabled in the PCI
capability, TX pushes using write-combining may be corrupted.

We want to know whether it is enabled before mapping the NIC
registers, and even if PCI extended capabilities are not accessible.
Therefore, we look for the MSI capability, which is removed if SR-IOV
is enabled.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/sfc/efx.c
drivers/net/sfc/workarounds.h