From 5c87a553f356f4af2fc7daa7737d8c9509462d97 Mon Sep 17 00:00:00 2001 From: Po-Jung Lai Date: Tue, 17 Oct 2023 14:27:44 -0700 Subject: [PATCH 1/3] ARM: dts: msm: gunyah: Add dbl test node for sun Add doorbell test node to sun.dtsi, sun-vm.dtsi and sun-oemvm.dtsi validate hypervisor doorbell functionality. Change-Id: I8535600c66692b4254e54da773f4d2bb6e717583 Signed-off-by: Po-Jung Lai --- qcom/sun-oemvm.dtsi | 19 +++++++++++++++++++ qcom/sun-vm.dtsi | 19 +++++++++++++++++++ qcom/sun.dtsi | 10 ++++++++++ 3 files changed, 48 insertions(+) diff --git a/qcom/sun-oemvm.dtsi b/qcom/sun-oemvm.dtsi index 48666a02..ac30bb4f 100644 --- a/qcom/sun-oemvm.dtsi +++ b/qcom/sun-oemvm.dtsi @@ -134,6 +134,20 @@ base = <0x0 0xFFF00000>; }; }; + + test-dbl-oemvm { + vdevice-type = "doorbell"; + generate = "/hypervisor/test-dbl-oemvm"; + qcom,label = <0x5>; + peer-default; + }; + + test-dbl-oemvm-source { + vdevice-type = "doorbell-source"; + generate = "/hypervisor/test-dbl-oemvm-source"; + qcom,label = <0x5>; + peer-default; + }; }; }; @@ -176,4 +190,9 @@ ; clock-frequency = <19200000>; }; + + qcom,test-dbl-oemvm { + compatible = "qcom,gh-dbl"; + qcom,label = <0x5>; + }; }; diff --git a/qcom/sun-vm.dtsi b/qcom/sun-vm.dtsi index 290dce39..290b8f84 100644 --- a/qcom/sun-vm.dtsi +++ b/qcom/sun-vm.dtsi @@ -173,6 +173,20 @@ }; }; + test-dbl-tuivm { + vdevice-type = "doorbell"; + generate = "/hypervisor/test-dbl-tuivm"; + qcom,label = <0x4>; + peer-default; + }; + + test-dbl-tuivm-source { + vdevice-type = "doorbell-source"; + generate = "/hypervisor/test-dbl-tuivm-source"; + qcom,label = <0x4>; + peer-default; + }; + ddump-shm { vdevice-type = "shm-doorbell"; generate = "/hypervisor/ddump-shm"; @@ -324,6 +338,11 @@ qcom,support-hypervisor; }; + qcom,test-dbl-tuivm { + compatible = "qcom,gh-dbl"; + qcom,label = <0x4>; + }; + qcom,gunyah-panic-notifier { compatible = "qcom,gh-panic-notifier"; gunyah-label = <9>; diff --git a/qcom/sun.dtsi b/qcom/sun.dtsi index daaacaf5..4a22d9e8 100644 --- a/qcom/sun.dtsi +++ b/qcom/sun.dtsi @@ -2502,6 +2502,16 @@ thermal_zones: thermal-zones { }; + qcom,test-dbl-tuivm { + compatible = "qcom,gh-dbl"; + qcom,label = <0x4>; + }; + + qcom,test-dbl-oemvm { + compatible = "qcom,gh-dbl"; + qcom,label = <0x5>; + }; + qcom,gunyah-panic-notifier { compatible = "qcom,gh-panic-notifier"; qcom,primary-vm; From 4ad12bb94f33dfe74a07c98ddc21040473f1b7b9 Mon Sep 17 00:00:00 2001 From: Po-Jung Lai Date: Tue, 17 Oct 2023 15:28:09 -0700 Subject: [PATCH 2/3] 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; From 976b3e2ad7b22eaad8123e50da9c8d195a1a4e8f Mon Sep 17 00:00:00 2001 From: Po-Jung Lai Date: Tue, 10 Oct 2023 12:53:33 -0700 Subject: [PATCH 3/3] ARM: dts: msm: gunyah: Add irq lend test node for sun Add irq lend test node to sun, sun-vm and sun-oemvm to validate hypervisor irq lend functionality. Change-Id: I2cc6fae7645c12920fe742f2c3c7ce8a166fe663 Signed-off-by: Po-Jung Lai --- qcom/sun-oemvm.dtsi | 9 +++++++++ qcom/sun-vm.dtsi | 9 +++++++++ qcom/sun.dtsi | 9 +++++++++ 3 files changed, 27 insertions(+) diff --git a/qcom/sun-oemvm.dtsi b/qcom/sun-oemvm.dtsi index 2c417283..c508e3bf 100644 --- a/qcom/sun-oemvm.dtsi +++ b/qcom/sun-oemvm.dtsi @@ -210,4 +210,13 @@ gunyah-label = <0x5>; affinity = <0>; }; + + qcom,gh-qtimer@16805000 { + compatible = "qcom,gh-qtmr"; + reg = <0x16805000 0x1000>; + reg-names = "qtmr-base"; + interrupts = ; + interrupt-names = "qcom,qtmr-intr"; + qcom,secondary; + }; }; diff --git a/qcom/sun-vm.dtsi b/qcom/sun-vm.dtsi index 3099d137..32934d09 100644 --- a/qcom/sun-vm.dtsi +++ b/qcom/sun-vm.dtsi @@ -358,6 +358,15 @@ affinity = <0>; }; + qcom,gh-qtimer@16805000 { + compatible = "qcom,gh-qtmr"; + reg = <0x16805000 0x1000>; + reg-names = "qtmr-base"; + interrupts = ; + interrupt-names = "qcom,qtmr-intr"; + qcom,secondary; + }; + qcom,gunyah-panic-notifier { compatible = "qcom,gh-panic-notifier"; gunyah-label = <9>; diff --git a/qcom/sun.dtsi b/qcom/sun.dtsi index 9a85f4c9..7d580d4b 100644 --- a/qcom/sun.dtsi +++ b/qcom/sun.dtsi @@ -2524,6 +2524,15 @@ qcom,primary; }; + qcom,gh-qtimer@16805000 { + compatible = "qcom,gh-qtmr"; + reg = <0x16805000 0x1000>; + reg-names = "qtmr-base"; + interrupts = ; + interrupt-names = "qcom,qtmr-intr"; + qcom,primary; + }; + qcom,gunyah-panic-notifier { compatible = "qcom,gh-panic-notifier"; qcom,primary-vm;