diff options
author | Sudeep Dutt <sudeep.dutt@intel.com> | 2015-10-18 20:54:37 -0700 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2015-10-19 15:03:00 +0100 |
commit | b9997e385eb2b9004d989e3710bd9001532410c0 (patch) | |
tree | 88e97b994ea2bb2f8227b5150d13063548d71aae | |
parent | 3c7c2f32884214e5b05da6426c6f737d3cd4efcb (diff) |
iommu/vt-d: Use dev_err(..) in intel_svm_device_to_iommu(..)
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>
-rw-r--r-- | drivers/iommu/intel-iommu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 68d71f81dfa0..7a1c15de418a 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c @@ -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; } |