Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88780
b: refs/heads/master
c: b552da8
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Machek authored and Ingo Molnar committed Apr 17, 2008
1 parent 84c0bad commit d356407
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 037cab07e9515149fecc2274775807f06ea6b036
refs/heads/master: b552da8740222c35bcd83c9be7b27185bfb6d53c
13 changes: 13 additions & 0 deletions trunk/Documentation/kernel-parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
20 changes: 10 additions & 10 deletions trunk/arch/x86/kernel/pci-dma_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,40 +232,40 @@ 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;
if (!strncmp(p, "nodac", 5))
forbid_dac = -1;

#ifdef CONFIG_SWIOTLB
if (!strncmp(p, "soft",4))
if (!strncmp(p, "soft", 4))
swiotlb = 1;
#endif

Expand Down

0 comments on commit d356407

Please sign in to comment.