android_kernel_oneplus_msm8998/Documentation/devicetree/bindings/uio/msm_sharedmem.txt
Sahitya Tummala a63c4e469e uio: msm_sharedmem: add guard page around shared memory
If guard_memory dtsi property is set, then the shared memory
region will be guarded by SZ_4K at the start and at the end.
This is needed to overcome the XPU limitation on few MSM HW,
so as to make this memory not contiguous with other allocations
that may possibly happen from other clients in the system.

Change-Id: I57637619cea8fe7f0f7254624e07177ea4a4fce0
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2018-08-09 04:35:22 -07:00

26 lines
1,011 B
Text

msm_sharedmem provides the shared memory addresses for various clients in user-space
Required properties:
- compatible: Must be "qcom,sharedmem-uio"
- reg : The address and size of the shared memory. The address/sizes may vary.
A reg address of Zero indicates that the shared memory is dynamically
allocated using dma_alloc_coherent. A non zero reg address is used
directly.
- reg-names : Indicates various client-names.
- qcom,client-id : The client id for the QMI clients.
Optional properties:
- qcom,guard-memory: If this dtsi property is set, then the shared memory
region will be guarded by SZ_4K at the start and at the end.
This is needed to overcome the XPU limitation on few MSM HW,
so as to make this memory not contiguous with other allocations
that may possibly happen from other clients.
Example:
qcom,msm_sharedmem@0dc80000 {
compatible = "qcom,sharedmem-uio";
reg = <0x0dc80000 0x00180000>,
reg-names = "rmtfs";
qcom,client-id = <0x00000001>;
qcom,guard-memory;
};