Skip to contentSkip to conversation

x86/iommu: correct ICS register offset

PATCH In review Li, Zhen-Hua 2 participants 4 messages Sep 13, 2013 – Sep 26, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/iommu: correct ICS register offset

According to Intel Vt-D specs, the offset of Invalidation complete status register should be 0x9C, not 0x98.

See Intel's VT-d spec, Revision 1.3, Chapter 10.4, Page 98;

---
 include/linux/intel-iommu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/intel-iommu.h +1 -1
index 78e2ada..d380c5e 100644
@@ -55,7 +55,7 @@
 #define DMAR_IQT_REG	0x88	/* Invalidation queue tail register */
 #define DMAR_IQ_SHIFT	4	/* Invalidation queue head/tail shift */
 #define DMAR_IQA_REG	0x90	/* Invalidation queue addr register */
-#define DMAR_ICS_REG	0x98	/* Invalidation complete status register */
+#define DMAR_ICS_REG	0x9c	/* Invalidation complete status register */
 #define DMAR_IRTA_REG	0xb8    /* Interrupt remapping table addr register */
 
 #define OFFSET_STRIDE		(9)
Signature · 1 line
1.8.4.rc3
author
#1 lore raw

Hi Guys,
Though DMAR_ICS_REG is not used yet, I think this patch is
necessary. So please take a look at it.

Thanks
ZhenHua

Quoted 24 lines · Zhen-Hua

According to Intel Vt-D specs, the offset of Invalidation complete status register should be 0x9C, not 0x98.

See Intel's VT-d spec, Revision 1.3, Chapter 10.4, Page 98;

---
  include/linux/intel-iommu.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/intel-iommu.h +1 -1
index 78e2ada..d380c5e 100644
@@ -55,7 +55,7 @@
  #define DMAR_IQT_REG	0x88	/* Invalidation queue tail register */
  #define DMAR_IQ_SHIFT	4	/* Invalidation queue head/tail shift */
  #define DMAR_IQA_REG	0x90	/* Invalidation queue addr register */
-#define DMAR_ICS_REG	0x98	/* Invalidation complete status register */
+#define DMAR_ICS_REG	0x9c	/* Invalidation complete status register */
  #define DMAR_IRTA_REG	0xb8    /* Interrupt remapping table addr register */
 
  #define OFFSET_STRIDE		(9)
#2 lore raw
Quoted 3 lines · ZhenHua

Hi Guys,
Though DMAR_ICS_REG is not used yet, I think this patch is
necessary. So please take a look at it.

You are right, my Spec says the same. It doesn't matter much since the register seems to be unused in the VT-d driver. I applied the patch to iommu/fixes anyway.

Joerg

#3 lore raw

Joerg,
Thank you for reviewing this patch.

ZhenHua

Quoted 14 lines · Joerg Roedel
Quoted 3 lines · ZhenHua

Hi Guys,
Though DMAR_ICS_REG is not used yet, I think this patch is
necessary. So please take a look at it.

You are right, my Spec says the same. It doesn't matter much since the register seems to be unused in the VT-d driver. I applied the patch to iommu/fixes anyway.

Joerg

.