lkml.org 
[lkml]   [2012]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 16/28] iommu/amd: Block all interrupts by default with irq-remapping enabled
Date
When IRQ remapping is enabled all interrupts must be blocked
by default to be secure. Single interrupts are enabled on
demand later.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
---
drivers/iommu/amd_iommu_init.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c
index ed4e690..e663f1d 100644
--- a/drivers/iommu/amd_iommu_init.c
+++ b/drivers/iommu/amd_iommu_init.c
@@ -1390,6 +1390,9 @@ static void init_device_table(void)
for (devid = 0; devid <= amd_iommu_last_bdf; ++devid) {
set_dev_entry_bit(devid, DEV_ENTRY_VALID);
set_dev_entry_bit(devid, DEV_ENTRY_TRANSLATION);
+
+ if (amd_iommu_irq_remap)
+ set_dev_entry_bit(devid, DEV_ENTRY_IRQ_TBL_EN);
}
}

--
1.7.9.5



\
 
 \ /
  Last update: 2012-07-05 15:41    [W:0.152 / U:11.792 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site