28 Feb, 2017

1 commit


20 Oct, 2016

1 commit


14 Jul, 2016

1 commit

  • …hotard/sti into next/soc

    Merge "STi SoC changes for v4.8" from Patrice Chotard:

    - Add a dummy L2 cache's write_sec callback as in non secure mode execution,
    we can't get access to L2 cache secure registers
    - Cosmetics change, in case of dump_stack, update the hardware name with a
    more generic for the STi SoCs family

    * tag 'sti-soc-for-v4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/pchotard/sti:
    ARM: sti: Implement dummy L2 cache's write_sec
    ARM: STi: Update machine _namestr to be more generic.

    Arnd Bergmann
     

11 Jul, 2016

2 commits

  • This patch implements the write_sec callback that handle PL310
    secure registers writes.
    This callback is just a stub for now, to avoid system crash.
    Later, it could handle SMC calls so that TZ handles the needed writes.

    Signed-off-by: Patrice Chotard

    Patrice Chotard
     
  • This string is used by dump_stack and as we now support
    more SoC's than just STiH415/6 it is misleading to have
    the current string in the stack trace.

    This patch updates it to be more generic for the STi
    family of SoCs.

    So instead of looking like this

    [ 271.672555] Hardware name: STiH415/416 SoC with Flattened Device Tree
    [ 271.678998] [] (unwind_backtrace) from [] (show_stack+0x10/0x14)
    [ 271.686746] [] (show_stack) from [] (dump_stack+0x98/0xac)
    [snip]

    it now looks like this:

    [ 2.669879] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.6.0-rc3-00026-g38a1ce6-dirty #76
    [ 2.677973] Hardware name: STi SoC with Flattened Device Tree
    [ 2.683723] [] (unwind_backtrace) from [] (show_stack+0x10/0x14)
    [ 2.691472] [] (show_stack) from [] (dump_stack+0x98/0xac)
    [snip]

    Signed-off-by: Peter Griffin
    Acked-by: Patrice Chotard

    Peter Griffin
     

04 Jun, 2016

1 commit

  • This replaces:

    - "select ARCH_REQUIRE_GPIOLIB" with "select GPIOLIB" as this can
    now be selected directly.

    - "select ARCH_WANT_OPTIONAL_GPIOLIB" with no dependency: GPIOLIB
    is now selectable by everyone, so we need not declare our
    intent to select it.

    When ordering the symbols the following rationale was used:
    if the selects were in alphabetical order, I moved select GPIOLIB
    to be in alphabetical order, but if the selects were not
    maintained in alphabetical order, I just replaced
    "select ARCH_REQUIRE_GPIOLIB" with "select GPIOLIB".

    Cc: Michael Büsch
    Cc: arm@kernel.org
    Cc: linux-arm-kernel@lists.infradead.org
    Signed-off-by: Linus Walleij
    Signed-off-by: Olof Johansson

    Linus Walleij
     

07 Apr, 2016

1 commit


21 Jan, 2016

1 commit

  • Pull ARM SoC cleanups from Olof Johansson:
    "A smallish number of general cleanup commits this release cycle. Some
    of these are minor tweaks:

    - shmobile change of binding for their GIC (using arm,pl390 now)
    - ARCH_RENESAS introduction
    - Misc other renesas updates

    There's also a couple of treewide commits from Masahiro Yamada
    cleaning up const/__initconst for SMP operation structs and a switch
    to using "depends on" instead of if-constructs on most of the Kconfig
    platform targets"

    * tag 'armsoc-cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
    staging: board: armadillo800eva: Use "arm,pl390"
    staging: board: kzm9d: Use "arm,pl390"
    ARM: shmobile: r8a7778 dtsi: Use "arm,pl390" for GIC
    ARM: shmobile: emev2 dtsi: Use "arm,pl390" for GIC
    ARM: shmobile: r8a7740 dtsi: Use "arm,pl390" for GIC
    ARM: shmobile: r7s72100 dtsi: Use "arm,pl390" for GIC
    ARM: use "depends on" for SoC configs instead of "if" after prompt
    ARM/clocksource: use automatic DT probing for ux500 PRCMU
    ARM: use const and __initconst for smp_operations
    ARM: hisi: do not export smp_operations structures
    ARM: mvebu: remove unused mach/gpio.h
    ARM: shmobile: Remove legacy mach/irqs.h
    ARM: shmobile: Introduce ARCH_RENESAS
    MAINTAINERS: Remove link to oss.renesas.com which is closed

    Linus Torvalds
     

