1. 17 Sep, 2013 6 commits
    • Ralf Baechle's avatar
      MIPS: Optimize current_cpu_type() for better code. · 69f24d17
      Ralf Baechle authored
       o Move current_cpu_type() to a separate header file
       o #ifdefing on supported CPU types lets modern GCC know that certain
         code in callers may be discarded ideally turning current_cpu_type() into
         a function returning a constant.
       o Use current_cpu_type() rather than direct access to struct cpuinfo_mips.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      Cc: Steven J. Hill <Steven.Hill@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/5833/
      69f24d17
    • Ralf Baechle's avatar
      MIPS: Fix accessing to per-cpu data when flushing the cache · ff522058
      Ralf Baechle authored
      This fixes the following issue
      
      BUG: using smp_processor_id() in preemptible [00000000] code: kjournald/1761
      caller is blast_dcache32+0x30/0x254
      Call Trace:
      [<8047f02c>] dump_stack+0x8/0x34
      [<802e7e40>] debug_smp_processor_id+0xe0/0xf0
      [<80114d94>] blast_dcache32+0x30/0x254
      [<80118484>] r4k_dma_cache_wback_inv+0x200/0x288
      [<80110ff0>] mips_dma_map_sg+0x108/0x180
      [<80355098>] ide_dma_prepare+0xf0/0x1b8
      [<8034eaa4>] do_rw_taskfile+0x1e8/0x33c
      [<8035951c>] ide_do_rw_disk+0x298/0x3e4
      [<8034a3c4>] do_ide_request+0x2e0/0x704
      [<802bb0dc>] __blk_run_queue+0x44/0x64
      [<802be000>] queue_unplugged.isra.36+0x1c/0x54
      [<802beb94>] blk_flush_plug_list+0x18c/0x24c
      [<802bec6c>] blk_finish_plug+0x18/0x48
      [<8026554c>] journal_commit_transaction+0x3b8/0x151c
      [<80269648>] kjournald+0xec/0x238
      [<8014ac00>] kthread+0xb8/0xc0
      [<8010268c>] ret_from_kernel_thread+0x14/0x1c
      
      Caches in most systems are identical - but not always, so we can't avoid
      the use of smp_call_function() by just looking at the boot CPU's data,
      have to fiddle with preemption instead.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      Cc: Markos Chandras <markos.chandras@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/5835
      ff522058
    • Ralf Baechle's avatar
      MIPS: Provide nice way to access boot CPU's data. · c5f66596
      Ralf Baechle authored
      boot_cpu_data is used the same as current_cpu_data but returns the CPU
      data for CPU 0.  This means it doesn't have to use smp_processor_id()
      thus no need to disable preemption.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      c5f66596
    • Aaro Koskinen's avatar
      staging: octeon-ethernet: rgmii: enable interrupts that we can handle · 7cc4fa1e
      Aaro Koskinen authored
      Enable only those interrupts that we can handle & acknowledge in the
      interrupt handler.
      
      At least on EdgeRouter Lite, the hardware may occasionally interrupt with
      some error condition when the physical link status changes frequently.
      Since the interrupt condition is not acked properly, this leads to the
      following warning and the IRQ gets disabled completely:
      
      [   41.324700] eth0: Link down
      [   44.324721] eth0: 1000 Mbps Full duplex, port  0, queue  0
      [   44.885590] irq 117: nobody cared (try booting with the "irqpoll" option)
      [   44.892397] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.11.0-rc5-edge-los.git-27d042f-dirty-00950-gaa42f2d-dirty #8
      [   44.902825] Stack : ffffffff815c0000 0000000000000004 0000000000000003 0000000000000000
      	  ffffffff81fd0000 ffffffff815c0000 0000000000000004 ffffffff8118530c
      	  ffffffff815c0000 ffffffff811858d8 0000000000000000 0000000000000000
      	  ffffffff81fd0000 ffffffff81fc0000 ffffffff8152f3a0 ffffffff815b7bf7
      	  ffffffff81fc6688 ffffffff815b8060 0000000000000000 0000000000000000
      	  0000000000000000 ffffffff815346c8 ffffffff815346b0 ffffffff814a6a18
      	  ffffffff8158b848 ffffffff81145614 ffffffff81593800 ffffffff81187174
      	  ffffffff815b7d00 ffffffff8158b760 0000000000000000 ffffffff814a9184
      	  0000000000000000 0000000000000000 0000000000000000 0000000000000000
      	  0000000000000000 ffffffff811203b8 0000000000000000 0000000000000000
      	  ...
      [   44.968408] Call Trace:
      [   44.970873] [<ffffffff811203b8>] show_stack+0x68/0x80
      [   44.975937] [<ffffffff814a9184>] dump_stack+0x78/0xb8
      [   44.980999] [<ffffffff811aac54>] __report_bad_irq+0x44/0x108
      [   44.986662] [<ffffffff811ab238>] note_interrupt+0x248/0x2a0
      [   44.992240] [<ffffffff811a85e4>] handle_irq_event_percpu+0x144/0x200
      [   44.998598] [<ffffffff811a86f4>] handle_irq_event+0x54/0x90
      [   45.004176] [<ffffffff811ab908>] handle_level_irq+0xd0/0x148
      [   45.009839] [<ffffffff811a7b04>] generic_handle_irq+0x34/0x50
      [   45.015589] [<ffffffff8111dae8>] do_IRQ+0x18/0x30
      [   45.020301] [<ffffffff8110486c>] plat_irq_dispatch+0x74/0xb8
      [   45.025958]
      [   45.027451] handlers:
      [   45.029731] [<ffffffff813fca10>] cvm_oct_rgmii_rml_interrupt
      [   45.035397] Disabling IRQ #117
      [   45.038742] Port 0 receive error code 13, packet dropped
      [   46.324719] eth0: Link down
      [   48.324733] eth0: 1000 Mbps Full duplex, port  0, queue  0
      Reported-by: default avatar"Jason A. Donenfeld" <Jason@zx2c4.com>
      Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
      Acked-by: default avatarDavid Daney <david.daney@cavium.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: devel@driverdev.osuosl.org
      Cc: linux-mips@linux-mips.org
      Cc: Jason A. Donenfeld <Jason@zx2c4.com>
      Cc: richard@nod.at
      Patchwork: https://patchwork.linux-mips.org/patch/5810/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      7cc4fa1e
    • Aaro Koskinen's avatar
      staging: octeon-ethernet: remove skb alloc failure warnings · a5de43c1
      Aaro Koskinen authored
      Remove skb allocation failure warnings. They will trigger a page
      allocation warning already. Also, one of the warnings was not ratelimited,
      causing the box to lock up under heavy traffic & low memory.
      Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
      Acked-by: default avatarDavid Daney <david.daney@cavium.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: devel@driverdev.osuosl.org
      Cc: linux-mips@linux-mips.org
      Cc: Jason A. Donenfeld <Jason@zx2c4.com>
      Cc: richard@nod.at
      Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
      Patchwork: https://patchwork.linux-mips.org/patch/5811/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      a5de43c1
    • Aaro Koskinen's avatar
      staging: octeon-ethernet: make dropped packets to consume NAPI budget · da029d0c
      Aaro Koskinen authored
      We should count also dropped packets, otherwise the NAPI handler may
      end up running too long.
      Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: devel@driverdev.osuosl.org
      Cc: linux-mips@linux-mips.org
      Cc: David Daney <david.daney@cavium.com>
      Cc: Jason A. Donenfeld <Jason@zx2c4.com>
      Cc: richard@nod.at
      Patchwork: https://patchwork.linux-mips.org/patch/5809/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      da029d0c
  2. 16 Sep, 2013 5 commits
  3. 15 Sep, 2013 7 commits
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus · d8efd82e
      Linus Torvalds authored
      Pull MIPS fixes from Ralf Baechle:
       "These are four patches for three construction sites:
      
         - Fix register decoding for the combination of multi-core processors
           and multi-threading.
      
         - Two more fixes that are part of the ongoing DECstation resurrection
           work.  One of these touches a DECstation-only network driver.
      
         - Finally Markos' trivial build fix for the AP/SP support.
      
        (With this applied now all MIPS defconfigs are building again)"
      
      * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus:
        MIPS: kernel: vpe: Make vpe_attrs an array of pointers.
        MIPS: Fix SMP core calculations when using MT support.
        MIPS: DECstation I/O ASIC DMA interrupt handling fix
        MIPS: DECstation HRT initialization rearrangement
      d8efd82e
    • Linus Torvalds's avatar
      Merge branch 'for_linus' of git://cavan.codon.org.uk/platform-drivers-x86 · cd619e21
      Linus Torvalds authored
      Pull x86 platform updates from Matthew Garrett:
       "Nothing amazing here, almost entirely cleanups and minor bugfixes and
        one bit of hardware enablement in the amilo-rfkill driver"
      
      * 'for_linus' of git://cavan.codon.org.uk/platform-drivers-x86:
        platform/x86: panasonic-laptop: reuse module_acpi_driver
        samsung-laptop: fix config build error
        platform: x86: remove unnecessary platform_set_drvdata()
        amilo-rfkill: Enable using amilo-rfkill with the FSC Amilo L1310.
        wmi: parse_wdg() should return kernel error codes
        hp_wmi: Fix unregister order in hp_wmi_rfkill_setup()
        platform: replace strict_strto*() with kstrto*()
        x86: irst: use module_acpi_driver to simplify the code
        x86: smartconnect: use module_acpi_driver to simplify the code
        platform samsung-q10: use ACPI instead of direct EC calls
        thinkpad_acpi: add the ability setting TPACPI_LED_NONE by quirk
        thinkpad_acpi: return -NODEV while operating uninitialized LEDs
      cd619e21
    • Linus Torvalds's avatar
      Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 0375ec58
      Linus Torvalds authored
      Pull misc SCSI driver updates from James Bottomley:
       "This patch set is a set of driver updates (megaraid_sas, fnic, lpfc,
        ufs, hpsa) we also have a couple of bug fixes (sd out of bounds and
        ibmvfc error handling) and the first round of esas2r checker fixes and
        finally the much anticipated big endian additions for megaraid_sas"
      
      * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (47 commits)
        [SCSI] fnic: fnic Driver Tuneables Exposed through CLI
        [SCSI] fnic: Kernel panic while running sh/nosh with max lun cfg
        [SCSI] fnic: Hitting BUG_ON(io_req->abts_done) in fnic_rport_exch_reset
        [SCSI] fnic: Remove QUEUE_FULL handling code
        [SCSI] fnic: On system with >1.1TB RAM, VIC fails multipath after boot up
        [SCSI] fnic: FC stat param seconds_since_last_reset not getting updated
        [SCSI] sd: Fix potential out-of-bounds access
        [SCSI] lpfc 8.3.42: Update lpfc version to driver version 8.3.42
        [SCSI] lpfc 8.3.42: Fixed issue of task management commands having a fixed timeout
        [SCSI] lpfc 8.3.42: Fixed inconsistent spin lock usage.
        [SCSI] lpfc 8.3.42: Fix driver's abort loop functionality to skip IOs already getting aborted
        [SCSI] lpfc 8.3.42: Fixed failure to allocate SCSI buffer on PPC64 platform for SLI4 devices
        [SCSI] lpfc 8.3.42: Fix WARN_ON when driver unloads
        [SCSI] lpfc 8.3.42: Avoided making pci bar ioremap call during dual-chute WQ/RQ pci bar selection
        [SCSI] lpfc 8.3.42: Fixed driver iocbq structure's iocb_flag field running out of space
        [SCSI] lpfc 8.3.42: Fix crash on driver load due to cpu affinity logic
        [SCSI] lpfc 8.3.42: Fixed logging format of setting driver sysfs attributes hard to interpret
        [SCSI] lpfc 8.3.42: Fixed back to back RSCNs discovery failure.
        [SCSI] lpfc 8.3.42: Fixed race condition between BSG I/O dispatch and timeout handling
        [SCSI] lpfc 8.3.42: Fixed function mode field defined too small for not recognizing dual-chute mode
        ...
      0375ec58
    • Linus Torvalds's avatar
      Merge branch 'slab/next' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/linux · bff157b3
      Linus Torvalds authored
      Pull SLAB update from Pekka Enberg:
       "Nothing terribly exciting here apart from Christoph's kmalloc
        unification patches that brings sl[aou]b implementations closer to
        each other"
      
      * 'slab/next' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/linux:
        slab: Use correct GFP_DMA constant
        slub: remove verify_mem_not_deleted()
        mm/sl[aou]b: Move kmallocXXX functions to common code
        mm, slab_common: add 'unlikely' to size check of kmalloc_slab()
        mm/slub.c: beautify code for removing redundancy 'break' statement.
        slub: Remove unnecessary page NULL check
        slub: don't use cpu partial pages on UP
        mm/slub: beautify code for 80 column limitation and tab alignment
        mm/slub: remove 'per_cpu' which is useless variable
      bff157b3
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 8bf5e36d
      Linus Torvalds authored
      Pull input update from Dmitry Torokhov:
       "The only change is David Hermann's new EVIOCREVOKE evdev ioctl that
        allows safely passing file descriptors to input devices to session
        processes and later being able to stop delivery of events through
        these fds so that inactive sessions will no longer receive user input
        that does not belong to them"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: evdev - add EVIOCREVOKE ioctl
      8bf5e36d
    • Linus Torvalds's avatar
      vfs: fix typo in comment in recent dentry work · 05a8252b
      Linus Torvalds authored
      Sedat points out that I transposed some letters in "LRU" and wrote "RLU"
      instead in one of the new comments explaining the flow.  Let's just fix
      it.
      Reported-by: default avatarSedat Dilek <sedat.dilek@jpberlin.de>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      05a8252b
    • Davidlohr Bueso's avatar
      partitions/efi: loosen check fot pmbr size in lba · 6b02fa59
      Davidlohr Bueso authored
      Matt found that commit 27a7c642 ("partitions/efi: account for pmbr
      size in lba") caused his GPT formatted eMMC device not to boot.  The
      reason is that this commit enforced Linux to always check the lesser of
      the whole disk or 2Tib for the pMBR size in LBA.  While most disk
      partitioning tools out there create a pMBR with these characteristics,
      Microsoft does not, as it always sets the entry to the maximum 32-bit
      limitation - even though a drive may be smaller than that[1].
      
      Loosen this check and only verify that the size is either the whole disk
      or 0xFFFFFFFF.  No tool in its right mind would set it to any value
      other than these.
      
      [1] http://thestarman.pcministry.com/asm/mbr/GPT.htm#GPTPTReported-and-tested-by: default avatarMatt Porter <matt.porter@linaro.org>
      Signed-off-by: default avatarDavidlohr Bueso <davidlohr@hp.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6b02fa59
  4. 14 Sep, 2013 2 commits
  5. 13 Sep, 2013 20 commits