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>
This commit is contained in:
Sudeep Dutt 2015-10-18 20:54:37 -07:00 коммит произвёл David Woodhouse
Родитель 3c7c2f3288
Коммит b9997e385e
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;
}