15 Dec, 2015

1 commit


02 Dec, 2015

2 commits

  • Many ARM sub-architectures use prompts followed by "if" conditional,
    but it is wrong.

    Please notice the difference between

    config ARCH_FOO
    bool "Foo SoCs" if ARCH_MULTI_V7

    and

    config ARCH_FOO
    bool "Foo SoCs"
    depends on ARCH_MULTI_V7

    These two are *not* equivalent!

    In the former statement, it is not ARCH_FOO, but its prompt that
    depends on ARCH_MULTI_V7. So, it is completely valid that ARCH_FOO
    is selected by another, but ARCH_MULTI_V7 is still disabled. As it is
    not unmet dependency, Kconfig never warns. This is probably not what
    you want.

    The former should be used only when you need to do so, and you really
    understand what you are doing. (In most cases, it should be wrong!)

    For enabling/disabling sub-architectures, the latter is always correct.

    As a good side effect, this commit fixes some entries over 80 columns
    (mach-imx, mach-integrator, mach-mbevu).

    [Arnd: I note that there is not really a bug here, according to
    the discussion that followed, but I can see value in being consistent
    and in making the lines shorter]

    Signed-off-by: Masahiro Yamada
    Acked-by: Maxime Ripard
    Acked-by: Nicolas Ferre
    Acked-by: Heiko Stuebner
    Acked-by: Patrice Chotard
    Acked-by: Liviu Dudau
    Acked-by: Krzysztof Kozlowski
    Acked-by: Jun Nie
    Acked-by: Matthias Brugger
    Acked-by: Simon Horman
    Acked-by: Gregory CLEMENT
    Acked-by: Shawn Guo
    Acked-by: Sebastian Hesselbarth
    Acked-by: Thierry Reding
    Acked-by: Krzysztof Halasa
    Acked-by: Maxime Coquelin
    Signed-off-by: Arnd Bergmann

    Masahiro Yamada
     
  • These smp_operations structures are not over-written, so add "const"
    qualifier and replace __initdata with __initconst.

    Also, add "static" where it is possible.

    Signed-off-by: Masahiro Yamada
    Acked-by: Krzysztof Kozlowski
    Acked-by: Maxime Ripard
    Acked-by: Moritz Fischer
    Acked-by: Stephen Boyd # qcom part
    Acked-by: Viresh Kumar
    Acked-by: Patrice Chotard
    Acked-by: Heiko Stuebner
    Acked-by: Wei Xu
    Acked-by: Florian Fainelli
    Acked-by: Sebastian Hesselbarth
    Acked-by: Gregory CLEMENT
    Acked-by: Shawn Guo
    Acked-by: Matthias Brugger
    Acked-by: Thierry Reding
    Acked-by: Nicolas Pitre
    Acked-by: Liviu Dudau
    Acked-by: Linus Walleij
    Signed-off-by: Arnd Bergmann

    Masahiro Yamada
     

02 Sep, 2015

1 commit

  • Pull ARM SoC platform updates from Olof Johansson:
    "New or improved SoC support:

    - add support for Atmel's SAMA5D2 SoC
    - add support for Freescale i.MX6UL
    - improved support for TI's DM814x platform
    - misc fixes and improvements for RockChip platforms
    - Marvell MVEBU suspend/resume support

    A few driver changes that ideally would belong in the drivers branch
    are also here (acked by appropriate maintainers):

    - power key input driver for Freescale platforms (svns)
    - RTC driver updates for Freescale platforms (svns/mxc)
    - clk fixes for TI DM814/816X

    + a bunch of other changes for various platforms"

    * tag 'armsoc-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (83 commits)
    ARM: rockchip: pm: Fix PTR_ERR() argument
    ARM: imx: mach-imx6ul: Fix allmodconfig build
    clk: ti: fix for definition movement
    ARM: uniphier: drop v7_invalidate_l1 call at secondary entry
    memory: kill off set_irq_flags usage
    rtc: snvs: select option REGMAP_MMIO
    ARM: brcmstb: select ARCH_DMA_ADDR_T_64BIT for LPAE
    ARM: BCM: Enable ARM erratum 798181 for BRCMSTB
    ARM: OMAP2+: Fix power domain operations regression caused by 81xx
    ARM: rockchip: enable PMU_GPIOINT_WAKEUP_EN when entering shallow suspend
    ARM: rockchip: set correct stabilization thresholds in suspend
    ARM: rockchip: rename osc_switch_to_32k variable
    ARM: imx6ul: add fec MAC refrence clock and phy fixup init
    ARM: imx6ul: add fec bits to GPR syscon definition
    rtc: mxc: add support of device tree
    dt-binding: document the binding for mxc rtc
    rtc: mxc: use a second rtc clock
    ARM: davinci: cp_intc: use IRQCHIP_SKIP_SET_WAKE instead of irq_set_wake callback
    soc: mediatek: Fix SCPSYS compilation
    ARM: at91/soc: add basic support for new sama5d2 SoC
    ...

    Linus Torvalds
     

