]> Gentwo Git Trees - linux/.git/commit
arm64: dts: allwinner: Add cache information to the SoC dtsi for A64
authorDragan Simic <dsimic@manjaro.org>
Sun, 28 Apr 2024 11:40:35 +0000 (13:40 +0200)
committerChen-Yu Tsai <wens@csie.org>
Tue, 28 May 2024 16:14:36 +0000 (00:14 +0800)
commit7360e752165496617e8fec4bbeb7aebf630ca775
tree284818789dbb76f7acde4f12916dc0705b336d3a
parent523bfa3069eca7498e2ebb56206ac70c5ab6a74b
arm64: dts: allwinner: Add cache information to the SoC dtsi for A64

Add missing cache information to the Allwinner A64 SoC dtsi, to allow
the userspace, which includes lscpu(1) that uses the virtual files provided
by the kernel under the /sys/devices/system/cpu directory, to display the
proper A64 cache information.

While there, use a more self-descriptive label for the L2 cache node, which
also makes it more consistent with other SoC dtsi files.

The cache parameters for the A64 dtsi were obtained and partially derived
by hand from the cache size and layout specifications found in the following
datasheets and technical reference manuals:

  - Allwinner A64 datasheet, version 1.1
  - ARM Cortex-A53 revision r0p3 TRM, version E

For future reference, here's a brief summary of the documentation:

  - All caches employ the 64-byte cache line length
  - Each Cortex-A53 core has 32 KB of L1 2-way, set-associative instruction
    cache and 32 KB of L1 4-way, set-associative data cache
  - The entire SoC has 512 KB of unified L2 16-way, set-associative cache

Signed-off-by: Dragan Simic <dsimic@manjaro.org>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Link: https://lore.kernel.org/r/6a772756c2c677dbdaaab4a2c71a358d8e4b27e9.1714304058.git.dsimic@manjaro.org
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi