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
nexedi
linux
Commits
d0890ea5
Commit
d0890ea5
authored
Oct 02, 2015
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARC: boot log: decode more mmu config items
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
964cf28f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
arch/arc/include/asm/arcregs.h
arch/arc/include/asm/arcregs.h
+1
-1
arch/arc/mm/tlb.c
arch/arc/mm/tlb.c
+8
-6
No files found.
arch/arc/include/asm/arcregs.h
View file @
d0890ea5
...
@@ -327,7 +327,7 @@ struct bcr_generic {
...
@@ -327,7 +327,7 @@ struct bcr_generic {
*/
*/
struct
cpuinfo_arc_mmu
{
struct
cpuinfo_arc_mmu
{
unsigned
int
ver
:
4
,
pg_sz_k
:
8
,
s_pg_sz_m
:
8
,
pad
:
1
2
;
unsigned
int
ver
:
4
,
pg_sz_k
:
8
,
s_pg_sz_m
:
8
,
pad
:
1
0
,
sasid
:
1
,
pae
:
1
;
unsigned
int
sets
:
12
,
ways
:
4
,
u_dtlb
:
8
,
u_itlb
:
8
;
unsigned
int
sets
:
12
,
ways
:
4
,
u_dtlb
:
8
,
u_itlb
:
8
;
};
};
...
...
arch/arc/mm/tlb.c
View file @
d0890ea5
...
@@ -723,10 +723,10 @@ void read_decode_mmu_bcr(void)
...
@@ -723,10 +723,10 @@ void read_decode_mmu_bcr(void)
struct
bcr_mmu_3
{
struct
bcr_mmu_3
{
#ifdef CONFIG_CPU_BIG_ENDIAN
#ifdef CONFIG_CPU_BIG_ENDIAN
unsigned
int
ver
:
8
,
ways
:
4
,
sets
:
4
,
osm
:
1
,
reserv
:
3
,
pg_sz
:
4
,
unsigned
int
ver
:
8
,
ways
:
4
,
sets
:
4
,
res
:
3
,
sasid
:
1
,
pg_sz
:
4
,
u_itlb:
4
,
u_dtlb
:
4
;
u_itlb:
4
,
u_dtlb
:
4
;
#else
#else
unsigned
int
u_dtlb
:
4
,
u_itlb
:
4
,
pg_sz
:
4
,
reserv
:
3
,
osm
:
1
,
sets
:
4
,
unsigned
int
u_dtlb
:
4
,
u_itlb
:
4
,
pg_sz
:
4
,
sasid
:
1
,
res
:
3
,
sets
:
4
,
ways:
4
,
ver
:
8
;
ways:
4
,
ver
:
8
;
#endif
#endif
}
*
mmu3
;
}
*
mmu3
;
...
@@ -747,7 +747,7 @@ void read_decode_mmu_bcr(void)
...
@@ -747,7 +747,7 @@ void read_decode_mmu_bcr(void)
if
(
mmu
->
ver
<=
2
)
{
if
(
mmu
->
ver
<=
2
)
{
mmu2
=
(
struct
bcr_mmu_1_2
*
)
&
tmp
;
mmu2
=
(
struct
bcr_mmu_1_2
*
)
&
tmp
;
mmu
->
pg_sz_k
=
TO_KB
(
PAGE_SIZE
);
mmu
->
pg_sz_k
=
TO_KB
(
0x2000
);
mmu
->
sets
=
1
<<
mmu2
->
sets
;
mmu
->
sets
=
1
<<
mmu2
->
sets
;
mmu
->
ways
=
1
<<
mmu2
->
ways
;
mmu
->
ways
=
1
<<
mmu2
->
ways
;
mmu
->
u_dtlb
=
mmu2
->
u_dtlb
;
mmu
->
u_dtlb
=
mmu2
->
u_dtlb
;
...
@@ -759,6 +759,7 @@ void read_decode_mmu_bcr(void)
...
@@ -759,6 +759,7 @@ void read_decode_mmu_bcr(void)
mmu
->
ways
=
1
<<
mmu3
->
ways
;
mmu
->
ways
=
1
<<
mmu3
->
ways
;
mmu
->
u_dtlb
=
mmu3
->
u_dtlb
;
mmu
->
u_dtlb
=
mmu3
->
u_dtlb
;
mmu
->
u_itlb
=
mmu3
->
u_itlb
;
mmu
->
u_itlb
=
mmu3
->
u_itlb
;
mmu
->
sasid
=
mmu3
->
sasid
;
}
else
{
}
else
{
mmu4
=
(
struct
bcr_mmu_4
*
)
&
tmp
;
mmu4
=
(
struct
bcr_mmu_4
*
)
&
tmp
;
mmu
->
pg_sz_k
=
1
<<
(
mmu4
->
sz0
-
1
);
mmu
->
pg_sz_k
=
1
<<
(
mmu4
->
sz0
-
1
);
...
@@ -767,6 +768,8 @@ void read_decode_mmu_bcr(void)
...
@@ -767,6 +768,8 @@ void read_decode_mmu_bcr(void)
mmu
->
ways
=
mmu4
->
n_ways
*
2
;
mmu
->
ways
=
mmu4
->
n_ways
*
2
;
mmu
->
u_dtlb
=
mmu4
->
u_dtlb
*
4
;
mmu
->
u_dtlb
=
mmu4
->
u_dtlb
*
4
;
mmu
->
u_itlb
=
mmu4
->
u_itlb
*
4
;
mmu
->
u_itlb
=
mmu4
->
u_itlb
*
4
;
mmu
->
sasid
=
mmu4
->
sasid
;
mmu
->
pae
=
mmu4
->
pae
;
}
}
}
}
...
@@ -782,11 +785,10 @@ char *arc_mmu_mumbojumbo(int cpu_id, char *buf, int len)
...
@@ -782,11 +785,10 @@ char *arc_mmu_mumbojumbo(int cpu_id, char *buf, int len)
IS_USED_CFG
(
CONFIG_TRANSPARENT_HUGEPAGE
));
IS_USED_CFG
(
CONFIG_TRANSPARENT_HUGEPAGE
));
n
+=
scnprintf
(
buf
+
n
,
len
-
n
,
n
+=
scnprintf
(
buf
+
n
,
len
-
n
,
"MMU [v%x]
\t
: %d
k PAGE, %sJTLB %d (%dx%d), uDTLB %d, uITLB %d %s
\n
"
,
"MMU [v%x]
\t
: %d
K PAGE, %sJTLB %d (%dx%d), uDTLB %d, uITLB %d
\n
"
,
p_mmu
->
ver
,
p_mmu
->
pg_sz_k
,
super_pg
,
p_mmu
->
ver
,
p_mmu
->
pg_sz_k
,
super_pg
,
p_mmu
->
sets
*
p_mmu
->
ways
,
p_mmu
->
sets
,
p_mmu
->
ways
,
p_mmu
->
sets
*
p_mmu
->
ways
,
p_mmu
->
sets
,
p_mmu
->
ways
,
p_mmu
->
u_dtlb
,
p_mmu
->
u_itlb
,
p_mmu
->
u_dtlb
,
p_mmu
->
u_itlb
);
IS_ENABLED
(
CONFIG_ARC_MMU_SASID
)
?
",SASID"
:
""
);
return
buf
;
return
buf
;
}
}
...
...
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