From c811ad67a603dbb0409d4e9d7536b4006f38ec81 Mon Sep 17 00:00:00 2001 From: Patrick Daly Date: Wed, 1 May 2024 14:31:00 -0700 Subject: [PATCH] ARM: dts: msm: Add support for mem-buf-msgq between oemvm and pvm Allow mem-buf ipc messages between oemvm and pvm. Change-Id: Ib3209f72bbcb146f7f3ae9e4d75e474750e2dd97 Signed-off-by: Patrick Daly --- qcom/sun-oemvm.dtsi | 11 +++++++++++ qcom/sun-vm.dtsi | 1 + qcom/sun.dtsi | 9 +++++---- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/qcom/sun-oemvm.dtsi b/qcom/sun-oemvm.dtsi index f4efebdd..364cf637 100644 --- a/qcom/sun-oemvm.dtsi +++ b/qcom/sun-oemvm.dtsi @@ -182,6 +182,15 @@ qcom,label = <0x3>; }; + mem-buf-message-queue-pair { + vdevice-type = "message-queue-pair"; + generate = "/hypervisor/membuf-msgq-pair"; + message-size = <0x000000f0>; + queue-depth = <0x00000008>; + peer-default; + qcom,label = <0x000000C>; + }; + qrtr-shm { vdevice-type = "shm-doorbell"; generate = "/hypervisor/qrtr-shm"; @@ -237,11 +246,13 @@ qcom,mem-buf { compatible = "qcom,mem-buf"; + qcom,mem-buf-capabilities = "consumer"; qcom,vmid = <49>; }; qcom,mem-buf-msgq { compatible = "qcom,mem-buf-msgq"; + qcom,msgq-names = "oem_vm"; }; qcom,test-dbl-oemvm { diff --git a/qcom/sun-vm.dtsi b/qcom/sun-vm.dtsi index 2da5090e..4518418d 100644 --- a/qcom/sun-vm.dtsi +++ b/qcom/sun-vm.dtsi @@ -692,6 +692,7 @@ qcom,mem-buf-msgq { compatible = "qcom,mem-buf-msgq"; + qcom,msgq-names = "trusted_vm"; }; virtio_mem_device { diff --git a/qcom/sun.dtsi b/qcom/sun.dtsi index 6e2bc13c..068912c1 100644 --- a/qcom/sun.dtsi +++ b/qcom/sun.dtsi @@ -904,15 +904,16 @@ qcom,vmid = <3>; }; + qcom,mem-buf-msgq { + compatible = "qcom,mem-buf-msgq"; + qcom,msgq-names = "trusted_vm", "oem_vm"; + }; + qcom,hdcp { compatible = "qcom,hdcp"; qcom,use-smcinvoke = <1>; }; - qcom,mem-buf-msgq { - compatible = "qcom,mem-buf-msgq"; - }; - qti,smmu-proxy { compatible = "smmu-proxy-sender"; };