sm6250-common: Make fastrpc_shell_3 publicly available

* Used by GCAM for DSP-accelerated HDR processing
 * Arguably we should label /vendor/dsp/cdsp/fastrpc_shell_3 to
   same_process_hal_file like Pixels, but the partition is prebuilt thus
   we're unable to relabel it.
 * Copy the file to writable tmpfs, setup attributes and bind mount back
   to workaround the limitation.

[ghostrider-reborn]:
Allow adsp/cdsprpcd and neuralnetworks HAL to access fastrpc_shell_3

[kras edit:
 1. rename some contexts as per qva/kona
 2. extend to allow camera HAL and VPP service to access it as well]

[dereference23: Remove VPP policy because atoll doesn't use it]

Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Change-Id: Ide90e5c7307d413db5ece736e859559f06679545
This commit is contained in:
dianlujitao
2020-05-07 00:10:55 +08:00
committed by Alexander Winkowski
parent c653ce51be
commit 92b6e36b71
9 changed files with 22 additions and 0 deletions

View File

@ -73,6 +73,11 @@ on post-fs
chmod 0660 /sys/class/leds/red/brightness
chown system system /sys/class/leds/red/brightness
mkdir /mnt/vendor/dsp 0770 root root
copy /vendor/dsp/cdsp/fastrpc_shell_3 /mnt/vendor/dsp/fastrpc_shell_3
chmod 0644 /mnt/vendor/dsp/fastrpc_shell_3
mount none /mnt/vendor/dsp/fastrpc_shell_3 /vendor/dsp/cdsp/fastrpc_shell_3 bind
on early-boot
# set RLIMIT_MEMLOCK to 64MB
setrlimit 8 67108864 67108864