Commit bfb4f2af authored by Hanjun Guo's avatar Hanjun Guo Committed by Cheng Jian
Browse files

iommu: smmuv2: Using the SMMU_BYPASS_DEV to bypass SMMU for some SoCs

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I41AUQ


CVE: NA

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

Extended SMMU_BYPASS_DEV to support SMMU default bypass for some CPU SoCs
which the SMMU is not functional well in address translation mode.

The mainline kernel already has the .def_domain_type hook for iommu_ops,
so if we update the kernel in the future, we can add the CPU SoC SMMU bypass
code in the .def_domain_type hook, for now we just reuse the SMMU_BYPASS_DEV
framwork.

After we add the hook, we set all the devices for such SoCs in pass
through mode, no matter adding iommu.passthrough=off/on or not in the
boot cmdline.

Signed-off-by: default avatarHanjun Guo <guohanjun@huawei.com>
Cc: Guo Hui <guohui@uniontech.com>
Cc: Cheng Jian <cj.chengjian@huawei.com>
Cc: Zhen Lei <thunder.leizhen@huawei.com>
Cc: Xiuqi Xie <xiexiuqi@huawei.com>
Reviewed-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
parent d7d55cac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment