Commit Graph

44 Commits

Author SHA1 Message Date
a24c65a6ea msm5.15: Import ayn changes from ayn_8550.xz (01/18/2026)
Signed-off-by: AnierinB <anierin@evolution-x.org>
2026-01-19 09:53:56 +00:00
Fei Yang
6617d56794 defconfig: kalama_tuivm: add minidump support
Add minidump support on kalama_tuivm platform.

Change-Id: Id7af7082f34bd55642ca885cbbb9e54c03ed8583
Signed-off-by: Fei Yang <quic_feiyan@quicinc.com>
2023-06-28 18:36:41 +08:00
Peng Yang
0cee961dad defconfig: Disable ANDROID_KABI_RESERVE and ANDROID_VENDOR_OEM_DATA on TUIVM
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>
2023-06-15 14:59:39 +08:00
Naina Mehta
f08a7d0f63 defconfig: msm: Enable pinctrl on Crow VM
Add support to enable pinctrl framework on
Crow VM.

Change-Id: I2fe2198dde36a7c65b3f37e8665d591c4a76f8b0
Signed-off-by: Naina Mehta <quic_nainmeht@quicinc.com>
2023-05-30 02:35:36 -07:00
Naina Mehta
88d84a9151 defconfig: enable Crow VM support
Enable support to compile Crow virtual machine kernel.

Change-Id: I2a3c73839e2d5b1cbe2af435396907362d2efdba
Signed-off-by: Naina Mehta <quic_nainmeht@quicinc.com>
2023-04-20 14:51:43 +05:30
Cong Zhang
bbc1b66b52 defconfig: Enable QCOM_LOGBUF_VENDOR_HOOKS for Kalama TUIVM
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>
2022-11-10 19:09:13 -08:00
qctecmdr
9b5db81fb4 Merge "defconfig: Enable CONFIG_KMALLOC64 for kalama tui" 2022-09-20 18:54:37 -07:00
Patrick Daly
0458eac394 defconfig: Enable CONFIG_KMALLOC64 for kalama tui
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>
2022-09-19 18:00:15 -07:00
Peng Yang
1135ea60b1 defconfig: Enable VM alive log encrypt for Kalama
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>
2022-09-09 08:36:42 -07:00
Patrick Daly
ad2d2b17e2 generic_vm_defconfig: Remove Ftrace support
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>
2022-08-02 16:01:53 -07:00
Patrick Daly
d59dea16d9 Revert "arm64: defconfig: Enable logbuf minidump for TUIVM"
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>
2022-08-02 15:59:58 -07:00
qctecmdr
b5eadfc575 Merge "virtio-mem: Support memmap_on_memory" 2022-07-29 17:53:26 -07:00
Patrick Daly
2431c0eac8 defconfig: Enable ARM64_MEMMAP_ON_MEMORY for kalamavm
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>
2022-07-28 17:27:35 -07:00
Cong Zhang
d0739bf38d arm64: defconfig: Enable logbuf minidump for TUIVM
Enable CONFIG_QCOM_LOGBUF_VENDOR_HOOKS for TUIVM.

Change-Id: Ibdb6083bdb987d739b7386b2866ebe086a73f982
Signed-off-by: Cong Zhang <quic_congzhan@quicinc.com>
2022-07-24 19:39:49 -07:00
Cong Zhang
46956be00d arm64: defconfig: Enable minidump support for kalama TUIVM
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>
2022-07-24 19:39:44 -07:00
Patrick Daly
d513501127 defconfig: Allow enabling CONFIG_VIRTIO_MEM on arm64
Enable this module for tuivm defconfig.

Change-Id: Ia9e0f8d56db05a4012a879426a0daf88f8f01399
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2022-07-01 10:15:23 -07:00
Patrick Daly
faca97590c defconfig: kalama-vm: Switch from carveout heap to tui carveout heap
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>
2022-07-01 10:15:22 -07:00
Prakruthi Deepak Heragu
edad667342 arm64: defconfig: Allow debug fs config for VM
Allow debug_fs in VM defconfig.

Change-Id: Ib297d40787d864cee336f2b956b1b8d3abb10120
Signed-off-by: Prakruthi Deepak Heragu <quic_pheragu@quicinc.com>
2022-06-01 15:01:55 -07:00
qctecmdr
fcdbec1465 Merge "kalama_tuivm: Add dm-integrity configs" 2022-05-31 14:12:36 -07:00
Anil Veshala Veshala
9bf8ffdeac ARM: config: msm: update config for gpi dma
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>
2022-05-25 04:33:52 -07:00
qctecmdr
96ba4d5506 Merge "defconfig: Disable CONFIG_SPECULATIVE_PAGE_FAULT on kalama-vm" 2022-05-18 12:30:37 -07:00
Prakruthi Deepak Heragu
d7cfea3957 arm64: defconfig: Disable debug config for VM
Disable CONFIG_ARM64_MTE, DEBUG_FS, SCHED_DEBUG in VM config.

