1. 23 3月, 2007 15 次提交
    • B
      myri10ge: update driver version to 1.3.0-1.226 · 2ea34672
      Brice Goglin 提交于
      Driver version is now 1.3.0-1.226.
      Signed-off-by: NBrice Goglin <brice@myri.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      2ea34672
    • B
      myri10ge: fix management of >4kB allocated pages · b52a8b7f
      Brice Goglin 提交于
      Fix management of allocated physical pages when the architecture
      page size is not 4kB since the firmware cannot cross 4K boundary.
      Signed-off-by: NBrice Goglin <brice@myri.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      b52a8b7f
    • B
      myri10ge: update wcfifo and intr_coal_delay default values · f761fae1
      Brice Goglin 提交于
      Update the default value of 2 module parameters:
      * wcfifo disabled
      * intr_coal_delay 75us
      Signed-off-by: NBrice Goglin <brice@myri.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      f761fae1
    • B
      myri10ge: Serverworks HT2100 provides aligned PCIe completion · aafa70eb
      Brice Goglin 提交于
      [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: NBrice Goglin <brice@myri.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      aafa70eb
    • D
      mv643xx_eth: add mv643xx_eth_shutdown function · d57ab6fd
      Dale Farnsworth 提交于
      mv643xx_eth_shutdown is needed for kexec.
      Signed-off-by: NDale Farnsworth <dale@farnsworth.org>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      d57ab6fd
    • R
      SAA9730: Fix large pile of warnings · 69a43ac0
      Ralf Baechle 提交于
      The SAA9730 driver doesn't quite grok what the difference between an ioport
      and memory mapped I/O is.  It just happened to work on the one Linux
      system the SAA9730 happens to spend it's misserable existence on.
      
      drivers/net/saa9730.c: In function 'evm_saa9730_enable_lan_int':
      drivers/net/saa9730.c:68: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:70: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:72: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c: In function 'evm_saa9730_disable_lan_int':
      drivers/net/saa9730.c:78: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:80: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c: In function 'evm_saa9730_clear_lan_int':
      drivers/net/saa9730.c:85: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c: In function 'evm_saa9730_block_lan_int':
      drivers/net/saa9730.c:91: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c: In function 'evm_saa9730_unblock_lan_int':
      drivers/net/saa9730.c:97: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c: In function 'show_saa9730_regs':
      drivers/net/saa9730.c:150: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c: In function 'lan_saa9730_allocate_buffers':
      drivers/net/saa9730.c:292: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:295: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:302: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:305: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:312: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c: In function 'lan_saa9730_cam_load':
      drivers/net/saa9730.c:329: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:332: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c: In function 'lan_saa9730_mii_init':
      drivers/net/saa9730.c:369: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:395: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:403: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:410: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:432: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c: In function 'lan_saa9730_control_init':
      drivers/net/saa9730.c:470: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:474: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:478: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:484: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:487: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:490: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:493: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c: In function 'lan_saa9730_stop':
      drivers/net/saa9730.c:505: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:508: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:510: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c: In function 'lan_saa9730_dma_init':
      drivers/net/saa9730.c:536: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c: In function 'lan_saa9730_start':
      drivers/net/saa9730.c:556: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:560: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:564: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:567: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c: In function 'lan_saa9730_tx':
      drivers/net/saa9730.c:590: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c: In function 'lan_saa9730_rx':
      drivers/net/saa9730.c:664: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:729: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c: In function 'lan_saa9730_write':
      drivers/net/saa9730.c:848: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c: In function 'lan_saa9730_set_multicast':
      drivers/net/saa9730.c:943: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      drivers/net/saa9730.c:949: warning: passing argument 2 of 'outl' makes integer from pointer without a cast
      
      Fixed by using writel instead of outl.  42 warnings less.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      69a43ac0
    • L
      Revert "ucc_geth: returns NETDEV_TX_BUSY when BD ring is full" · 6f6881b8
      Li Yang 提交于
      This reverts commit 18babd38.
      
      Michael Barkowski points out that it's wrong, and I agree.  The
      patch causes a problem rather than fixes one after another
      patch "ucc_geth: Fix BD processing" was applied.  Before that
      patch, current packet should be blocked.  However after the patch
      current packet is ok and we only need to block next.
      Reported-by: NMichael Barkowski <michael.barkowski@freescale.com>
      Signed-off-by: NLi Yang <leoli@freescale.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      6f6881b8
    • D
      cxgb3 - T3B2 pcie config space · e4d08359
      Divy Le Ray 提交于
      T3B2 does not lose its pcie config space on reset.
      Signed-off-by: NDivy Le Ray <divy@chelsio.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      e4d08359
    • D
      cxgb3 - Fix potential MAC hang · fc90664e
      Divy Le Ray 提交于
      Under rare conditions, the MAC might hang while generating a pause frame.
      This patch fine tunes the MAC settings to avoid the issue, allows for
      periodic MAC state check, and triggers a recovery if hung.
      
      Also fix one MAC statistics counter for the rev board T3B2.
      Signed-off-by: NDivy Le Ray <divy@chelsio.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      fc90664e
    • D
      cxgb3 - Auto-load FW if mismatch detected · 2e283962
      Divy Le Ray 提交于
      The driver attempts to upgrade the FW if the card has the wrong version.
      Signed-off-by: NDivy Le Ray <divy@chelsio.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      2e283962
    • D
      cxgb3 - fix ethtool cmd on multiple queues port · 05b97b30
      Divy Le Ray 提交于
      Limit ethtool -g/-G to the given port's queues.
      Signed-off-by: NDivy Le Ray <divy@chelsio.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      05b97b30
    • A
      Fix return code in pci-skeleton.c · 5c4851cc
      Anton Blanchard 提交于
      We assign the return value of register_netdev to i, but return rc later
      on. Fix it.
      Signed-off-by: NAnton Blanchard <anton@samba.org>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      5c4851cc
    • S
      skge: use per-port phy locking · 9cbe330f
      Stephen Hemminger 提交于
      Rather than a workqueue and a per-board mutex to control PHY,
      use a tasklet and spinlock. Tasklet is lower overhead and works
      just as well for this.
      Signed-off-by: NStephen Hemminger <shemminger@linux-foundation.org>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      9cbe330f
    • S
      skge: mask irqs when device down · 4ebabfcb
      Stephen Hemminger 提交于
      Wheen a port on the skge driver is not used, it should
      mask off interrupts from theat port.
      Signed-off-by: NStephen Hemminger <shemminger@linux-foundation.org>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      4ebabfcb
    • S
      skge: deadlock on tx timeout · e3a1b99f
      Stephen Hemminger 提交于
      The skge driver will deadlock if gets a transmit timeout
      because the netif_tx_lock() is already held.
      Signed-off-by: NStephen Hemminger <shemminger@linux-foundation.org>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      e3a1b99f
  2. 20 3月, 2007 1 次提交
  3. 15 3月, 2007 9 次提交
  4. 10 3月, 2007 13 次提交
    • R
      ibmtr: Drain rich supply of modpost warnings. · 82c00b62
      Ralf Baechle 提交于
      Building ibmtr as a module produces a spectacular pile of modpost warnings:
      
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:ibmtr_probe1 from .text between 'ibmtr_probe_card' (at offset 0x450) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:ibmtr_probe1 from .text between 'ibmtr_probe_card' (at offset 0x454) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:ibmtr_probe1 from .text between 'ibmtr_probe_card' (at offset 0x458) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:ibmtr_probe1 from .text between 'ibmtr_probe_card' (at offset 0x45c) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data:ibmtr_portlist from .text between 'ibmtr_probe_card' (at offset 0x4e8) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data:ibmtr_portlist from .text between 'ibmtr_probe_card' (at offset 0x4ec) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data:ibmtr_portlist from .text between 'ibmtr_probe_card' (at offset 0x4f0) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data:ibmtr_portlist from .text between 'ibmtr_probe_card' (at offset 0x4f4) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:find_turbo_adapters from .text between 'ibmtr_probe_card' (at offset 0x500) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:find_turbo_adapters from .text between 'ibmtr_probe_card' (at offset 0x504) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:find_turbo_adapters from .text between 'ibmtr_probe_card' (at offset 0x508) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:find_turbo_adapters from .text between 'ibmtr_probe_card' (at offset 0x50c) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data:ibmtr_portlist from .text between 'ibmtr_probe_card' (at offset 0x520) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data:ibmtr_portlist from .text between 'ibmtr_probe_card' (at offset 0x524) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data:ibmtr_portlist from .text between 'ibmtr_probe_card' (at offset 0x528) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data:ibmtr_portlist from .text between 'ibmtr_probe_card' (at offset 0x534) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data: from .text between 'ibmtr_probe_card' (at offset 0x540) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data: from .text between 'ibmtr_probe_card' (at offset 0x544) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data: from .text between 'ibmtr_probe_card' (at offset 0x548) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data: from .text between 'ibmtr_probe_card' (at offset 0x54c) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:ibmtr_probe1 from .text between 'ibmtr_probe_card' (at offset 0x558) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:ibmtr_probe1 from .text between 'ibmtr_probe_card' (at offset 0x55c) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:ibmtr_probe1 from .text between 'ibmtr_probe_card' (at offset 0x560) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:ibmtr_probe1 from .text between 'ibmtr_probe_card' (at offset 0x564) and 'ibmtr_reset_timer'
      
      Fix by making ibmtr_probe an __init function.
      
      While at it, move move ibmtr_probe_card below ibmtr_probe so the protoype
      for ibmtr_probe can be deleted.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      
       drivers/net/tokenring/ibmtr.c |   25 ++++++++++++-------------
       1 file changed, 12 insertions(+), 13 deletions(-)
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      82c00b62
    • R
      3c59x: Fix several modpost warnings · 95c408a9
      Ralf Baechle 提交于
      WARNING: drivers/net/3c59x.o - Section mismatch: reference to .init.text: from .text between 'vortex_eisa_probe' (at offset 0x4580) and 'vortex_eisa_remove'
      WARNING: drivers/net/3c59x.o - Section mismatch: reference to .init.text: from .text between 'vortex_eisa_probe' (at offset 0x4584) and 'vortex_eisa_remove'
      WARNING: drivers/net/3c59x.o - Section mismatch: reference to .init.text: from .text between 'vortex_eisa_probe' (at offset 0x4588) and 'vortex_eisa_remove'
      WARNING: drivers/net/3c59x.o - Section mismatch: reference to .init.text: from .text between 'vortex_eisa_probe' (at offset 0x458c) and 'vortex_eisa_remove'
      
      Fixed by:
      
       o move definition of vortex_eisa_driver below the functions it references.
       o remove now unnecessary prototypes for vortex_eisa_probe and
         vortex_eisa_remove.
       o Make vortex_eisa_probe an __init function.
       o Make vortex_eisa_remove a __devexit function.
       o Wrap vortex_eisa_driver reference to vortex_eisa_remove with
         __devexit_p().
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      
       drivers/net/3c59x.c |   28 +++++++++++++---------------
       1 file changed, 13 insertions(+), 15 deletions(-)
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      95c408a9
    • A
      z85230: Fix FIFO handling · fe797455
      Alan Cox 提交于
      We must exit immediately on a FIFO fill not take the end of packet path
      otherwise each underrun in PIO transmit mode causes a runt packet and the
      data is lost.
      Signed-off-by: NAlan Cox <alan@redhat.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      fe797455
    • F
      r8169: fix a race between PCI probe and dev_open · 2efa53f3
      Francois Romieu 提交于
      Initialize the timer with the rest of the private-struct.
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      Signed-off-by: NFrancois Romieu <romieu@fr.zoreil.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      2efa53f3
    • F
      r8169: revert bogus BMCR reset · 9e0db8ef
      Francois Romieu 提交于
      Added during bf793295
      
      The current code requests a reset but prohibits autoneg, 1000 Mb/s,
      100 Mb/s and full duplex. The 8168 does not like it at all.
      Signed-off-by: NFrancois Romieu <romieu@fr.zoreil.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      9e0db8ef
    • S
      sky2: turn off Rx checksum on bad hardware · 87418307
      Stephen Hemminger 提交于
      On Yukon FE, occasional hardware receive checksum errors are seen.
      An early indication of the problem is single bit differences in the two
      checksum engines.  Use this as a detection mechanism to turn off Rx
      checksumming.
      Signed-off-by: NStephen Hemminger <shemminger@linux-foundation.org>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      87418307
    • D
    • B
      myri10ge: add a wc_enabled flag to myri10ge_priv · 276e26c3
      Brice Goglin 提交于
      Add a wc_enabled flag in the myri10ge_priv instead of relying
      on mtrr >= 0.
      Signed-off-by: NBrice Goglin <brice@myri.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      276e26c3
    • B
      myri10ge: prevent 4k rdma on SGI TIOCE chipset · 4c882dd8
      Brice Goglin 提交于
      Do not use 4k rdma request on SGI TIOCE chipset since this
      bridge does not support it.
      Signed-off-by: NBrice Goglin <brice@myri.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      4c882dd8
    • B
      myri10ge: use pci_map_page to prepare the dmatest buffer · 34fdccea
      Brice Goglin 提交于
      Allocate a specific page and use pci_map_page for dma test instead
      of relying on another existing buffer.
      Signed-off-by: NBrice Goglin <brice@myri.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      34fdccea
    • B
      myri10ge: fix error checking and return value in myri10ge_allocate_rings · 355c7265
      Brice Goglin 提交于
      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: NBrice Goglin <brice@myri.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      355c7265
    • R
      netxen: fix warnings · b8d095d7
      Ralf Baechle 提交于
        CC [M]  drivers/net/netxen/netxen_nic_hw.o
      drivers/net/netxen/netxen_nic_hw.c: In function 'netxen_nic_hw_resources':
      drivers/net/netxen/netxen_nic_hw.c:231: warning: format '%llx' expects type 'long long unsigned int', but argument 2 has type 'dma_addr_t'
      drivers/net/netxen/netxen_nic_hw.c:250: warning: format '%llx' expects type 'long long unsigned int', but argument 2 has type 'dma_addr_t'
      
      u64 is unsigned long so the cast to u64 will result in a warning on the
      printf arguments for 64-bit builds.  So cast to unsigned long long instead.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      b8d095d7
    • R
      via-rhine: set avoid_D3 for broken BIOSes · e84df485
      Roger Luethi 提交于
      This patch sets avoid_D3 for BIOSes known to be broken. Said BIOSes fail
      at PXE boot if the chip is in power state D3.
      Signed-off-by: NRoger Luethi <rl@hellgate.ch>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      e84df485
  5. 08 3月, 2007 2 次提交