1. 21 3月, 2006 3 次提交
  2. 20 3月, 2006 1 次提交
    • M
      [TG3]: 40-bit DMA workaround part 2 · 4a29cc2e
      Michael Chan 提交于
      The 40-bit DMA workaround recently implemented for 5714, 5715, and
      5780 needs to be expanded because there may be other tg3 devices
      behind the EPB Express to PCIX bridge in the 5780 class device.
      
      For example, some 4-port card or mother board designs have 5704 behind
      the 5714.
      
      All devices behind the EPB require the 40-bit DMA workaround.
      
      Thanks to Chris Elmquist again for reporting the problem and testing
      the patch.
      Signed-off-by: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4a29cc2e
  3. 03 2月, 2006 1 次提交
    • M
      [TG3]: Flush tg3_reset_task() · 7faa006f
      Michael Chan 提交于
      Make sure tg3_reset_task() is flushed in the close and suspend paths
      as noted by Jeff Garzik.
      
      In the close path, calling flush_scheduled_work() may cause deadlock
      if linkwatch_event() is on the workqueue. linkwatch_event() will try
      to get the rtnl_lock() which is already held by tg3_close(). So
      instead, we set a flag in tg3_reset_task() and tg3_close() polls
      the flag until it is cleared.
      Signed-off-by: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7faa006f
  4. 17 1月, 2006 1 次提交
    • M
      [TG3]: Refine nvram locking · ec41c7df
      Michael Chan 提交于
      Add nvram lock count so that calls to tg3_nvram_lock()/unlock() can
      be nested. Add error checking to all callers of tg3_nvram_lock()
      where appropriate. To prevent nvram lock failures after halting the
      firmware, it is also necessary to release firmware's nvram lock in
      tg3_halt_cpu().
      
      Update version to 3.48.
      
      Based on David Miller's initial patch.
      Signed-off-by: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ec41c7df
  5. 29 12月, 2005 1 次提交
  6. 14 12月, 2005 1 次提交
    • M
      [TG3]: Fix low power state · 6921d201
      Michael Chan 提交于
      Fix the following bugs in tg3_set_power_state():
      
      1. Both WOL and ASF flags require switching to aux power.
      
      2. Add a missing handshake with firmware to enable WOL.
      
      3. Turn off the PHY if both WOL and ASF are disabled.
      
      4. Add nvram arbitration before halting the firmware.
      
      5. Fix tg3_setup_copper_phy() to switch to 100Mbps when
         changing to low power state.
      
      Update revision and date.
      Signed-off-by: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6921d201
  7. 29 10月, 2005 2 次提交
  8. 28 9月, 2005 1 次提交
    • M
      [TG3]: 5780 PHY fixes · c94e3941
      Michael Chan 提交于
      Fix 5780 PHY related problems:
      
      1. MAC_RX_MODE reset must be done before setting up the MAC_MODE
         register on 5705_PLUS chips or the chip will stop receiving after
         a while. The MAC_RX_MODE reset is needed to prevent intermittently
         losing the first receive packet on serdes chips.
      
      2. Skip MAC loopback test on 5780 because of hardware errata. Normal
         traffic including PHY loopback is not affected by the errata.
      
      3. PHY loopback fails intermittently on 5708S and this is fixed by
         putting the PHY in loopback mode first before programming the MAC
         mode register. A MAC_RX_MODE reset is also added.
      
      4. Return -EINVAL in tg3_nway_reset() if device is in TBI mode. Allow
         nway_reset if 5780S is in parallel detect mode.
      
      5. Add missing PHY IDs in KNOWN_PHY_ID() macro.
      Signed-off-by: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c94e3941
  9. 30 8月, 2005 3 次提交
    • M
      [TG3]: Add indirect register method for 5703 behind ICH · 6892914f
      Michael Chan 提交于
      This patch adds the new workaround for 5703 A1/A2 if it is behind
      certain ICH bridges. The workaround disables memory and uses config.
      cycles only to access all registers. The 5702/03 chips can mistakenly
      decode the special cycles from the ICH chipsets as memory write cycles,
      causing corruption of register and memory space. Only certain ICH
      bridges will drive special cycles with non-zero data during the address
      phase which can fall within the 5703's address range. This is not an ICH
      bug as the PCI spec allows non-zero address during special cycles.
      However, only these ICH bridges are known to drive non-zero addresses
      during special cycles.
      
      The indirect_lock is also changed to spin_lock_irqsave from spin_lock_bh
      because it is used in irq handler when using the indirect method to
      disable interrupts.
      Signed-off-by: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6892914f
    • M
      [TG3]: Add mailbox read method · 09ee929c
      Michael Chan 提交于
      This patch adds the mailbox read method and also adds an inline function
      tw32_mailbox_f() for mailbox writes that require read flush.
      Signed-off-by: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      09ee929c
    • M
      [TG3]: Add basic register access function pointers · 20094930
      Michael Chan 提交于
      This patch adds the basic function pointers to do register accesses in
      the fast path. This was suggested by David Miller. The idea is that
      various register access methods for different hardware errata can easily
      be implemented with these function pointers and performance will not be
      degraded on chips that use normal register access methods.
      
      The various register read write macros (e.g. tw32, tr32, tw32_mailbox)
      are redefined to call the function pointers.
      Signed-off-by: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      20094930
  10. 26 7月, 2005 5 次提交
  11. 06 7月, 2005 1 次提交
  12. 25 6月, 2005 1 次提交
    • D
      [TG3]: Eliminate all hw IRQ handler spinlocks. · f47c11ee
      David S. Miller 提交于
      Move all driver spinlocks to be taken at sw IRQ
      context only.
      
      This fixes the skb_copy() we were doing with hw
      IRQs disabled (which is illegal and triggers a
      BUG() with HIGHMEM enabled).  It also simplifies
      the locking all over the driver tremendously.
      
      We accomplish this feat by creating a special
      sequence to synchronize with the hw IRQ handler
      using a binary state and synchronize_irq().
      This idea is from Herbert Xu.
      
      Thanks to Michael Chan for helping to track down
      all of the race conditions in initial versions
      of this code.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f47c11ee
  13. 19 5月, 2005 2 次提交
    • D
      [TG3]: Set minimal hw interrupt mitigation. · 15f9850d
      David S. Miller 提交于
      Even though we do software interrupt mitigation
      via NAPI, it still helps to have some minimal
      hw assisted mitigation.
      
      This helps, particularly, on systems where register
      I/O overhead is much greater than the CPU horsepower.
      
      For example, it helps on NUMA systems.  In such cases
      the PIO overhead to disable interrupts for NAPI accounts
      for the majority of the packet processing cost.  The
      CPU is fast enough such that only a single packet is
      processed by each NAPI poll call.
      
      Thanks to Michael Chan for reviewing this patch.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      15f9850d
    • D
      [TG3]: Add tagged status support. · fac9b83e
      David S. Miller 提交于
      When supported, use the TAGGED interrupt processing support
      the chip provides.  In this mode, instead of a "on/off" binary
      semaphore, an incrementing tag scheme is used to ACK interrupts.
      
      All MSI supporting chips support TAGGED mode, so the tg3_msi()
      interrupt handler uses it unconditionally.  This invariant is
      verified when MSI support is tested.
      
      Since we can invoke tg3_poll() multiple times per interrupt under
      high packet load, we fetch a new copy of the tag value in the
      status block right before we actually do the work.
      
      Also, because the tagged status tells the chip exactly which
      work we have processed, we can make two optimizations:
      
      1) tg3_restart_ints() need not check tg3_has_work()
      2) the tg3_timer() need not poke the chip 10 times per
         second to keep from losing interrupt events
      
      Based upon valuable feedback from Michael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fac9b83e
  14. 22 4月, 2005 9 次提交
  15. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4