linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL] omap iommu fixes for v3.0-rc
@ 2011-07-01  6:52 Ohad Ben-Cohen
  2011-07-01  7:00 ` Tony Lindgren
  0 siblings, 1 reply; 4+ messages in thread
From: Ohad Ben-Cohen @ 2011-07-01  6:52 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Tony,

Please pull from:

git://github.com/ohadbc/omap-iommu.git for-tony

To receive trivial iommu/iovmm fixes (iommu clk name fix, pte fix and
a fix for iovmm's erroneous
usage of sg_dma_len as reported by Russell).

All three patches were submitted to linux-omap and linux-arm-kernel for review,
and are also attached below for convenience.

Thanks,
Ohad.

The following changes since commit c017d0d1351f916c0ced3f358afc491fdcf490b4:

  Merge branch 'kvm-updates/3.0' of
git://git.kernel.org/pub/scm/virt/kvm/kvm (2011-06-29 11:07:20 -0700)

are available in the git repository at:

  git://github.com/ohadbc/omap-iommu.git for-tony

Ohad Ben-Cohen (2):
      OMAP4: iommu: fix clock name
      omap: iovmm: s/sg_dma_len(sg)/sg->length/

Suman Anna (1):
      omap: iommu: fix pte attributes for super section

 arch/arm/mach-omap2/iommu2.c     |    4 ++--
 arch/arm/mach-omap2/omap-iommu.c |    2 +-
 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 adb083e..f286012 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)
 	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;
 }

diff --git a/arch/arm/mach-omap2/omap-iommu.c b/arch/arm/mach-omap2/omap-iommu.c
index 3fc5dc7..e61fead 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[] = {
 		.pdata = {
 			.name = "ducati",
 			.nr_tlb_entries = 32,
-			.clk_name = "ducati_ick",
+			.clk_name = "ipu_fck",
 			.da_start = 0x0,
 			.da_end = 0xFFFFF000,
 		},
diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c
index 83a37c5..c60737c 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)
 	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);

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [GIT PULL] omap iommu fixes for v3.0-rc
  2011-07-01  6:52 [GIT PULL] omap iommu fixes for v3.0-rc Ohad Ben-Cohen
@ 2011-07-01  7:00 ` Tony Lindgren
  2011-07-01  7:51   ` Ohad Ben-Cohen
  0 siblings, 1 reply; 4+ messages in thread
From: Tony Lindgren @ 2011-07-01  7:00 UTC (permalink / raw)
  To: linux-arm-kernel

* Ohad Ben-Cohen <ohad@wizery.com> [110630 23:47]:
> Hi Tony,
> 
> Please pull from:
> 
> git://github.com/ohadbc/omap-iommu.git for-tony
> 
> To receive trivial iommu/iovmm fixes (iommu clk name fix, pte fix and
> a fix for iovmm's erroneous
> usage of sg_dma_len as reported by Russell).
> 
> All three patches were submitted to linux-omap and linux-arm-kernel for review,
> and are also attached below for convenience.

These look like real fixes, but can you please update the commits
with something like "This fixes an issue with foo when doing bar".

Otherwise it's easy to claim that these are "fixes for features that
never worked" and it might be hard to justify them this late into
the -rc cycle.

Tony

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [GIT PULL] omap iommu fixes for v3.0-rc
  2011-07-01  7:00 ` Tony Lindgren
@ 2011-07-01  7:51   ` Ohad Ben-Cohen
  2011-07-01 10:05     ` Tony Lindgren
  0 siblings, 1 reply; 4+ messages in thread
From: Ohad Ben-Cohen @ 2011-07-01  7:51 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Jul 1, 2011 at 10:00 AM, Tony Lindgren <tony@atomide.com> wrote:
> These look like real fixes, but can you please update the commits
> with something like "This fixes an issue with foo when doing bar".

Done, please tell me if it's OK now.

> Otherwise it's easy to claim that these are "fixes for features that
> never worked" and it might be hard to justify them this late into
> the -rc cycle.

It seems we did have these issues for quite some time, and these are not
explicit 3.0 regressions. So they might vaguely fall into the "fixes
for features that never worked" definition too in a sense.

If you prefer to take them into 3.1, that's OK too.

Thanks,
Ohad.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [GIT PULL] omap iommu fixes for v3.0-rc
  2011-07-01  7:51   ` Ohad Ben-Cohen
@ 2011-07-01 10:05     ` Tony Lindgren
  0 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2011-07-01 10:05 UTC (permalink / raw)
  To: linux-arm-kernel

* Ohad Ben-Cohen <ohad@wizery.com> [110701 00:46]:
> On Fri, Jul 1, 2011 at 10:00 AM, Tony Lindgren <tony@atomide.com> wrote:
> > These look like real fixes, but can you please update the commits
> > with something like "This fixes an issue with foo when doing bar".
> 
> Done, please tell me if it's OK now.

OK thanks!
 
> > Otherwise it's easy to claim that these are "fixes for features that
> > never worked" and it might be hard to justify them this late into
> > the -rc cycle.
> 
> It seems we did have these issues for quite some time, and these are not
> explicit 3.0 regressions. So they might vaguely fall into the "fixes
> for features that never worked" definition too in a sense.
> 
> If you prefer to take them into 3.1, that's OK too.

Let's do that then.

Regards,

Tony

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-07-01 10:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-01  6:52 [GIT PULL] omap iommu fixes for v3.0-rc Ohad Ben-Cohen
2011-07-01  7:00 ` Tony Lindgren
2011-07-01  7:51   ` Ohad Ben-Cohen
2011-07-01 10:05     ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).