OSDN Git Service

misc: fastrpc: Add mmap request assigning for static PD pool
authorAbel Vesa <abel.vesa@linaro.org>
Fri, 25 Nov 2022 07:14:04 +0000 (07:14 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Nov 2022 17:45:34 +0000 (18:45 +0100)
commit532ad70c6d449029cfa3eac8408f427e31334f33
tree873eea6ce96496fd0c566e6eff0973e3bec585bc
parent76e8e4ace1ed2c97dba3b1370e0e105e07c572bc
misc: fastrpc: Add mmap request assigning for static PD pool

If the mmap request is to add pages and thre are VMIDs associated with
that context, do a call to SCM to reassign that memory. Do not do this
for remote heap allocation, that is done on init create static process
only.

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-10-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/fastrpc.c