Commit Graph

47 Commits

Author SHA1 Message Date
Peng Yang
42d6ba0c08 ARM: dts: msm: Remove crash-fatal property for VMs
Remove crash-fatal property for VMs to support VM
restart feature.

Change-Id: I42a2dd37ff81604b6cfb48179f2dc0133de27fb0
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
2024-09-11 23:01:38 -07:00
QCTECMDR Service
ff357af0cf Merge "ARM: dts: qcom: Add crash-restart to support restart after VM crash" 2024-08-22 11:21:33 -07:00
QCTECMDR Service
a860d465c6 Merge "ARM: dts: msm: Enable memmap_on_memory on arm64 on sun-vm" 2024-07-31 10:10:15 -07:00
Patrick Daly
aeb4dbdd4c ARM: dts: msm: Enable memmap_on_memory on arm64 on sun-vm
Memmap_on_memory changes the behaviour of memory hotplug to reserve
the first X Mb of a memory block for the struct page array. On arm64,
the size of the struct page array for a 128Mb memory block is 2Mb.
However, the memory-hotplug code requires X to be pageblock aligned (4Mb).

memory_hotplug.memmap_on_memory="force" informs the memory-hotplug core
to round up the size of the memory reserved for struct page array to
meet this 4Mb requirement, even though only 2Mb will actually be used.

This is preferred over allocating the struct page array from ZONE_NORMAL
because adding additional memory into ZONE_NORMAL is not supported on
this target.

Change-Id: I9544b58c202cecddbe80be67a24a1115b162e478
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2024-07-23 21:07:09 -07:00
QCTECMDR Service
b11b6f9eab Merge "ARM: dts: qcom: add UIDs for QTEE service in sun OEMVM" 2024-07-17 04:11:35 -07:00
songrui
c856ee5768 ARM: dts: qcom: add UIDs for QTEE service in sun OEMVM
"3" is uid of the  CApploader which is running on QTEE.

Change-Id: I2e058b3e1687cbcde3e6b8b2564731aac6f46903
Signed-off-by: songrui <quic_songrui@quicinc.com>
2024-07-14 22:08:27 -07:00
Georgi Djakov
eefeac1056 ARM: dts: msm: gunyah: Add large dmabuf test nodes for sun
Add test node to sun.dtsi, sun-vm.dtsi and sun-oemvm.dtsi
to validate large dmabuf transfer functionality.

Change-Id: I17cd06d12e18f26a6afe7c2da13fcca23a375b04
Signed-off-by: Georgi Djakov <quic_c_gdjako@quicinc.com>
2024-07-10 16:18:43 -07:00
Peng Yang
6ba39decec ARM: dts: qcom: Add crash-restart to support restart after VM crash
For current design, we can't do VM restart after VM crash due to RM
not allow. Add new crash-restart property to let RM allow do VM
restart. The crash-restart property will be valid when remove
crash-fatal property.

Change-Id: If9cb90d7bc581465b760a5c780203911a247e341
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
2024-07-09 09:25:22 +08:00
qctecmdr
9b9176a802 Merge "ARM: dts: msm: enable memory object extension for Sun OEMVM" 2024-06-18 17:21:37 -07:00
Amirreza Zarrabi
adcfb10875 ARM: dts: msm: enable memory object extension for Sun OEMVM
Add DT entry to enable the memory onject support for si-core.

Change-Id: I877fe2e6c9d5f71a2b055428ad942455470b6f9e
Signed-off-by: Amirreza Zarrabi <quic_azarrabi@quicinc.com>
2024-06-18 02:12:24 -07:00
qctecmdr
8698a0c9f5 Merge "ARM: dts: qcom: add UIDs for QTEE service in sun OEMVM" 2024-05-26 16:11:58 -07:00
qctecmdr
cf438d8caa Merge "ARM: dts: msm: Enable dma-heaps on OEMVM" 2024-05-21 02:38:39 -07:00
qctecmdr
c54683b223 Merge "ARM: dts: msm: Add support for persist on sun-oemvm" 2024-05-20 04:23:43 -07:00
Patrick Daly
25f36f4f2a ARM: dts: msm: Enable dma-heaps on OEMVM
Enable dma-heaps driver on OEMVM, as well as bringing in other features
such as virtio mem and large-dma buf support.

Change-Id: I7f679c061ba65237541363bd0b406bb4e58e697e
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2024-05-17 13:39:10 -07:00
Patrick Daly
c811ad67a6 ARM: dts: msm: Add support for mem-buf-msgq between oemvm and pvm
Allow mem-buf ipc messages between oemvm and pvm.

Change-Id: Ib3209f72bbcb146f7f3ae9e4d75e474750e2dd97
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2024-05-17 13:39:09 -07:00
songrui
4a42f43d35 ARM: dts: qcom: add UIDs for QTEE service in sun OEMVM
"CDF" is SecureImage in QTEE and it is for QTVM TA authentication.

