Commit Graph

1144268 Commits

Author SHA1 Message Date
John Moon
b4359b0c82 build: Add systemdlkm blocklist for kalama
Currently, the Bazel build looks for a systemdlkm_blocklist file
for LA platforms. One does not exist for kalama, so the build breaks.

Add the blocklist file to satisfy the build requirement.

Change-Id: I60559ca7deb13b7f5e8a08496215d12a7533ccf4
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2023-01-05 14:49:36 -08:00
John Moon
22da657cfa ANDROID: build: Use in-tree module list for vendor_dlkm
Currently, the vendor_dlkm image is including system_dlkm modules
when building with Bazel. With the legacy build system, system_dlkm
modules are filtered out.

Since we have a list of vendor_dlkm modules handy in our in-tree
module list, just use that to generate a list file and pass in to
kernel_images.

Change-Id: I95cfc6d6e90eb0d778d0c4dab2cb3e30189c532d
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2023-01-03 12:59:06 -08:00
John Moon
2e3a43faa8 ANDROID: build: Set system DLKM module list
Currently, the Bazel build is creating an empty system_dlkm image
because the module list is not being passed.

Pass in the GKI module list like we do in build.sh.

Change-Id: I88c7cf0858d7607fa115f366f40663ca0ce6e315
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2022-12-22 10:52:31 -08:00
qctecmdr
b49626251e Merge "coresight: Add result check of pm_runtime_get_sync" 2022-12-20 20:44:26 -08:00
qctecmdr
a4d898e2ae Merge "abi_gki_aarch64_qcom: Update list of symbols" 2022-12-20 10:00:21 -08:00
Tao Zhang
2cbc1a2e56 coresight: Add result check of pm_runtime_get_sync
Add result check of pm_runtime_get_sync to avoid that qdss clock
is not enabled before access any register.

Change-Id: I7c06683af07a9937e7047a261d2a44b9413091ce
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
Signed-off-by: Tao Zhang <taozha@codeaurora.org>
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
2022-12-19 23:20:58 -08:00
qctecmdr
3c41e0998a Merge "msm: abi_gki: Add display api to export symbols list" 2022-12-19 23:19:29 -08:00
qctecmdr
1cf8d0e447 Merge "spmi-glink-debug: move the driver to soc/qcom/ folder" 2022-12-19 23:19:27 -08:00
qctecmdr
32c97a6291 Merge "defconfig: pineapple: enable fbe modules" 2022-12-19 23:19:27 -08:00
qctecmdr
8ca0c87172 Merge "defconfig: pinapple_tuivm: Enable the lazy mapping driver" 2022-12-19 23:19:27 -08:00
Bruce Levy
36f9906a22 abi_gki_aarch64_qcom: Update list of symbols
Add missing audio symbol.

Change-Id: I7c408fb678f62ed8ecf8a90da8b2f4c91ac280d5
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2022-12-19 17:27:32 -08:00
Chris Goldsworthy
a1b5ad76c7 defconfig: pinapple_tuivm: Enable the lazy mapping driver
Enable the lazy mapping driver.

Change-Id: I78d66c037170feb362de337f5145be92380892b1
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-12-19 15:24:29 -08:00
Chris Goldsworthy
f975e5d06c defconfig: pinapple_tuivm: Allow for mapping into the VM logical mappings
Allow memory to be mapped into the S1 page tables of the VMs using the
kernel logical mappings. This will allow for cache maintenance to be
done on the memory.

Change-Id: I337e6cdbe904b767536be3f00f25d56bde5556f7
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-12-19 15:17:44 -08:00
qctecmdr
d087c1b08d Merge "ANDROID: Enable oemvm builds in Bazel" 2022-12-19 14:03:37 -08:00
qctecmdr
f84111ed8b Merge "gunyah: Split gh_rm_mem_accept" 2022-12-19 14:03:36 -08:00
Nisarg Bhavsar
5d9699bf25 msm: abi_gki: Add display api to export symbols list
Adding symbols in abi file.

Change-Id: Ieedbf9f259799ff8972570ec1b0946dd03b8436e
Signed-off-by: Nisarg Bhavsar <quic_bhavsar@quicinc.com>
2022-12-19 11:44:23 -08:00
John Moon
16bce14397 ANDROID: Enable oemvm builds in Bazel
Currently, only tuivm builds are available.

