1. 29 6月, 2013 3 次提交
  2. 17 4月, 2013 1 次提交
  3. 27 3月, 2013 1 次提交
  4. 18 3月, 2013 1 次提交
  5. 15 3月, 2013 1 次提交
  6. 01 11月, 2012 1 次提交
  7. 25 10月, 2012 1 次提交
  8. 23 10月, 2012 3 次提交
    • V
      pch_gbe: don't reset MAC_RX on FIFO overflow · a35279f0
      Veaceslav Falico 提交于
      Currently, when FIFO_ERR happens, we stop the dma, wait for it to become
      idle and then reset the whole MAC_RX logic (and after that we must re-set
      multicast addresses and also re-enable MAC_RX when we're finally ready to
      accept new packets). This leads to CRC errors on high number of incoming
      packets and is not needed according to the datasheet.
      
      This patch fixes it by the following steps:
      
      1) remove this reset in pch_gbe_stop_receive(), which causes some functions
      to not be used anywhere
      2) remove already unused functions pch_gbe_wait_clr_bit_irq() and
      pch_gbe_mac_reset_rx() to correctly build
      3) move pch_gbe_enable_mac_rx() out of pch_gbe_start_receive() to
      pch_gbe_up() where it's only needed after we've removed the MAC_RX reset
      4) rename pch_gbe_start/stop_receive() to pch_gbe_enable/disable_dma_rx()
      to more precisely reflect what the functions are now doing.
      
      After these changes we already don't see the CRC errors and gain some
      increase in RX processing speed.
      Signed-off-by: NVeaceslav Falico <vfalico@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a35279f0
    • V
      pch_gbe: don't re-set RX_FIFO_ERR flag in napi_poll · 9c0314e1
      Veaceslav Falico 提交于
      If we were in RX_FIFO_ERR state and entered pch_gbe_napi_poll(), we'll
      anyway clean some rx space and thus can continue to receive more packets.
      Currently, we re-set the RX_FIFO_ERR in situations when we've exhausted our
      budget for RX cleaning or cleaned some TX packets. Removing it gives us
      +20%-40% speed increase and a lot less of RX_FIFO_ERRors reported.
      Signed-off-by: NVeaceslav Falico <vfalico@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9c0314e1
    • V
      pch_gbe: create functions for MAC_RX {en,dis}able · e408a9ff
      Veaceslav Falico 提交于
      Move MAC_RX-related bits into separate functions.
      Signed-off-by: NVeaceslav Falico <vfalico@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e408a9ff
  9. 08 9月, 2012 1 次提交
  10. 27 7月, 2012 3 次提交
  11. 26 7月, 2012 1 次提交
  12. 11 7月, 2012 1 次提交
  13. 16 5月, 2012 1 次提交
  14. 01 5月, 2012 1 次提交
  15. 29 4月, 2012 2 次提交
  16. 22 4月, 2012 7 次提交
  17. 10 3月, 2012 1 次提交
  18. 13 2月, 2012 1 次提交
  19. 01 2月, 2012 2 次提交
  20. 19 1月, 2012 1 次提交
    • D
      pch_gbe: Do not abort probe on bad MAC · 2b53d078
      Darren Hart 提交于
      If the MAC is invalid or not implemented, do not abort the probe. Issue
      a warning and prevent bringing the interface up until a MAC is set manually
      (via ifconfig $IFACE hw ether $MAC).
      
      Tested on two platforms, one with a valid MAC, the other without a MAC. The real
      MAC is used if present, the interface fails to come up until the MAC is set on
      the other. They successfully get an IP over DHCP and pass a simple ping and
      login over ssh test.
      
      This is meant to allow the Inforce SYS940X development board:
      http://www.inforcecomputing.com/SYS940X_ECX.html
      (and others suffering from a missing MAC) to work with the mainline kernel.
      Without this patch, the probe will fail and the interface will not be created,
      preventing the user from configuring the MAC manually.
      
      This does not make any attempt to address a missing or invalid MAC for the
      pch_phub driver.
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      CC: Arjan van de Ven <arjan@linux.intel.com>
      CC: Alan Cox <alan@linux.intel.com>
      CC: Tomoya MORINAGA <tomoya.rohm@gmail.com>
      CC: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
      CC: "David S. Miller" <davem@davemloft.net>
      CC: Paul Gortmaker <paul.gortmaker@windriver.com>
      CC: Jon Mason <jdmason@kudzu.us>
      CC: netdev@vger.kernel.org
      CC: Mark Brown <broonie@opensource.wolfsonmicro.com>
      CC: David Laight <David.Laight@ACULAB.COM>
      CC: Joe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2b53d078
  21. 17 11月, 2011 1 次提交
  22. 01 11月, 2011 1 次提交
  23. 27 9月, 2011 1 次提交
  24. 18 8月, 2011 1 次提交
  25. 12 8月, 2011 1 次提交
    • J
      pch_gbe: Move the OKI Semiconductor driver · 1c1538be
      Jeff Kirsher 提交于
      Move the OKI Semiconductor driver into driver/net/ethernet/oki-semi/
      and make the necessary Kconfig and Makefile changes.
      
      Note: there is no documented maintainer for this driver, so I CC'd
      the last 2 major contributors.
      
      CC: Tomoya <tomoya-linux@dsn.okisemi.com>
      CC: Toshiharu Okada <toshiharu-linux@dsn.okisemi.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      1c1538be
  26. 23 5月, 2011 1 次提交
    • P
      Add appropriate <linux/prefetch.h> include for prefetch users · 70c71606
      Paul Gortmaker 提交于
      After discovering that wide use of prefetch on modern CPUs
      could be a net loss instead of a win, net drivers which were
      relying on the implicit inclusion of prefetch.h via the list
      headers showed up in the resulting cleanup fallout.  Give
      them an explicit include via the following $0.02 script.
      
       =========================================
       #!/bin/bash
       MANUAL=""
       for i in `git grep -l 'prefetch(.*)' .` ; do
       	grep -q '<linux/prefetch.h>' $i
       	if [ $? = 0 ] ; then
       		continue
       	fi
      
       	(	echo '?^#include <linux/?a'
       		echo '#include <linux/prefetch.h>'
       		echo .
       		echo w
       		echo q
       	) | ed -s $i > /dev/null 2>&1
       	if [ $? != 0 ]; then
       		echo $i needs manual fixup
       		MANUAL="$i $MANUAL"
       	fi
       done
       echo ------------------- 8\<----------------------
       echo vi $MANUAL
       =========================================
      Signed-off-by: NPaul <paul.gortmaker@windriver.com>
      [ Fixed up some incorrect #include placements, and added some
        non-network drivers and the fib_trie.c case    - Linus ]
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      70c71606