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)
commitf3156851616b4f3cb1d6c567fe46adcfd43ad8f8
tree118a965ecaa09460f54c3de64e247db76d201b7f
parent92d44128241f8aa129cf2f3672786a1b52053510
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