diff options
| author | Tony Lindgren <tony@atomide.com> | 2011-07-04 10:40:05 -0400 |
|---|---|---|
| committer | Tony Lindgren <tony@atomide.com> | 2011-07-04 10:40:05 -0400 |
| commit | fdcc205fb9ba006bcd37f72e1b1b904704257351 (patch) | |
| tree | a1ee747bcb9c5973e95dfb6bcd37429971223af2 | |
| parent | be741de16f1148ecf0fcdd1f438945c939e6ea38 (diff) | |
| parent | fee17d4fdf70050e84fab3eb9d8eeb8d1daad242 (diff) | |
Merge branch 'iommu-for-tony' of git://github.com/ohadbc/omap-iommu into devel-fixes
| -rw-r--r-- | arch/arm/mach-omap2/iommu2.c | 4 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/omap-iommu.c | 2 | ||||
| -rw-r--r-- | arch/arm/plat-omap/iovmm.c | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mach-omap2/iommu2.c b/arch/arm/mach-omap2/iommu2.c index adb083e41acd..f286012783c6 100644 --- a/arch/arm/mach-omap2/iommu2.c +++ b/arch/arm/mach-omap2/iommu2.c | |||
| @@ -225,8 +225,8 @@ static u32 omap2_get_pte_attr(struct iotlb_entry *e) | |||
| 225 | attr = e->mixed << 5; | 225 | attr = e->mixed << 5; |
| 226 | attr |= e->endian; | 226 | attr |= e->endian; |
| 227 | attr |= e->elsz >> 3; | 227 | attr |= e->elsz >> 3; |
| 228 | attr <<= ((e->pgsz & MMU_CAM_PGSZ_4K) ? 0 : 6); | 228 | attr <<= (((e->pgsz == MMU_CAM_PGSZ_4K) || |
| 229 | 229 | (e->pgsz == MMU_CAM_PGSZ_64K)) ? 0 : 6); | |
| 230 | return attr; | 230 | return attr; |
| 231 | } | 231 | } |
| 232 | 232 | ||
diff --git a/arch/arm/mach-omap2/omap-iommu.c b/arch/arm/mach-omap2/omap-iommu.c index 3fc5dc7233da..e61feadcda4e 100644 --- a/arch/arm/mach-omap2/omap-iommu.c +++ b/arch/arm/mach-omap2/omap-iommu.c | |||
| @@ -67,7 +67,7 @@ static struct iommu_device omap4_devices[] = { | |||
| 67 | .pdata = { | 67 | .pdata = { |
| 68 | .name = "ducati", | 68 | .name = "ducati", |
| 69 | .nr_tlb_entries = 32, | 69 | .nr_tlb_entries = 32, |
| 70 | .clk_name = "ducati_ick", | 70 | .clk_name = "ipu_fck", |
| 71 | .da_start = 0x0, | 71 | .da_start = 0x0, |
| 72 | .da_end = 0xFFFFF000, | 72 | .da_end = 0xFFFFF000, |
| 73 | }, | 73 | }, |
diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c index 83a37c54342f..c60737c49a32 100644 --- a/arch/arm/plat-omap/iovmm.c +++ b/arch/arm/plat-omap/iovmm.c | |||
| @@ -72,7 +72,7 @@ static size_t sgtable_len(const struct sg_table *sgt) | |||
| 72 | for_each_sg(sgt->sgl, sg, sgt->nents, i) { | 72 | for_each_sg(sgt->sgl, sg, sgt->nents, i) { |
| 73 | size_t bytes; | 73 | size_t bytes; |
| 74 | 74 | ||
| 75 | bytes = sg_dma_len(sg); | 75 | bytes = sg->length; |
| 76 | 76 | ||
| 77 | if (!iopgsz_ok(bytes)) { | 77 | if (!iopgsz_ok(bytes)) { |
| 78 | pr_err("%s: sg[%d] not iommu pagesize(%x)\n", | 78 | pr_err("%s: sg[%d] not iommu pagesize(%x)\n", |
| @@ -198,7 +198,7 @@ static void *vmap_sg(const struct sg_table *sgt) | |||
| 198 | int err; | 198 | int err; |
| 199 | 199 | ||
| 200 | pa = sg_phys(sg); | 200 | pa = sg_phys(sg); |
| 201 | bytes = sg_dma_len(sg); | 201 | bytes = sg->length; |
| 202 | 202 | ||
| 203 | BUG_ON(bytes != PAGE_SIZE); | 203 | BUG_ON(bytes != PAGE_SIZE); |
| 204 | 204 | ||
| @@ -476,7 +476,7 @@ static int map_iovm_area(struct iommu *obj, struct iovm_struct *new, | |||
| 476 | struct iotlb_entry e; | 476 | struct iotlb_entry e; |
| 477 | 477 | ||
| 478 | pa = sg_phys(sg); | 478 | pa = sg_phys(sg); |
| 479 | bytes = sg_dma_len(sg); | 479 | bytes = sg->length; |
| 480 | 480 | ||
| 481 | flags &= ~IOVMF_PGSZ_MASK; | 481 | flags &= ~IOVMF_PGSZ_MASK; |
| 482 | pgsz = bytes_to_iopgsz(bytes); | 482 | pgsz = bytes_to_iopgsz(bytes); |
