]> Git Repo - linux.git/blobdiff - drivers/iommu/intel/irq_remapping.c
xfs: set aside allocation btree blocks from block reservation
[linux.git] / drivers / iommu / intel / irq_remapping.c
index 685200a5cff0f30578d847e3915aa5179fb66e7d..611ef5243cb63b9872c29108a77eade4957ef93e 100644 (file)
@@ -22,6 +22,7 @@
 #include <asm/pci-direct.h>
 
 #include "../irq_remapping.h"
+#include "cap_audit.h"
 
 enum irq_mode {
        IRQ_REMAPPING,
@@ -734,6 +735,9 @@ static int __init intel_prepare_irq_remapping(void)
        if (dmar_table_init() < 0)
                return -ENODEV;
 
+       if (intel_cap_audit(CAP_AUDIT_STATIC_IRQR, NULL))
+               goto error;
+
        if (!dmar_ir_support())
                return -ENODEV;
 
@@ -1439,6 +1443,10 @@ static int dmar_ir_add(struct dmar_drhd_unit *dmaru, struct intel_iommu *iommu)
        int ret;
        int eim = x2apic_enabled();
 
+       ret = intel_cap_audit(CAP_AUDIT_HOTPLUG_IRQR, iommu);
+       if (ret)
+               return ret;
+
        if (eim && !ecap_eim_support(iommu->ecap)) {
                pr_info("DRHD %Lx: EIM not supported by DRHD, ecap %Lx\n",
                        iommu->reg_phys, iommu->ecap);
This page took 0.035618 seconds and 4 git commands to generate.