mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86/ia64/iommu: Bugfixes to IOMMU_INIT macros and its friends.
@ 2010-10-08 18:53 Konrad Rzeszutek Wilk
  2010-10-08 18:53 ` [PATCH 1/2] ia64/iommu: Add a dummy iommu_table.h file in IA64 Konrad Rzeszutek Wilk
  2010-10-08 18:53 ` [PATCH 2/2] x86/iommu: Update header comments with appropriate naming Konrad Rzeszutek Wilk
  0 siblings, 2 replies; 5+ messages in thread
From: Konrad Rzeszutek Wilk @ 2010-10-08 18:53 UTC (permalink / raw)
  To: hpa, linux-kernel, x86, Thomas Gleixner

These two patches fix two issues with the IOMMU "modularize" system
that was posted on LKML:
http://marc.info/?i=1282845485-8991-2-git-send-email-konrad.wilk@oracle.com

The first:
 ia64/iommu: Add a dummy iommu_table.h file in IA64.

is to fix a compile error on IA64, where the DMAR IOMMU is utilized. For right
I am just posting a compile fix. I do have a experimental branch where the
IA64 support also utilizes this mechanism, but it is not ready yet for prime-time.

The other:
 x86/iommu: Update header comments with appropriate naming.

just updates the header comments as they diverged a bit.

Please pull both of these patches in your x86/iommu branch.

They are also available at:
git://git.kernel.org/pub/scm/linux/kernel/git/konrad/swiotlb-2.6.git devel/iommu-0.3.ontip.bugfix

Thank you!

Konrad Rzeszutek Wilk (2):
      ia64/iommu: Add a dummy iommu_table.h file in IA64.
      x86/iommu: Update header comments with appropriate naming.


 arch/ia64/include/asm/iommu_table.h |    6 ++++++
 arch/x86/include/asm/iommu_table.h  |    7 +++----
 2 files changed, 9 insertions(+), 4 deletions(-)


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

* [PATCH 1/2] ia64/iommu: Add a dummy iommu_table.h file in IA64.
  2010-10-08 18:53 [PATCH] x86/ia64/iommu: Bugfixes to IOMMU_INIT macros and its friends Konrad Rzeszutek Wilk
@ 2010-10-08 18:53 ` Konrad Rzeszutek Wilk
  2010-10-08 20:13   ` [tip:x86/iommu] ia64, iommu: " tip-bot for Konrad Rzeszutek Wilk
  2010-10-08 18:53 ` [PATCH 2/2] x86/iommu: Update header comments with appropriate naming Konrad Rzeszutek Wilk
  1 sibling, 1 reply; 5+ messages in thread
From: Konrad Rzeszutek Wilk @ 2010-10-08 18:53 UTC (permalink / raw)
  To: hpa, linux-kernel, x86, Thomas Gleixner
  Cc: Konrad Rzeszutek Wilk, Konrad Rzeszutek Wilk

From: Konrad Rzeszutek Wilk <konrad@dumpdata.com>

We don't need a complex IOMMU dependency list on IA64 so
we just define the IOMMU_* macro which is used the DMAR driver, as a dummy.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reported-by: Tony Luck <tony.luck@intel.com>
Tested-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
---
 arch/ia64/include/asm/iommu_table.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
 create mode 100644 arch/ia64/include/asm/iommu_table.h

diff --git a/arch/ia64/include/asm/iommu_table.h b/arch/ia64/include/asm/iommu_table.h
new file mode 100644
index 0000000..92c8d36
--- /dev/null
+++ b/arch/ia64/include/asm/iommu_table.h
@@ -0,0 +1,6 @@
+#ifndef _ASM_IA64_IOMMU_TABLE_H
+#define _ASM_IA64_IOMMU_TABLE_H
+
+#define IOMMU_INIT_POST(_detect)
+
+#endif /* _ASM_IA64_IOMMU_TABLE_H */
-- 
1.7.0.4


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

* [PATCH 2/2] x86/iommu: Update header comments with appropriate naming.
  2010-10-08 18:53 [PATCH] x86/ia64/iommu: Bugfixes to IOMMU_INIT macros and its friends Konrad Rzeszutek Wilk
  2010-10-08 18:53 ` [PATCH 1/2] ia64/iommu: Add a dummy iommu_table.h file in IA64 Konrad Rzeszutek Wilk
