Patchwork sparc/iommu: fix typo s/265KB/256KB/

login
register
mail settings
Submitter Akinobu Mita
Date March 29, 2013, 1:44 p.m.
Message ID <1364564684-15469-2-git-send-email-akinobu.mita@gmail.com>
Download mbox | patch
Permalink /patch/232417/
State Accepted
Delegated to: David Miller
Headers show

Comments

Akinobu Mita - March 29, 2013, 1:44 p.m.
IOMMU_NPTES is 64K PTEs, so the size is 256KB (= 64K * sizeof(iopte_t))

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: sparclinux@vger.kernel.org
---

This patch is extracted a comment typo fix from the patch I send:
"sparc/iommu: use BITS_TO_LONGS() to calculate bitmap size"

 arch/sparc/mm/iommu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
David Miller - March 31, 2013, 11:31 p.m.
From: Akinobu Mita <akinobu.mita@gmail.com>
Date: Fri, 29 Mar 2013 22:44:44 +0900

> IOMMU_NPTES is 64K PTEs, so the size is 256KB (= 64K * sizeof(iopte_t))
> 
> Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/arch/sparc/mm/iommu.c b/arch/sparc/mm/iommu.c
index 0f4f719..28f96f2 100644
--- a/arch/sparc/mm/iommu.c
+++ b/arch/sparc/mm/iommu.c
@@ -34,7 +34,7 @@ 
 #define IOMMU_RNGE	IOMMU_RNGE_256MB
 #define IOMMU_START	0xF0000000
 #define IOMMU_WINSIZE	(256*1024*1024U)
-#define IOMMU_NPTES	(IOMMU_WINSIZE/PAGE_SIZE)	/* 64K PTEs, 265KB */
+#define IOMMU_NPTES	(IOMMU_WINSIZE/PAGE_SIZE)	/* 64K PTEs, 256KB */
 #define IOMMU_ORDER	6				/* 4096 * (1<<6) */
 
 /* srmmu.c */