ARCv2: boot log: refurbish HS core/release identification
PATCH 1/2 ARCv2: boot log: refurbish HS core/release identification
HS core names and releases were currently identified base don the IDENTIFY.ARCVER field. With the future HS core4 release, this will not be sufficient as same ARCVER 0x54 could be a HS38 or HS48.
So rewrite the code to use the new BCR to identify the cores properly.
--- arch/arc/include/asm/arcregs.h | 2 +- arch/arc/kernel/setup.c | 130 +++++++++++++++++++++++------------------ 2 files changed, 75 insertions(+), 57 deletions(-)
arch/arc/include/asm/arcregs.h +1 -1
@@ -313,7 +313,7 @@ struct cpuinfo_arc {struct cpuinfo_arc_bpu bpu;struct bcr_identity core;struct bcr_isa_arcv2 isa; -const char *details, *name; +const char *release, *name;unsigned int vec_base;struct cpuinfo_arc_ccm iccm, dccm;struct {
arch/arc/kernel/setup.c +74 -56
171 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH 2/2 ARC: boot log: cut down on verbosity
The syscall ABI has long been fixed, so need to call that out now.
There's no need to print the real fine details such as norm, barrel shifter etc. Those are given in a Linux enabled hardware config. Now there's just 1 line for all optional "instruction" related features
|
| ISA Extn : atomic ll64 unalign mpy[opt 9] div_rem
vs. 2 before
| |ISA Extn : atomic ll64 unalign | : mpy[opt 9] div_rem norm barrel-shift swap minmax swape
--- arch/arc/include/asm/arcregs.h | 9 ----- arch/arc/kernel/setup.c | 84 ++++++++++++++++-------------------------- 2 files changed, 32 insertions(+), 61 deletions(-)
arch/arc/include/asm/arcregs.h +0 -9
@@ -168,14 +168,6 @@ struct bcr_mpy {#endif }; -struct bcr_extn_xymem { -#ifdef CONFIG_CPU_BIG_ENDIAN -unsigned int ram_org:2 , num_banks:4 , bank_sz:4 , ver:8 ; -#else -unsigned int ver:8 , bank_sz:4 , num_banks:4 , ram_org:2 ; -#endif -}; -struct bcr_iccm_arcompact {#ifdef CONFIG_CPU_BIG_ENDIAN unsigned int base:16 , pad:5 , sz:3 , ver:8 ;
@@ -323,7 +315,6 @@ struct cpuinfo_arc { timer0:1, timer1:1, rtc:1, gfrc:1, pad4:4; } extn;struct bcr_mpy extn_mpy; -struct bcr_extn_xymem extn_xymem; };extern struct cpuinfo_arc cpuinfo_arc700[];
arch/arc/kernel/setup.c +32 -52
127 lines not on this page · raw message
Signature · 1 line
2.7.4