forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/gpu/drm/msm/msm_iommu.c
....@@ -154,7 +154,12 @@
154154 /* Get the pagetable configuration from the domain */
155155 if (adreno_smmu->cookie)
156156 ttbr1_cfg = adreno_smmu->get_ttbr1_cfg(adreno_smmu->cookie);
157
- if (!ttbr1_cfg)
157
+
158
+ /*
159
+ * If you hit this WARN_ONCE() you are probably missing an entry in
160
+ * qcom_smmu_impl_of_match[] in arm-smmu-qcom.c
161
+ */
162
+ if (WARN_ONCE(!ttbr1_cfg, "No per-process page tables"))
158163 return ERR_PTR(-ENODEV);
159164
160165 pagetable = kzalloc(sizeof(*pagetable), GFP_KERNEL);