28 Jul, 2015

1 commit

  • Init data marked const should be annotated with __initconst for
    correctness and not __initdata. In some cases the array gathering
    references to that data has to be marked const as well. This fixes
    LTO builds that otherwise fail with section mismatch errors.

    Signed-off-by: Nicolas Pitre
    Signed-off-by: Olof Johansson

    Nicolas Pitre
     

22 Jul, 2015

2 commits

  • Calling trace_hardirqs_off() from the platform specific
    secondary startup code as not been necessary since Dec 2010
    when Russell King consolidated the call into the common SMP
    code.

    2c0136d ARM: SMP: consolidate trace_hardirqs_off() into common SMP code

    Signed-off-by: Peter Griffin
    Signed-off-by: Maxime Coquelin

    Peter Griffin
     
  • Most upstream devs boot STi platform via JTAG which abuses the
    boot process by setting the PC of secondary cores directly. As
    a consquence, booting STi platforms via u-boot results in only
    the primary core being brought up as the code to manage the
    holding pen is not upstream.

    This patch adds the necessary code to bring the secondary cores
    out of the holding pen. It uses the cpu-release-addr DT property
    to get the address of the holding pen from the bootloader.

    With this patch booting upstream kernels via u-boot works
    correctly:

    [ 0.045456] CPU: Testing write buffer coherency: ok
    [ 0.045597] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [ 0.045734] Setting up static identity map for 0x40209000 - 0x40209098
    [ 0.065047] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [ 0.065081] Brought up 2 CPUs
    [ 0.065089] SMP: Total of 2 processors activated (5983.43 BogoMIPS).
    [ 0.065092] CPU: All CPU(s) started in SVC mode.

    Signed-off-by: Peter Griffin
    Acked-by: Maxime Coquelin
    Signed-off-by: Maxime Coquelin

    Peter Griffin
     

13 May, 2015

1 commit


11 Mar, 2015

1 commit

  • This patch adds support to STiH410 SoC.

    Please note "st,stih410" is already present in device tree.
    The problem is that it is missing the entry in the match table,
    and so the L2 cache and other cpus than 0 don't get initialized.

    Signed-off-by: Fabrice Gasnier
    Tested-by: Maxime Coquelin
    Acked-by: Peter Griffin
    Acked-by: Lee Jones
    Signed-off-by: Maxime Coquelin
    Signed-off-by: Arnd Bergmann

    Fabrice GASNIER
     

18 Feb, 2015

1 commit

  • A lot of the sti device drivers require reset controller support,
    but do not all have individual 'depends on RESET_CONTROLLER'
    statements. Using 'select' here once avoids a lot of build errors
    resulting from this.

    Signed-off-by: Arnd Bergmann
    Acked-by: Maxime Coquelin
    Acked-by: Patrice Chotard
    Cc: Srinivas Kandagatla

    Arnd Bergmann
     

16 Jan, 2015

1 commit


31 Oct, 2014

1 commit

  • The STiH407 is a STMicroelectronics Digital Consumer electronics
    family, targetted at set-top-box and other audio/video applications.

    This patch selects the reset controller driver for this family which
    is essential to take various IP's on the SoC out of powerdown / reset.

    Signed-off-by: Peter Griffin
    Acked-by: Lee Jones
    Signed-off-by: Maxime Coquelin

    Peter Griffin
     

