Commit 9bf7bc9a authored by Zhangfei Gao's avatar Zhangfei Gao Committed by Kunkun Jiang
Browse files

arm-smmu-v3: remove limitation of S2FWB or CANWBS

virt inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/IB4WDJ
CVE: NA

--------------------------------

Remove the limitation of S2FWB or CANWBS temperatily.
S2FWB will be supported in the new chip.
CANWBS can be supported via device FW.

https://patches.linaro.org/project/linux-acpi/patch/3-v3-e2e16cd7467f+2a6a1-smmuv3_nesting_jgg@nvidia.com/



Signed-off-by: default avatarZhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: default avatarKunkun Jiang <jiangkunkun@huawei.com>
parent 6b456264
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -390,9 +390,11 @@ struct iommufd_viommu *arm_vsmmu_alloc(struct device *dev,
	 * things non-coherent using the memattr, but No-Snoop behavior is not
	 * effected.
	 */
	/*
	if (!arm_smmu_master_canwbs(master) &&
	    !(smmu->features & ARM_SMMU_FEAT_S2FWB))
		return ERR_PTR(-EOPNOTSUPP);
	*/

	vsmmu = iommufd_viommu_alloc(ictx, struct arm_vsmmu, core,
				     &arm_vsmmu_ops);