Remove crash-fatal property for VMs to support VM
restart feature.
Change-Id: I42a2dd37ff81604b6cfb48179f2dc0133de27fb0
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
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>
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>
"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>
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>
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>
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>
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>
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>
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>
Add DT entry to enable the memory onject support for si-core.
Change-Id: Ie2551143a14773ac5cdd9196c39832f8579abd5d
Signed-off-by: Amirreza Zarrabi <quic_azarrabi@quicinc.com>
Allow mem-buf ipc messages between oemvm and pvm.
Change-Id: Ib3209f72bbcb146f7f3ae9e4d75e474750e2dd97
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
Add "10C" for RegisterCBO QTEE service in sun TVM for GP.
Change-Id: If3d5d29d4fe022f68ef98df0e173cd8dc5ec2004
Signed-off-by: Ujjawal Sankhwar <quic_usankhwa@quicinc.com>
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>
Reserve the IPA space for dmabuf buffers.
Change-Id: If3cb329278f5bdccee883f1d8a05df745df5ac5d
Signed-off-by: Sudarshan Rajagopalan <quic_sudaraja@quicinc.com>
VMs use platform coordinated PSCI. Update the mode id accordingly.
Change-Id: I8bb0eb3c4ad6f2f4fbdca7781b51e914bd3151b5
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
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>
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>
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>
Add shared memory to enable virtio-vsock device for sun-vm.
Change-Id: I188849af908df77b0d78b03ce8461fcd309650f4
Signed-off-by: Jingyi Wang <quic_jingyw@quicinc.com>
Add minidump vdeivce in vm-config to support minidump for Sun TUIVM.
Change-Id: I8aed4b1bec0b137bdcf8e103af59eb0cb70b999a
Signed-off-by: Cong Zhang <quic_congzhan@quicinc.com>
Add v1 and v2 DT support for APQ variant.
Change-Id: I9ea89b9fd022ddaf2fc5481acac16f720a725f7f
Signed-off-by: Unnathi Chalicheemala <quic_uchalich@quicinc.com>
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>
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>
After hotplugging in memory, automatically online it to the movable zone.
Change-Id: I1dde15451e78196fc261c0bd9b25cdfa91749c4c
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
Add qcom,sensitive property in vm-config node for Sun VM.
Change-Id: I5b2781df510f59d7c3f779eecb55c7bc64fad84c
Signed-off-by: Hrishabh Rajput <quic_hrishabh@quicinc.com>
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>
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>