Skip to content

Commit 9826530

Browse files
committed
Merge branch 'core-iommu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
* 'core-iommu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86, ioapic: Consolidate the explicit EOI code x86, ioapic: Restore the mask bit correctly in eoi_ioapic_irq() x86, kdump, ioapic: Reset remote-IRR in clear_IO_APIC iommu: Rename the DMAR and INTR_REMAP config options x86, ioapic: Define irq_remap_modify_chip_defaults() x86, msi, intr-remap: Use the ioapic set affinity routine iommu: Cleanup ifdefs in detect_intel_iommu() iommu: No need to set dmar_disabled in check_zero_address() iommu: Move IOMMU specific code to intel-iommu.c intr_remap: Call dmar_dev_scope_init() explicitly x86, x2apic: Enable the bios request for x2apic optout
2 parents 37d96c2 + c020570 commit 9826530

27 files changed

Lines changed: 474 additions & 405 deletions

File tree

‎Documentation/kernel-parameters.txt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,10 +1020,11 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
10201020
has the capability. With this option, super page will
10211021
not be supported.
10221022
intremap= [X86-64, Intel-IOMMU]
1023-
Format: { on (default) | off | nosid }
10241023
on enable Interrupt Remapping (default)
10251024
off disable Interrupt Remapping
10261025
nosid disable Source ID checking
1026+
no_x2apic_optout
1027+
BIOS x2APIC opt-out request will be ignored
10271028

10281029
inttest= [IA-64]
10291030

‎arch/ia64/configs/generic_defconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,4 +234,4 @@ CONFIG_CRYPTO_MD5=y
234234
# CONFIG_CRYPTO_ANSI_CPRNG is not set
235235
CONFIG_CRC_T10DIF=y
236236
CONFIG_MISC_DEVICES=y
237-
CONFIG_DMAR=y
237+
CONFIG_INTEL_IOMMU=y

‎arch/ia64/dig/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77

88
obj-y := setup.o
9-
ifeq ($(CONFIG_DMAR), y)
9+
ifeq ($(CONFIG_INTEL_IOMMU), y)
1010
obj-$(CONFIG_IA64_GENERIC) += machvec.o machvec_vtd.o
1111
else
1212
obj-$(CONFIG_IA64_GENERIC) += machvec.o

‎arch/ia64/include/asm/device.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ struct dev_archdata {
1010
#ifdef CONFIG_ACPI
1111
void *acpi_handle;
1212
#endif
13-
#ifdef CONFIG_DMAR
13+
#ifdef CONFIG_INTEL_IOMMU
1414
void *iommu; /* hook for IOMMU specific extension */
1515
#endif
1616
};

‎arch/ia64/include/asm/iommu.h‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@
77

88
extern void pci_iommu_shutdown(void);
99
extern void no_iommu_init(void);
10+
#ifdef CONFIG_INTEL_IOMMU
1011
extern int force_iommu, no_iommu;
11-
extern int iommu_detected;
12-
#ifdef CONFIG_DMAR
1312
extern int iommu_pass_through;
13+
extern int iommu_detected;
1414
#else
1515
#define iommu_pass_through (0)
16+
#define no_iommu (1)
17+
#define iommu_detected (0)
1618
#endif
1719
extern void iommu_dma_init(void);
1820
extern void machvec_init(const char *name);

‎arch/ia64/include/asm/pci.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
139139
return channel ? isa_irq_to_vector(15) : isa_irq_to_vector(14);
140140
}
141141

142-
#ifdef CONFIG_DMAR
142+
#ifdef CONFIG_INTEL_IOMMU
143143
extern void pci_iommu_alloc(void);
144144
#endif
145145
#endif /* _ASM_IA64_PCI_H */

‎arch/ia64/kernel/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ obj-$(CONFIG_IA64_ESI) += esi.o
4343
ifneq ($(CONFIG_IA64_ESI),)
4444
obj-y += esi_stub.o # must be in kernel proper
4545
endif
46-
obj-$(CONFIG_DMAR) += pci-dma.o
46+
obj-$(CONFIG_INTEL_IOMMU) += pci-dma.o
4747
obj-$(CONFIG_SWIOTLB) += pci-swiotlb.o
4848

4949
obj-$(CONFIG_BINFMT_ELF) += elfcore.o

‎arch/ia64/kernel/acpi.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ acpi_get_sysname(void)
8888
struct acpi_table_rsdp *rsdp;
8989
struct acpi_table_xsdt *xsdt;
9090
struct acpi_table_header *hdr;
91-
#ifdef CONFIG_DMAR
91+
#ifdef CONFIG_INTEL_IOMMU
9292
u64 i, nentries;
9393
#endif
9494

@@ -125,7 +125,7 @@ acpi_get_sysname(void)
125125
return "xen";
126126
}
127127

128-
#ifdef CONFIG_DMAR
128+
#ifdef CONFIG_INTEL_IOMMU
129129
/* Look for Intel IOMMU */
130130
nentries = (hdr->length - sizeof(*hdr)) /
131131
sizeof(xsdt->table_offset_entry[0]);

‎arch/ia64/kernel/msi_ia64.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ void arch_teardown_msi_irq(unsigned int irq)
131131
return ia64_teardown_msi_irq(irq);
132132
}
133133

134-
#ifdef CONFIG_DMAR
134+
#ifdef CONFIG_INTEL_IOMMU
135135
#ifdef CONFIG_SMP
136136
static int dmar_msi_set_affinity(struct irq_data *data,
137137
const struct cpumask *mask, bool force)
@@ -210,5 +210,5 @@ int arch_setup_dmar_msi(unsigned int irq)
210210
"edge");
211211
return 0;
212212
}
213-
#endif /* CONFIG_DMAR */
213+
#endif /* CONFIG_INTEL_IOMMU */
214214

‎arch/ia64/kernel/pci-dma.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#include <asm/system.h>
1616

17-
#ifdef CONFIG_DMAR
17+
#ifdef CONFIG_INTEL_IOMMU
1818

1919
#include <linux/kernel.h>
2020

0 commit comments

Comments
 (0)