[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] jabuti_sorridente:
Hello everyone, I recently got this phone and installed this ROM at "lineage_polaris-userdebug 11 RQ3A.210605.005 (lineage-18.1-20210625-nightly-polaris-signed.zip)". I also installed NikGApps and Magisk (I installed magisk by renaming to .zip and twrp method).

It's running very smoothly so far, but after looking at the logs through `adb logcat` I realized that there is a process constantly failing:

06-28 21:25:51.377 1131 1131 I cdsprpcd: remote_handle_open: Successfully opened handle 0x7f for '":;./\attachguestos on domain 3
06-28 21:25:51.370 1131 1131 W cdsprpcd: type=1400 audit(0.0:6606): avc: denied { read } for name="adsprpc-smd-secure" dev="tmpfs" ino=22681 scontext=u:r:cdsprpcd:s0 tcontext=u:object_r:xdsp_device:s0 tclass=chr_file permissive=0
06-28 21:25:51.383 1131 1131 E cdsprpcd: Error 0xffffffff: apps_dev_init failed for domain 3, errno Operation not permitted
06-28 21:25:51.383 1131 1131 E cdsprpcd: Error 0xffffffff: open_dev (-1) failed for domain 3
06-28 21:25:51.385 1131 1131 E cdsprpcd: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/cdsprpcd.c:47:cdsp daemon will restart after 100ms...
06-28 21:25:51.491 1131 1131 I cdsprpcd: remote_handle_open: Successfully opened handle 0x7f for '":;./\attachguestos on domain 3
06-28 21:25:51.480 1131 1131 W cdsprpcd: type=1400 audit(0.0:6607): avc: denied { read } for name="adsprpc-smd-secure" dev="tmpfs" ino=22681 scontext=u:r:cdsprpcd:s0 tcontext=u:object_r:xdsp_device:s0 tclass=chr_file permissive=0
06-28 21:25:51.500 1131 1131 E cdsprpcd: Error 0xffffffff: apps_dev_init failed for domain 3, errno Operation not permitted
06-28 21:25:51.500 1131 1131 E cdsprpcd: Error 0xffffffff: open_dev (-1) failed for domain 3
06-28 21:25:51.502 1131 1131 E cdsprpcd: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/cdsprpcd.c:47:cdsp daemon will restart after 100ms...
06-28 21:25:51.607 1131 1131 I cdsprpcd: remote_handle_open: Successfully opened handle 0x7f for '":;./\attachguestos on domain 3
06-28 21:25:51.600 1131 1131 W cdsprpcd: type=1400 audit(0.0:6608): avc: denied { read } for name="adsprpc-smd-secure" dev="tmpfs" ino=22681 scontext=u:r:cdsprpcd:s0 tcontext=u:object_r:xdsp_device:s0 tclass=chr_file permissive=0
06-28 21:25:51.620 1131 1131 E cdsprpcd: Error 0xffffffff: apps_dev_init failed for domain 3, errno Operation not permitted
06-28 21:25:51.620 1131 1131 E cdsprpcd: Error 0xffffffff: open_dev (-1) failed for domain 3
06-28 21:25:51.622 1131 1131 E cdsprpcd: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/cdsprpcd.c:47:cdsp daemon will restart after 100ms...
06-28 21:25:51.728 1131 1131 I cdsprpcd: remote_handle_open: Successfully opened handle 0x7f for '":;./\attachguestos on domain 3
06-28 21:25:51.498 0 0 I chatty : uid=0(root) logd identical 5 lines
06-28 21:25:51.615 0 0 E adsprpc : cdsprpcd: fastrpc_get_info_from_dsp: could not obtain dsp information, err val 0xffffffff
06-28 21:25:51.728 0 0 W audit : audit_lost=2971 audit_rate_limit=5 audit_backlog_limit=64
06-28 21:25:51.728 0 0 E audit : rate limit exceeded
06-28 21:25:51.736 0 0 E adsprpc : cdsprpcd: fastrpc_get_info_from_dsp: could not obtain dsp information, err val 0xffffffff
06-28 21:25:51.738 1131 1131 E cdsprpcd: Error 0xffffffff: apps_dev_init failed for domain 3, errno Operation not permitted
06-28 21:25:51.738 1131 1131 E cdsprpcd: Error 0xffffffff: open_dev (-1) failed for domain 3
06-28 21:25:51.740 1131 1131 E cdsprpcd: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/cdsprpcd.c:47:cdsp daemon will restart after 100ms...

I have opened `htop` with adb and su, I see that the process /vendor/bin/cdsprpcd is always consuming around 7-9%, likely because of these errors.

By executing `stop vendor.cdsprpcd` as root, the log flood stops and the cpu usage drops.

Is someone also seeing these messages in adb logcat?

Update: as a workaround I created a magisk executable file on /data/adb/post-fs-data.d/disable_cdsprpcd.sh (chmod +x disable_cdsprpcd.sh) with that command:

#!/bin/sh
stop vendor.cdsprpcd