07 Jul, 2014

1 commit


25 Jun, 2014

1 commit

  • Pull ARM fixes from Russell King:
    "A number of low impact fixes, the most noticable one is the thumb2
    frame pointer fix. We also fix a regression caused during this merge
    window with ARM925 CPUs running with caches disabled, and fix a number
    of warnings"

    * 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm:
    ARM: arm925: ensure assembly sets up writethrough mapping
    ARM: perf: fix compiler warning with gcc 4.6.4 (and tidy code)
    ARM: l2c: fix dependencies on PL310 errata symbols
    ARM: 8069/1: Make thread_save_fp macro aware of THUMB2 mode
    ARM: 8068/1: scoop: Remove unused variable

    Linus Torvalds
     

19 Jun, 2014

1 commit

  • 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: Arnd Bergmann
    Signed-off-by: Russell King

    Russell King
     

17 Jun, 2014

1 commit

  • The System Type menu is getting quite long with platforms and is
    inconsistent in handling of sub-arch specific options. Tidy up the menu
    by making platform options a menuconfig entry containing any platform
    specific config items.

    [arnd: change OMAP part according to suggestion from
    Tony Lindgren ]

    Signed-off-by: Rob Herring
    Signed-off-by: Arnd Bergmann

    Rob Herring
     

06 Jun, 2014

1 commit

  • Pull ARM updates from Russell King:

    - Major clean-up of the L2 cache support code. The existing mess was
    becoming rather unmaintainable through all the additions that others
    have done over time. This turns it into a much nicer structure, and
    implements a few performance improvements as well.

    - Clean up some of the CP15 control register tweaks for alignment
    support, moving some code and data into alignment.c

    - DMA properties for ARM, from Santosh and reviewed by DT people. This
    adds DT properties to specify bus translations we can't discover
    automatically, and to indicate whether devices are coherent.

    - Hibernation support for ARM

    - Make ftrace work with read-only text in modules

    - add suspend support for PJ4B CPUs

    - rework interrupt masking for undefined instruction handling, which
    allows us to enable interrupts earlier in the handling of these
    exceptions.

    - support for big endian page tables

    - fix stacktrace support to exclude stacktrace functions from the
    trace, and add save_stack_trace_regs() implementation so that kprobes
    can record stack traces.

    - Add support for the Cortex-A17 CPU.

    - Remove last vestiges of ARM710 support.

    - Removal of ARM "meminfo" structure, finally converting us solely to
    memblock to handle the early memory initialisation.

    * 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm: (142 commits)
    ARM: ensure C page table setup code follows assembly code (part II)
    ARM: ensure C page table setup code follows assembly code
    ARM: consolidate last remaining open-coded alignment trap enable
    ARM: remove global cr_no_alignment
    ARM: remove CPU_CP15 conditional from alignment.c
    ARM: remove unused adjust_cr() function
    ARM: move "noalign" command line option to alignment.c
    ARM: provide common method to clear bits in CPU control register
    ARM: 8025/1: Get rid of meminfo
    ARM: 8060/1: mm: allow sub-architectures to override PCI I/O memory type
    ARM: 8066/1: correction for ARM patch 8031/2
    ARM: 8049/1: ftrace/add save_stack_trace_regs() implementation
    ARM: 8065/1: remove last use of CONFIG_CPU_ARM710
    ARM: 8062/1: Modify ldrt fixup handler to re-execute the userspace instruction
    ARM: 8047/1: rwsem: use asm-generic rwsem implementation
    ARM: l2c: trial at enabling some Cortex-A9 optimisations
    ARM: l2c: add warnings for stuff modifying aux_ctrl register values
    ARM: l2c: print a warning with L2C-310 caches if the cache size is modified
    ARM: l2c: remove old .set_debug method
    ARM: l2c: kill L2X0_AUX_CTRL_MASK before anyone else makes use of this
    ...

    Linus Torvalds
     

30 May, 2014