Change-Id: I1eb62d30d3d17a874d34f974ad243bf58b4698ab
Signed-off-by: Prakruthi Deepak Heragu <quic_pheragu@quicinc.com>
2022-05-12 11:38:09 -07:00
Patrick Daly
743810c82f defconfig: Disable CONFIG_SPECULATIVE_PAGE_FAULT on kalama-vm
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>
2022-05-11 18:09:04 -07:00
Dennis Cagle
020a8d793a kalama_tuivm: Add dm-integrity configs
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>
2022-05-02 16:13:27 -07:00
Chris Lew
50068c365b defconfig: Enable vsock and gunyah vsock for kalama vm
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>
2022-04-26 16:56:19 -07:00
Peng Yang
a57beea820 defconfig: Enable VM dmesg dumper for Kalama
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>
2022-04-06 23:38:42 -07:00
Ashish Bhimanpalliwar
20f2dbbb0b defconfig: Enable watchdog driver on SVM
Enable watchdog driver on SVM.

Change-Id: I37c6a55e5cba81ed29a90ed91a0655b0ca368429
Signed-off-by: Ashish Bhimanpalliwar <quic_abhiman@quicinc.com>
2022-03-31 23:49:23 -07:00
qctecmdr
18bf0124fd Merge "defconfig: Add SELinux configs" 2022-03-15 02:11:00 -07:00
Dennis Cagle
e39daae46a defconfig: Add SELinux configs
Add SELinux config options and dependencies

Change-Id: Ie4b712a08c13b84de646ac7d1f09c021dd476f5b
Signed-off-by: Dennis Cagle <quic_dcagle@quicinc.com>
2022-03-01 16:43:24 -08:00
Maulik Shah
bdf4b91065 defconfig: Enable auto suspend for kalama TUIVM
This enables auto suspend for kalama.

Change-Id: If95e5c46ed4208afeab29aafc5d5620ffe01fbc4
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
2022-03-01 16:42:41 +05:30
Chris Lew
6bdcb22e29 arm64: defconfig: Enable qrtr for kalama trusted vm
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>
2022-02-16 22:20:36 -08:00
Isaac J. Manjarres
50341f5b15 arm64: defconfig: Enable the mem-buf message queue driver for Kalama's TVM
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>
2022-02-03 16:15:30 -08:00
Anil Veshala Veshala
c9db55ca60 ARM: config: msm: Enableing config for buses levm
Enableing config for i2c,spi,gsi drivers.

Change-Id: Icab78d5221507fe3b5319d9fdea8ea25f9843880
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
2022-01-27 23:19:45 -08:00
qctecmdr
d15c6ff22d Merge "arm64: defconfig: Disable the system heap on Kalama's trusted VM" 2022-01-14 03:19:31 -08:00
Isaac J. Manjarres
257d268082 arm64: defconfig: Enable the lazy mapping feature for Kalama's trusted VM
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>
2022-01-12 04:54:45 -08:00
Isaac J. Manjarres
4a9effc720 arm64: defconfig: Disable the system heap on Kalama's trusted VM
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>
2021-12-09 12:13:46 -08:00
Steve Cohen
dab853b270 arm64: defconfig: enable DRM configs for kalama trusted VM
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>
2021-12-06 19:26:24 -05:00
Ashish Bhimanpalliwar
ef7d126b9d defconfig: Enable TLMM VM Mem Access driver
Enable TLM VM mem access driver.

Change-Id: Iab44e226909b704ee9cb23baa232df9864a3d1de
Signed-off-by: Ashish Bhimanpalliwar <quic_abhiman@quicinc.com>
2021-12-02 03:19:45 -08:00
Ashish Bhimanpalliwar
5016e7b203 defconfig: Enable guest pops driver on kalama
Enable guest pops driver on kalama.

Change-Id: I23790e685d5fff1f3eb8222745ed119b9f9a371b
Signed-off-by: Ashish Bhimanpalliwar <quic_abhiman@quicinc.com>
2021-12-02 05:07:11 +05:30
Ashish Bhimanpalliwar
2512a8c632 defconfig: Enable kalama vm pinctrl
Enable kalama vm pinctrl.

Change-Id: Idc70cab620d9c01d184a0acd1cec3f4ed58ff2f9
Signed-off-by: Ashish Bhimanpalliwar <quic_abhiman@quicinc.com>
2021-11-30 19:49:09 -08:00
Ashish Bhimanpalliwar
7dbe7869d8 defconfig: Enable a tlmm VM irqchip
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>
2021-11-30 07:53:14 -08:00
Isaac J. Manjarres
1df59f94ad arm64: defconfig: Enable dma-buf heaps support for Kalama's trusted VM
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>
2021-11-05 13:24:08 -07:00
Isaac J. Manjarres
b4e3edf81e arm64: defconfig: Enable IOMMU support for Kalama's trusted VM
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>
2021-11-05 13:11:12 -07:00
Ashish Bhimanpalliwar
7ba576d580 config: Adding defconfigs for vm on kalama
Adding defconfigs for vm on kalama.

Change-Id: I6268a87898dda5be94b902006d99833db65a16fb
Signed-off-by: Ashish Bhimanpalliwar <abhiman@codeaurora.org>
2021-11-01 18:28:20 +05:30