Эх сурвалжийг харах

Merge "msm_vidc: Disable CP memory protection" into video-kernel-waipio.lnx.1.0

Linux Build Service Account 4 жил өмнө
parent
commit
b953be5b2b

+ 3 - 0
driver/vidc/src/venus_hfi.c

@@ -2353,11 +2353,14 @@ static int __load_fw(struct msm_vidc_core *core)
 		}
 		}
 	}
 	}
 
 
+	// TODO: Prabhakar - revisit once hyp support is available.
+#ifdef WAIPIO_PRESIL_CP_ENABLE
 	rc = __protect_cp_mem(core);
 	rc = __protect_cp_mem(core);
 	if (rc) {
 	if (rc) {
 		d_vpr_e("%s: protect memory failed\n", __func__);
 		d_vpr_e("%s: protect memory failed\n", __func__);
 		goto fail_protect_mem;
 		goto fail_protect_mem;
 	}
 	}
+#endif
 	/*
 	/*
 	* Hand off control of regulators to h/w _after_ loading fw.
 	* Hand off control of regulators to h/w _after_ loading fw.
 	* Note that the GDSC will turn off when switching from normal
 	* Note that the GDSC will turn off when switching from normal