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

Commit 7145c809 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "memshare: Port and add snapshot of changes from msm-3.10"

parents d424a32a 78432fc7
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
@@ -584,4 +584,6 @@ config MSM_SERVICE_LOCATOR
	  to what process domain exports the service, and which subsystem
	  that process domain will execute in.

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

endif # ARCH_MSM
+1 −0
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ obj-$(CONFIG_MSM_SYSMON_GLINK_COMM) += sysmon-glink.o sysmon-qmi.o
obj-$(CONFIG_MSM_SHARED_HEAP_ACCESS) += shared_memory.o
obj-y			+=	qdsp6v2/
obj-$(CONFIG_MSM_RPM_RBCPR_STATS_V2_LOG) += rpm_rbcpr_stats_v2.o
obj-$(CONFIG_MEM_SHARE_QMI_SERVICE)		+= memshare/
obj-$(CONFIG_CP_ACCESS64) += cpaccess64.o
obj-$(CONFIG_MSM_RPM_STATS_LOG) += rpm_stats.o rpm_master_stat.o
obj-$(CONFIG_MSM_RPM_LOG) += rpm_log.o
+9 −0
Original line number Diff line number Diff line
config MEM_SHARE_QMI_SERVICE
       depends on MSM_QMI_INTERFACE
       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