@ 2010-10-08 18:53 ` Konrad Rzeszutek Wilk
  2010-10-08 20:13   ` [tip:x86/iommu] x86, iommu: " tip-bot for Konrad Rzeszutek Wilk
  1 sibling, 1 reply; 5+ messages in thread
From: Konrad Rzeszutek Wilk @ 2010-10-08 18:53 UTC (permalink / raw)
  To: hpa, linux-kernel, x86, Thomas Gleixner; +Cc: Konrad Rzeszutek Wilk

The header comments diverged a bit from the implementation. Lets
re-sync them.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
---
 arch/x86/include/asm/iommu_table.h |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/arch/x86/include/asm/iommu_table.h b/arch/x86/include/asm/iommu_table.h
index df55a78..f229b13 100644
--- a/arch/x86/include/asm/iommu_table.h
+++ b/arch/x86/include/asm/iommu_table.h
@@ -1,4 +1,3 @@
-
 #ifndef _ASM_X86_IOMMU_TABLE_H
 #define _ASM_X86_IOMMU_TABLE_H
 
@@ -60,7 +59,7 @@ struct iommu_table_entry {
  * and it will be run after the SWIOTLB and the other IOMMUs
  * that utilize this macro. If the IOMMU is detected (ie, the
  * detect routine returns a positive value), the other IOMMUs
- * are also checked. You can use IOMMU_INIT_FINISH if you prefer
+ * are also checked. You can use IOMMU_INIT_POST_FINISH if you prefer
  * to stop detecting the other IOMMUs after yours has been detected.
  */
 #define IOMMU_INIT_POST(_detect)					\
@@ -80,9 +79,9 @@ struct iommu_table_entry {
  *  d). Similar to the 'init', except that this gets called from pci_iommu_init
  *      where we do have a memory allocator.
  *
- * The _CONT vs the _EXIT differs in that the _CONT variant will
+ * The standard vs the _FINISH differs in that the _FINISH variant will
  * continue detecting other IOMMUs in the call list after the
- * the detection routine returns a positive number. The _EXIT will
+ * the detection routine returns a positive number. The _FINISH will
  * stop the execution chain. Both will still call the 'init' and
  * 'late_init' functions if they are set.
  */
-- 
1.7.0.4


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

* [tip:x86/iommu] ia64, iommu: Add a dummy iommu_table.h file in IA64.
  2010-10-08 18:53 ` [PATCH 1/2] ia64/iommu: Add a dummy iommu_table.h file in IA64 Konrad Rzeszutek Wilk
@ 2010-10-08 20:13   ` tip-bot for Konrad Rzeszutek Wilk
  0 siblings, 0 replies; 5+ messages in thread
From: tip-bot for Konrad Rzeszutek Wilk @ 2010-10-08 20:13 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, hpa, mingo, konrad.wilk, konrad, tony.luck, tglx, hpa

Commit-ID:  fc6a2f37d084173de57fe75f73cbe4bb296b9e8a
Gitweb:     http://git.kernel.org/tip/fc6a2f37d084173de57fe75f73cbe4bb296b9e8a
Author:     Konrad Rzeszutek Wilk <konrad@dumpdata.com>
AuthorDate: Fri, 8 Oct 2010 14:53:47 -0400
Committer:  H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Fri, 8 Oct 2010 13:11:11 -0700

ia64, iommu: Add a dummy iommu_table.h file in IA64.

We don't need a complex IOMMU dependency list on IA64 so
we just define the IOMMU_* macro which is used the DMAR driver, as a dummy.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
LKML-Reference: <1286564028-2352-2-git-send-email-konrad.wilk@oracle.com>
Reported-by: Tony Luck <tony.luck@intel.com>
Tested-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
---
 arch/ia64/include/asm/iommu_table.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/arch/ia64/include/asm/iommu_table.h b/arch/ia64/include/asm/iommu_table.h
new file mode 100644
index 0000000..92c8d36
--- /dev/null
+++ b/arch/ia64/include/asm/iommu_table.h
@@ -0,0 +1,6 @@
+#ifndef _ASM_IA64_IOMMU_TABLE_H
+#define _ASM_IA64_IOMMU_TABLE_H
+
+#define IOMMU_INIT_POST(_detect)
+
+#endif /* _ASM_IA64_IOMMU_TABLE_H */

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

* [tip:x86/iommu] x86, iommu: Update header comments with appropriate naming
  2010-10-08 18:53 ` [PATCH 2/2] x86/iommu: Update header comments with appropriate naming Konrad Rzeszutek Wilk
@ 2010-10-08 20:13   ` tip-bot for Konrad Rzeszutek Wilk
  0 siblings, 0 replies; 5+ messages in thread
From: tip-bot for Konrad Rzeszutek Wilk @ 2010-10-08 20:13 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, konrad.wilk, tglx, hpa

Commit-ID:  6e9636693373d938aa3b13427be3d212f172ac06
Gitweb:     http://git.kernel.org/tip/6e9636693373d938aa3b13427be3d212f172ac06
Author:     Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
AuthorDate: Fri, 8 Oct 2010 14:53:48 -0400
Committer:  H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Fri, 8 Oct 2010 13:11:21 -0700

x86, iommu: Update header comments with appropriate naming

The header comments diverged a bit from the implementation. Lets
re-sync them.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
LKML-Reference: <1286564028-2352-3-git-send-email-konrad.wilk@oracle.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
---
 arch/x86/include/asm/iommu_table.h |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/arch/x86/include/asm/iommu_table.h b/arch/x86/include/asm/iommu_table.h
index df55a78..f229b13 100644
--- a/arch/x86/include/asm/iommu_table.h
+++ b/arch/x86/include/asm/iommu_table.h
@@ -1,4 +1,3 @@
-
 #ifndef _ASM_X86_IOMMU_TABLE_H
 #define _ASM_X86_IOMMU_TABLE_H
 
@@ -60,7 +59,7 @@ struct iommu_table_entry {
  * and it will be run after the SWIOTLB and the other IOMMUs
  * that utilize this macro. If the IOMMU is detected (ie, the
  * detect routine returns a positive value), the other IOMMUs
- * are also checked. You can use IOMMU_INIT_FINISH if you prefer
+ * are also checked. You can use IOMMU_INIT_POST_FINISH if you prefer
  * to stop detecting the other IOMMUs after yours has been detected.
  */
 #define IOMMU_INIT_POST(_detect)					\
@@ -80,9 +79,9 @@ struct iommu_table_entry {
  *  d). Similar to the 'init', except that this gets called from pci_iommu_init
  *      where we do have a memory allocator.
  *
- * The _CONT vs the _EXIT differs in that the _CONT variant will
+ * The standard vs the _FINISH differs in that the _FINISH variant will
  * continue detecting other IOMMUs in the call list after the
- * the detection routine returns a positive number. The _EXIT will
+ * the detection routine returns a positive number. The _FINISH will
  * stop the execution chain. Both will still call the 'init' and
  * 'late_init' functions if they are set.
  */

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

end of thread, other threads:[~2010-10-08 20:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-08 18:53 [PATCH] x86/ia64/iommu: Bugfixes to IOMMU_INIT macros and its friends Konrad Rzeszutek Wilk
2010-10-08 18:53 ` [PATCH 1/2] ia64/iommu: Add a dummy iommu_table.h file in IA64 Konrad Rzeszutek Wilk
2010-10-08 20:13   ` [tip:x86/iommu] ia64, iommu: " tip-bot for Konrad Rzeszutek Wilk
2010-10-08 18:53 ` [PATCH 2/2] x86/iommu: Update header comments with appropriate naming Konrad Rzeszutek Wilk
2010-10-08 20:13   ` [tip:x86/iommu] x86, iommu: " tip-bot for Konrad Rzeszutek Wilk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome