Skip to contentSkip to conversation

AMD IOMMU WARN NONRT

PATCH New DIXLOR 1 participant 1 message Feb 27, 2016 IOMMU

lore
Share & tools
lore

DIXLOR

author
#0 lore raw

PATCH 1/1 AMD IOMMU WARN NONRT

drivers/iommu/amd_iommu.c 2016-02-27 14:36:34.928583707 +0300 renamed from drivers/iommu/amd_iommu.c 2016-02-17 23:31:25.000000000 +0300 +6 -6
diff -ur a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
@@ -1952,10 +1952,10 @@
     int ret;
 
     /*
-     * Must be called with IRQs disabled. Warn here to detect early
-     * when its not.
+     * Must be called with IRQs disabled on a non RT kernel. Warn here to
+     * detect early when its not.
      */
-    WARN_ON(!irqs_disabled());
+    WARN_ON_NONRT(!irqs_disabled());
 
     /* lock domain */
     spin_lock(&domain->lock);
@@ -2118,10 +2118,10 @@
     struct protection_domain *domain;
 
     /*
-     * Must be called with IRQs disabled. Warn here to detect early
-     * when its not.
+     * Must be called with IRQs disabled on a non RT kernel. Warn here to
+     * detect early when its not.
      */
-    WARN_ON(!irqs_disabled());
+    WARN_ON_NONRT(!irqs_disabled());
 
     if (WARN_ON(!dev_data->domain))
         return;