Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
dea82520
Commit
dea82520
authored
Sep 21, 2017
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARCv2: boot log: identify HS48 cores (dual issue)
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
010a8c98
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
arch/arc/include/asm/arcregs.h
arch/arc/include/asm/arcregs.h
+2
-1
arch/arc/kernel/setup.c
arch/arc/kernel/setup.c
+14
-3
No files found.
arch/arc/include/asm/arcregs.h
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
;
...
...
arch/arc/kernel/setup.c
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 "
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment