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>
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>
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>
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>
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>
Currently, only tuivm builds are available.
Enable the oemvm targets.
Change-Id: I5acda1e41150467726be27fcb57fd9146a425ca8
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
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>
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>
Reduce function complexity per static analysis tools.
Change-Id: I9bd6f42e566f4c1932730b53bcbd5dee7f3e600c
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
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>
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>
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>
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>
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>
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>
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>
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>