Frequency switching stability issues on Q820

Hi,

I am running benchmark utility (cpufreq-bench) in Linux Debian (Kernel version 4.14.96) https://git.linaro.org/landing-teams/working/qualcomm/kernel.git/log/?h=release/qcomlt-4.14 and rootfs http://snapshots.linaro.org/96boards/dragonboard820c/linaro/debian/361/ on Q820 based board.

But when i run benchmark utility, Board get crashed sometime. sometime cpufreq-bench completed successfully, but crash is observed 1 in a 5 time test run. Attaching crash logs here https://pastebin.com/Eu9r79gQ

I am running cpufreq-bench on all (4) cpu using below commands:

cpufreq-bench -l 25000 -s 25000 -n 200 -y 25000 -x 25000 -r 5 -c 0 &
cpufreq-bench -l 25000 -s 25000 -n 200 -y 25000 -x 25000 -r 5 -c 1 &
cpufreq-bench -l 25000 -s 25000 -n 200 -y 25000 -x 25000 -r 5 -c 2 &
cpufreq-bench -l 25000 -s 25000 -n 200 -y 25000 -x 25000 -r 5 -c 3 &

Can someone suggest how to debug this issue?

Well we think it could be related to doing frequency scaling without doing voltage scaling (which could be fixed in msm8996 CPR driver). You nmay want to test this patch: https://lore.kernel.org/patchwork/patch/937453/ but it has been reverted because causing some kernel panics AFAIKā€¦

I have tried patch https://lore.kernel.org/patchwork/patch/937453/ you suggested, After this patch board is stuck at boot time and after that it crashed. so no successful boot.

Attaching the log here https://pastebin.com/j3y3S69Z. I am trying to debug what cause an issue.

I have also tried last 3 patch from show related link, but board is not booting in that case also. Attaching the log here: https://pastebin.com/M3eYyEPd