Signed-off-by: songrui <quic_songrui@quicinc.com>
2024-04-26 13:05:57 +08:00
qctecmdr
91017aaef4 Merge "ARM: dts: qcom: add UIDs for QTEE service in sun OEMVM" 2024-04-16 16:45:45 -07:00
Hrishabh Rajput
b957615498 ARM: dts: msm: Add support for persist on sun-oemvm
Add shared memory to support persist on sun-oemvm.

Change-Id: Ic7f97ac2da114e56ef297d74f4a8d70fb27987e7
Signed-off-by: Hrishabh Rajput <quic_hrishabh@quicinc.com>
2024-04-12 15:51:55 +05:30
songrui
911136c109 ARM: dts: msm: Enable qcom,tee-shared-memory-bridge device in OEMVM
smcinvoke driver needs share memory bridge.

Change-Id: Ifc14e52a3593062c666f6ba92b8b5ad7c6a53456
Signed-off-by: songrui <quic_songrui@quicinc.com>
2024-04-10 23:40:38 -07:00
songrui
db8644fd13 ARM: dts: qcom: add UIDs for QTEE service in sun OEMVM
"0x39" for CSecureCamera2.

Change-Id: Id80d3af47a6fb4d27ce2826802bb11a6483895e9
Signed-off-by: songrui <quic_songrui@quicinc.com>
2024-04-11 10:18:02 +08:00
Maulik Shah
88c9530986 ARM: dts: msm: Update mode id for sun vm
VMs use platform coordinated PSCI. Update the mode id accordingly.

Change-Id: I8bb0eb3c4ad6f2f4fbdca7781b51e914bd3151b5
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
2024-04-05 06:47:34 -07:00
qctecmdr
0382918afb Merge "ARM: dts: qcom: Add minidump vdevice for OEMVM" 2024-04-03 00:54:18 -07:00
qctecmdr
4014c509eb Merge "ARM: dts: msm: Use deepest idle mode for sun vm" 2024-04-01 23:53:17 -07:00
Cong Zhang
97b7a61933 ARM: dts: qcom: Add minidump vdevice for OEMVM
Add minidump vdevice to enable minidump support for OEMVM.

Change-Id: I2e4b371cabd8ac1fc2362011e55bd4eb556da70e
Signed-off-by: Cong Zhang <quic_congzhan@quicinc.com>
2024-04-01 00:49:12 -07:00
Maulik Shah
7bff1fda7b ARM: dts: msm: Use deepest idle mode for sun vm
Use SS3 as deepest CPU idle mode.

Change-Id: Ifd6e82adfea882bcf0087f12b44c9a45f8310216
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
2024-03-29 19:14:26 +05:30
Po-Jung Lai
76e16772ae ARM: dts: msm: gunyah: Move irq lend qtimer to frame 5 for sun
As Frame 2 was assigned to TZ for secure world timer, moving
IRQ lend test qtimer from frame 2 view 1 to frame 5.

Change-Id: I855b881f12b970c56bf595fffcc57ffadf184a58
Signed-off-by: Po-Jung Lai <quic_pojulai@quicinc.com>
2024-03-27 17:00:24 -07:00
Maulik Shah
6106dbb4e6 ARM: dts: msm: Enable CPUidle on VM for sun
Enable CPUidle states on VMs.

Change-Id: Id7a5b818dc0654a5ea0a0e32fee4ba5ac27f3ece
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
2024-03-12 02:12:20 -07:00
qctecmdr
618d2eeaf3 Merge "ARM: dts: msm: Enable mem-buf driver on oemvm" 2024-02-01 21:30:28 -08:00
Patrick Daly
2356f0d9ac ARM: dts: msm: Enable mem-buf driver on oemvm
All transferring memory between tvm, oemvm and pvm.

Change-Id: I2016350893bf79cfc09a22741dfa69627c795840
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2024-02-01 18:17:51 -08:00
songrui
a427a6a15d ARM: dts: qcom: Added entry for smcinvoke driver
Add devicetree to the OEM dtsi for smcinvoke in
the OEM VM.

Change-Id: I88d22618297704a95eb36e46602b0d20fe88470d
Signed-off-by: songrui <quic_songrui@quicinc.com>
2024-02-01 10:32:02 +08:00
Unnathi Chalicheemala
f2bcfc797d ARM: dts: msm: Support for APQ variant on Sun SoC
Add v1 and v2 DT support for APQ variant.

Change-Id: I9ea89b9fd022ddaf2fc5481acac16f720a725f7f
Signed-off-by: Unnathi Chalicheemala <quic_uchalich@quicinc.com>
2024-01-03 13:14:39 -08:00
Mukesh Ojha
86be4f238d ARM: dts: msm: sun: Update arch timer frequencies for VM's
Since, we are settle down with 19.2 MHZ for Arch timer frequency
for Sun target, let's do it for VM as well.

Change-Id: I456015fefd6fb7df53cb1d0258e2ee988fd5c88f
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
2023-12-11 13:43:29 +05:30
qctecmdr
10b90724b0 Merge "ARM: dts: msm: Add qcom,sensitive property for Sun VM" 2023-12-06 20:47:24 -08:00
Hrishabh Rajput
7114f1493d ARM: dts: msm: Add qcom,sensitive property for Sun VM
Add qcom,sensitive property in vm-config node for Sun VM.

