]> git.baikalelectronics.ru Git - kernel.git/commit
ARCv2: boot log: updates for HS48: dual-issue, ECC, Loop Buffer
authorVineet Gupta <vgupta@synopsys.com>
Fri, 10 Nov 2017 20:40:00 +0000 (12:40 -0800)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 13 Nov 2017 22:37:39 +0000 (14:37 -0800)
commit6ef2c7dad4fa6498c7424a76d95aba7a84858484
tree118a965ecaa09460f54c3de64e247db76d201b7f
parentd3a115bdd595fa0dee3ad321eb293249d9cb978f
ARCv2: boot log: updates for HS48: dual-issue, ECC, Loop Buffer

Print the hardware support for ECC, Loop Buffer as well as the runtime
enabled status

Note that unlike the existing boot printing, this one is not read from
pre-decoded hardware capabilty info cached in cpuinfo[] struct.
Instead we read the AUX regs on the spot and print it, without botherign
to save anywhere.

There is no point in saving static hardware capabilites in memory when
its use is very sporadic and non-performance critical, mainly for
/proc/cpuinfo. This gets worse in SMP, given it is per-cpu, and pretty
much exactly same across all cpus. So only info needed at runtime
(e.g. TLB geometry) needs to be cached in cpuinfo[]. So going fwd
we will start converting code to this paradigm.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/arcregs.h
arch/arc/kernel/setup.c