1. 15 1月, 2015 2 次提交
  2. 23 12月, 2014 1 次提交
    • P
      tg3: tg3_disable_ints using uninitialized mailbox value to disable interrupts · 05b0aa57
      Prashant Sreedharan 提交于
      During driver load in tg3_init_one, if the driver detects DMA activity before
      intializing the chip tg3_halt is called. As part of tg3_halt interrupts are
      disabled using routine tg3_disable_ints. This routine was using mailbox value
      which was not initialized (default value is 0). As a result driver was writing
      0x00000001 to pci config space register 0, which is the vendor id / device id.
      
      This driver bug was exposed because of the commit a7877b17a667 (PCI: Check only
      the Vendor ID to identify Configuration Request Retry). Also this issue is only
      seen in older generation chipsets like 5722 because config space write to offset
      0 from driver is possible. The newer generation chips ignore writes to offset 0.
      Also without commit a7877b17a667, for these older chips when a GRC reset is
      issued the Bootcode would reprogram the vendor id/device id, which is the reason
      this bug was masked earlier.
      
      Fixed by initializing the interrupt mailbox registers before calling tg3_halt.
      
      Please queue for -stable.
      Reported-by: NNils Holland <nholland@tisys.org>
      Reported-by: NMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
      Signed-off-by: NPrashant Sreedharan <prashant@broadcom.com>
      Signed-off-by: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      05b0aa57
  3. 09 12月, 2014 1 次提交
    • E
      ethtool: Support for configurable RSS hash function · 892311f6
      Eyal Perry 提交于
      This patch extends the set/get_rxfh ethtool-options for getting or
      setting the RSS hash function.
      
      It modifies drivers implementation of set/get_rxfh accordingly.
      
      This change also delegates the responsibility of checking whether a
      modification to a certain RX flow hash parameter is supported to the
      driver implementation of set_rxfh.
      
      User-kernel API is done through the new hfunc bitmask field in the
      ethtool_rxfh struct. A bit set in the hfunc field is corresponding to an
      index in the new string-set ETH_SS_RSS_HASH_FUNCS.
      
      Got approval from most of the relevant driver maintainers that their
      driver is using Toeplitz, and for the few that didn't answered, also
      assumed it is Toeplitz.
      
      Cc: Tom Lendacky <thomas.lendacky@amd.com>
      Cc: Ariel Elior <ariel.elior@qlogic.com>
      Cc: Prashant Sreedharan <prashant@broadcom.com>
      Cc: Michael Chan <mchan@broadcom.com>
      Cc: Hariprasad S <hariprasad@chelsio.com>
      Cc: Sathya Perla <sathya.perla@emulex.com>
      Cc: Subbu Seetharaman <subbu.seetharaman@emulex.com>
      Cc: Ajit Khaparde <ajit.khaparde@emulex.com>
      Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
      Cc: Jesse Brandeburg <jesse.brandeburg@intel.com>
      Cc: Bruce Allan <bruce.w.allan@intel.com>
      Cc: Carolyn Wyborny <carolyn.wyborny@intel.com>
      Cc: Don Skidmore <donald.c.skidmore@intel.com>
      Cc: Greg Rose <gregory.v.rose@intel.com>
      Cc: Matthew Vick <matthew.vick@intel.com>
      Cc: John Ronciak <john.ronciak@intel.com>
      Cc: Mitch Williams <mitch.a.williams@intel.com>
      Cc: Amir Vadai <amirv@mellanox.com>
      Cc: Solarflare linux maintainers <linux-net-drivers@solarflare.com>
      Cc: Shradha Shah <sshah@solarflare.com>
      Cc: Shreyas Bhatewara <sbhatewara@vmware.com>
      Cc: "VMware, Inc." <pv-drivers@vmware.com>
      Cc: Ben Hutchings <ben@decadent.org.uk>
      Signed-off-by: NEyal Perry <eyalpe@mellanox.com>
      Signed-off-by: NAmir Vadai <amirv@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      892311f6
  4. 26 11月, 2014 1 次提交
  5. 17 11月, 2014 1 次提交
  6. 15 10月, 2014 1 次提交
  7. 02 10月, 2014 1 次提交
  8. 23 9月, 2014 1 次提交
  9. 03 9月, 2014 1 次提交
    • I
      tg3: prevent ifup/ifdown during PCI error recovery · 0486a063
      Ivan Vecera 提交于
      The patch fixes race conditions between PCI error recovery callbacks and
      potential ifup/ifdown.
      
      First, if ifup (tg3_open) is called between tg3_io_error_detected() and
      tg3_io_resume() then tp->timer is armed twice before expiry. Once during
      tg3_open() and again during tg3_io_resume(). This results in BUG
      at kernel/time/timer.c:945.
      
      Second, if ifdown (tg3_close) is called between tg3_io_error_detected()
      and tg3_io_resume() then tg3_napi_disable() is called twice without
      a tg3_napi_enable between. Once during tg3_io_error_detected() and again
      during tg3_close(). The tg3_io_resume() then hangs on rtnl_lock().
      
      v2: Added logging messages per Prashant's request
      
      Cc: Prashant Sreedharan <prashant@broadcom.com>
      Cc: Michael Chan <mchan@broadcom.com>
      Signed-off-by: NIvan Vecera <ivecera@redhat.com>
      Acked-by: NPrashant Sreedharan <prashant@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0486a063
  10. 14 8月, 2014 1 次提交
  11. 13 8月, 2014 1 次提交
  12. 06 8月, 2014 1 次提交
  13. 26 6月, 2014 1 次提交
  14. 20 6月, 2014 1 次提交
    • P
      tg3: Clear NETIF_F_TSO6 flag before doing software GSO · 40c1deaf
      Prashant Sreedharan 提交于
      Commit d3f6f3a1 ("tg3: Prevent page
      allocation failure during TSO workaround") modified driver logic
      to use tg3_tso_bug() for any TSO fragment that hits hardware bug
      conditions thus the patch increased the scope of work for tg3_tso_bug()
      to cover devices that support NETIF_F_TSO6 as well. Prior to the
      patch, tg3_tso_bug() would only be used on devices supporting
      NETIF_F_TSO.
      
      A regression was introduced for IPv6 packets requiring the workaround.
      To properly perform GSO on SKBs with TCPV6 gso_type, we need to call
      skb_gso_segment() with NETIF_F_TSO6 feature flag cleared, or the
      function will return NULL and cause a kernel oops as tg3 is not handling
      a NULL return value. This patch fixes the problem.
      Signed-off-by: NPrashant Sreedharan <prashant@broadcom.com>
      Signed-off-by: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      40c1deaf
  15. 03 6月, 2014 1 次提交
  16. 25 5月, 2014 1 次提交
  17. 14 5月, 2014 3 次提交
  18. 19 4月, 2014 1 次提交
  19. 30 3月, 2014 1 次提交
  20. 28 3月, 2014 1 次提交
  21. 27 3月, 2014 1 次提交
  22. 22 3月, 2014 1 次提交
  23. 13 3月, 2014 1 次提交
  24. 01 3月, 2014 1 次提交
  25. 19 2月, 2014 1 次提交
  26. 07 2月, 2014 2 次提交
  27. 17 1月, 2014 1 次提交
  28. 04 1月, 2014 5 次提交
  29. 28 12月, 2013 1 次提交
  30. 11 12月, 2013 1 次提交
  31. 07 12月, 2013 2 次提交