Enable the oemvm targets.

Change-Id: I5acda1e41150467726be27fcb57fd9146a425ca8
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2022-12-19 09:40:20 -08:00
Gaurav Kashyap
1c10331249 defconfig: pineapple: enable fbe modules
Enable the following modules which enables data encryption
(FBE) using wrapped keys.
CONFIG_QTI_CRYPTO_COMMON
CONFIG_SCSI_UFS_CRYPTO_QTI.
Tests: FBE enabled bootup.

Change-Id: I56d9c9ac6d92fd6d530a94c40ca463d17daa78df
Signed-off-by: Gaurav Kashyap <quic_gaurkash@quicinc.com>
2022-12-19 09:35:55 -08:00
qctecmdr
3ad2ec494c Merge "ANDROID: Fix libfdt dependency" 2022-12-19 05:37:19 -08:00
qctecmdr
193aeb4809 Merge "sched/walt/core_control: strict_nr_run calculation" 2022-12-19 05:37:18 -08:00
qctecmdr
ad14fe4d5f Merge "power: supply: qti_battery_charger: Add ICL voting support for CDP" 2022-12-19 05:37:16 -08:00
qctecmdr
1ca32f2f3d Merge "wcd939x-usbss: Add dynamic boosting on power up" 2022-12-19 05:37:15 -08:00
qctecmdr
933bbe9666 Merge "pinctrl: qcom: pineapple: Add egpio support" 2022-12-19 05:37:13 -08:00
qctecmdr
5b780fe645 Merge "soc: qcom: minidump: Add header and new hook parameter" 2022-12-19 05:37:12 -08:00
qctecmdr
d8169f15ed Merge "coresight: support Modem ETM trace encryption" 2022-12-19 05:37:10 -08:00
qctecmdr
75224e66db Merge "coresight: cti: Add PM runtime calls in enable_store" 2022-12-19 02:42:54 -08:00
qctecmdr
74c76a916d Merge "Revert "cpufreq: qcom-cpufreq-hw: Add cpufreq qos for LMh"" 2022-12-19 02:42:50 -08:00
qctecmdr
5cd2ae9013 Merge "virtio/virtio_mem: Add ioctl interface" 2022-12-18 07:15:55 -08:00
qctecmdr
275820d763 Merge "msm_sysstats: define callback to get the kgsl memory stats" 2022-12-18 07:15:54 -08:00
Mao Jinlong
fb4d3e7096 coresight: cti: Add PM runtime calls in enable_store
QDSS clock need to be enabled before accessing CTI registers. Add
PM runtime calls in enable_store to enable clock before cti_enable
and disable clock after cti_disable.

Change-Id: I60f7cda36a56a1af8f0c98ee9c270969f2c756de
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
2022-12-18 03:37:33 -08:00
qctecmdr
a5b00e08cf Merge "dt-bindings: thermal: qmi_sensor: Add new modem qmi sensors" 2022-12-18 03:29:45 -08:00
qctecmdr
f2cdb78f61 Merge "remoteproc: qcom: Add read support for collect_both_coredumps node" 2022-12-18 03:29:44 -08:00
qctecmdr
9f8bd26074 Merge "interconnect: qcom: pineapple: Add bcm_sn0" 2022-12-18 03:29:43 -08:00
qctecmdr
8aae998a39 Merge "arm64: defconfig: Enable qrtr for pineapple trusted vm" 2022-12-17 23:36:25 -08:00
qctecmdr
d1efe1184c Merge "drivers: qcom: sys_pm_vx: Add support to monitor system PM violator" 2022-12-17 23:36:23 -08:00
qctecmdr
94911c4e71 Merge "sound: usb: Add snapshot of USB QMI SND drivers" 2022-12-17 23:36:22 -08:00
qctecmdr
cdc09a5432 Merge "defconfig: pineapple: Enable the IOMMU logger" 2022-12-17 23:36:20 -08:00
qctecmdr
3372c9b13e Merge "modules: add fbe modules to first stage list" 2022-12-17 23:36:18 -08:00
qctecmdr
b36305a993 Merge "firmware: qcom_scm: Add GPU_SVC_ID entry point" 2022-12-17 23:36:16 -08:00
qctecmdr
0591a08ab9 Merge "coresight: tmc: Get rwp offset when stop usb sw mode" 2022-12-17 23:36:15 -08:00
Patrick Daly
266b3dd7c2 gunyah: Split gh_rm_mem_accept
Reduce function complexity per static analysis tools.

