提交 b9997e38 编写于 作者: S Sudeep Dutt 提交者: David Woodhouse

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: NSudeep Dutt <sudeep.dutt@intel.com>
Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
上级 3c7c2f32
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册