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
b6e207a1
Commit
b6e207a1
authored
8 years ago
by
Linux Build Service Account
Committed by
Gerrit - the friendly Code Review server
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "lrdp-v2: Refine AARCH64 page table format parsing"
parents
5859bd52
22b531a0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
linux-ramdump-parser-v2/iommulib.py
+17
-6
17 additions, 6 deletions
linux-ramdump-parser-v2/iommulib.py
linux-ramdump-parser-v2/parsers/iommu.py
+5
-8
5 additions, 8 deletions
linux-ramdump-parser-v2/parsers/iommu.py
with
22 additions
and
14 deletions
linux-ramdump-parser-v2/iommulib.py
+
17
−
6
View file @
b6e207a1
...
...
@@ -14,11 +14,12 @@ import linux_list as llist
ARM_SMMU_DOMAIN
=
0
MSM_SMMU_DOMAIN
=
1
MSM_SMMU_AARCH64_DOMAIN
=
2
class
Domain
(
object
):
def
__init__
(
self
,
pg_table
,
redirect
,
ctx_list
,
client_name
,
domain_type
=
MSM_SMMU_DOMAIN
,
level
=
4
,
domain_num
=-
1
):
domain_type
=
MSM_SMMU_DOMAIN
,
level
=
3
,
domain_num
=-
1
):
self
.
domain_num
=
domain_num
self
.
pg_table
=
pg_table
self
.
redirect
=
redirect
...
...
@@ -131,8 +132,13 @@ class IommuLib(object):
redirect
=
self
.
ramdump
.
read_u64
(
priv_ptr
+
priv_pt_offset
+
redirect_offset
)
domain_create
=
Domain
(
pg_table
,
redirect
,
[],
client_name
)
if
(
self
.
ramdump
.
is_config_defined
(
'
CONFIG_IOMMU_AARCH64
'
)):
domain_create
=
Domain
(
pg_table
,
redirect
,
[],
client_name
,
MSM_SMMU_AARCH64_DOMAIN
)
else
:
domain_create
=
Domain
(
pg_table
,
redirect
,
[],
client_name
,
MSM_SMMU_DOMAIN
)
domain_list
.
append
(
domain_create
)
def
_iommu_list_func
(
self
,
node
,
ctx_list
):
...
...
@@ -215,6 +221,11 @@ class IommuLib(object):
'
attached_elm
'
))
list_walker
.
walk
(
list_attached
,
self
.
_iommu_list_func
,
ctx_list
)
domain_list
.
append
(
Domain
(
pg_table
,
redirect
,
ctx_list
,
client_name
,
domain_num
=
domain_num
))
if
(
self
.
ramdump
.
is_config_defined
(
'
CONFIG_IOMMU_AARCH64
'
)):
domain_create
=
Domain
(
pg_table
,
redirect
,
ctx_list
,
client_name
,
MSM_SMMU_AARCH64_DOMAIN
,
domain_num
=
domain_num
)
else
:
domain_create
=
Domain
(
pg_table
,
redirect
,
ctx_list
,
client_name
,
MSM_SMMU_DOMAIN
,
domain_num
=
domain_num
)
domain_list
.
append
(
domain_create
)
This diff is collapsed.
Click to expand it.
linux-ramdump-parser-v2/parsers/iommu.py
+
5
−
8
View file @
b6e207a1
...
...
@@ -14,7 +14,7 @@ import math
from
print_out
import
print_out_str
from
parser_util
import
register_parser
,
RamParser
from
sizes
import
SZ_4K
,
SZ_64K
,
SZ_1M
,
SZ_16M
,
get_order
,
order_size_strings
from
iommulib
import
IommuLib
,
MSM_SMMU_DOMAIN
from
iommulib
import
IommuLib
,
MSM_SMMU_DOMAIN
,
MSM_SMMU_AARCH64_DOMAIN
,
ARM_SMMU_DOMAIN
from
lpaeiommulib
import
parse_long_form_tables
from
aarch64iommulib
import
parse_aarch64_tables
...
...
@@ -345,11 +345,8 @@ class IOMMU(RamParser):
for
(
domain_num
,
d
)
in
enumerate
(
self
.
domain_list
):
if
self
.
ramdump
.
is_config_defined
(
'
CONFIG_IOMMU_LPAE
'
):
parse_long_form_tables
(
self
.
ramdump
,
d
,
domain_num
)
elif
(
self
.
ramdump
.
is_config_defined
(
'
CONFIG_IOMMU_AARCH64
'
)
or
self
.
ramdump
.
is_config_defined
(
'
CONFIG_ARM_SMMU
'
)):
if
(
d
.
domain_type
==
MSM_SMMU_DOMAIN
):
self
.
parse_short_form_tables
(
d
,
domain_num
)
else
:
parse_aarch64_tables
(
self
.
ramdump
,
d
,
domain_num
)
else
:
elif
(
d
.
domain_type
==
MSM_SMMU_DOMAIN
):
self
.
parse_short_form_tables
(
d
,
domain_num
)
elif
((
d
.
domain_type
==
ARM_SMMU_DOMAIN
)
or
(
d
.
domain_type
==
MSM_SMMU_AARCH64_DOMAIN
)):
parse_aarch64_tables
(
self
.
ramdump
,
d
,
domain_num
)
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