Change-Id: I9bd6f42e566f4c1932730b53bcbd5dee7f3e600c
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2022-12-17 21:39:49 -08:00
Patrick Daly
592f2703ec virtio-mem: Use device_block_size in plug/unplug requests
Switch back to using device_block_size for plug/unplug requests
since this is the intended purpose of this configuration option.

Fixes: a0d27d0bdb39 ("virtio-mem: Add mem-buf interfaces")
Change-Id: I9068856337b9ce90c76ca9949f8275023e9e7c17
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2022-12-17 21:39:48 -08:00
Sanish Sanjay Kharade
d688e5ca96 gunyah: msm-kernel: Add ftrace debugging to gunyah communication
Add debug prints to the communication between the android and the
guest VM. They can be enabled dynamically at run time using ftrace.

Example of a trace message:
gh_rm_mem_share: mem_type = Normal Memory flags = 0x0 label = 3
acl_entries = 2 acl_arr = {(0x03,RW), (0x2d,RW)}
sgl_entries = 1 sgl_ipa_base = {0xf80ef000} sgl_size = {0x9000}
mem_attr_entries = 0 mem_attr_attr = N/A mem_attr_vmid = N/A
handle = 0 map_vmid = 0 trans_type = Share.

Change-Id: I5732ea586ae7bd488131f4d174be8bf181f40b0a
Signed-off-by: Sanish Sanjay Kharade <quic_skharade@quicinc.com>
2022-12-17 21:39:47 -08:00
Patrick Daly
912f04fb72 virtio-mem: Fix missing logical not operation
Log an error if membuf is not found in xarray, rather than
if it is found.

Do not reduce vm->plugged_size in case of error on unplug
operations, in order to keep the value consistent with
vm->sbm.sb_states bitmap or its bbm equivalent.

Change-Id: Ieaf37f80ab6c7d0f9d416aba3daa9cde8f7c2a53
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2022-12-17 21:39:47 -08:00
Patrick Daly
1b828c9bb8 virtio-mem: Add mem-buf interfaces
Add IPC communication via mem-buf-mesgq driver for requesting memory
from the Host VM.

Change-Id: I9b8429e71803fdf9e2f82145d850a685a2b3549e
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2022-12-17 21:39:46 -08:00
Patrick Daly
12058013a7 mem-buf: Add accessor for current_vmid
Allow other modules to access this variable.

Change-Id: I4eb92e6ea7bed0fb854a7aafe355f33a09120389
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2022-12-17 21:39:45 -08:00
Patrick Daly
a375851b6a mem-buf: Define MEM_BUF_MEM_TYPE_BUDDY
Define a new remote alloc type which tries to allocate contiguous
memory from cma. This memory will be transferred to a guest VM and
added to the buddy allocator using memory hotplug.

Change-Id: I04a4e734d24b6d8decac4e936d12d5e43b7f750b
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2022-12-17 21:39:45 -08:00
Patrick Daly
385221af95 virtio/virtio_mem: Add ioctl interface
Allow userspace to request additional memory by calling
an ioctl on qti_virtio_mem char device.

Change-Id: I47e9fa27f23620af209675928c2b5788a7d81477
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2022-12-17 21:39:44 -08:00
Patrick Daly
14575325bc virtio/virtio_mem: qcom: Introduce virtio_mem platform driver
Modify the existing virtio_mem driver to a platform device. Future
patches will add support for communication over the mem-buf driver
msgq interface, rather than over a virtqueue.

Change-Id: I99a4ed93224a6d5d0197fca31d4f7d53eb417cb8
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2022-12-17 21:39:43 -08:00
Patrick Daly
aa9a1b50ef dma-heaps: Define qcom tui carveout heap
Move behavior specific to the tui carveout heap usecase out of
the mem-buf driver, and existing dma-heap carveout driver into a
new file. This is done to reduce code complexity in the dma-heap
carveout driver, as well as to prepare for adding new mem-buf
clients.

Change-Id: I1241e009e63b8e21c55920d3561c5a1777cbf83c
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2022-12-17 21:39:43 -08:00