Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit baf71316 authored by Lina Iyer's avatar Lina Iyer
Browse files

drivers: qcom: rpmh: add RPMH utility functions for TCS communication



Drivers that communicate with the TCS mailbox driver duplicate the same
functionality in managing memory for requests, threaded handling of
completion responses etc. Collect all such common functionality into a
simple set of API that abstracts complexity and optimizations in
communication with the mailbox controller.

The key benefits of using this API instead of directly using mailbox API
for QTI drivers are -
	* Caching of sleep and wake requests
	* Handling of completion callbacks
	* Memory management to avoid fragmenting kernel memory
	* Batch processing of requests

This is a snapshot as of 'commit b4a69c05b01172 ("drivers: mailbox:
rpmh-mailbox: rename file to match convention")'.

Change-Id: Id80b9312ff14537f9732acfa090f8e997158b63a
Signed-off-by: default avatarLina Iyer <ilina@codeaurora.org>
parent 61555831
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -304,3 +304,11 @@ config QCOM_COMMAND_DB
	help
	  Command DB queries shared memory by key string for shared system
	  resources

config QTI_RPMH_API
	bool "QTI RPMH (h/w accelerators) Communication API"
	select MAILBOX
	select QTI_RPMH_MBOX
	help
	  This option enables RPMH hardware communication for making shared
	  resource requests on Qualcomm Technologies Inc SoCs.
+1 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ obj-$(CONFIG_MSM_PIL_SSR_GENERIC) += subsys-pil-tz.o
obj-$(CONFIG_MSM_PIL)   +=      peripheral-loader.o
obj-$(CONFIG_QCOM_BUS_SCALING) += msm_bus/
obj-$(CONFIG_QCOM_COMMAND_DB) += cmd-db.o
obj-$(CONFIG_QTI_RPMH_API) += rpmh.o

ifdef CONFIG_MSM_SUBSYSTEM_RESTART
       obj-y += subsystem_notif.o