Commit Graph

73 Commits

Author SHA1 Message Date
QCTECMDR Service
deb909a647 Merge "ARM: dts: msm: Align rcu expedited parameters for sunvm" 2024-09-22 17:31:28 -07:00
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
Patrick Daly
ebb646f4b7 ARM: dts: msm: Align rcu expedited parameters for sunvm
Use the same rcu configuration values on both PVM and QTVM.
This reduces latency of synchronize_rcu().

Change-Id: If023ae452c56e6172c33ccb2b14767376f86268b
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2024-09-10 15:35:01 -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
Patrick Daly
cf2d1ea24d ARM: dts: msm: Increase virtio-mem maximum size
ZRAM is being disabled on tuivm due to observed stability issues due to
ZRAM's use of GFP_MEMALLOC. Increase maximum movable zone size to
compensate.

When kswapd swaps out pages, PF_MEMALLOC is set, which results in zram
ignoring the min_watermark, and lowmem_reserve. This is problematic
because we intend for movable memory to stay in ZONE_MOVABLE, rather
than falling back to ZONE_NORMAL. If the later occurs to such a high
degree that all ZONE_NORMAL memory is consumed, as is observed to be
the case during a "C2PA" testcase, attempts to plug in additional
ZONE_MOVABLE memory may fail due to requiring a small amount of
GFP_KERNEL memory.

Change-Id: Ic847e90514f80ccb91daa98849440d7a9b97f156
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2024-08-05 16:27:37 -07:00
Patrick Daly
efdc753321 ARM: dts: msm: Add qcom,initial-movable-zone-size property
"qcom,initial-movable-zone-size" creates a movable zone of the given size
before userspace starts. This is useful in a system where a userspace
component (psi-daemon) is used to hotplug in memory on a on-demand basis.

With swap disabled, the current tvm carveout size (68 Mb) hits
out-of-memory condition before psi-deamon is started.

Once psi-daemon is running, it detects the number of blocks added to the
movable zone via "qti_virtio_mem/kernel_plugged" sysfs file, and
can reduce or increment the number as necessary.

Change-Id: I5b62b6227e8a357ba3012979ed4bf937f1810437
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2024-08-05 16:27:37 -07:00
Patrick Daly
942e7f19e7 ARM: dts: msm: Fix dependency between virtio-mem and mem-buf-msgq
The virtio-mem device has always had a dependency on mem-buf for plugging
in memory. Previously, the ordering was not a concern, since hotplug was
not done until userspace was up. However, in subsequent patches we
will instead hotplug in memory as soon as the virtio-mem device probes.

Change-Id: I9c4e4728a15ab32d65ffaea0ba2681a816a4abf0
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2024-08-05 11:40:04 -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
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
20c1c233c5 Merge "ARM: dts: msm: Add entry for KMHal and DeviceID UID" 2024-06-10 21:13:58 -07:00
Piyush Pradeep Jain
0b093bd582 ARM: dts: msm: Add entry for KMHal and DeviceID UID
Add entry for KMHal and DeviceID UID in vm config consumed by
RM to communicate with qtee service.

Change-Id: I1fecedaa960c764d45e154d217c58abf71752125
Signed-off-by: Piyush Pradeep Jain <quic_piyushpr@quicinc.com>
2024-06-08 23:29:08 +05:30
Sarannya S
c4c533f4bd ARM: dts: msm: Remove master property from VM entry
Remove the 'master' property from the VM devicetree
entry. This property is not used anymore so as to
handle any bootup order.

Change-Id: I261f85a61b522f5b07a2e67d4669deccd3a2872d
Signed-off-by: Sarannya S <quic_sarannya@quicinc.com>
2024-06-05 03:54:40 -07:00
Amirreza Zarrabi
3818b3ed8b ARM: dts: msm: enable memory object extension for Sun TUIVM
Add DT entry to enable the memory onject support for si-core.

Change-Id: Ie2551143a14773ac5cdd9196c39832f8579abd5d
Signed-off-by: Amirreza Zarrabi <quic_azarrabi@quicinc.com>
2024-06-04 14:38:37 -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
qctecmdr
117c43df6f Merge "ARM: dts: msm: Add vRTC node for Sun" 2024-04-22 22:10:47 -07:00
Ujjawal Sankhwar
22652b3b2f ARM: dts: qcom: Add UID for RegisterCBO in sun TVM
Add "10C" for RegisterCBO QTEE service in sun TVM for GP.

Change-Id: If3d5d29d4fe022f68ef98df0e173cd8dc5ec2004
Signed-off-by: Ujjawal Sankhwar <quic_usankhwa@quicinc.com>
2024-04-19 14:54:15 +05:30
qctecmdr
1bbd4c6667 Merge "ARM: dts: msm: Use upstream smmu addr space prop for qup" 2024-04-15 12:33:36 -07:00
Anil Veshala Veshala
c75e149845 ARM: dts: msm: Use upstream smmu addr space prop for qup
FR92369: Memory team has noticed that buses drivers are using the
legacy "qcom,iommu-dma-addr-pool" DT property and suggested to use
Upstream compatible "iommu-addresses" DT property by this change
there is no impact in functionality.

Change-Id: Ib8b25b2b58ffd12d30672bce3afc75276637c4e1
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
2024-04-12 11:38:57 +05:30
Sudarshan Rajagopalan
2543984e7c ARM: dts: msm: Reserve ipa space for dmabuf for Sun TUIVM
Reserve the IPA space for dmabuf buffers.

Change-Id: If3cb329278f5bdccee883f1d8a05df745df5ac5d
Signed-off-by: Sudarshan Rajagopalan <quic_sudaraja@quicinc.com>
2024-04-10 01:38:53 -07: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
Hrishabh Rajput
7535e25146 ARM: dts: msm: Add vRTC node for Sun
Add nodes to support vrtc on Sun VM.

