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
fdcc205f
Commit
fdcc205f
authored
Jul 04, 2011
by
Tony Lindgren
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'iommu-for-tony' of
git://github.com/ohadbc/omap-iommu
into devel-fixes
parents
be741de1
fee17d4f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
arch/arm/mach-omap2/iommu2.c
arch/arm/mach-omap2/iommu2.c
+2
-2
arch/arm/mach-omap2/omap-iommu.c
arch/arm/mach-omap2/omap-iommu.c
+1
-1
arch/arm/plat-omap/iovmm.c
arch/arm/plat-omap/iovmm.c
+3
-3
No files found.
arch/arm/mach-omap2/iommu2.c
View file @
fdcc205f
...
...
@@ -225,8 +225,8 @@ static u32 omap2_get_pte_attr(struct iotlb_entry *e)
attr
=
e
->
mixed
<<
5
;
attr
|=
e
->
endian
;
attr
|=
e
->
elsz
>>
3
;
attr
<<=
((
e
->
pgsz
&
MMU_CAM_PGSZ_4K
)
?
0
:
6
);
attr
<<=
((
(
e
->
pgsz
==
MMU_CAM_PGSZ_4K
)
||
(
e
->
pgsz
==
MMU_CAM_PGSZ_64K
))
?
0
:
6
);
return
attr
;
}
...
...
arch/arm/mach-omap2/omap-iommu.c
View file @
fdcc205f
...
...
@@ -67,7 +67,7 @@ static struct iommu_device omap4_devices[] = {
.
pdata
=
{
.
name
=
"ducati"
,
.
nr_tlb_entries
=
32
,
.
clk_name
=
"
ducati_i
ck"
,
.
clk_name
=
"
ipu_f
ck"
,
.
da_start
=
0x0
,
.
da_end
=
0xFFFFF000
,
},
...
...
arch/arm/plat-omap/iovmm.c
View file @
fdcc205f
...
...
@@ -72,7 +72,7 @@ static size_t sgtable_len(const struct sg_table *sgt)
for_each_sg
(
sgt
->
sgl
,
sg
,
sgt
->
nents
,
i
)
{
size_t
bytes
;
bytes
=
sg
_dma_len
(
sg
)
;
bytes
=
sg
->
length
;
if
(
!
iopgsz_ok
(
bytes
))
{
pr_err
(
"%s: sg[%d] not iommu pagesize(%x)
\n
"
,
...
...
@@ -198,7 +198,7 @@ static void *vmap_sg(const struct sg_table *sgt)
int
err
;
pa
=
sg_phys
(
sg
);
bytes
=
sg
_dma_len
(
sg
)
;
bytes
=
sg
->
length
;
BUG_ON
(
bytes
!=
PAGE_SIZE
);
...
...
@@ -476,7 +476,7 @@ static int map_iovm_area(struct iommu *obj, struct iovm_struct *new,
struct
iotlb_entry
e
;
pa
=
sg_phys
(
sg
);
bytes
=
sg
_dma_len
(
sg
)
;
bytes
=
sg
->
length
;
flags
&=
~
IOVMF_PGSZ_MASK
;
pgsz
=
bytes_to_iopgsz
(
bytes
);
...
...
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