Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

misc: fastrpc: Add reserved mem support

The reserved mem support is needed for CMA heap support, which will be
used by AUDIOPD.

Co-developed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20221125071405.148786-4-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Abel Vesa and committed by
Greg Kroah-Hartman
1ce91d45 1959ab9e

+4
+4
drivers/misc/fastrpc.c
··· 19 19 #include <linux/slab.h> 20 20 #include <linux/qcom_scm.h> 21 21 #include <uapi/misc/fastrpc.h> 22 + #include <linux/of_reserved_mem.h> 22 23 23 24 #define ADSP_DOMAIN_ID (0) 24 25 #define MDSP_DOMAIN_ID (1) ··· 2065 2064 dev_info(rdev, "FastRPC Invalid Domain ID %d\n", domain_id); 2066 2065 return -EINVAL; 2067 2066 } 2067 + 2068 + if (of_reserved_mem_device_init_by_idx(rdev, rdev->of_node, 0)) 2069 + dev_info(rdev, "no reserved DMA memory for FASTRPC\n"); 2068 2070 2069 2071 vmcount = of_property_read_variable_u32_array(rdev->of_node, 2070 2072 "qcom,vmids", &vmids[0], 0, FASTRPC_MAX_VMIDS);