1. 21 11月, 2014 3 次提交
  2. 10 10月, 2014 4 次提交
  3. 03 10月, 2014 2 次提交
    • Y
      ARM: 8167/1: extend the reserved memory for initrd to be page aligned · 421520ba
      Yalin Wang 提交于
      This patch extends the start and end address of initrd to be page aligned,
      so that we can free all memory including the un-page aligned head or tail
      page of initrd, if the start or end address of initrd are not page
      aligned, the page can't be freed by free_initrd_mem() function.
      Signed-off-by: NYalin Wang <yalin.wang@sonymobile.com>
      Acked-by: NCatalin Marinas <catalin.marinas@arm.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      421520ba
    • L
      ARM: 8169/1: l2c: parse cache properties from ePAPR definitions · f3354ab6
      Linus Walleij 提交于
      When both 'cache-size' and 'cache-sets' are specified for a L2 cache
      controller node, parse those properties and set up the
      set size based on which type of L2 cache controller we are using.
      
      Update the L2 cache controller Device Tree binding with the optional
      'cache-size', 'cache-sets', 'cache-block-size' and 'cache-line-size'
      properties. These come from the ePAPR specification.
      
      Using the cache size, number of sets and cache line size we can
      calculate desired associativity of the L2 cache. This is done
      by the calculation:
      
          set size = cache size / sets
          ways = set size / line size
          way size = cache size / ways = sets * line size
          associativity = cache size / way size
      
      Example output from the PB1176 DT that look like this:
      
      L2: l2-cache {
          compatible = "arm,l220-cache";
          (...)
          arm,override-auxreg;
          cache-size = <131072>; // 128kB
          cache-sets = <512>;
          cache-line-size = <32>;
      };
      
      Ends up like this:
      
      L2C OF: override cache size: 131072 bytes (128KB)
      L2C OF: override line size: 32 bytes
      L2C OF: override way size: 16384 bytes (16KB)
      L2C OF: override associativity: 8
      L2C: DT/platform modifies aux control register: 0x02020fff -> 0x02030fff
      L2C-220 cache controller enabled, 8 ways, 128 kB
      L2C-220: CACHE_ID 0x41000486, AUX_CTRL 0x06030fff
      
      Which is consistent with the value earlier hardcoded for the
      PB1176 platform.
      
      This patch is an extended version based on the initial patch
      by Florian Fainelli.
      Reviewed-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      f3354ab6
  4. 26 9月, 2014 1 次提交
  5. 25 9月, 2014 2 次提交
  6. 24 9月, 2014 1 次提交
    • B
      ARM: mm: Fix ifdef around cpu_*_do_[suspend, resume] ops · f6f1ae82
      Bartlomiej Zolnierkiewicz 提交于
      Ifdef around cpu_\name\()_do_suspend and cpu_\name\()_do_resume
      ops in proc-macros.S should check for CONFIG_ARM_CPU_SUSPEND and
      not CONFIG_PM_SLEEP.  Fix it.
      
      [ Please note that cpu_v7_do_[suspend,resume] code in proc-v7.S
        already correctly checks for CONFIG_ARM_CPU_SUSPEND, same is
        true for functions for other architectures. ]
      
      This fix is needed for decoupling suspend/resume and advanced
      cpuidle support on Exynos platform (next patch fixes build for
      config with CONFIG_PM_SLEEP=n and CONFIG_ARM_EXYNOS_CPUIDLE=y).
      
      If this fix is not present then the following OOPS happens on
      the first attempt to go into advanced cpuidle mode (AFTR):
      
      [   22.244143] Unable to handle kernel NULL pointer dereference at virtual address 00000000
      [   22.250759] pgd = c0004000
      [   22.253445] [00000000] *pgd=00000000
      [   22.257012] Internal error: Oops: 80000007 [#1] PREEMPT SMP ARM
      [   22.262906] Modules linked in:
      [   22.265949] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.16.0-next-20140811-dirty #730
      [   22.273757] task: c05dce68 ti: c05d2000 task.ti: c05d2000
      [   22.279139] PC is at 0x0
      [   22.281661] LR is at __cpu_suspend_save+0x4c/0xa8
      [   22.286344] pc : [<00000000>]    lr : [<c00125e0>]    psr: a0000093
      [   22.286344] sp : c05d3ef4  ip : c05da414  fp : 00000001
      [   22.297799] r10: c05da414  r9 : c0609cb0  r8 : 0000000f
      [   22.303008] r7 : c05da444  r6 : 00000038  r5 : ea802c00  r4 : c05d3f14
      [   22.309517] r3 : 00000000  r2 : c05d3f4c  r1 : 00000038  r0 : c05d3f20
      [   22.316029] Flags: NzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
      [   22.323406] Control: 10c5387d  Table: 69d5404a  DAC: 00000015
      [   22.329135] Process swapper/0 (pid: 0, stack limit = 0xc05d2240)
      [   22.335124] Stack: (0xc05d3ef4 to 0xc05d4000)
      [   22.339466] 3ee0:                                              ea802c00 00000038 c05d3f4c
      [   22.347626] 3f00: 00000000 00000007 c00123bc 00000000 c001d468 6a888000 c05d3f4c 80000000
      [   22.355785] 3f20: 00000007 c003d3a0 0000193d eaf9dde4 eaf9dde4 c02ef0c8 c000969c fffffffe
      [   22.363944] 3f40: 00000000 c0037b54 eaf9dbb8 e9d1a380 00000000 c001d468 c0609cb0 00000000
      [   22.372103] 3f60: c0609cb0 c061649e 00000001 c001250c eaf9dbb8 00000001 c0609cb0 c001d618
      [   22.380262] 3f80: c001d5d0 c02ef56c 2d9d2e1e 00000005 eaf9dbb8 c02edcc4 2d9d2e1e 00000005
      [   22.388421] 3fa0: c040446c c05da4ec c040446c eaf9dbb8 c05cfbb0 c004c580 c05dce68 c05b3ae8
      [   22.396580] 3fc0: 00000000 c058bb24 ffffffff ffffffff c058b5e4 00000000 00000000 c05b3ae8
      [   22.404740] 3fe0: c0616994 c05da47c c05b3ae4 c05ddeec 4000406a 40008074 00000000 00000000
      [   22.412909] [<c00125e0>] (__cpu_suspend_save) from [<c00123bc>] (__cpu_suspend+0x5c/0x70)
      [   22.421074] [<c00123bc>] (__cpu_suspend) from [<c05d3f4c>] (init_thread_union+0x1f4c/0x2000)
      [   22.429479] Code: bad PC value
      [   22.432518] ---[ end trace fb90ebf4217d0ad9 ]---
      [   22.437116] Kernel panic - not syncing: Attempted to kill the idle task!
      [   22.443800] Rebooting in 5 seconds..
      
      This patch has been tested on Exynos4210 based Origen board.
      Signed-off-by: NBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
      Acked-by: NKyungmin Park <kyungmin.park@samsung.com>
      Signed-off-by: NKukjin Kim <kgene.kim@samsung.com>
      f6f1ae82
  7. 13 9月, 2014 1 次提交
    • B
      ARM: 8138/1: drop ISAR0 workaround for B15 · fbf10641
      Brian Norris 提交于
      The Brahma-B15's ISAR0 correcty advertises UDIV/SDIV support in both ARM
      and Thumb2 modes (CPUID_EXT_ISAR0=02101110), so we don't need to
      manually apply this hwcap.
      
      The code in question actually predates the following commit, which made
      our hwcaps unnecessary:
      
          commit 8164f7af
          Author: Stephen Boyd <sboyd@codeaurora.org>
          Date:   Mon Mar 18 19:44:15 2013 +0100
      
              ARM: 7680/1: Detect support for SDIV/UDIV from ISAR0 register
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      Cc: Will Deacon <will.deacon@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      fbf10641
  8. 03 9月, 2014 1 次提交
  9. 27 8月, 2014 1 次提交
    • M
      ARM: 8128/1: abort: don't clear the exclusive monitors · 85868313
      Mark Rutland 提交于
      The ARMv6 and ARMv7 early abort handlers clear the exclusive monitors
      upon entry to the kernel, but this is redundant:
      
        - We clear the monitors on every exception return since commit
          200b812d ("Clear the exclusive monitor when returning from an
          exception"), so this is not necessary to ensure the monitors are
          cleared before returning from a fault handler.
      
        - Any dummy STREX will target a temporary scratch area in memory, and
          may succeed or fail without corrupting useful data. Its status value
          will not be used.
      
        - Any other STREX in the kernel must be preceded by an LDREX, which
          will initialise the monitors consistently and will not depend on the
          earlier state of the monitors.
      
      Therefore we have no reason to care about the initial state of the
      exclusive monitors when a data abort is taken, and clearing the monitors
      prior to exception return (as we already do) is sufficient.
      
      This patch removes the redundant clearing of the exclusive monitors from
      the early abort handlers.
      Signed-off-by: NMark Rutland <mark.rutland@arm.com>
      Acked-by: NWill Deacon <will.deacon@arm.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      85868313
  10. 09 8月, 2014 1 次提交
  11. 07 8月, 2014 1 次提交
  12. 02 8月, 2014 2 次提交
  13. 29 7月, 2014 2 次提交
  14. 24 7月, 2014 2 次提交
  15. 18 7月, 2014 8 次提交
  16. 14 7月, 2014 1 次提交
  17. 08 7月, 2014 1 次提交
  18. 29 6月, 2014 2 次提交
    • L
      ARM: 8086/1: Set memblock limit for nommu · 6980c3e2
      Laura Abbott 提交于
      Commit 1c2f87c2 (ARM: 8025/1: Get rid of meminfo) changed find_limits
      to use memblock_get_current_limit for calculating the max_low pfn.
      nommu targets never actually set a limit on memblock though which
      means memblock_get_current_limit will just return the default
      value. Set the memblock_limit to be the end of DDR to make sure
      bounds are calculated correctly.
      Signed-off-by: NLaura Abbott <lauraa@codeaurora.org>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      6980c3e2
    • T
      ARM: 8076/1: mm: add support for HW coherent systems in PL310 cache · 98ea2dba
      Thomas Petazzoni 提交于
      When a PL310 cache is used on a system that provides hardware
      coherency, the outer cache sync operation is useless, and can be
      skipped. Moreover, on some systems, it is harmful as it causes
      deadlocks between the Marvell coherency mechanism, the Marvell PCIe
      controller and the Cortex-A9.
      
      To avoid this, this commit introduces a new Device Tree property
      'arm,io-coherent' for the L2 cache controller node, valid only for the
      PL310 cache. It identifies the usage of the PL310 cache in an I/O
      coherent configuration. Internally, it makes the driver disable the
      outer cache sync operation.
      
      Note that technically speaking, a fully coherent system wouldn't
      require any of the other .outer_cache operations. However, in
      practice, when booting secondary CPUs, these are not yet coherent, and
      therefore a set of cache maintenance operations are necessary at this
      point. This explains why we keep the other .outer_cache operations and
      only ->sync is disabled.
      
      While in theory any write to a PL310 register could cause the
      deadlock, in practice, disabling ->sync is sufficient to workaround
      the deadlock, since the other cache maintenance operations are only
      used in very specific situations.
      
      Contrary to previous versions of this patch, this new version does not
      simply NULL-ify the ->sync member, because the l2c_init_data
      structures are now 'const' and therefore cannot be modified, which is
      a good thing. Therefore, this patch introduces a separate
      l2c_init_data instance, called of_l2c310_coherent_data.
      Signed-off-by: NThomas Petazzoni <thomas.petazzoni@free-electrons.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      98ea2dba
  19. 20 6月, 2014 1 次提交
  20. 19 6月, 2014 1 次提交
    • R
      ARM: l2c: fix dependencies on PL310 errata symbols · a641f3a6
      Russell King 提交于
      A number of configurations spit out warnings similar to:
      
      warning: (SOC_IMX6 && SOC_VF610 && ARCH_OMAP4) selects PL310_ERRATA_588369 which has unmet direct dependencies (CACHE_L2X0)
      warning: (SOC_IMX6 && SOC_VF610 && ARCH_OMAP4) selects PL310_ERRATA_727915 which has unmet direct dependencies (CACHE_L2X0)
      
      Clean up the dependencies here:
      * PL310 symbols should only be selected when CACHE_L2X0 is enabled.
      * Since the cache-l2x0 code detects PL310 presence at runtime, and we will
        eventually get rid of CACHE_PL310, surround these errata options with an
        if CACHE_L2X0 conditional rather than repeating the dependency against
        each.
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      a641f3a6
  21. 05 6月, 2014 1 次提交
  22. 02 6月, 2014 1 次提交