* [PATCH 1/1] iommu/vt-d: Add new macros for invalidation event
@ 2014-08-15 1:55 ` Li, Zhen-Hua
0 siblings, 0 replies; 4+ messages in thread
From: Li, Zhen-Hua @ 2014-08-15 1:55 UTC (permalink / raw)
To: David Woodhouse, Joerg Roedel,
iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
Cc: Li, Zhen-Hua
According to intel's spec
Intel® Virtualization Technology for Directed I/O,
Revision: 1.3 , February 2011,
Chaper 10.4.25 to 10.4.28
There are four registers
IECTL_REG 0xa0 Invalidation event control register
IEDATA_REG 0xa4 Invalidation event data register
IEADDR_REG 0xa8 Invalidation event address register
IEUADDR_REG 0xac Invalidation event upper address register
Through they are not used in kernel in the latest version, the defination
should be added to kernel as well as other registers.
Signed-off-by: Li, Zhen-Hua <zhen-hual@hp.com>
---
include/linux/intel-iommu.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h
index a65208a..15fafd5 100644
--- a/include/linux/intel-iommu.h
+++ b/include/linux/intel-iommu.h
@@ -56,6 +56,10 @@
#define DMAR_IQ_SHIFT 4 /* Invalidation queue head/tail shift */
#define DMAR_IQA_REG 0x90 /* Invalidation queue addr register */
#define DMAR_ICS_REG 0x9c /* Invalidation complete status register */
+#define DMAR_IECTL_REG 0xa0 /* Invalidation event control register */
+#define DMAR_IEDATA_REG 0xa4 /* Invalidation event data register */
+#define DMAR_IEADDR_REG 0xa8 /* Invalidation event address register */
+#define DMAR_IEUADDR_REG 0xac /* Invalidation event upper address register */
#define DMAR_IRTA_REG 0xb8 /* Interrupt remapping table addr register */
#define OFFSET_STRIDE (9)
--
2.0.0-rc0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH 1/1] iommu/vt-d: Add new macros for invalidation event
@ 2014-08-15 1:55 ` Li, Zhen-Hua
0 siblings, 0 replies; 4+ messages in thread
From: Li, Zhen-Hua @ 2014-08-15 1:55 UTC (permalink / raw)
To: David Woodhouse, Joerg Roedel, iommu, linux-kernel; +Cc: Li, Zhen-Hua
According to intel's spec
Intel® Virtualization Technology for Directed I/O,
Revision: 1.3 , February 2011,
Chaper 10.4.25 to 10.4.28
There are four registers
IECTL_REG 0xa0 Invalidation event control register
IEDATA_REG 0xa4 Invalidation event data register
IEADDR_REG 0xa8 Invalidation event address register
IEUADDR_REG 0xac Invalidation event upper address register
Through they are not used in kernel in the latest version, the defination
should be added to kernel as well as other registers.
Signed-off-by: Li, Zhen-Hua <zhen-hual@hp.com>
---
include/linux/intel-iommu.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h
index a65208a..15fafd5 100644
--- a/include/linux/intel-iommu.h
+++ b/include/linux/intel-iommu.h
@@ -56,6 +56,10 @@
#define DMAR_IQ_SHIFT 4 /* Invalidation queue head/tail shift */
#define DMAR_IQA_REG 0x90 /* Invalidation queue addr register */
#define DMAR_ICS_REG 0x9c /* Invalidation complete status register */
+#define DMAR_IECTL_REG 0xa0 /* Invalidation event control register */
+#define DMAR_IEDATA_REG 0xa4 /* Invalidation event data register */
+#define DMAR_IEADDR_REG 0xa8 /* Invalidation event address register */
+#define DMAR_IEUADDR_REG 0xac /* Invalidation event upper address register */
#define DMAR_IRTA_REG 0xb8 /* Interrupt remapping table addr register */
#define OFFSET_STRIDE (9)
--
2.0.0-rc0
^ permalink raw reply related [flat|nested] 4+ messages in thread[parent not found: <1408067751-30754-1-git-send-email-zhen-hual-VXdhtT5mjnY@public.gmane.org>]
* Re: [PATCH 1/1] iommu/vt-d: Add new macros for invalidation event
2014-08-15 1:55 ` Li, Zhen-Hua
@ 2014-08-19 11:11 ` Joerg Roedel
-1 siblings, 0 replies; 4+ messages in thread
From: Joerg Roedel @ 2014-08-19 11:11 UTC (permalink / raw)
To: Li, Zhen-Hua
Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
David Woodhouse, linux-kernel-u79uwXL29TY76Z2rM5mHXA
On Fri, Aug 15, 2014 at 09:55:51AM +0800, Li, Zhen-Hua wrote:
> According to intel's spec
> Intel® Virtualization Technology for Directed I/O,
> Revision: 1.3 , February 2011,
> Chaper 10.4.25 to 10.4.28
>
> There are four registers
>
> IECTL_REG 0xa0 Invalidation event control register
> IEDATA_REG 0xa4 Invalidation event data register
> IEADDR_REG 0xa8 Invalidation event address register
> IEUADDR_REG 0xac Invalidation event upper address register
>
> Through they are not used in kernel in the latest version, the defination
> should be added to kernel as well as other registers.
>
> Signed-off-by: Li, Zhen-Hua <zhen-hual-VXdhtT5mjnY@public.gmane.org>
> ---
> include/linux/intel-iommu.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h
> index a65208a..15fafd5 100644
> --- a/include/linux/intel-iommu.h
> +++ b/include/linux/intel-iommu.h
> @@ -56,6 +56,10 @@
> #define DMAR_IQ_SHIFT 4 /* Invalidation queue head/tail shift */
> #define DMAR_IQA_REG 0x90 /* Invalidation queue addr register */
> #define DMAR_ICS_REG 0x9c /* Invalidation complete status register */
> +#define DMAR_IECTL_REG 0xa0 /* Invalidation event control register */
> +#define DMAR_IEDATA_REG 0xa4 /* Invalidation event data register */
> +#define DMAR_IEADDR_REG 0xa8 /* Invalidation event address register */
> +#define DMAR_IEUADDR_REG 0xac /* Invalidation event upper address register */
> #define DMAR_IRTA_REG 0xb8 /* Interrupt remapping table addr register */
>
> #define OFFSET_STRIDE (9)
There is no point in adding register defines that are not used anywhere.
Joerg
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] iommu/vt-d: Add new macros for invalidation event
@ 2014-08-19 11:11 ` Joerg Roedel
0 siblings, 0 replies; 4+ messages in thread
From: Joerg Roedel @ 2014-08-19 11:11 UTC (permalink / raw)
To: Li, Zhen-Hua; +Cc: David Woodhouse, iommu, linux-kernel
On Fri, Aug 15, 2014 at 09:55:51AM +0800, Li, Zhen-Hua wrote:
> According to intel's spec
> Intel® Virtualization Technology for Directed I/O,
> Revision: 1.3 , February 2011,
> Chaper 10.4.25 to 10.4.28
>
> There are four registers
>
> IECTL_REG 0xa0 Invalidation event control register
> IEDATA_REG 0xa4 Invalidation event data register
> IEADDR_REG 0xa8 Invalidation event address register
> IEUADDR_REG 0xac Invalidation event upper address register
>
> Through they are not used in kernel in the latest version, the defination
> should be added to kernel as well as other registers.
>
> Signed-off-by: Li, Zhen-Hua <zhen-hual@hp.com>
> ---
> include/linux/intel-iommu.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h
> index a65208a..15fafd5 100644
> --- a/include/linux/intel-iommu.h
> +++ b/include/linux/intel-iommu.h
> @@ -56,6 +56,10 @@
> #define DMAR_IQ_SHIFT 4 /* Invalidation queue head/tail shift */
> #define DMAR_IQA_REG 0x90 /* Invalidation queue addr register */
> #define DMAR_ICS_REG 0x9c /* Invalidation complete status register */
> +#define DMAR_IECTL_REG 0xa0 /* Invalidation event control register */
> +#define DMAR_IEDATA_REG 0xa4 /* Invalidation event data register */
> +#define DMAR_IEADDR_REG 0xa8 /* Invalidation event address register */
> +#define DMAR_IEUADDR_REG 0xac /* Invalidation event upper address register */
> #define DMAR_IRTA_REG 0xb8 /* Interrupt remapping table addr register */
>
> #define OFFSET_STRIDE (9)
There is no point in adding register defines that are not used anywhere.
Joerg
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-08-19 11:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-15 1:55 [PATCH 1/1] iommu/vt-d: Add new macros for invalidation event Li, Zhen-Hua
2014-08-15 1:55 ` Li, Zhen-Hua
[not found] ` <1408067751-30754-1-git-send-email-zhen-hual-VXdhtT5mjnY@public.gmane.org>
2014-08-19 11:11 ` Joerg Roedel
2014-08-19 11:11 ` Joerg Roedel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.