iommu/vt-d: Use dev_err(..) in intel_svm_device_to_iommu(..)
authorSudeep Dutt <sudeep.dutt@intel.com>
Mon, 19 Oct 2015 03:54:37 +0000 (20:54 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 19 Oct 2015 14:03:00 +0000 (15:03 +0100)
This will give a little bit of assistance to those developing drivers
using SVM. It might cause a slight annoyance to end-users whose kernel
disables the IOMMU when drivers are trying to use it. But the fix there
is to fix the kernel to enable the IOMMU.

Signed-off-by: Sudeep Dutt <sudeep.dutt@intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/iommu/intel-iommu.c

index 68d71f81dfa0ab7e8392d490cfd913589039c3ff..7a1c15de418ac70eeb14640c3dfa64cf8842ea04 100644 (file)
@@ -5042,12 +5042,12 @@ struct intel_iommu *intel_svm_device_to_iommu(struct device *dev)
 
        iommu = device_to_iommu(dev, &bus, &devfn);
        if ((!iommu)) {
-               dev_dbg(dev, "No IOMMU for device; cannot enable SVM\n");
+               dev_err(dev, "No IOMMU for device; cannot enable SVM\n");
                return NULL;
        }
 
        if (!iommu->pasid_table) {
-               dev_dbg(dev, "PASID not enabled on IOMMU; cannot enable SVM\n");
+               dev_err(dev, "PASID not enabled on IOMMU; cannot enable SVM\n");
                return NULL;
        }
 
This page took 0.026491 seconds and 5 git commands to generate.