Skip to content
  1. Oct 08, 2013
  2. Oct 05, 2013
  3. Oct 03, 2013
  4. Oct 02, 2013
    • Yoichi Yuasa's avatar
      MIPS: Fix forgotten preempt_enable() when CPU has inclusive pcaches · 5596b0b2
      Yoichi Yuasa authored
      
      
      [    1.904000] BUG: scheduling while atomic: swapper/1/0x00000002
      [    1.908000] Modules linked in:
      [    1.916000] CPU: 0 PID: 1 Comm: swapper Not tainted 3.12.0-rc2-lemote-los.git-5318619-dirty #1
      [    1.920000] Stack : 0000000031aac000 ffffffff810d0000 0000000000000052 ffffffff802730a4
                0000000000000000 0000000000000001 ffffffff810cdf90 ffffffff810d0000
                ffffffff8068b968 ffffffff806f5537 ffffffff810cdf90 980000009f0782e8
                0000000000000001 ffffffff80720000 ffffffff806b0000 980000009f078000
                980000009f290000 ffffffff805f312c 980000009f05b5d8 ffffffff80233518
                980000009f05b5e8 ffffffff80274b7c 980000009f078000 ffffffff8068b968
                0000000000000000 0000000000000000 0000000000000000 0000000000000000
                0000000000000000 980000009f05b520 0000000000000000 ffffffff805f2f6c
                0000000000000000 ffffffff80700000 ffffffff80700000 ffffffff806fc758
                ffffffff80700000 ffffffff8020be98 ffffffff806fceb0 ffffffff805f2f6c
                ...
      [    2.028000] Call Trace:
      [    2.032000] [<ffffffff8020be98>] show_stack+0x80/0x98
      [    2.036000] [<ffffffff805f2f6c>] __schedule_bug+0x44/0x6c
      [    2.040000] [<ffffffff805fac58>] __schedule+0x518/0x5b0
      [    2.044000] [<ffffffff805f8a58>] schedule_timeout+0x128/0x1f0
      [    2.048000] [<ffffffff80240314>] msleep+0x3c/0x60
      [    2.052000] [<ffffffff80495400>] do_probe+0x238/0x3a8
      [    2.056000] [<ffffffff804958b0>] ide_probe_port+0x340/0x7e8
      [    2.060000] [<ffffffff80496028>] ide_host_register+0x2d0/0x7a8
      [    2.064000] [<ffffffff8049c65c>] ide_pci_init_two+0x4e4/0x790
      [    2.068000] [<ffffffff8049f9b8>] amd74xx_probe+0x148/0x2c8
      [    2.072000] [<ffffffff803f571c>] pci_device_probe+0xc4/0x130
      [    2.076000] [<ffffffff80478f60>] driver_probe_device+0x98/0x270
      [    2.080000] [<ffffffff80479298>] __driver_attach+0xe0/0xe8
      [    2.084000] [<ffffffff80476ab0>] bus_for_each_dev+0x78/0xe0
      [    2.088000] [<ffffffff80478468>] bus_add_driver+0x230/0x310
      [    2.092000] [<ffffffff80479b44>] driver_register+0x84/0x158
      [    2.096000] [<ffffffff80200504>] do_one_initcall+0x104/0x160
      
      Signed-off-by: default avatarYoichi Yuasa <yuasa@linux-mips.org>
      Reported-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
      Tested-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
      Cc: linux-mips@linux-mips.org
      Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
      Patchwork: https://patchwork.linux-mips.org/patch/5941/
      
      
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      5596b0b2
    • Tom Gundersen's avatar
      x86/simplefb: Fix overflow causing bogus fall-back · e33a29a5
      Tom Gundersen authored
      
      
      On my MacBook Air lfb_size is 4M, which makes the bitshit
      overflow (to 256GB - larger than 32 bits), meaning we fall
      back to efifb unnecessarily.
      
      Cast to u64 to avoid the overflow.
      
      Signed-off-by: default avatarTom Gundersen <teg@jklm.no>
      Reviewed-by: default avatarDavid Herrmann <dh.herrmann@gmail.com>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Stephen Warren <swarren@nvidia.com>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Link: http://lkml.kernel.org/r/1380644320-1026-1-git-send-email-teg@jklm.no
      
      
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      e33a29a5
  5. Oct 01, 2013
    • Arnaud Ebalard's avatar
      ARM: mvebu: add missing DT Mbus ranges and relocate PCIe DT nodes for RN102 · b643f858
      Arnaud Ebalard authored
      When 5e12a613 and 0cd3754a were introduced, Netgear ReadyNAS 102 .dts
      file was queued for inclusion and missed the update to have Mbus (and
      then BootROM) ranges properties declared. It also missed the relocation
      of Armada 370/XP PCIe DT nodes introduced by 14fd8ed0 after de1af8d4
      
      .
      This patch fixes that which makes 3.12-rc3 bootable on the NAS.
      
      Signed-off-by: default avatarArnaud Ebalard <arno@natisbad.org>
      Signed-off-by: default avatarJason Cooper <jason@lakedaemon.net>
      b643f858
    • Felipe Pena's avatar
      arch/parisc/mm/fault.c: fix uninitialized variable usage · 0772dac1
      Felipe Pena authored
      The FAULT_FLAG_WRITE flag has been set based on uninitialized variable.
      
      Fixes a regression added by commit 759496ba
      
       ("arch: mm: pass
      userspace fault flag to generic fault handler")
      
      Signed-off-by: default avatarFelipe Pena <felipensp@gmail.com>
      Cc: Johannes Weiner <hannes@cmpxchg.org>
      Cc: Michal Hocko <mhocko@suse.cz>
      Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
      Cc: Helge Deller <deller@gmx.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      0772dac1
    • Jean-Christophe PLAGNIOL-VILLARD's avatar
      ARM: at91: sam9g45: shutdown ddr1 too when rebooting · bd737fea
      Jean-Christophe PLAGNIOL-VILLARD authored
      
      
      Like we are doing on DDR0 we need to cleanly shutdown DDR1 if it is
      used before rebooting.
      If DDR1 is not initialized, we check it and avoid dereferencing its address.
      Even by adding two more instructions, we are able to complete the procedure
      within a single cache line.
      
      Signed-off-by: default avatarJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
      Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      bd737fea
    • Joel Fernandes's avatar
      ARM: edma: Fix clearing of unused list for DT DMA resources · 6cdaca48
      Joel Fernandes authored
      
      
      HWMOD removal for MMC is breaking edma_start as the events are being manually
      triggered due to unused channel list not being clear.
      
      The above issue is fixed by reading the "dmas" property from the DT node if it
      exists and clearing the bits in the unused channel list if the dma controller
      used by any device is EDMA. For this purpose we use the of_* helpers to parse
      the arguments in the dmas phandle list.
      
      Also introduced is a minor clean up of a checkpatch error in old code.
      
      Reviewed-by: default avatarSekhar Nori <nsekhar@ti.com>
      Reported-by: default avatarBalaji T K <balajitk@ti.com>
      Cc: Sekhar Nori <nsekhar@ti.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Olof Johansson <olof@lixom.net>
      Cc: Nishanth Menon <nm@ti.com>
      Cc: Pantel Antoniou <panto@antoniou-consulting.com>
      Cc: Jason Kridner <jkridner@beagleboard.org>
      Cc: Koen Kooi <koen@dominion.thruhere.net>
      Signed-off-by: default avatarJoel Fernandes <joelf@ti.com>
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      6cdaca48
    • Lorenzo Pieralisi's avatar
      ARM: vexpress: tc2: fix hotplug/idle/kexec race on cluster power down · 64270d82
      Lorenzo Pieralisi authored
      
      
      On the TC2 testchip, when all CPUs in a cluster enter standbywfi
      and commit a power down request, the power controller will wait
      for standbywfil2 coming from L2 cache controller to shut the
      cluster down.
      By the time all CPUs in a cluster commit a power down request
      and enter wfi, the power controller cannot backtrack, or put it
      another way, a CPU must not be allowed to complete execution
      independently of the power controller, the only way for it to
      resume properly must be upon wake-up IRQ pending and subsequent
      reset triggered from the power controller.
      
      Current MCPM back-end for TC2 disables the GIC CPU IF only when
      power down is committed through the tc2_pm_suspend() method, that
      makes sense since a suspended CPU is still online and can receive
      interrupts whereas a hotplugged CPU, since it is offline,
      migrated all IRQs and shutdown the per-CPU peripherals, hence
      their PPIs.
      
      The flaw with this reasoning is the following. If all CPUs in
      a clusters are entering a power down state either through CPU
      idle or CPU hotplug, when the last man successfully completes
      the MCPM power down sequence (and executes wfi), power controller
      waits for L2 wfi signal to quiesce the cluster and shut it down.
      If, when all CPUs are sitting in wfi, an online CPU hotplugs back
      in one of the CPUs in the cluster being shutdown, that CPU
      receives an IPI that causes wfi to complete (since tc2_pm_down()
      method does not disable the GIC CPU IF in that case - CPU being
      hotplugged out, not idle) and the power controller will never see
      the stanbywfil2 signal coming from L2 that is required for
      shutdown to happen and the system deadlocks.
      
      Further to this issue, kexec hotplugs secondary CPUs out during
      kernel reload/restart.
      Because kexec may (deliberately) trash the old kernel text, it is
      not OK for CPUs to follow the MCPM soft reboot path, since
      instructions after the WFI may have been replaced by kexec.
      
      If tc2_pm_down() does not disable the GIC cpu interface, there is a
      race between CPU powerdown in the old kernel and the IPI from the
      new kernel that triggers secondary boot, particularly if the
      powerdown is slow (due to L2 cache cleaning for example).  If the
      new kernel wins the race, the affected CPU(s) will not really be
      reset and may execute garbage after the WFI.
      
      The only solution to this problem consists in disabling the GIC
      CPU IF on a CPU committed to power down regardless of the power
      down entry method (CPU hotplug or CPU idle). This way, CPU wake-up
      is under power controller control, which prevents unexpected wfi
      exit caused by a pending IRQ.
      
      This patch moves the GIC CPU IF disable call in the TC2 MCPM
      implementation from the tc2_pm_suspend() method to the
      tc2_pm_down() method to fix the mentioned race condition(s).
      
      Reviewed-by: default avatarDave Martin <Dave.Martin@arm.com>
      Tested-by: Dave Martin <Dave.Martin@arm.com> (for kexec)
      Signed-off-by: default avatarSudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
      Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      Acked-by: default avatarNicolas Pitre <nico@linaro.org>
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      64270d82
    • Renwei Wu's avatar
      ARM: dts: sirf: fix interrupt and dma prop of VIP for prima2 and atlas6 · 262bcc1d
      Renwei Wu authored
      
      
      the current dts is lacking interrupt and dma prop for video input
      processor of prima2 and atlas6, this patch fixes it.
      
      Signed-off-by: default avatarRenwei Wu <Renwei.Wu@csr.com>
      Signed-off-by: default avatarBarry Song <Baohua.Song@csr.com>
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      262bcc1d