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
ad051221
Commit
ad051221
authored
Jun 28, 2009
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
intel-iommu: Use domain_pfn_mapping() in intel_iommu_map_range()
Signed-off-by:
David Woodhouse
<
David.Woodhouse@intel.com
>
parent
0ab36de2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
drivers/pci/intel-iommu.c
drivers/pci/intel-iommu.c
+5
-2
No files found.
drivers/pci/intel-iommu.c
View file @
ad051221
...
...
@@ -3516,8 +3516,11 @@ static int intel_iommu_map_range(struct iommu_domain *domain,
}
dmar_domain
->
max_addr
=
max_addr
;
}
ret
=
domain_page_mapping
(
dmar_domain
,
iova
,
hpa
,
size
,
prot
);
/* Round up size to next multiple of PAGE_SIZE, if it and
the low bits of hpa would take us onto the next page */
size
=
aligned_size
(
hpa
,
size
)
>>
VTD_PAGE_SHIFT
;
ret
=
domain_pfn_mapping
(
dmar_domain
,
iova
>>
VTD_PAGE_SHIFT
,
hpa
>>
VTD_PAGE_SHIFT
,
size
,
prot
);
return
ret
;
}
...
...
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