- 25 Aug, 2007 1 commit
-
-
Brice Goglin authored
Based on a patch from Peter Oruba, convert myri10ge to use pcie_get_readrq() and pcie_set_readrq() instead of our own PCI calls and arithmetics. These driver changes incorporate the proposed PCI-X / PCI-Express read byte count interface. Reading and setting those values doesn't take place "manually", instead wrapping functions are called to allow quirks for some PCI bridges. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off by: Peter Oruba <peter.oruba@amd.com> Based on work by Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
- 13 Aug, 2007 1 commit
-
-
Brice Goglin authored
Use the pause counter to avoid a needless device reset, and print a message telling the admin that our link partner is flow controlling us down to 0 pkts/sec. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
- 16 Jul, 2007 1 commit
-
-
Brice Goglin authored
Remove nonsensical limit in the tx done routine. Specifically, the loop will always terminate after processing <= 1 rings worth of frames, as the mcp index is not refetched, so the removed conditional could never be true. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
- 10 Jul, 2007 1 commit
-
-
vignesh babu authored
Replace (n & (n-1)) with is_power_of_2() Signed-off-by:
vignesh babu <vignesh.babu@wipro.com> Cc: Brice Goglin <brice@myri.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
- 02 Jul, 2007 1 commit
-
-
Maik Hampel authored
SET_NETDEV_DEV() in myri10ge to create the "/sys/class/net/<if>/device" symlink. Signed-off-by:
Maik Hampel <m.hampel@gmx.de> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
- 12 Jun, 2007 3 commits
-
-
Brice Goglin authored
Update myri10ge driver version to 1.3.1-1.248. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
Brice Goglin authored
Since Myri-10G boards may also run in Myrinet mode instead of Ethernet, add a message when we detect that the link partner is not running in the right mode. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
Brice Goglin authored
Limit the number of recoveries from a NIC hw watchdog reset to 1 by default. It enables detection of defective NICs immediately since these memory parity errors are expected to happen very rarely (less than once per century*NIC). Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
- 03 Jun, 2007 1 commit
-
-
Brice Goglin authored
Report link up/down in standard ethtool way Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
- 07 May, 2007 4 commits
-
-
Brice Goglin authored
Remove the aligned-completion whitelist, and replace it by using the 1.4.16 firmware's auto-detection features to choose which firmware to load. The driver now loads the aligned firmware, performs a MXGEFW_CMD_UNALIGNED_TEST, and falls back to using the unaligned firmware if: - The firmware is too old (ie, MXGEFW_CMD_UNALIGNED_TEST is an unknown command). - The MXGEFW_CMD_UNALIGNED_TEST returns MXGEFW_CMD_ERROR_UNALIGNED, meaning that it has seen an unaligned completion during the DMA test. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
Brice Goglin authored
Move the DMA test code into its own function. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
Brice Goglin authored
Don't count on whatever implementation artifact preserves the multicast list across a reset cmd, and setup multicast filtering as part of our reset routine. The setting of allmulti when adopting firmware with the rx-filter broadcast bug is also moved into the multicast setup routine where it belongs. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
Brice Goglin authored
Add dropped_pause, dropped_bad_phy, dropped_bad_crc32, dropped_unicast_filtered to the set of ethtool counters. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
- 25 Apr, 2007 4 commits
-
-
Arnaldo Carvalho de Melo authored
To clearly state the intent of copying to linear sk_buffs, _offset being a overly long variant but interesting for the sake of saving some bytes. Signed-off-by:
Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
-
Arnaldo Carvalho de Melo authored
The ip_hdrlen() buddy, created to reduce the number of skb->h.th-> uses and to avoid the longer, open coded equivalent. Ditched a no-op in bnx2 in the process. I wonder if we should have a BUG_ON(skb->h.th->doff < 5) in tcp_optlen()... Signed-off-by:
Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
-
Arnaldo Carvalho de Melo authored
For the quite common 'skb->h.raw - skb->data' sequence. Signed-off-by:
Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
-
Arnaldo Carvalho de Melo authored
One less thing for drivers writers to worry about. Signed-off-by:
Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
-
- 11 Apr, 2007 3 commits
-
-
Brice Goglin authored
Update the myri10ge driver version number to 1.3.0-1.233. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
Brice Goglin authored
Add the Intel 5000 southbridge (aka Intel 6310/6311/6321ESB) PCIe ports and the Intel E30x0 chipsets to the whitelist of aligned PCIe completion. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
Brice Goglin authored
Simpler way of dealing with the firmware 4KB boundary crossing restriction for rx buffers. This fixes a variety of memory corruption issues when using an "uncommon" MTU with a 16KB page size. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
- 28 Mar, 2007 1 commit
-
-
Brice Goglin authored
Correctly detect when TSO should be used on transmit by looking at the skb->gso_size rather than seeing if the frame was larger than our MTU. The old method causes problems when a host with a large (jumbo) MTU is sending to a host with a small (standard) MTU. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
- 22 Mar, 2007 4 commits
-
-
Brice Goglin authored
Driver version is now 1.3.0-1.226. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
Brice Goglin authored
Fix management of allocated physical pages when the architecture page size is not 4kB since the firmware cannot cross 4K boundary. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
Brice Goglin authored
Update the default value of 2 module parameters: * wcfifo disabled * intr_coal_delay 75us Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
Brice Goglin authored
[PATCH 1/4] myri10ge: Serverworks HT2100 provides aligned PCIe completion Use the regular firmware on Serverworks HT2100 PCIe ports since this chipset provides aligned PCIe completion. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
- 09 Mar, 2007 4 commits
-
-
Brice Goglin authored
Add a wc_enabled flag in the myri10ge_priv instead of relying on mtrr >= 0. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
Brice Goglin authored
Do not use 4k rdma request on SGI TIOCE chipset since this bridge does not support it. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
Brice Goglin authored
Allocate a specific page and use pci_map_page for dma test instead of relying on another existing buffer. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
Brice Goglin authored
Fix a missing error check in myri10ge_allocate_rings() and set status to -ENOMEM before all actual allocations so that the error path returns what it should. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
- 02 Mar, 2007 1 commit
-
-
Brice Goglin authored
Fix copyright and license ("regents" should not have ever been used). Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
- 27 Feb, 2007 1 commit
-
-
Brice Goglin authored
Work around a bug which occurs when adopting firmware versions 1.4.4 though 1.4.11 where broadcasts are filtered as if they were multicasts. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
- 05 Feb, 2007 1 commit
-
-
Arjan van de Ven authored
Remove the NETIF_F_TSO #ifdef-ery in drivers/net; this was for old-old-2.4 compat (even current 2.4 has NETIF_F_TSO) but it's time to get rid of it by now. Signed-off-by:
Arjan van de Ven <arjan@linux.intel.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
- 18 Jan, 2007 3 commits
-
-
Brice Goglin authored
Driver is now at version 1.2.0. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
Brice Goglin authored
Now that IRQ allocation is done in myri10ge_open(), we want to still check when loading the driver that IRQ allocation could succeed later. Additionaly, we fix the initialization and printing of netdev->irq. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
Brice Goglin authored
Under some circumstances, using WC without the WC fifo is faster. So we make it possible to tune wc_fifo with a module parameter. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
- 26 Dec, 2006 5 commits
-
-
Brice Goglin authored
On suspend, handle pci_set_power_state errors, and on resume handle failures in pci_resume_state(). Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Stephen Hemminger <shemminger@osdl.org> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
Brice Goglin authored
The PCI MSI and express state are already saved and restored by the current versions of pci_save_state/pci_restore_state. Therefore it is no longer necessary for the driver to do it. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Stephen Hemminger <shemminger@osdl.org> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
Brice Goglin authored
Now that IRQ are requested is called on open() and freed on close(), we can safely switch from/to MSI without unloading the module. We are guaranteed to correctly free IRQ even if the sysfs file got written in the meantime since the MSI initialization is stored in mgp->msi_enabled. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
Brice Goglin authored
Request IRQ in myri10ge_open() and free in close() instead of probe() and remove() to eliminate potential race between the watchdog and the interrupt handler. Additionaly, the interrupt handler won't get called on shared irq anymore when the interface is down. Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-
Brice Goglin authored
Since pci_save_state() pushes MSI and PCIe states on a kind of stack, myri10ge saving the state in advance for parity recovery will push the state again on the stack on suspend. This leads to some memory leak. We add a couple additional calls to save_state and restore_state so that we don't leak anymore. For the future, we are thinking of a better way to recover from parity error without using pci_save_state(). Signed-off-by:
Brice Goglin <brice@myri.com> Signed-off-by:
Jeff Garzik <jeff@garzik.org>
-