1. 21 9月, 2016 2 次提交
  2. 15 9月, 2016 2 次提交
  3. 14 9月, 2016 1 次提交
    • V
      arm/xen: fix SMP guests boot · de75abbe
      Vitaly Kuznetsov 提交于
      Commit 88e957d6 ("xen: introduce xen_vcpu_id mapping") broke SMP
      ARM guests on Xen. When FIFO-based event channels are in use (this is
      the default), evtchn_fifo_alloc_control_block() is called on
      CPU_UP_PREPARE event and this happens before we set up xen_vcpu_id
      mapping in xen_starting_cpu. Temporary fix the issue by setting direct
      Linux CPU id <-> Xen vCPU id mapping for all possible CPUs at boot. We
      don't currently support kexec/kdump on Xen/ARM so these ids always
      match.
      
      In future, we have several ways to solve the issue, e.g.:
      
      - Eliminate all hypercalls from CPU_UP_PREPARE, do them from the
        starting CPU. This can probably be done for both x86 and ARM and, if
        done, will allow us to get Xen's idea of vCPU id from CPUID/MPIDR on
        the starting CPU directly, no messing with ACPI/device tree
        required.
      
      - Save vCPU id information from ACPI/device tree on ARM and use it to
        initialize xen_vcpu_id mapping. This is the same trick we currently
        do on x86.
      Reported-by: NJulien Grall <julien.grall@arm.com>
      Tested-by: NWei Chen <Wei.Chen@arm.com>
      Signed-off-by: NVitaly Kuznetsov <vkuznets@redhat.com>
      Acked-by: NStefano Stabellini <sstabellini@kernel.org>
      Signed-off-by: NDavid Vrabel <david.vrabel@citrix.com>
      de75abbe
  4. 13 9月, 2016 1 次提交
  5. 12 9月, 2016 7 次提交
    • R
      ARM: pxa/lubbock: add pcmcia clock · 1a57c286
      Russell King 提交于
      Add the required PCMCIA clock for the SA1111 "1800" device.  This clock
      is used to compute timing information for the PCMCIA interface in the
      SoC device, rather than the SA1111.  Hence, the provision of this clock
      is a convenience for the driver and does not reflect the hardware, so
      this must not be copied into DT.
      Acked-by: NRobert Jarzmik <robert.jarzmik@free.fr>
      Tested-by: NRobert Jarzmik <robert.jarzmik@free.fr>
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      1a57c286
    • R
      ARM: locomo: fix locomo irq handling · 07f56e66
      Russell King 提交于
      Accidentally booting Collie on Assabet reveals that the locomo driver
      incorrectly overwrites gpio-sa1100's chip data for its parent interrupt,
      leading to oops in sa1100_gpio_unmask() and sa1100_update_edge_regs()
      when "gpio: sa1100: convert to use IO accessors" is applied.  Fix locomo
      to use the handler data rather than chip data for its parent interrupt.
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      07f56e66
    • S
      ARM: 8612/1: LPAE: initialize cache policy correctly · 6b3142b2
      Stefan Agner 提交于
      The cachepolicy variable gets initialized using a masked pmd
      value. So far, the pmd has been masked with flags valid for the
      2-page table format, but the 3-page table format requires a
      different mask. On LPAE, this lead to a wrong assumption of what
      initial cache policy has been used. Later a check forces the
      cache policy to writealloc and prints the following warning:
      Forcing write-allocate cache policy for SMP
      
      This patch introduces a new definition PMD_SECT_CACHE_MASK for
      both page table formats which masks in all cache flags in both
      cases.
      Signed-off-by: NStefan Agner <stefan@agner.ch>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      6b3142b2
    • R
      ARM: sa1111: fix missing clk_disable() · 87d5dd62
      Russell King 提交于
      SA1111 forgets to call clk_disable() in the probe error cleanup path.
      Add the necessary call.
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      87d5dd62
    • R
      ARM: sa1111: fix pcmcia suspend/resume · 06dfe5cc
      Russell King 提交于
      SA1111 PCMCIA was broken when PCMCIA switched to using dev_pm_ops for
      the PCMCIA socket class.  PCMCIA used to handle suspend/resume via the
      socket hosting device, which happened at normal device suspend/resume
      time.
      
      However, the referenced commit changed this: much of the resume now
      happens much earlier, in the noirq resume handler of dev_pm_ops.
      
      However, on SA1111, the PCMCIA device is not accessible as the SA1111
      has not been resumed at _noirq time.  It's slightly worse than that,
      because the SA1111 has already been put to sleep at _noirq time, so
      suspend doesn't work properly.
      
      Fix this by converting the core SA1111 code to use dev_pm_ops as well,
      and performing its own suspend/resume at noirq time.
      
      This fixes these errors in the kernel log:
      
      pcmcia_socket pcmcia_socket0: time out after reset
      pcmcia_socket pcmcia_socket1: time out after reset
      
      and the resulting lack of PCMCIA cards after a S2RAM cycle.
      
      Fixes: d7646f76 ("pcmcia: use dev_pm_ops for class pcmcia_socket_class")
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      06dfe5cc
    • R
      ARM: sa1111: fix pcmcia interrupt mask polarity · 7c0091ec
      Russell King 提交于
      The polarity of the high IRQs was being calculated using
      SA1111_IRQMASK_HI(), but this assumes a Linux interrupt number, not a
      hardware interrupt number.  Hence, the resulting mask was incorrect.
      Fix this.
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      7c0091ec
    • R
      ARM: sa1111: fix error code propagation in sa1111_probe() · cb034407
      Russell King 提交于
      Ensure that we propagate the platform_get_irq() error code out of the
      probe function.  This allows probe deferrals to work correctly should
      platform_get_irq() not be able to resolve the interrupt in a DT
      environment at probe time.
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      cb034407
  6. 09 9月, 2016 2 次提交
    • I
      ARM: dts: Remove use of skeleton.dtsi from bcm283x.dtsi · 6b7b554d
      Ian Campbell 提交于
      This file is included from DTS files under arch/arm64 too (via
      broadcom/bcm2837-rpi-3-b.dts and broadcom/bcm2837.dtsi). There is a desire
      not to have skeleton.dtsi for ARM64. See commit 3ebee5a2 ("arm64: dts:
      kill skeleton.dtsi") for rationale for its removal.
      
      As well as the addition of #*-cells also requires adding the device_type to
      the rpi memory node explicitly.
      
      Note that this change results in the removal of an empty /aliases node from
      bcm2835-rpi-a.dtb and bcm2835-rpi-a-plus.dtb. I have no hardware to check
      if this is a problem or not.
      
      It also results in some reordering of the nodes in the DTBs (the /aliases
      and /memory nodes come later). This isn't supposed to matter but, again,
      I've no hardware to check if it is true in this particular case.
      Signed-off-by: NIan Campbell <ijc@hellion.org.uk>
      Acked-by: NMark Rutland <mark.rutland@arm.com>
      Tested-by: NStefan Wahren <stefan.wahren@i2se.com>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Will Deacon <will.deacon@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Frank Rowand <frowand.list@gmail.com>
      Cc: Eric Anholt <eric@anholt.net>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Cc: Lee Jones <lee@kernel.org>
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Cc: devicetree@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-rpi-kernel@lists.infradead.org
      Cc: arm@kernel.org
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      6b7b554d
    • S
      kvm-arm: Unmap shadow pagetables properly · 293f2936
      Suzuki K Poulose 提交于
      On arm/arm64, we depend on the kvm_unmap_hva* callbacks (via
      mmu_notifiers::invalidate_*) to unmap the stage2 pagetables when
      the userspace buffer gets unmapped. However, when the Hypervisor
      process exits without explicit unmap of the guest buffers, the only
      notifier we get is kvm_arch_flush_shadow_all() (via mmu_notifier::release
      ) which does nothing on arm. Later this causes us to access pages that
      were already released [via exit_mmap() -> unmap_vmas()] when we actually
      get to unmap the stage2 pagetable [via kvm_arch_destroy_vm() ->
      kvm_free_stage2_pgd()]. This triggers crashes with CONFIG_DEBUG_PAGEALLOC,
      which unmaps any free'd pages from the linear map.
      
       [  757.644120] Unable to handle kernel paging request at virtual address
        ffff800661e00000
       [  757.652046] pgd = ffff20000b1a2000
       [  757.655471] [ffff800661e00000] *pgd=00000047fffe3003, *pud=00000047fcd8c003,
        *pmd=00000047fcc7c003, *pte=00e8004661e00712
       [  757.666492] Internal error: Oops: 96000147 [#3] PREEMPT SMP
       [  757.672041] Modules linked in:
       [  757.675100] CPU: 7 PID: 3630 Comm: qemu-system-aar Tainted: G      D
       4.8.0-rc1 #3
       [  757.683240] Hardware name: AppliedMicro X-Gene Mustang Board/X-Gene Mustang Board,
        BIOS 3.06.15 Aug 19 2016
       [  757.692938] task: ffff80069cdd3580 task.stack: ffff8006adb7c000
       [  757.698840] PC is at __flush_dcache_area+0x1c/0x40
       [  757.703613] LR is at kvm_flush_dcache_pmd+0x60/0x70
       [  757.708469] pc : [<ffff20000809dbdc>] lr : [<ffff2000080b4a70>] pstate: 20000145
       ...
       [  758.357249] [<ffff20000809dbdc>] __flush_dcache_area+0x1c/0x40
       [  758.363059] [<ffff2000080b6748>] unmap_stage2_range+0x458/0x5f0
       [  758.368954] [<ffff2000080b708c>] kvm_free_stage2_pgd+0x34/0x60
       [  758.374761] [<ffff2000080b2280>] kvm_arch_destroy_vm+0x20/0x68
       [  758.380570] [<ffff2000080aa330>] kvm_put_kvm+0x210/0x358
       [  758.385860] [<ffff2000080aa524>] kvm_vm_release+0x2c/0x40
       [  758.391239] [<ffff2000082ad234>] __fput+0x114/0x2e8
       [  758.396096] [<ffff2000082ad46c>] ____fput+0xc/0x18
       [  758.400869] [<ffff200008104658>] task_work_run+0x108/0x138
       [  758.406332] [<ffff2000080dc8ec>] do_exit+0x48c/0x10e8
       [  758.411363] [<ffff2000080dd5fc>] do_group_exit+0x6c/0x130
       [  758.416739] [<ffff2000080ed924>] get_signal+0x284/0xa18
       [  758.421943] [<ffff20000808a098>] do_signal+0x158/0x860
       [  758.427060] [<ffff20000808aad4>] do_notify_resume+0x6c/0x88
       [  758.432608] [<ffff200008083624>] work_pending+0x10/0x14
       [  758.437812] Code: 9ac32042 8b010001 d1000443 8a230000 (d50b7e20)
      
      This patch fixes the issue by moving the kvm_free_stage2_pgd() to
      kvm_arch_flush_shadow_all().
      
      Cc: <stable@vger.kernel.org> # 3.9+
      Tested-by: NItaru Kitayama <itaru.kitayama@riken.jp>
      Reported-by: NItaru Kitayama <itaru.kitayama@riken.jp>
      Reported-by: NJames Morse <james.morse@arm.com>
      Cc: Marc Zyngier <marc.zyngier@arm.com>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christoffer Dall <christoffer.dall@linaro.org>
      Signed-off-by: NSuzuki K Poulose <suzuki.poulose@arm.com>
      Signed-off-by: NChristoffer Dall <christoffer.dall@linaro.org>
      293f2936
  7. 08 9月, 2016 3 次提交
    • L
      ARM: dts: STiH407-family: Provide interconnect clock for consumption in ST SDHCI · 78567f13
      Lee Jones 提交于
      The STiH4{07,10} platform contains some interconnect clocks which are used
      by various IPs.  If these clocks aren't handled correctly by ST's SDHCI
      driver MMC will break and the following output can be observed:
      
      [   13.916949] mmc0: Timeout waiting for hardware interrupt.
      [   13.922349] sdhci: =========== REGISTER DUMP (mmc0)===========
      [   13.928175] sdhci: Sys addr: 0x00000000 | Version:  0x00001002
      [   13.933999] sdhci: Blk size: 0x00007040 | Blk cnt:  0x00000001
      [   13.939825] sdhci: Argument: 0x00fffff0 | Trn mode: 0x00000013
      [   13.945650] sdhci: Present:  0x1fff0206 | Host ctl: 0x00000011
      [   13.951475] sdhci: Power:    0x0000000f | Blk gap:  0x00000080
      [   13.957300] sdhci: Wake-up:  0x00000000 | Clock:    0x00003f07
      [   13.963126] sdhci: Timeout:  0x00000004 | Int stat: 0x00000000
      [   13.968952] sdhci: Int enab: 0x02ff008b | Sig enab: 0x02ff008b
      [   13.974777] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
      [   13.980602] sdhci: Caps:     0x21ed3281 | Caps_1:   0x00000000
      [   13.986428] sdhci: Cmd:      0x0000063a | Max curr: 0x00000000
      [   13.992252] sdhci: Host ctl2: 0x00000000
      [   13.996166] sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x7c048200
      [   14.001990] sdhci: ===========================================
      [   14.009802] mmc0: Got data interrupt 0x02000000 even though no data operation was in progress.
      
      Cc: stable@vger.kernel.org
      Tested-by: NPeter Griffin <peter.griffin@linaro.org>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      Acked-by: NPatrice Chotard <patrice.chotard@st.com>
      78567f13
    • L
      ARM: dts: STiH410: Handle interconnect clock required by EHCI/OHCI (USB) · 7e9d2850
      Lee Jones 提交于
      The STiH4{07,10} platform contains some interconnect clocks which are used
      by various IPs.  If this clock isn't handled correctly by ST's EHCI/OHCI
      drivers, their hub won't be found, the following error be shown and the
      result will be non-working USB:
      
        [   97.221963] hub 2-1:1.0: hub_ext_port_status failed (err = -110)
      
      Cc: stable@vger.kernel.org
      Tested-by: NPeter Griffin <peter.griffin@linaro.org>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      Acked-by: NPatrice Chotard <patrice.chotard@st.com>
      7e9d2850
    • O
      Revert "ARM: tegra: fix erroneous address in dts" · d8b795f5
      Olof Johansson 提交于
      This reverts commit b5c86b74.
      
      This is no longer needed due to other changes going into 4.8 to rename
      the unit addresses on a large number of device nodes. So it was picked up
      for v4.8-rc1 in error.
      Reported-by: NRalf Ramsauer <ralf@ramses-pyramidenbau.de>
      Signed-off-by: NOlof Johansson <olof@lixom.net>
      d8b795f5
  8. 06 9月, 2016 1 次提交
  9. 05 9月, 2016 1 次提交
  10. 02 9月, 2016 1 次提交
  11. 30 8月, 2016 2 次提交
    • A
      ARM: imx6: add missing BM_CLPCR_BYPASS_PMIC_READY setting for imx6sx · 8aade778
      Anson Huang 提交于
      i.MX6SX has bypass PMIC ready function, as this function
      is normally NOT enabled on the board design, so we need
      to bypass the PMIC ready pin check during DSM mode resume
      flow, otherwise, the internal DSM resume logic will be
      waiting for this signal to be ready forever and cause
      resume fail.
      Signed-off-by: NAnson Huang <Anson.Huang@nxp.com>
      Fixes: ff843d62 ("ARM: imx: add suspend support for i.mx6sx")
      Cc: <stable@vger.kernel.org>
      Tested-by: NPeter Chen <peter.chen@nxp.com>
      Signed-off-by: NShawn Guo <shawnguo@kernel.org>
      8aade778
    • J
      ARM: EXYNOS: Clear OF_POPULATED flag from PMU node in IRQ init callback · b0304852
      Javier Martinez Canillas 提交于
      The Exynos PMU node is an interrupt, clock and PMU (Power Management Unit)
      controller, and these functionalities are supported by different drivers
      that matches the same compatible strings.
      
      Since commit 15cc2ed6 ("of/irq: Mark initialised interrupt controllers
      as populated") the OF core flags interrupt controllers registered with the
      IRQCHIP_DECLARE() macro as OF_POPULATED, so platform devices with the same
      compatible string as the interrupt controller will not be registered.
      
      This prevents the PMU platform device to be registered so the Exynos PMU
      driver is never probed. This breaks (among other things) Suspend-to-RAM.
      
      Fix this by clearing the OF_POPULATED flag in the PMU IRQ init callback,
      to allow the Exynos PMU platform driver to be probed. The patch is based
      on Philipp Zabel's "ARM: imx6: mark GPC node as not populated after irq
      init to probe pm domain driver".
      
      Fixes: 15cc2ed6 ("of/irq: Mark initialised interrupt controllers as populated")
      Signed-off-by: NJavier Martinez Canillas <javier@osg.samsung.com>
      Signed-off-by: NKrzysztof Kozlowski <krzk@kernel.org>
      b0304852
  12. 29 8月, 2016 2 次提交
    • V
      ARM: dts: imx7d-sdb: fix ti,x-plate-ohms property name · f7d3586f
      Vladimir Zapolskiy 提交于
      Fix misspelled "ti,x-plate-ohms" property name of TI TSC2046
      touchscreen controller.
      
      Fixes: d09e6bea ("ARM: dts: imx7d-sdb: Add support for touchscreen")
      Signed-off-by: NVladimir Zapolskiy <vz@mleia.com>
      Signed-off-by: NShawn Guo <shawnguo@kernel.org>
      f7d3586f
    • R
      net: smc91x: fix SMC accesses · 2fb04fdf
      Russell King 提交于
      Commit b70661c7 ("net: smc91x: use run-time configuration on all ARM
      machines") broke some ARM platforms through several mistakes.  Firstly,
      the access size must correspond to the following rule:
      
      (a) at least one of 16-bit or 8-bit access size must be supported
      (b) 32-bit accesses are optional, and may be enabled in addition to
          the above.
      
      Secondly, it provides no emulation of 16-bit accesses, instead blindly
      making 16-bit accesses even when the platform specifies that only 8-bit
      is supported.
      
      Reorganise smc91x.h so we can make use of the existing 16-bit access
      emulation already provided - if 16-bit accesses are supported, use
      16-bit accesses directly, otherwise if 8-bit accesses are supported,
      use the provided 16-bit access emulation.  If neither, BUG().  This
      exactly reflects the driver behaviour prior to the commit being fixed.
      
      Since the conversion incorrectly cut down the available access sizes on
      several platforms, we also need to go through every platform and fix up
      the overly-restrictive access size: Arnd assumed that if a platform can
      perform 32-bit, 16-bit and 8-bit accesses, then only a 32-bit access
      size needed to be specified - not so, all available access sizes must
      be specified.
      
      This likely fixes some performance regressions in doing this: if a
      platform does not support 8-bit accesses, 8-bit accesses have been
      emulated by performing a 16-bit read-modify-write access.
      
      Tested on the Intel Assabet/Neponset platform, which supports only 8-bit
      accesses, which was broken by the original commit.
      
      Fixes: b70661c7 ("net: smc91x: use run-time configuration on all ARM machines")
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      Tested-by: NRobert Jarzmik <robert.jarzmik@free.fr>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2fb04fdf
  13. 26 8月, 2016 4 次提交
  14. 25 8月, 2016 1 次提交
  15. 24 8月, 2016 1 次提交
  16. 23 8月, 2016 5 次提交
    • R
      ARM: 8600/1: Enforce some NS-SVC initialisation · 1527eda3
      Robin Murphy 提交于
      Since the non-secure copies of banked registers lack architecturally
      defined reset values, there is no actual guarantee when entering in Hyp
      from secure-only firmware that the Non-Secure PL1 state will look the
      way that kernel entry (in particular the decompressor stub) expects.
      So far, we've been getting away with it thanks to implementation details
      of ARMv7 cores and/or bootloader behaviour, but for the sake of forwards
      compatibility let's try to ensure that we have a minimally sane state
      before dropping down into it.
      
      Cc: Russell King <linux@armlinux.org.uk>
      Reviewed-by: NMarc Zyngier <marc.zyngier@arm.com>
      Reviewed-by: NChristoffer Dall <christoffer.dall@linaro.org>
      Signed-off-by: NRobin Murphy <robin.murphy@arm.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      1527eda3
    • V
      ARM: 8599/1: mm: pull asm/memory.h explicitly · f271b779
      Vladimir Murzin 提交于
      Commit d7811455 (""ARM: 8512/1: proc-v7.S: Adjust stack address when
      XIP_KERNEL"") introduced a macro which lives under asm/memory.h.
      Unfortunately, for MMU-less systems (like R-class) it leads to build failure:
      
      arch/arm/mm/proc-v7.S: Assembler messages:
      arch/arm/mm/proc-v7.S:538: Error: unrecognised relocation suffix
      make[1]: *** [arch/arm/mm/proc-v7.o] Error 1
      make: *** [arch/arm/mm] Error 2
      
      since it is implicitly pulled via asm/pgtable.h for MMU capable systems only.
      
      To fix it include asm/memory.h explicitly.
      Signed-off-by: NVladimir Murzin <vladimir.murzin@arm.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      f271b779
    • R
      ARM: sa1100: register clocks early · 198b51e8
      Russell King 提交于
      Since we switched to use pxa_timer, we need to provide the OSTIMER0
      clock.  However, as the clock is initialised early, we need to provide
      the clock early as well, so that pxa_timer can find it.  Adding the
      clock to the clkdev table at core_initcall() time is way too late.
      
      Move the initialisation earlier.
      
      Fixes: ee3a4020 ("ARM: 8250/1: sa1100: provide OSTIMER0 clock for pxa_timer")
      Acked-by: NDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      198b51e8
    • R
      ARM: sa1100: fix 3.6864MHz clock · 02ba38a5
      Russell King 提交于
      pxa_timer wants to be able to call clk_enable() etc on this clock,
      but our clk_enable() implementation expects non-NULL enable/disable
      operations.  Provide these dummy implementations.
      
      Unable to handle kernel NULL pointer dereference at virtual address 00000000
      pgd = c0204000
      [00000000] *pgd=00000000
      Internal error: Oops: 80000005 [#1] ARM
      Modules linked in:
      CPU: 0 PID: 0 Comm: swapper Not tainted 4.8.0-rc2+ #887
      Hardware name: Intel-Assabet
      task: c0644590 task.stack: c0640000
      PC is at 0x0
      LR is at clk_enable+0x40/0x58
      pc : [<00000000>]    lr : [<c021b178>]    psr: 600000d3
      sp : c0641f60  ip : c0641f4c  fp : c0641f74
      r10: c1ffc7a0  r9 : 6901b118  r8 : 00000001
      r7 : c0639a34  r6 : 0000001b  r5 : a00000d3  r4 : c0645d70
      r3 : c0645d78  r2 : 00000001  r1 : c0641ef0  r0 : c0645d70
      Flags: nZCv  IRQs off  FIQs off  Mode SVC_32  ISA ARM  Segment none
      Control: c020717f  Table: c020717f  DAC: 00000053
      Process swapper (pid: 0, stack limit = 0xc0640188)
      Stack: (0xc0641f60 to 0xc0642000)
      1f60: 00384000 c08762e4 c0641f98 c0641f78 c063308c c021b144 00000000 00000000
      1f80: 00000000 c0660b20 ffffffff c0641fa8 c0641f9c c06220ec c0633058 c0641fb8
      1fa0: c0641fac c061f114 c06220dc c0641ff4 c0641fbc c061bb68 c061f0fc ffffffff
      1fc0: ffffffff 00000000 c061b6cc c0639a34 c0660cd4 c0642038 c0639a30 c0645434
      1fe0: c0204000 c06380f8 00000000 c0641ff8 c0208048 c061b954 00000000 00000000
      Backtrace:
      [<c021b138>] (clk_enable) from [<c063308c>] (pxa_timer_nodt_init+0x40/0x120)
       r5:c08762e4 r4:00384000
      [<c063304c>] (pxa_timer_nodt_init) from [<c06220ec>] (sa1100_timer_init+0x1c/0x20)
       r6:ffffffff r5:c0660b20 r4:00000000
      [<c06220d0>] (sa1100_timer_init) from [<c061f114>] (time_init+0x24/0x2c)
      [<c061f0f0>] (time_init) from [<c061bb68>] (start_kernel+0x220/0x42c)
      [<c061b948>] (start_kernel) from [<c0208048>] (0xc0208048)
       r10:c06380f8 r8:c0204000 r7:c0645434 r6:c0639a30 r5:c0642038 r4:c0660cd4
      Code: bad PC value
      ---[ end trace 0000000000000000 ]---
      Kernel panic - not syncing: Attempted to kill the idle task!
      
      Fixes: ee3a4020 ("ARM: 8250/1: sa1100: provide OSTIMER0 clock for pxa_timer")
      Acked-by: NDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      02ba38a5
    • H
      ARM: sun5i: Fix typo in trip point temperature · 539d5c48
      Hugo Grostabussiat 提交于
      Set cpu_alert0 temperature to 85°C instead of 850°C.
      
      Fixes: 32a5d2d1 ("ARM: dts: sun5i: Add cpu thermal zones to dtsi")
      Signed-off-by: NHugo Grostabussiat <bonstra@bonstra.fr.eu.org>
      Acked-by: NChen-Yu Tsai <wens@csie.org>
      Signed-off-by: NMaxime Ripard <maxime.ripard@free-electrons.com>
      539d5c48
  17. 17 8月, 2016 2 次提交
    • P
      ARM: imx6ul: populates platform device at .init_machine · cfee6b58
      Peter Chen 提交于
      At imx6ul_init_machine, it calls imx6ul_pm_init which needs to find
      platform device for ocram, but the default populate platform device is at
      of_platform_default_populate_init, which is located at arch_initcall_sync,
      and called later than arch_initcall (.init_machine is located at that).
      So below warning message will be showed during boots up:
      
      	imx6q_suspend_init: failed to find ocram device!
      	imx6_pm_common_init: No DDR LPM support with suspend -19!
      
      Due to lack of ocram device, the suspend mode "mem" which needs ocram to
      store suspend routine code is invalid.
      
      This commit populates platform device before imx6ul_pm_init like other
      imx6 platforms do, and the suspend mode "mem" can work successfully.
      Signed-off-by: NPeter Chen <peter.chen@nxp.com>
      Fixes: 850bea23 ("arm: Remove unnecessary of_platform_populate with default match table")
      Cc: Anson Huang <anson.huang@nxp.com>
      Cc: Fabio Estevam <fabio.estevam@nxp.com>
      Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
      Cc: Rob Herring <robh@kernel.org>
      Reviewed-by: NFabio Estevam <fabio.estevam@nxp.com>
      Signed-off-by: NShawn Guo <shawnguo@kernel.org>
      cfee6b58
    • C
      KVM: arm/arm64: Change misleading use of is_error_pfn · 9ac71595
      Christoffer Dall 提交于
      When converting a gfn to a pfn, we call gfn_to_pfn_prot, which returns
      various kinds of error values.  It turns out that is_error_pfn() only
      returns true when the gfn was found in a memory slot and could somehow
      not be used, but it does not return true if the gfn does not belong to
      any memory slot.
      
      Change use to is_error_noslot_pfn() which covers both cases.
      
      Note: Since we already check for kvm_is_error_hva(hva) explicitly in the
      caller of this function while holding the kvm->srcu lock protecting the
      memory slots, this should never be a problem, but nevertheless this
      change is warranted as it shows the intention of the code.
      Reported-by: NJames Hogan <james.hogan@imgtec.com>
      Signed-off-by: NChristoffer Dall <christoffer.dall@linaro.org>
      9ac71595
  18. 16 8月, 2016 2 次提交