Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tools
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
vendor
qcom-opensource
tools
Commits
b2919b32
Commit
b2919b32
authored
7 years ago
by
lnx build
Committed by
Gerrit - the friendly Code Review server
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "lrdpv2: cachedumplib: Change LLC support for sdm845" into opensource-tools.lnx.1.0
parents
6ef502b9
b27124de
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
linux-ramdump-parser-v2/cachedumplib.py
+25
-26
25 additions, 26 deletions
linux-ramdump-parser-v2/cachedumplib.py
with
25 additions
and
26 deletions
linux-ramdump-parser-v2/cachedumplib.py
+
25
−
26
View file @
b2919b32
...
...
@@ -571,40 +571,39 @@ class LLC_SYSTEM_CACHE_KRYO3XX(CacheDumpType_v1):
"""
Refer to documentation:LLC_HDD
"""
def
__init__
(
self
):
super
(
LLC_SYSTEM_CACHE_KRYO3XX
,
self
).
__init__
()
self
.
tableformat
.
addColumn
(
'
G0 Valid
'
)
self
.
tableformat
.
addColumn
(
'
G0 Dirty
'
)
self
.
tableformat
.
addColumn
(
'
G1 Valid
'
)
self
.
tableformat
.
addColumn
(
'
G1 Dirty
'
)
self
.
tableformat
.
addColumn
(
'
SCID
'
)
self
.
tableformat
.
addColumn
(
'
ECC
'
)
self
.
tableformat
.
addColumn
(
'
Tag address
'
)
self
.
unsupported_header_offset
=
0
self
.
TagSize
=
2
self
.
LineSize
=
16
self
.
tableformat
.
addColumn
(
'
Valid
'
)
self
.
tableformat
.
addColumn
(
'
Dirty
'
)
self
.
tableformat
.
addColumn
(
'
SCID
'
)
self
.
tableformat
.
addColumn
(
'
Tag Data
'
)
self
.
tableformat
.
addColumn
(
'
ECC
'
)
self
.
tableformat
.
addColumn
(
'
Physical address1
'
)
self
.
tableformat
.
addColumn
(
'
Physical address2
'
)
self
.
unsupported_header_offset
=
12
self
.
TagSize
=
7
self
.
LineSize
=
0x10
self
.
NumSets
=
0x400
self
.
NumWays
=
12
self
.
NumWays
=
0x0C
def
parse_tag_fn
(
self
,
output
,
data
,
nset
,
nway
):
if
self
.
TagSize
!=
2
:
if
self
.
TagSize
!=
7
:
raise
Exception
(
'
cache tag size mismatch
'
)
G0_valid
=
data
[
0
]
&
0x1
G1_valid
=
(
data
[
0
]
>>
2
)
&
0x1
G0_dirty
=
(
data
[
0
]
>>
3
)
&
0x1
G1_dirty
=
(
data
[
0
]
>>
4
)
&
0x1
SCID
=
(
data
[
0
]
>>
7
)
&
0x1f
ECC_bits
=
(
data
[
0
]
>>
14
)
&
0x7f
DONE_bit
=
(
data
[
1
]
>>
28
)
&
0x1
addr
=
data
[
1
]
&
0x3fffffff
Valid
=
data
[
0
]
Dirty
=
data
[
1
]
SCID
=
data
[
2
]
Tag_Addr
=
data
[
3
]
ECC_bits
=
data
[
4
]
Phy_Addr_Upper
=
data
[
5
]
Phy_Addr_Lower
=
data
[
6
]
output
.
append
(
G0_valid
)
output
.
append
(
G0_dirty
)
output
.
append
(
G1_valid
)
output
.
append
(
G1_dirty
)
output
.
append
(
Valid
)
output
.
append
(
Dirty
)
output
.
append
(
SCID
)
output
.
append
(
Tag_Addr
)
output
.
append
(
ECC_bits
)
output
.
append
(
addr
)
output
.
append
(
Phy_Addr_Upper
)
output
.
append
(
Phy_Addr_Lower
)
L1_DCache_KRYO2XX_SILVER
=
L1_DCache_A53
L1_ICache_KYRO2XX_SILVER
=
L1_ICache_A53
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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