Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
22b970497
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
22b970497
Commits
dea82520
Commit
dea82520
authored
7 years ago
by
Vineet Gupta
Browse files
Options
Downloads
Patches
Plain Diff
ARCv2: boot log: identify HS48 cores (dual issue)
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
010a8c98
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arch/arc/include/asm/arcregs.h
+2
-1
2 additions, 1 deletion
arch/arc/include/asm/arcregs.h
arch/arc/kernel/setup.c
+14
-3
14 additions, 3 deletions
arch/arc/kernel/setup.c
with
16 additions
and
4 deletions
arch/arc/include/asm/arcregs.h
+
2
−
1
View file @
dea82520
...
...
@@ -98,6 +98,7 @@
/* Auxiliary registers */
#define AUX_IDENTITY 4
#define AUX_EXEC_CTRL 8
#define AUX_INTR_VEC_BASE 0x25
#define AUX_VOL 0x5e
...
...
@@ -269,7 +270,7 @@ struct cpuinfo_arc {
struct
cpuinfo_arc_ccm
iccm
,
dccm
;
struct
{
unsigned
int
swap
:
1
,
norm
:
1
,
minmax
:
1
,
barrel
:
1
,
crc
:
1
,
swape
:
1
,
pad1
:
2
,
fpu_sp:
1
,
fpu_dp
:
1
,
pad2
:
6
,
fpu_sp:
1
,
fpu_dp
:
1
,
dual_iss_enb
:
1
,
dual_iss_exist
:
1
,
pad2
:
4
,
debug:
1
,
ap
:
1
,
smart
:
1
,
rtt
:
1
,
pad3
:
4
,
timer0:
1
,
timer1
:
1
,
rtc
:
1
,
gfrc
:
1
,
pad4
:
4
;
}
extn
;
...
...
This diff is collapsed.
Click to expand it.
arch/arc/kernel/setup.c
+
14
−
3
View file @
dea82520
...
...
@@ -51,6 +51,7 @@ static const struct id_to_str arc_cpu_rel[] = {
{
0x51
,
"R2.0"
},
{
0x52
,
"R2.1"
},
{
0x53
,
"R3.0"
},
{
0x54
,
"R4.0"
},
#endif
{
0x00
,
NULL
}
};
...
...
@@ -62,6 +63,7 @@ static const struct id_to_str arc_cpu_nm[] = {
#else
{
0x40
,
"ARC EM"
},
{
0x50
,
"ARC HS38"
},
{
0x54
,
"ARC HS48"
},
#endif
{
0x00
,
"Unknown"
}
};
...
...
@@ -133,7 +135,7 @@ static void read_arc_build_cfg_regs(void)
}
for
(
tbl
=
&
arc_cpu_nm
[
0
];
tbl
->
id
!=
0
;
tbl
++
)
{
if
((
cpu
->
core
.
family
&
0xF
0
)
==
tbl
->
id
)
if
((
cpu
->
core
.
family
&
0xF
4
)
==
tbl
->
id
)
break
;
}
cpu
->
name
=
tbl
->
str
;
...
...
@@ -192,6 +194,14 @@ static void read_arc_build_cfg_regs(void)
cpu
->
bpu
.
full
=
bpu
.
ft
;
cpu
->
bpu
.
num_cache
=
256
<<
bpu
.
bce
;
cpu
->
bpu
.
num_pred
=
2048
<<
bpu
.
pte
;
if
(
cpu
->
core
.
family
>=
0x54
)
{
unsigned
int
exec_ctrl
;
READ_BCR
(
AUX_EXEC_CTRL
,
exec_ctrl
);
cpu
->
extn
.
dual_iss_exist
=
1
;
cpu
->
extn
.
dual_iss_enb
=
exec_ctrl
&
1
;
}
}
READ_BCR
(
ARC_REG_AP_BCR
,
bcr
);
...
...
@@ -239,10 +249,11 @@ static char *arc_cpu_mumbojumbo(int cpu_id, char *buf, int len)
"
\n
IDENTITY
\t
: ARCVER [%#02x] ARCNUM [%#02x] CHIPID [%#4x]
\n
"
,
core
->
family
,
core
->
cpu_id
,
core
->
chip_id
);
n
+=
scnprintf
(
buf
+
n
,
len
-
n
,
"processor [%d]
\t
: %s %s (%s ISA) %s
\n
"
,
n
+=
scnprintf
(
buf
+
n
,
len
-
n
,
"processor [%d]
\t
: %s %s (%s ISA)
%s%s
%s
\n
"
,
cpu_id
,
cpu
->
name
,
cpu
->
details
,
is_isa_arcompact
()
?
"ARCompact"
:
"ARCv2"
,
IS_AVAIL1
(
cpu
->
isa
.
be
,
"[Big-Endian]"
));
IS_AVAIL1
(
cpu
->
isa
.
be
,
"[Big-Endian]"
),
IS_AVAIL3
(
cpu
->
extn
.
dual_iss_exist
,
cpu
->
extn
.
dual_iss_enb
,
" Dual-Issue"
));
n
+=
scnprintf
(
buf
+
n
,
len
-
n
,
"Timers
\t\t
: %s%s%s%s%s%s
\n
ISA Extn
\t
: "
,
IS_AVAIL1
(
cpu
->
extn
.
timer0
,
"Timer0 "
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment