1. 25 6月, 2011 4 次提交
  2. 21 6月, 2011 1 次提交
  3. 31 3月, 2011 1 次提交
  4. 18 11月, 2010 1 次提交
  5. 29 10月, 2010 1 次提交
    • P
      8390: Don't oops on starting dev queue · b7126d8c
      Pavel Emelyanov 提交于
      The __NS8390_init tries to start the device queue before the
      device is registered. This results in an oops (snipped):
      
      [    2.865493] BUG: unable to handle kernel NULL pointer dereference at 0000000000000010
      [    2.866106] IP: [<ffffffffa000602a>] netif_start_queue+0xb/0x12 [8390]
      [    2.881267] Call Trace:
      [    2.881437]  [<ffffffffa000624d>] __NS8390_init+0x102/0x15a [8390]
      [    2.881999]  [<ffffffffa00062ae>] NS8390_init+0x9/0xb [8390]
      [    2.882237]  [<ffffffffa000d820>] ne2k_pci_init_one+0x297/0x354 [ne2k_pci]
      [    2.882955]  [<ffffffff811c7a0e>] local_pci_probe+0x12/0x16
      [    2.883308]  [<ffffffff811c85ad>] pci_device_probe+0xc3/0xef
      [    2.884049]  [<ffffffff8129218d>] driver_probe_device+0xbe/0x14b
      [    2.884937]  [<ffffffff81292260>] __driver_attach+0x46/0x62
      [    2.885170]  [<ffffffff81291788>] bus_for_each_dev+0x49/0x78
      [    2.885781]  [<ffffffff81291fbb>] driver_attach+0x1c/0x1e
      [    2.886089]  [<ffffffff812912ab>] bus_add_driver+0xba/0x227
      [    2.886330]  [<ffffffff8129259a>] driver_register+0x9e/0x115
      [    2.886933]  [<ffffffff811c8815>] __pci_register_driver+0x50/0xac
      [    2.887785]  [<ffffffffa001102c>] ne2k_pci_init+0x2c/0x2e [ne2k_pci]
      [    2.888093]  [<ffffffff81000212>] do_one_initcall+0x7c/0x130
      [    2.888693]  [<ffffffff8106d74f>] sys_init_module+0x99/0x1da
      [    2.888946]  [<ffffffff81002a2b>] system_call_fastpath+0x16/0x1b
      
      This happens because the netif_start_queue sets respective bit on the dev->_tx
      array which is not yet allocated.
      
      As far as I understand the code removing the netif_start_queue from __NS8390_init
      is OK, since queue will be started later on device open. Plz, correct me if I'm wrong.
      
      Found in the Dave's current tree, so he's in Cc.
      Signed-off-by: NPavel Emelyanov <xemul@openvz.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b7126d8c
  6. 14 5月, 2010 1 次提交
    • J
      drivers/net: Remove unnecessary returns from void function()s · a4b77097
      Joe Perches 提交于
      This patch removes from drivers/net/ all the unnecessary
      return; statements that precede the last closing brace of
      void functions.
      
      It does not remove the returns that are immediately
      preceded by a label as gcc doesn't like that.
      
      It also does not remove null void functions with return.
      
      Done via:
      $ grep -rP --include=*.[ch] -l "return;\n}" net/ | \
        xargs perl -i -e 'local $/ ; while (<>) { s/\n[ \t\n]+return;\n}/\n}/g; print; }'
      
      with some cleanups by hand.
      
      Compile tested x86 allmodconfig only.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a4b77097
  7. 10 5月, 2010 1 次提交
  8. 22 4月, 2010 1 次提交
  9. 04 4月, 2010 1 次提交
    • J
      net: convert multicast list to list_head · 22bedad3
      Jiri Pirko 提交于
      Converts the list and the core manipulating with it to be the same as uc_list.
      
      +uses two functions for adding/removing mc address (normal and "global"
       variant) instead of a function parameter.
      +removes dev_mcast.c completely.
      +exposes netdev_hw_addr_list_* macros along with __hw_addr_* functions for
       manipulation with lists on a sandbox (used in bonding and 80211 drivers)
      Signed-off-by: NJiri Pirko <jpirko@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      22bedad3
  10. 26 2月, 2010 1 次提交
  11. 04 12月, 2009 1 次提交
  12. 01 9月, 2009 1 次提交
  13. 06 7月, 2009 1 次提交
  14. 13 6月, 2009 1 次提交
  15. 16 12月, 2008 1 次提交
  16. 26 11月, 2008 1 次提交
  17. 22 11月, 2008 1 次提交
  18. 04 11月, 2008 1 次提交
  19. 09 10月, 2008 1 次提交
    • J
      lib8390: Fix locking in ei_poll (poll controller) · f47aeffd
      Jarek Poplawski 提交于
      This lockdep warning:
        =================================
        [ INFO: inconsistent lock state ]
        2.6.27-rc7 #3
        ---------------------------------
        inconsistent {in-softirq-W} -> {softirq-on-W} usage.
        syslogd/2474 [HC0[0]:SC0[0]:HE1:SE1] takes:
         (_xmit_ETHER#2){-+..}, at: [<c0265562>] netpoll_send_skb+0x132/0x190
        ...
      
      is caused by unconditional local_irq_disable()/local_irq_enable() in
      disable_irq_lockdep()/enable_irq_lockdep() used by __ei_poll(). Since
      netconsole/netpoll always calls dev->poll_controller() with local irqs
      disabled, disable_irq()/enable_irq() instead is safe and enough (like
      e.g. in 3c509 or 8139xx drivers).
      Reported-and-tested-by: NBernard Pidoux F6BVP <f6bvp@free.fr>
      Signed-off-by: NJarek Poplawski <jarkao2@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f47aeffd
  20. 12 6月, 2008 1 次提交
    • S
      [netdrvr] Fix 8390 build breakage · 0c1aa20f
      Stephen Rothwell 提交于
      From: tony@bakeyournoodle.com (Tony Breeds)
      
      The commit 3f8cb098
      (drivers/net/lib8390: fix warning, trim trailing whitespace) removed
      ei_local from ei_tx_err() and ei_rx_overrun() resulting in the following
      build errors on m68k and sh:
      
      Using /scratch1/tony/next as source for kernel
      GEN     /scratch1/tony/next_out/Makefile
      CHK     include/linux/version.h
      CHK     include/linux/utsrelease.h
      CALL    /scratch1/tony/next/scripts/checksyscalls.sh
      CHK     include/linux/compile.h
      CC [M]  drivers/net/zorro8390.o
      In file included from /scratch1/tony/next/drivers/net/zorro8390.c:47:
      drivers/net/lib8390.c: In function 'ei_tx_err':
      drivers/net/lib8390.c:556: error: 'ei_local' undeclared (first use in this function)
      drivers/net/lib8390.c:556: error: (Each undeclared identifier is reported only once
      drivers/net/lib8390.c:556: error: for each function it appears in.)
      drivers/net/lib8390.c: In function 'ei_rx_overrun':
      drivers/net/lib8390.c:823: error: 'ei_local' undeclared (first use in this function)
      make[3]: *** [drivers/net/zorro8390.o] Error 1
      make[2]: *** [drivers/net] Error 2
      make[1]: *** [drivers] Error 2
      make: *** [sub-make] Error 2
      
      The problem is that ei_inb_p() is using various #defines (from
      drivers/net/8390.h) that use EI_SHIFT, which in some drivers on some
      architectures use ei_local.  Tag ei_local as "__maybe_unused" to keep it
      around and keep the warnings the original commit is trying to silence
      ... silenced.
      Signed-off-by: NTony Breeds <tony@bakeyournoodle.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      0c1aa20f
  21. 13 5月, 2008 2 次提交
  22. 03 2月, 2008 1 次提交
  23. 31 7月, 2007 1 次提交
  24. 27 7月, 2007 1 次提交
  25. 26 4月, 2007 1 次提交
  26. 02 12月, 2006 1 次提交
    • A
      [PATCH] beginning of 8390 fixes - generic and arm/etherh · 6c3561b0
      Al Viro 提交于
      etherh and a handful of other odd drivers use different macros when building
      8390.c.  Since we generate a single 8390.o and then link with it, in any
      config with both oddball and normal 8390-based driver we will end up with
      breakage in at least one of them.  Solution: take most of 8390.c into
      lib8390.c and have 8390.c, etherh.c and the rest of oddballs #include it.
      Helper macros are taken from 8390.h to whoever includes lib8390.c.  That
      way odd drivers get separate instances of compiled 8390 stuff and stop
      stepping on each other's toes.  8390.h gets cleaned up - we don't have
      the cascade of ifdefs in there and are left with the stuff that can be
      used by any 8390-based driver.  Current problems are exactly because of
      that cascade - we attempt to choose the set of helpers by looking at config
      and that, of course, doesn't work well when we have several sets needed
      by various drivers in our config.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      6c3561b0
  27. 07 10月, 2006 1 次提交
  28. 05 10月, 2006 1 次提交
    • D
      IRQ: Maintain regs pointer globally rather than passing to IRQ handlers · 7d12e780
      David Howells 提交于
      Maintain a per-CPU global "struct pt_regs *" variable which can be used instead
      of passing regs around manually through all ~1800 interrupt handlers in the
      Linux kernel.
      
      The regs pointer is used in few places, but it potentially costs both stack
      space and code to pass it around.  On the FRV arch, removing the regs parameter
      from all the genirq function results in a 20% speed up of the IRQ exit path
      (ie: from leaving timer_interrupt() to leaving do_IRQ()).
      
      Where appropriate, an arch may override the generic storage facility and do
      something different with the variable.  On FRV, for instance, the address is
      maintained in GR28 at all times inside the kernel as part of general exception
      handling.
      
      Having looked over the code, it appears that the parameter may be handed down
      through up to twenty or so layers of functions.  Consider a USB character
      device attached to a USB hub, attached to a USB controller that posts its
      interrupts through a cascaded auxiliary interrupt controller.  A character
      device driver may want to pass regs to the sysrq handler through the input
      layer which adds another few layers of parameter passing.
      
      I've build this code with allyesconfig for x86_64 and i386.  I've runtested the
      main part of the code on FRV and i386, though I can't test most of the drivers.
      I've also done partial conversion for powerpc and MIPS - these at least compile
      with minimal configurations.
      
      This will affect all archs.  Mostly the changes should be relatively easy.
      Take do_IRQ(), store the regs pointer at the beginning, saving the old one:
      
      	struct pt_regs *old_regs = set_irq_regs(regs);
      
      And put the old one back at the end:
      
      	set_irq_regs(old_regs);
      
      Don't pass regs through to generic_handle_irq() or __do_IRQ().
      
      In timer_interrupt(), this sort of change will be necessary:
      
      	-	update_process_times(user_mode(regs));
      	-	profile_tick(CPU_PROFILING, regs);
      	+	update_process_times(user_mode(get_irq_regs()));
      	+	profile_tick(CPU_PROFILING);
      
      I'd like to move update_process_times()'s use of get_irq_regs() into itself,
      except that i386, alone of the archs, uses something other than user_mode().
      
      Some notes on the interrupt handling in the drivers:
      
       (*) input_dev() is now gone entirely.  The regs pointer is no longer stored in
           the input_dev struct.
      
       (*) finish_unlinks() in drivers/usb/host/ohci-q.c needs checking.  It does
           something different depending on whether it's been supplied with a regs
           pointer or not.
      
       (*) Various IRQ handler function pointers have been moved to type
           irq_handler_t.
      Signed-Off-By: NDavid Howells <dhowells@redhat.com>
      (cherry picked from 1b16e7ac850969f38b375e511e3fa2f474a33867 commit)
      7d12e780
  29. 30 9月, 2006 1 次提交
  30. 14 9月, 2006 1 次提交
  31. 20 7月, 2006 1 次提交
  32. 04 7月, 2006 1 次提交
  33. 23 6月, 2006 1 次提交
    • A
      [PATCH] skb_padto()-area fixes in 8390, wavelan · aa95abef
      Alan Cox 提交于
      Ar Iau, 2006-06-22 am 21:29 +1000, ysgrifennodd Herbert Xu:
      > Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
      > >
      > > The 8390 change (corrected version) also makes 8390.c faster so should
      > > be applied anyway, and the orinoco one fixes some code that isn't even
      > > needed and someone forgot to remove long ago. Otherwise the skb_padto
      >
      > Yeah I agree totally.  However, I haven't actually seen the fixed 8390
      > version being posted yet or at least not to netdev :)
      
      Ah the resounding clang of a subtle hint ;)
      Signed-off-by: NAlan Cox <alan@redhat.com>
      
      - Return 8390.c to the old way of handling short packets (which is also
      faster)
      
      - Remove the skb_padto from orinoco. This got left in when the padding bad
      write patch was added and is actually not needed. This is fixing a merge
      error way back when.
      
      - Wavelan can also use the stack based buffer trick if you want
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      aa95abef
  34. 23 9月, 2005 1 次提交
    • P
      [PATCH] 8390 Tx fix for non i386 machines · 9389d79f
      Paul Gortmaker 提交于
      While this is true, E8390_CMD is zero on i386, and thus there should be no
      effect for these machines.  Machines like Mac, Amiga etc. which use Alan's
      clever register mapping may have a non-zero E8390_CMD and result in bogus
      "transmitter busy" type messages from this bug.
      
      Fixes BUG# 3991.
      9389d79f
  35. 22 6月, 2005 1 次提交
  36. 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