Change-Id: I5b2781df510f59d7c3f779eecb55c7bc64fad84c
Signed-off-by: Hrishabh Rajput <quic_hrishabh@quicinc.com>
2023-12-01 15:34:24 +05:30
Unnathi Chalicheemala
c338bd73b2 Revert "ARM: dts: msm: Support for APQ variant on Sun SoC"
This reverts commit 3afa08eaed.

Reason for revert: Techpacks haven't added DT support for APQ variant.

Change-Id: Id856d733375f3bf3fb5497855f2269b34c3f3dcd
Signed-off-by: Unnathi Chalicheemala <quic_uchalich@quicinc.com>
2023-11-28 20:49:35 -08:00
Kishore Kumar Ravi
1c5ce4e94c ARM: dts: msm: Add nodes for qmsgq gunyah on sun
Add the device nodes on sun oemvm and vm to enable qmsgq socket
communication over gunyah message queues.

Change-Id: Ib28b1204006819ef9fe044586dbaada64d826b4a
Signed-off-by: Kishore Kumar Ravi <quic_kiskum@quicinc.com>
2023-11-25 05:06:12 -08:00
qctecmdr
20eb6dcc56 Merge "ARM: dts: qcom: Change cpu arch timer frequency" 2023-11-20 11:14:25 -08:00
Kishore Kumar Ravi
b228b1409c ARM: dts: msm: Add oemvm qrtr gunyah node for sun
Add the nodes for enable qrtr communication between primary vm and
oemvm on sun.

This adds platform devices and vdevice descriptions to start the
qrtr gunyah transport on both primary vm and oemvm device trees. This
also adds the device tree node to configure qrtr as node id 21 on oem
vm.

Change-Id: I1575853a67fe9edbcb751dbb71062b6da624d9be
Signed-off-by: Kishore Kumar Ravi <quic_kiskum@quicinc.com>
2023-11-20 12:50:36 +05:30
Murali Nalajala
59c04b6d51 ARM: dts: qcom: Change cpu arch timer frequency
From Armv8.6 the counter operates at a higher fixed frequency of 1GHz.
This implies a resolution of 1ns. Change cpu arch timer frequency to 1ns
from 52ns (19.2Mhz) resolution.

Change-Id: Ib0bfe643edbd4de568cf30ebaa1ec1175111352e
Signed-off-by: Murali Nalajala <quic_mnalajal@quicinc.com>
2023-11-16 22:49:24 -08:00
Murali Nalajala
e59025f303 ARM: dts: qcom: Support for Sun vms MTP and CDP
Add initial Sun VMs MTP and CDP device tree support.

Change-Id: I334c31bdd0abff304e11a47ddb2f37aeae9a62ed
Signed-off-by: Murali Nalajala <quic_mnalajal@quicinc.com>
2023-11-16 22:49:14 -08:00
qctecmdr
5a4d047cf5 Merge "ARM: dts: msm: gunyah: Add irq lend test node for sun" 2023-11-13 21:23:26 -08:00
Po-Jung Lai
976b3e2ad7 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 <quic_pojulai@quicinc.com>
2023-11-09 13:50:18 -08:00
Po-Jung Lai
4ad12bb94f 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 <quic_pojulai@quicinc.com>
2023-11-09 13:50:08 -08:00
Po-Jung Lai
5c87a553f3 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 <quic_pojulai@quicinc.com>
2023-11-09 08:34:32 -08:00
Rashid Zafar
478c4ffd02 ARM: dts: msm: Update CPUidle states for sun vm
Update cpuidle parameters like name, latency, residency, suspend
params and keep them disabled.

Change-Id: I37213e5713165ed72f1e079a90936aed87083b61
Signed-off-by: Rashid Zafar <quic_rzafar@quicinc.com>
2023-11-08 15:31:26 -08:00
Hrishabh Rajput
52b598b87a ARM: dts: msm: Add swiotlb command line parameter for OEMVMs
In 'commit 583aa96f35 ("ARM: dts: msm: Add swiotlb command line
parameter for VMs")', option "swiotlb=noforce" was appended to kernel
command line for trusted VMs. Extending the change to OEMVMs.

Change-Id: I3371bc3d077ef4a45d7a66779a77bdf434c0f5e0
Signed-off-by: Hrishabh Rajput <quic_hrishabh@quicinc.com>
2023-10-31 22:38:55 -07:00
Meena Pasumarthi
ba5f42abbc ARM: dts: msm: Add base TUIVM and OEMVM for Sun
Add base TUIVM and OEMVM device tree support for Sun RUMI platform.

Change-Id: I32598ce2c3488658e2c9caf0cd7a2368665c0b06
Signed-off-by: Meena Pasumarthi <quic_pasumart@quicinc.com>
Signed-off-by: Sahitya Tummala <quic_stummala@quicinc.com>
2023-09-25 09:50:18 +05:30