From 5e5908e4ec258cc4ab155e8f3837c2ceae36cdc7 Mon Sep 17 00:00:00 2001 From: Faiyaz Mohammed Date: Wed, 7 Oct 2020 10:04:35 +0530 Subject: [PATCH] ARM: dts: msm: Enable qcom,vmid-cp-camera-preview-ro on Shima The secure camera preview pipeline on Shima has buffers that are shared by the display and secure camera hardware. On older architecture, the buffers were not shareable, as the display hardware needed write-access to the buffer, which could compromise the integrity of the data populated by the secure camera hardware. The display hardware on Shima has been upgraded, such that it no longer needs write-access to the buffer, which allows the buffer to be shared between both peripherals. Thus, ensure that the mappings for the display hardware on Shima are read-only, so that the integrity of the contents of the buffer cannot be compromised. Change-Id: I8c254262b53051f4f2bb9cb477ad70bba2d8ed20 --- qcom/shima.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/shima.dtsi b/qcom/shima.dtsi index 4ff893da146a..ad3ab7adbb47 100644 --- a/qcom/shima.dtsi +++ b/qcom/shima.dtsi @@ -779,6 +779,7 @@ qcom-secure-buffer { compatible = "qcom,secure-buffer"; + qcom,vmid-cp-camera-preview-ro; }; qcom-mem-buf {