From 4ad12bb94f33dfe74a07c98ddc21040473f1b7b9 Mon Sep 17 00:00:00 2001 From: Po-Jung Lai Date: Tue, 17 Oct 2023 15:28:09 -0700 Subject: [PATCH] ARM: dts: msm: gunyah: Add msgq test node for sun Add message-queue test node to sun.dtsi, sun-vm.dtsi and sun-oemvm.dtsi to validate hypervisor message-queue functionality. Change-Id: Id43f707d715ef8937d7497c95f2bce89e73202ac Signed-off-by: Po-Jung Lai --- qcom/sun-oemvm.dtsi | 15 +++++++++++++++ qcom/sun-vm.dtsi | 15 +++++++++++++++ qcom/sun.dtsi | 12 ++++++++++++ 3 files changed, 42 insertions(+) diff --git a/qcom/sun-oemvm.dtsi b/qcom/sun-oemvm.dtsi index ac30bb4f..2c417283 100644 --- a/qcom/sun-oemvm.dtsi +++ b/qcom/sun-oemvm.dtsi @@ -148,6 +148,15 @@ qcom,label = <0x5>; peer-default; }; + + test-msgq-oemvm { + vdevice-type = "message-queue-pair"; + generate = "/hypervisor/test-msgq-oemvm-pair"; + message-size = <0xf0>; + queue-depth = <0x8>; + qcom,label = <0x5>; + peer-default; + }; }; }; @@ -195,4 +204,10 @@ compatible = "qcom,gh-dbl"; qcom,label = <0x5>; }; + + qcom,test-msgq-oemvm { + compatible = "qcom,gh-msgq-test"; + gunyah-label = <0x5>; + affinity = <0>; + }; }; diff --git a/qcom/sun-vm.dtsi b/qcom/sun-vm.dtsi index 290b8f84..3099d137 100644 --- a/qcom/sun-vm.dtsi +++ b/qcom/sun-vm.dtsi @@ -187,6 +187,15 @@ peer-default; }; + test-msgq-tuivm { + vdevice-type = "message-queue-pair"; + generate = "/hypervisor/test-msgq-tuivm-pair"; + message-size = <0xf0>; + queue-depth = <0x8>; + qcom,label = <0x4>; + peer-default; + }; + ddump-shm { vdevice-type = "shm-doorbell"; generate = "/hypervisor/ddump-shm"; @@ -343,6 +352,12 @@ qcom,label = <0x4>; }; + qcom,test-msgq-tuivm { + compatible = "qcom,gh-msgq-test"; + gunyah-label = <0x4>; + affinity = <0>; + }; + qcom,gunyah-panic-notifier { compatible = "qcom,gh-panic-notifier"; gunyah-label = <9>; diff --git a/qcom/sun.dtsi b/qcom/sun.dtsi index 4a22d9e8..9a85f4c9 100644 --- a/qcom/sun.dtsi +++ b/qcom/sun.dtsi @@ -2512,6 +2512,18 @@ qcom,label = <0x5>; }; + qcom,test-msgq-tuivm { + compatible = "qcom,gh-msgq-test"; + gunyah-label = <0x4>; + qcom,primary; + }; + + qcom,test-msgq-oemvm { + compatible = "qcom,gh-msgq-test"; + gunyah-label = <0x5>; + qcom,primary; + }; + qcom,gunyah-panic-notifier { compatible = "qcom,gh-panic-notifier"; qcom,primary-vm;