Skip to content

Commit

Permalink
x86, intr-remap: add option to disable interrupt remapping
Browse files Browse the repository at this point in the history
Add option "nointremap" to disable interrupt remapping.

[ Impact: add new boot option ]

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Weidong Han <weidong.han@intel.com>
Acked-by: David Woodhouse <David.Woodhouse@intel.com>
Cc: iommu@lists.linux-foundation.org
Cc: allen.m.kay@intel.com
Cc: fenghua.yu@intel.com
LKML-Reference: <1239957736-6161-5-git-send-email-weidong.han@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Weidong Han authored and Ingo Molnar committed Apr 19, 2009
1 parent 9375823 commit 03ea815
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Documentation/kernel-parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1533,6 +1533,9 @@ and is between 256 and 4096 characters. It is defined in the file
noinitrd [RAM] Tells the kernel not to load any configured
initial RAM disk.

nointremap [X86-64, Intel-IOMMU] Do not enable interrupt
remapping.

nointroute [IA-64]

nojitter [IA64] Disables jitter checking for ITC timers.
Expand Down
11 changes: 11 additions & 0 deletions drivers/pci/intr_remapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ static struct ioapic_scope ir_ioapic[MAX_IO_APICS];
static int ir_ioapic_num;
int intr_remapping_enabled;

static int disable_intremap;
static __init int setup_nointremap(char *str)
{
disable_intremap = 1;
return 0;
}
early_param("nointremap", setup_nointremap);

struct irq_2_iommu {
struct intel_iommu *iommu;
u16 irte_index;
Expand Down Expand Up @@ -506,6 +514,9 @@ int __init intr_remapping_supported(void)
{
struct dmar_drhd_unit *drhd;

if (disable_intremap)
return 0;

for_each_drhd_unit(drhd) {
struct intel_iommu *iommu = drhd->iommu;

Expand Down

0 comments on commit 03ea815

Please sign in to comment.