Change-Id: Id3e404c177c2b822c80d27e8565476ae9d30e45f
Signed-off-by: Hrishabh Rajput <quic_hrishabh@quicinc.com>
2024-04-04 20:30:57 +05:30
qctecmdr
4014c509eb Merge "ARM: dts: msm: Use deepest idle mode for sun vm" 2024-04-01 23:53:17 -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
qctecmdr
eda1c7e1f0 Merge "ARM: dts: msm: gunyah: Move irq lend qtimer to frame 5 for sun" 2024-03-27 20:46:09 -07:00
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
qctecmdr
b3e70e4cbd Merge "ARM: dts: msm: Add wakeup-source property to virtio-vsock" 2024-03-26 22:32:33 -07:00
Sarannya S
1172faef72 ARM: dts: msm: Add ipcc_mproc_ns1 for sun TUIVM
Add ipcc_mproc_ns1 device tree node and entries to enable IPCC and
mbox communication between TUIVM and CDSP SecurePD on sun TUIVM.

Change-Id: I1e37ee86b86ba1f6b99669c0a71476c9a9da5e75
Signed-off-by: Kishore Kumar Ravi <quic_kiskum@quicinc.com>
Signed-off-by: Sarannya S <quic_sarannya@quicinc.com>
2024-03-20 10:29:23 -07:00
Jingyi Wang
dd0430a93a ARM: dts: msm: Add wakeup-source property to virtio-vsock
Add wakeup-source property to virtio-vsock device, the interrupt
for virtio-vsock will wakeup VM from suspend.

Change-Id: I359e9d77ed9923bacebdd2ba5aaa0796633e5798
Signed-off-by: Jingyi Wang <quic_jingyw@quicinc.com>
2024-03-19 15:35:52 +08:00
Jingyi Wang
972b927dba ARM: dts: msm: Enable virtio-vsock device for sun-vm
Add shared memory to enable virtio-vsock device for sun-vm.

Change-Id: I188849af908df77b0d78b03ce8461fcd309650f4
Signed-off-by: Jingyi Wang <quic_jingyw@quicinc.com>
2024-03-19 15:35:47 +08: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
Cong Zhang
561250bc37 ARM: dts: msm: Add minidump support for Sun TUIVM
Add minidump vdeivce in vm-config to support minidump for Sun TUIVM.

Change-Id: I8aed4b1bec0b137bdcf8e103af59eb0cb70b999a
Signed-off-by: Cong Zhang <quic_congzhan@quicinc.com>
2024-02-23 10:36:26 +08:00
qctecmdr
7a1b50ff0e Merge "ARM: dts: msm: Support for APQ variant on Sun SoC" 2024-01-19 22:02:48 -08:00
qctecmdr
77d9a2c08a Merge "ARM: dts: msm: add spi, i2c, gpi nodes for SVM SUN" 2024-01-18 15:29:25 -08:00
Anil Veshala Veshala
23738ec11d ARM: dts: msm: add spi, i2c, gpi nodes for SVM SUN
Adding spi, i2c, gsi nodes for SUN SVM.

Change-Id: If3d1336379de8441e3ca2bae8da9449f2b410d53
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
2024-01-16 23:14:31 -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
e6235a7c09 ARM: dts: msm: put dependency of dma-heap on SCM
Enforce dependency of dma heap driver on SCM driver
without which it will not work and this is in
the preparation of adding interconnect voting
in SCM node which if it gets added without this
change dma heap driver can result in NULL pointer
issue.

Change-Id: I654e69398643b2e78d180c7167b29b62e7914f77
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
2023-12-22 02:56:55 -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
e8f3adbd42 Merge "ARM: dts: msm: Define qcom,display heap for sun" 2023-12-08 21:39:09 -08:00
qctecmdr
10b90724b0 Merge "ARM: dts: msm: Add qcom,sensitive property for Sun VM" 2023-12-06 20:47:24 -08:00
Patrick Daly
c9ddf16357 ARM: dts: msm: Automatically online memory to movable zone
After hotplugging in memory, automatically online it to the movable zone.

Change-Id: I1dde15451e78196fc261c0bd9b25cdfa91749c4c
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2023-12-04 22:03:17 -08:00
qctecmdr
b98395468c Merge "ARM: dts: msm: Add qrtr node for sun vm" 2023-12-02 14:52:02 -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
Kishore Kumar Ravi
fcc5b36f19 ARM: dts: msm: Add qrtr node for sun vm
Add qrtr node to enable qrtr communication with the primary
vm from the trusted vm.

Change-Id: I05d3a75efebfbefc1e782f7ff7c7b01abe7e0245
Signed-off-by: Kishore Kumar Ravi <quic_kiskum@quicinc.com>
2023-11-28 21:42:59 -08:00
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
qctecmdr
eb10a088e3 Merge "ARM: dts: msm: Add nodes for qmsgq gunyah on sun" 2023-11-28 10:51:46 -08:00
qctecmdr
dfcfd7ac0a Merge "ARM: dts: msm: Enable virtio-mem device for sun-vm" 2023-11-28 04:40:06 -08:00
qctecmdr
59207199dc Merge "ARM: dts: msm: Add mem-buf device on sun-vm" 2023-11-28 02:30: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
songrui
c5847df35b ARM: dts: qcom: Enable the TVM SMMU proxy driver
Enable the TVM smmu proxy driver.

Change-Id: I42965703749d2814c5b83dca7131314df9ac8e02
Signed-off-by: Cong Zhang <quic_congzhan@quicinc.com>
Signed-off-by: songrui <quic_songrui@quicinc.com>
2023-11-21 14:38:47 +08:00