x86 iommu: add more documentation
authorPavel Machek <pavel@ucw.cz>
Wed, 19 Mar 2008 14:58:11 +0000 (15:58 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:40:59 +0000 (17:40 +0200)
Fix coding style in pci-dma_64.c and add stubs for documentation. I
hope someone fills the rest, I understand maybe off and soft...

Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Documentation/kernel-parameters.txt
arch/x86/kernel/pci-dma_64.c

index dafd001bf83339829c6409bec6e6a1ff2a73f9c1..43c527d72f2f2e9e5682be07254227d9e590f90f 100644 (file)
@@ -812,6 +812,19 @@ and is between 256 and 4096 characters. It is defined in the file
 
        inttest=        [IA64]
 
+       iommu=          [x86]
+               off
+               force
+               noforce
+               biomerge
+               panic
+               nopanic
+               merge
+               nomerge
+               forcesac
+               soft
+
+
        intel_iommu=    [DMAR] Intel IOMMU driver (DMAR) option
                off
                        Disable intel iommu driver.
index 375cb2bc45be9a1f6bbf42c4666a739002d88c4e..ada5a0604992d7788a3fda58ec82e44a2c662804 100644 (file)
@@ -232,32 +232,32 @@ static __init int iommu_setup(char *p)
                return -EINVAL;
 
        while (*p) {
-               if (!strncmp(p,"off",3))
+               if (!strncmp(p, "off", 3))
                        no_iommu = 1;
                /* gart_parse_options has more force support */
-               if (!strncmp(p,"force",5))
+               if (!strncmp(p, "force", 5))
                        force_iommu = 1;
-               if (!strncmp(p,"noforce",7)) {
+               if (!strncmp(p, "noforce", 7)) {
                        iommu_merge = 0;
                        force_iommu = 0;
                }
 
-               if (!strncmp(p, "biomerge",8)) {
+               if (!strncmp(p, "biomerge", 8)) {
                        iommu_bio_merge = 4096;
                        iommu_merge = 1;
                        force_iommu = 1;
                }
-               if (!strncmp(p, "panic",5))
+               if (!strncmp(p, "panic", 5))
                        panic_on_overflow = 1;
-               if (!strncmp(p, "nopanic",7))
+               if (!strncmp(p, "nopanic", 7))
                        panic_on_overflow = 0;
-               if (!strncmp(p, "merge",5)) {
+               if (!strncmp(p, "merge", 5)) {
                        iommu_merge = 1;
                        force_iommu = 1;
                }
-               if (!strncmp(p, "nomerge",7))
+               if (!strncmp(p, "nomerge", 7))
                        iommu_merge = 0;
-               if (!strncmp(p, "forcesac",8))
+               if (!strncmp(p, "forcesac", 8))
                        iommu_sac_force = 1;
                if (!strncmp(p, "allowdac", 8))
                        forbid_dac = 0;
@@ -265,7 +265,7 @@ static __init int iommu_setup(char *p)
                        forbid_dac = -1;
 
 #ifdef CONFIG_SWIOTLB
-               if (!strncmp(p, "soft",4))
+               if (!strncmp(p, "soft", 4))
                        swiotlb = 1;
 #endif