You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -2323,6 +2331,19 @@ static int __iommu_device_set_domain(struct iommu_group *group,
2323
2331
"Firmware has requested this device have a 1:1 IOMMU mapping, rejecting configuring the device without a 1:1 mapping. Contact your platform vendor.\n");
2324
2332
return-EINVAL;
2325
2333
}
2334
+
/*
2335
+
* If the device requires IOMMU_RESV_TRANSLATED then we cannot allow
2336
+
* the identy or blocking domain to be attached as it does not contain
2337
+
* the required translated mapping.
2338
+
*/
2339
+
if (dev->iommu->require_translated&&
2340
+
(new_domain->type==IOMMU_DOMAIN_IDENTITY||
2341
+
new_domain->type==IOMMU_DOMAIN_BLOCKED||
2342
+
new_domain==group->blocking_domain)) {
2343
+
dev_warn(dev,
2344
+
"Firmware has requested this device have a translated IOMMU mapping, rejecting configuring the device without a translated mapping. Contact your platform vendor.\n");
0 commit comments