From a7ce6b1cb4637af22ea32693cbdfe895303031b7 Mon Sep 17 00:00:00 2001 From: Vijayanand Jitta Date: Mon, 14 Oct 2024 12:44:47 +0530 Subject: [PATCH] ARM: dts: msm: Enable virtio-mem device for oemvm on tuna Describe the properties of the memory region virtio-mem supports. Also reserve the IPA space for dmabuf buffers. Change-Id: I6baa1a7d00b26f1a885e9c85c57b7c30745dd5f6 Signed-off-by: Vijayanand Jitta --- qcom/tuna-oemvm.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/qcom/tuna-oemvm.dtsi b/qcom/tuna-oemvm.dtsi index 6b8f899a..e62fb3ab 100644 --- a/qcom/tuna-oemvm.dtsi +++ b/qcom/tuna-oemvm.dtsi @@ -217,6 +217,8 @@ qcom,mem-buf { compatible = "qcom,mem-buf"; qcom,mem-buf-capabilities = "consumer"; + qcom,ipa-range = <0x0 0x0 0xf 0xffffffff>; + qcom,dmabuf-ipa-size = <0x1 0x00000000>; /* 4GB IPA space for dmabuf */ qcom,vmid = <49>; }; @@ -225,6 +227,14 @@ qcom,msgq-names = "oem_vm"; }; + virtio_mem_device { + compatible = "qcom,virtio-mem"; + /* Must be memory_block_size_bytes() aligned */ + qcom,max-size = <0x0 0x10000000>; + qcom,ipa-range = <0x0 0x0 0xf 0xffffffff>; + qcom,block-size = <0x400000>; + }; + qcom_smcinvoke { compatible = "qcom,smcinvoke"; };