Disable ANDROID_KABI_RESERVE and ANDROID_VENDOR_OEM_DATA on TUIVM.
We can save some memory.
Change-Id: Ic881331348250468da9370f1594e56554206ef99
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
Add support to enable pinctrl framework on
Crow VM.
Change-Id: I2fe2198dde36a7c65b3f37e8665d591c4a76f8b0
Signed-off-by: Naina Mehta <quic_nainmeht@quicinc.com>
Enable log buffer minidump support for Kalama TUIVM. Bootlog is not
available since vendor hook is not enabled.
Change-Id: I6fb4c3d6ceabeddc1aab2030c352b286d7bce6f8
Signed-off-by: Cong Zhang <quic_congzhan@quicinc.com>
commit ebc7e21e0f ("arm64: Increase ARCH_DMA_MINALIGN to 128") increases
the size of the smallest permissible kmalloc slab size to 128 based on
the assumption that a CWG value of 5 (which equals log2(128) / 4) is
in use, whereas the CWG is 4 on Kalama. Decrease ARCH_DMA_MINALIGN to
64 accordingly.
Change-Id: Ia221870b5985b8712f6c30eff550b971166df967
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
Enable alive log with encrypt in gki config and
disable the encrypt feature in consolidate config
for both Primary VM and Trusted VM.
Change-Id: I3e51b6b0000f87ef6905ce3a86badc1bdd8b52c2
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
Ftrace subsystem is observed to consume between 5 to 6 Mb of memory
and is too costly to enable on low-memory targets.
Change-Id: Ic16d047db50ead6363f28dcce1367bda88c0b342
Signed-off-by: Sanish Sanjay Kharade <quic_skharade@quicinc.com>
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
This reverts commit d0739bf38d.
CONFIG_QCOM_LOGBUF_VENDOR_HOOKS is disabled on TUIVM because the
overhead of enabling the FTRACE subsystem (5Mb) is too costly
for low-memory targets.
Change-Id: I1a1cc7f5314eda37bc2db0a223ce1d9ede00c996
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
memmap_on_memory changes the behavior of memory hotplug to allocate
the struct pages array (also known as memmap) from the hotpluged memory.
Without this feature, memmap is allocated with GFP_KERNEL, which may
increase memory pressure on those zones.
Change-Id: Ia9c9fed473216cfeb14ac9ce180a368a869309db
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
Enable minidump support for kalama TUIVM. CONFIG_ANDROID_DEBUG_SYMBOLS
is also enabled.
Change-Id: I34c58bcb307971aadbcf0b1fe88eaf1e8ee95947
Signed-off-by: Cong Zhang <quic_congzhan@quicinc.com>
The updated driver supports a cleaner boundary between functionality
supported by mem-buf (memory transfer) and functionality belonging
to a dma-heap (management of memory after it is transferred).
Change-Id: I377593b32b954722703fd9415d4e3041c3c260e1
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
For debug builds number of ipc log pages alloted as 40, due to
this LEVM memory increased huge size, to reduce the memory size
ipc log pages reduced to 2.
Change-Id: Ibb8f492250571b4620052588f9cc4696136f9f0d
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
With CONFIG_SPECULATIVE_PAGE_FAULT enabled, fput() may be called
asynchronously from munmap():
__do_munmap()
remove_vma_list()
remove_vma()
vm_area_free() /* calls fput(vm->file) after rcu grace period */
If the munmap() in question is operating on a membuf object, and
the client is running the following sequence:
TUI:
munmap()
close(fd)
notify_hlos_fd_freed()
HLOS:
fd = wait_for_notification()
VmMem::ReclaimDmabuf(fd)
Since munmap() releases its file refcount asynchronously, TUI may send
a notification to HLOS that the file has been closed before it is
actually closed (and hypervisor is notified that TUI no longer needs
access to this memory). This results a failure when HLOS calls
ReclaimDmabuf, which asks hypervisor to give the memory back to HLOS.
Change-Id: I9bc8ab390130e50c57d384a8ccc0d613183ea20a
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
DM-Integrity is used to detect changes made to writable
partitions from outside the TUIVM environment.
Change-Id: I186305ffe4804d9cff6be453d1af57c5a95ce54a
Signed-off-by: Dennis Cagle <quic_dcagle@quicinc.com>
Enable the vsock framework and the gunyah vsock transport for kalama
vms. This will enable guest to guest communication through vsock using
gunyah message queues.
Change-Id: I8d728386d784cb551db9729155adbc464ff6136c
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
This driver listens to a system panic event and dumps the dmesg log
buffer to a reserved memory location. Enable this driver for both
Primary VM and Trusted VM.
Change-Id: I8f28b771603b2d6f8c2e1c66005b7c86cc8e899b
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
Enable the QRTR configs to enable qrtr communication with the primary
vm from the trusted vm. Configure a 500 ms wakeup timeout and a node
id of 20.
Change-Id: I2a2ec54e0e9c92c0801f411cb476563ff67fa165
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
Enable the mem-buf message queue driver for Kalama's trusted VM.
Change-Id: Ibc93f0e0857e2523d48b687999f9891d9142d996
Signed-off-by: Isaac J. Manjarres <quic_isaacm@quicinc.com>
Signed-off-by: Georgi Djakov <quic_c_gdjako@quicinc.com>
The lazy mapping feature is useful for clients that want to maintain
their IOMMU mappings until a buffer is released, which prevents overhead
from repeatedly IOMMU mapping an unmapping a buffer. Enable this feature
on Kalama's trusted VM.
Change-Id: I3dbbb652598cbca4b111c6fda239f7d11a63f0b0
Signed-off-by: Isaac J. Manjarres <quic_isaacm@quicinc.com>
The dma-buf system heap was previously enabled so that libvmmem could
determine if it needed to use DMA-BUF Heaps or ION based on its existence.
This is no longer the case, so remove support for the system heap.
Change-Id: Ib859850a4adaadd2392eb88dc6419428ceb2ee7d
Signed-off-by: Isaac J. Manjarres <quic_isaacm@quicinc.com>
Enable CONFIG_DRM and CONFIG_GKI_HIDDEN_DRM_CONFIGS. These are
required on Kalama for display subsystem's techpack module.
Change-Id: Ia96ad25193553106a938bf7b266f0b959656f9ce
Signed-off-by: Steve Cohen <quic_cohens@quicinc.com>
Enable a VM tlmm irqchip, to all dummy irq chip parent
for pinctrl driver for VMs.
Change-Id: Id86fb3ca8677c5c51a186b452b9a3904cc7ef00e
Signed-off-by: Ashish Bhimanpalliwar <quic_abhiman@quicinc.com>
Enable the carveout and system heaps for Kalama's trusted VM, along
with basic mem-buf support required for dma-buf heaps to work correctly.
Change-Id: I666ef94ecdb7a17f8ad4125d8c466cf9b23aa714
Signed-off-by: Isaac J. Manjarres <quic_isaacm@quicinc.com>
Kalama's VM will have drivers for DMA engines that it will manage,
so enable IOMMU support to configure the IOMMU for Kalama's VM.
Change-Id: I601684c6d9f0e6d45bbc5a2c9de59972aeed4b17
Signed-off-by: Isaac J. Manjarres <quic_isaacm@quicinc.com>