hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
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);