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

Commit 08b48de0 authored by Manoj Prabhu B's avatar Manoj Prabhu B
Browse files

memshare: Add snapshot of memshare driver



The patch is a snapshot of memshare driver taken from msm-4.9 commit
<fce0dd25c02> (Merge "usb: phy: snps: Use external resistor (REXT)
for HSTX tuning").

Change-Id: I529f40a089d5c7f1baa2aeb5112f8e1aeb3a48a9
Signed-off-by: default avatarManoj Prabhu B <bmanoj@codeaurora.org>
parent 4875db87
Loading
Loading
Loading
Loading
+44 −0
Original line number Diff line number Diff line
* Memory Share Driver (MEMSHARE)

The Memshare driver implements a Kernel QMI service on the
LA-APSS, which is responsible for providing contiguous physical
memory to MPSS for use cases when the modem requires additional
memory (e.g. GPS).

Required properties for Memshare

-Root Node-

- compatible:	Must be "qcom,memshare"

Required properties for child nodes:

- compatible:	Must be "qcom,memshare-peripheral"

- qcom,peripheral-size:	Indicates the size (in bytes) required for that child.

- qcom,client-id:	Indicates the client id of the child node.

- label:	Indicates the peripheral information for the node. Should be one of
  the following:
  - modem	/* Represent Modem Peripheral */
  - adsp	/* Represent ADSP Peripheral */
  - wcnss	/* Represent WCNSS Peripheral */

Optional properties for child nodes:

- qcom,allocate-boot-time:	Indicates whether clients needs boot time memory allocation.

Example:

qcom,memshare {
	compatible = "qcom,memshare";

	qcom,client_1 {
		compatible = "qcom,memshare-peripheral";
		qcom,peripheral-size = <0x200000>;
		qcom,client-id = <0>;
		qcom,allocate-boot-time;
		label = "modem";
	};
};
+2 −0
Original line number Diff line number Diff line
@@ -568,6 +568,8 @@ config MSM_SUSPEND_STATS_FIRST_BUCKET
endif # MSM_IDLE_STATS
endif # MSM_PM

source "drivers/soc/qcom/memshare/Kconfig"

config MSM_PERFORMANCE
	tristate "msm performance driver to support userspace fmin/fmax request"
	default n
+1 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ obj-$(CONFIG_MSM_SERVICE_NOTIFIER) += service-notifier.o
obj-$(CONFIG_MSM_SERVICE_LOCATOR) += service-locator.o
obj-$(CONFIG_MSM_SYSMON_GLINK_COMM) += sysmon-glink.o
obj-$(CONFIG_MSM_SYSMON_QMI_COMM) += sysmon-qmi.o
obj-$(CONFIG_MEM_SHARE_QMI_SERVICE)		+= memshare/
obj-$(CONFIG_MSM_PIL_SSR_GENERIC) += subsys-pil-tz.o
obj-$(CONFIG_MSM_PIL)   +=      peripheral-loader.o
obj-$(CONFIG_QCOM_RUN_QUEUE_STATS) += rq_stats.o
+9 −0
Original line number Diff line number Diff line
config MEM_SHARE_QMI_SERVICE
       depends on QCOM_QMI_HELPERS
       bool "Shared Heap for external processors"
       help
		Memory Share Kernel Qualcomm Messaging Interface Service
		receives requests from Modem Processor Sub System
		for heap alloc/free from Application Processor
		Sub System and send a response back to client with
		proper handle/address.
+1 −0
Original line number Diff line number Diff line
obj-$(CONFIG_MEM_SHARE_QMI_SERVICE) := heap_mem_ext_v01.o msm_memshare.o
 No newline at end of file
Loading