From 9d441e95f5b774bd4aa71eca8fdf235dbc344b94 Mon Sep 17 00:00:00 2001 From: Vijayanand Jitta Date: Fri, 18 Oct 2024 16:10:14 +0530 Subject: [PATCH 1/2] ARM: dts: msm: Add mem-buf device for kera The mem-buf device provides memory related services for shared memory between host and guest VMs. Change-Id: Ib29a426101ef274106b71ef613ca83f1577cf142 Signed-off-by: Vijayanand Jitta --- qcom/kera.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/qcom/kera.dtsi b/qcom/kera.dtsi index f6eeb5b9..bbb1e381 100644 --- a/qcom/kera.dtsi +++ b/qcom/kera.dtsi @@ -351,6 +351,16 @@ qcom,vmid-cp-camera-preview-ro; }; + qcom,mem-buf { + compatible = "qcom,mem-buf"; + qcom,mem-buf-capabilities = "supplier"; + qcom,vmid = <3>; + }; + + qcom,mem-buf-msgq { + compatible = "qcom,mem-buf-msgq"; + }; + apps_rsc: rsc@17a00000 { label = "apps_rsc"; compatible = "qcom,rpmh-rsc"; From 694b80d9da05168f80d14175665a8b5d67514aa7 Mon Sep 17 00:00:00 2001 From: Vijayanand Jitta Date: Fri, 18 Oct 2024 16:11:41 +0530 Subject: [PATCH 2/2] ARM: dts: msm: Add mem-offline device for kera Add the device-tree node for the mem-offline driver to enable memory offlining and convey the sizes of the offlineable memory. Describe the communication channel used to communicate with the firmware which supports onlining and offlining of memory. Change-Id: I6c7868545fe7601d3cc2c6d5ea95c980046c52b4 Signed-off-by: Vijayanand Jitta --- qcom/kera.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qcom/kera.dtsi b/qcom/kera.dtsi index bbb1e381..be77c747 100644 --- a/qcom/kera.dtsi +++ b/qcom/kera.dtsi @@ -39,6 +39,13 @@ ddr-regions { }; + mem-offline { + compatible = "qcom,mem-offline"; + offline-sizes = <0x2 0xc0000000 0x1 0x0>; + granule = <512>; + qcom,qmp = <&aoss_qmp>; + }; + firmware: firmware { qcom_scm: qcom_scm { }; };