* [PATCH 1/1] x86/iommu: correct ICS register offset
@ 2013-09-13 6:27 Li, Zhen-Hua
2013-09-17 8:38 ` ZhenHua
0 siblings, 1 reply; 4+ messages in thread
From: Li, Zhen-Hua @ 2013-09-13 6:27 UTC (permalink / raw)
To: David Woodhouse, iommu, linux-kernel; +Cc: Li, 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;
Signed-off-by: Li, Zhen-Hua <zhen-hual@hp.com>
---
include/linux/intel-iommu.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h
index 78e2ada..d380c5e 100644
--- a/include/linux/intel-iommu.h
+++ b/include/linux/intel-iommu.h
@@ -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)
--
1.8.4.rc3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] x86/iommu: correct ICS register offset
2013-09-13 6:27 [PATCH 1/1] x86/iommu: correct ICS register offset Li, Zhen-Hua
@ 2013-09-17 8:38 ` ZhenHua
[not found] ` <52381505.4010701-VXdhtT5mjnY@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: ZhenHua @ 2013-09-17 8:38 UTC (permalink / raw)
To: Li, Zhen-Hua, David Woodhouse, iommu, linux-kernel, Ingo Molnar,
Joerg Roedel, Donald Dutile
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
On 09/13/2013 02:27 PM, Li, Zhen-Hua wrote:
> 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;
>
> Signed-off-by: Li, Zhen-Hua <zhen-hual@hp.com>
> ---
> include/linux/intel-iommu.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h
> index 78e2ada..d380c5e 100644
> --- a/include/linux/intel-iommu.h
> +++ b/include/linux/intel-iommu.h
> @@ -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)
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] x86/iommu: correct ICS register offset
[not found] ` <52381505.4010701-VXdhtT5mjnY@public.gmane.org>
@ 2013-09-24 11:05 ` Joerg Roedel
[not found] ` <20130924110551.GC4532-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Joerg Roedel @ 2013-09-24 11:05 UTC (permalink / raw)
To: ZhenHua
Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
David Woodhouse, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Ingo Molnar
On Tue, Sep 17, 2013 at 04:38:29PM +0800, ZhenHua wrote:
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] x86/iommu: correct ICS register offset
[not found] ` <20130924110551.GC4532-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
@ 2013-09-26 1:35 ` Li, Zhen-Hua
0 siblings, 0 replies; 4+ messages in thread
From: Li, Zhen-Hua @ 2013-09-26 1:35 UTC (permalink / raw)
To: Joerg Roedel
Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
David Woodhouse, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Ingo Molnar
Joerg,
Thank you for reviewing this patch.
ZhenHua
On 09/24/2013 07:05 PM, Joerg Roedel wrote:
> On Tue, Sep 17, 2013 at 04:38:29PM +0800, ZhenHua wrote:
>> 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
>
>
> .
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-09-26 1:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-13 6:27 [PATCH 1/1] x86/iommu: correct ICS register offset Li, Zhen-Hua
2013-09-17 8:38 ` ZhenHua
[not found] ` <52381505.4010701-VXdhtT5mjnY@public.gmane.org>
2013-09-24 11:05 ` Joerg Roedel
[not found] ` <20130924110551.GC4532-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2013-09-26 1:35 ` Li, Zhen-Hua
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).