Skip to content

ARM: renesas: Use SMP jump stub SRAM region from DT

Simon Horman linux-arm-kernel linux-devicetree linux-renesas-soc 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 9 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 9 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] ARM: renesas: Use SMP jump stub SRAM region from DT
Quoted 43 lines · Geert Uytterhoeven

Hi Simon,

Quoted 40 lines · Simon Horman
Quoted 38 lines · Geert Uytterhoeven
Quoted 22 lines · Geert Uytterhoeven

The R-Car Gen2 platform code for CPU core bringup needs to copy a jump stub to on-SoC SRAM. Currently it uses a hardcoded address pointing to ICRAM1.

This patch series adds support to specify this region from DT. It consists of 3 parts:
- DT binding documentation for reserving SRAM for the jump stub,
- A platform code update to retrieve the information from DT, if present (of course backwards-compatibility with old DTBs is preserved),
- DT updates to reserve an SRAM region in DT on all R-Car Gen2 and

    RZ/G1 SoCs.

The DT patches in this series depend on "[PATCH 0/7] ARM: dts: renesas:
Add Inter Connect RAM".

Note that the current jump stub in Linux is 12 bytes long. The patches reserve 16 bytes of SRAM. Should this be increased? The mapping granularity is PAGE_SIZE anyway.

Thanks for your comments!

Quoted 10 lines

Geert Uytterhoeven (9):
dt-bindings: sram: Document renesas,smp-sram
ARM: shmobile: rcar-gen2: Obtain jump stub region from DT
ARM: dts: r8a7743: Reserve SRAM for the SMP jump stub
ARM: dts: r8a7745: Reserve SRAM for the SMP jump stub
ARM: dts: r8a7790: Reserve SRAM for the SMP jump stub
ARM: dts: r8a7791: Reserve SRAM for the SMP jump stub
ARM: dts: r8a7792: Reserve SRAM for the SMP jump stub
ARM: dts: r8a7793: Reserve SRAM for the SMP jump stub
ARM: dts: r8a7794: Reserve SRAM for the SMP jump stub

Forgot to mention: this has been tested on r8a7790/lager, r8a7791/koelsch, r8a7792/blanche, r8a7793/gose, and r8a7794/alt (r8a7794 needs an unrelated fix to enable SMP).

Quoted 5 lines
Quoted 2 lines

Geert, these seem nice and clean to me.
Are they ready to be applied?

Now the binding has been Acked by Rob, I think they are. Thanks!

Thanks, all patches accepted for v4.14.