From 3c86c8cc2a78f5462cc98503c361af17d16358db Mon Sep 17 00:00:00 2001 From: Vijayanand Jitta Date: Mon, 14 Oct 2024 12:41:23 +0530 Subject: [PATCH] ARM: dts: msm: Enable virtio-mem device for tuna-vm Describe the properties of the memory region virtio-mem supports. Also reserve the IPA space for dmabuf buffers. Change-Id: Iad6b41033884828a734aa8562dc3e4d45997968b Signed-off-by: Vijayanand Jitta --- qcom/tuna-vm.dtsi | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/qcom/tuna-vm.dtsi b/qcom/tuna-vm.dtsi index a57acd86..2cde4080 100644 --- a/qcom/tuna-vm.dtsi +++ b/qcom/tuna-vm.dtsi @@ -343,13 +343,25 @@ 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 = <45>; }; - qcom,mem-buf-msgq { + mem_buf_msgq: qcom,mem-buf-msgq { compatible = "qcom,mem-buf-msgq"; qcom,msgq-names = "trusted_vm"; }; + + virtio_mem_device { + compatible = "qcom,virtio-mem"; + depends-on-supply = <&mem_buf_msgq>; + /* Must be memory_block_size_bytes() aligned */ + qcom,max-size = <0x0 0x18000000>; + qcom,ipa-range = <0x0 0x0 0xf 0xffffffff>; + qcom,block-size = <0x400000>; + qcom,initial-movable-zone-size = <0x2000000>; + }; }; #include "msm-arm-smmu-tuna-vm.dtsi"