Skip to content
Snippets Groups Projects
  1. Jul 07, 2011
  2. Jul 05, 2011
  3. Jul 04, 2011
  4. Jun 22, 2011
    • Hauke Mehrtens's avatar
      ssb: add __devinit to some functions · cd155987
      Hauke Mehrtens authored
      
      Two functions in ssb are using register_pci_controller() which is
      __devinit. The functions ssb_pcicore_init_hostmode() and
      ssb_gige_probe() should also be __devinit.
      
      This fixes the following warning:
      WARNING: vmlinux.o(.text+0x2727b8): Section mismatch in reference from the function ssb_pcicore_init_hostmode() to the function .devinit.text:register_pci_controller()
      The function ssb_pcicore_init_hostmode() references
      the function __devinit register_pci_controller().
      This is often because ssb_pcicore_init_hostmode lacks a __devinit
      annotation or the annotation of register_pci_controller is wrong.
      
      WARNING: vmlinux.o(.text+0x273398): Section mismatch in reference from the function ssb_gige_probe() to the function .devinit.text:register_pci_controller()
      The function ssb_gige_probe() references
      the function __devinit register_pci_controller().
      This is often because ssb_gige_probe lacks a __devinit
      annotation or the annotation of register_pci_controller is wrong.
      
      Reported-by: default avatarRalf Baechle <ralf@linux-mips.org>
      Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      cd155987
  5. Jun 06, 2011
  6. Apr 29, 2011
  7. Dec 01, 2010
    • Hauke Mehrtens's avatar
      b44: fix workarround for wap54g10 · 6c08af03
      Hauke Mehrtens authored
      
      The code for the b44_wap54g10_workaround was never included, because
      the config option was wrong. The nvram_get function was never in
      mainline kernel, only in external OpenWrt patches.
      
      The code should be compiled in when CONFIG_BCM47XX is selected and not
      when CONFIG_SSB_DRIVER_MIPS is selected, because nvram_getenv is only
      available on bcm47xx platforms and now in the mainline kernel code.
      Using an include is better than a second function declaration, to fix
      this when the function signature changes.
      
      Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6c08af03
  8. Oct 21, 2010
  9. Oct 11, 2010
  10. Sep 07, 2010
    • Mark Lord's avatar
      PATCH: b44 Handle RX FIFO overflow better (simplified) · 32737e93
      Mark Lord authored
      
      This patch is a simplified version of the original patch from James Courtier-Dutton.
      
      >From: James Courtier-Dutton
      >Subject: [PATCH] Fix b44 RX FIFO overflow recovery.
      >Date: Wednesday, June 30, 2010 - 1:11 pm
      >
      >This patch improves the recovery after a RX FIFO overflow on the b44
      >Ethernet NIC.
      >Before it would do a complete chip reset, resulting is loss of link
      >for a few seconds.
      >This patch improves this to do recovery in about 20ms without loss of link.
      >
      >Signed off by: James@superbug.co.uk
      
      Signed-off-by: default avatarMark Lord <mlord@pobox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      32737e93
  11. Sep 02, 2010
  12. Jul 07, 2010
  13. Jun 04, 2010
  14. May 10, 2010
  15. Apr 03, 2010
    • Jiri Pirko's avatar
      net: convert multicast list to list_head · 22bedad3
      Jiri Pirko authored
      
      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: default avatarJiri Pirko <jpirko@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      22bedad3
  16. Mar 30, 2010
    • Tejun Heo's avatar
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo authored
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
        file.
      
      The conversion was done in the following steps.
      
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
         files.
      
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
         necessary.
      
      6. percpu.h was updated not to include slab.h.
      
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
      
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Guess-its-ok-by: default avatarChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6
  17. Feb 22, 2010
  18. Feb 17, 2010
  19. Feb 12, 2010
  20. Jan 08, 2010
  21. Dec 08, 2009
    • Stanislav Brabec's avatar
      b44 WOL setup: one-bit-off stack corruption kernel panic fix · e0188829
      Stanislav Brabec authored
      
      About 50% of shutdowns of b44 Ethernet adapter ends by kernel panic
      with kernels compiled with stack-protector.
      
      Checking b44_magic_pattern() return values, one call of
      b44_magic_pattern() returns 127. It means, that set_bit(128, pmask)
      was called on line 1509. It means that bit 0 of 17th byte of pmask was
      overwritten. But pmask has only 16 bytes. Stack corruption happens.
       
      It seems that set_bit() on line 1509 always writes one bit off.
      
      The fix does not only solve the stack corruption, but also makes Wake
      On LAN working on my onboard B44 on Asus A7V-333X mainboard.
      
      It seems that this problem affects all kernel versions since commit
      725ad800 ([PATCH] b44: add wol for old nic) on 2006-06-20.
      
      Signed-off-by: default avatarStanislav Brabec <sbrabec@suse.cz>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e0188829
  22. Nov 30, 2009
  23. Sep 16, 2009
  24. Sep 09, 2009
  25. Sep 01, 2009
  26. Aug 14, 2009
  27. Aug 02, 2009
  28. Jul 20, 2009
  29. May 27, 2009
  30. Apr 07, 2009
  31. Apr 06, 2009
  32. Apr 04, 2009
    • Michael Buesch's avatar
      b44: Fix sizes passed to b44_sync_dma_desc_for_{device,cpu}() · 5d4d9e8a
      Michael Buesch authored
      
      > > ------------[ cut here ]------------
      > > WARNING: at lib/dma-debug.c:539 check_sync+0xe9/0x341() (Not tainted)
      > > Hardware name: HP Compaq nx6110 (PY501EA#AB9)
      > > b44 0000:02:0e.0: DMA-API: device driver tries to sync DMA memory it has not
      > > allocated [device address=0x0000000075941040] [size=1566 bytes]
      > > Modules linked in: llc bnep l2cap bluetooth autofs4 lm90 hwmon i2c_i801 sunrpc
      > > ipv6 cpufreq_ondemand acpi_cpufreq uinput snd_intel8x0m snd_intel8x0
      > > snd_ac97_codec snd_seq_dummy ac97_bus snd_seq_oss snd_seq_midi_event snd_seq
      > > snd_seq_device snd_pcm_oss snd_mixer_oss snd_pcm b44 ssb firewire_ohci
      > > snd_timer ipw2200 iTCO_wdt mii firewire_core snd iTCO_vendor_support libipw
      > > yenta_socket crc_itu_t lib80211 rsrc_nonstatic soundcore snd_page_alloc joydev
      > > pcspkr wmi serio_raw ata_generic pata_acpi i915 drm i2c_algo_bit i2c_core video
      > > output [last unloaded: scsi_wait_scan]
      > > Pid: 2418, comm: S58ntpd Not tainted 2.6.29-16.fc10.i686.PAE #1
      > > Call Trace:
      > >  [<c04396d1>] warn_slowpath+0x7c/0xbd
      > >  [<c0457fe1>] ? register_lock_class+0x17/0x290
      > >  [<c0458d61>] ? mark_lock+0x1e/0x349
      > >  [<c0556448>] ? _raw_spin_unlock+0x74/0x78
      > >  [<c0458d61>] ? mark_lock+0x1e/0x349
      > >  [<c055a060>] ? check_sync+0x37/0x341
      > >  [<c055a112>] check_sync+0xe9/0x341
      > >  [<c0711245>] ? _spin_unlock_irqrestore+0x45/0x55
      > >  [<c04592db>] ? trace_hardirqs_on+0xb/0xd
      > >  [<c055a4d1>] debug_dma_sync_single_for_device+0x2f/0x39
      > >  [<f828f722>] dma_sync_single_for_device+0x4a/0x59 [b44]
      > >  [<f828f76f>] ssb_dma_sync_single_for_device+0x3e/0x48 [b44]
      > >  [<f8291d1e>] b44_recycle_rx+0x18c/0x196 [b44]
      > >  [<f8291f9f>] b44_poll+0x277/0x3c0 [b44]
      > >  [<c0687bb9>] net_rx_action+0xa1/0x1ca
      > >  [<c043e30a>] __do_softirq+0x9d/0x154
      > >  [<c043e413>] do_softirq+0x52/0x7e
      > >  [<c043e56f>] irq_exit+0x49/0x77
      > >  [<c040b22e>] do_IRQ+0x97/0xad
      > >  [<c0409dac>] common_interrupt+0x2c/0x34
      
      I don't know if this is related, but the following patch seems to fix some DMA
      mapping bug. Can somebody comment who does understand the code better than me?
      
      (completely untested)
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5d4d9e8a
  33. Feb 26, 2009
  34. Feb 10, 2009
  35. Jan 21, 2009
Loading