projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
316d718
)
powerpc/iommu: Fix initialisation of DART iommu table
author
Alistair Popple
<
[email protected]
>
Wed, 29 Jan 2014 04:20:12 +0000
(15:20 +1100)
committer
Benjamin Herrenschmidt
<
[email protected]
>
Wed, 29 Jan 2014 05:58:49 +0000
(16:58 +1100)
Commit
d084775738b746648d4102337163a04534a02982
switched the generic
powerpc iommu backend code to use the it_page_shift field to determine
page size. Commit
3a553170d35d69bea3877bffa508489dfa6f133d
should have
initiliased this field for all platforms, however the DART iommu table
code was not updated.
This commit initialises the it_page_shift field to 4K for the DART
iommu.
Signed-off-by: Alistair Popple <
[email protected]
>
Signed-off-by: Benjamin Herrenschmidt <
[email protected]
>
arch/powerpc/sysdev/dart_iommu.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/sysdev/dart_iommu.c
b/arch/powerpc/sysdev/dart_iommu.c
index bd968a43a48b29047fa5f2d9d8cd1fe9ceb66b69..62c47bb765178a10fe3aa371ef0c7d5d0c0c6364 100644
(file)
--- a/
arch/powerpc/sysdev/dart_iommu.c
+++ b/
arch/powerpc/sysdev/dart_iommu.c
@@
-292,6
+292,7
@@
static void iommu_table_dart_setup(void)
iommu_table_dart.it_offset = 0;
/* it_size is in number of entries */
iommu_table_dart.it_size = dart_tablesize / sizeof(u32);
+ iommu_table_dart.it_page_shift = IOMMU_PAGE_SHIFT_4K;
/* Initialize the common IOMMU code */
iommu_table_dart.it_base = (unsigned long)dart_vbase;