mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-11 20:46:44 +07:00
62fdd7678a
The patch contains Intel IOMMU IA64 specific code. It defines new machvec dig_vtd, hooks for IOMMU, DMAR table detection, cache line flush function, etc. For a generic kernel with CONFIG_DMAR=y, if Intel IOMMU is detected, dig_vtd is used for machinve vector. Otherwise, kernel falls back to dig machine vector. Kernel parameter "machvec=dig" or "intel_iommu=off" can be used to force kernel to boot dig machine vector. Signed-off-by: Fenghua Yu <fenghua.yu@intel.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
17 lines
413 B
C
17 lines
413 B
C
#ifndef _ASM_IA64_IOMMU_H
|
|
#define _ASM_IA64_IOMMU_H 1
|
|
|
|
#define cpu_has_x2apic 0
|
|
/* 10 seconds */
|
|
#define DMAR_OPERATION_TIMEOUT (((cycles_t) local_cpu_data->itc_freq)*10)
|
|
|
|
extern void pci_iommu_shutdown(void);
|
|
extern void no_iommu_init(void);
|
|
extern int force_iommu, no_iommu;
|
|
extern int iommu_detected;
|
|
extern void iommu_dma_init(void);
|
|
extern void machvec_init(const char *name);
|
|
extern int forbid_dac;
|
|
|
|
#endif
|