2 commits

  • Remove the explicit call to l2x0_of_init(), converting to the generic
    infrastructure instead. We can remove the .init_machine as it becomes
    the same as the generic version.

    Signed-off-by: Russell King

    Russell King
     
  • We have a mixture of different devices with different register layouts,
    but we group all the bits together in an opaque mess. Split them out
    into those which are L2C-310 specific and ones which refer to earlier
    devices. Provide full auxiliary control register definitions.

    Acked-by: Tony Lindgren
    Acked-by: Linus Walleij
    Acked-by: Shawn Guo
    Acked-by: Stephen Warren
    Signed-off-by: Russell King

    Russell King
     

17 May, 2014

1 commit


18 Mar, 2014

1 commit


11 Mar, 2014

1 commit


20 Feb, 2014

3 commits


12 Dec, 2013

1 commit


17 Nov, 2013

1 commit

  • Pull ARM SoC fixes from Olof Johansson:
    "A first set of batches of fixes for 3.13. The diffstat is large
    mostly because we're adding a defconfig for a family that's been
    lacking it, and there's some missing clock information added for i.MX
    and OMAP.

    The at91 new code is around dealing with RTC/RTT reset at boot to fix
    possible hangs due to pending wakeup interrupts coming in during early
    boot"

    * tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (29 commits)
    ARM: OMAP2+: Fix build for dra7xx without omap4 and 5
    ARM: OMAP2+: omap_device: maintain sane runtime pm status around suspend/resume
    doc: devicetree: Add bindings documentation for omap-des driver
    ARM: dts: doc: Document missing compatible property for omap-sham driver
    ARM: OMAP3: Beagle: fix return value check in beagle_opp_init()
    ARM: at91: fix hanged boot due to early rtt-interrupt
    ARM: at91: fix hanged boot due to early rtc-interrupt
    video: exynos_mipi_dsim: Remove unused variable
    ARM: highbank: only select errata 764369 if SMP
    ARM: sti: only select errata 764369 if SMP
    ARM: tegra: init fuse before setting reset handler
    ARM: vt8500: add defconfig for v6/v7 chips
    ARM: integrator_cp: Set LCD{0,1} enable lines when turning on CLCD
    ARM: OMAP: devicetree: fix SPI node compatible property syntax items
    pinctrl: single: call pcs_soc->rearm() whenever IRQ mask is changed
    ARM: OMAP2+: smsc911x: fix return value check in gpmc_smsc911x_init()
    MAINTAINERS: drop discontinued mailing list
    ARM: dts: i.MX51: Fix OTG PHY clock
    ARM: imx: set up pllv3 POWER and BYPASS sequentially
    ARM: imx: pllv3 needs relock in .set_rate() call
    ...

    Linus Torvalds
     

16 Nov, 2013

1 commit

  • Pull trivial tree updates from Jiri Kosina:
    "Usual earth-shaking, news-breaking, rocket science pile from
    trivial.git"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (23 commits)
    doc: usb: Fix typo in Documentation/usb/gadget_configs.txt
    doc: add missing files to timers/00-INDEX
    timekeeping: Fix some trivial typos in comments
    mm: Fix some trivial typos in comments
    irq: Fix some trivial typos in comments
    NUMA: fix typos in Kconfig help text
    mm: update 00-INDEX
    doc: Documentation/DMA-attributes.txt fix typo
    DRM: comment: `halve' -> `half'
    Docs: Kconfig: `devlopers' -> `developers'
    doc: typo on word accounting in kprobes.c in mutliple architectures
    treewide: fix "usefull" typo
    treewide: fix "distingush" typo
    mm/Kconfig: Grammar s/an/a/
    kexec: Typo s/the/then/
    Documentation/kvm: Update cpuid documentation for steal time and pv eoi
    treewide: Fix common typo in "identify"
    __page_to_pfn: Fix typo in comment
    Correct some typos for word frequency
    clk: fixed-factor: Fix a trivial typo
    ...

    Linus Torvalds
     

15 Nov, 2013

1 commit


14 Oct, 2013

1 commit


30 Sep, 2013

1 commit


05 Aug, 2013

1 commit

  • This patch removes sti_secondary_start from _INIT section, there are 2
    reason for this removal.
    1. discarding such a small code does not save much, given the RAM
    sizes.
    2. Having this code discarded, creates corruption issue when we boot
    smp-kernel with nrcpus=1 or with single cpu node in DT.

    Signed-off-by: Srinivas Kandagatla
    Signed-off-by: Olof Johansson

    Srinivas Kandagatla