03-19-2020, 03:54 AM
(03-18-2020, 04:05 AM)sigmaris Wrote: I guess you're using Rockchip's BSP 4.4 kernel (or one derived from it like Ayufan's or mrfixit2001's)? I think the Rockchip BSP u-boot (and actually more importantly their binary Trusted Firmware) is probably better matched with Rockchip BSP kernel. The 4.4 kernel is probably making some call to the Rockchip binary firmware to reboot the system, which the open-source ARM Trusted Firmware doesn't interpret properly. All I can say is I have been using this u-boot with 5.x Linux kernels and reboot (with Linux calling TF-A via PSCI to reboot) works successfully.
yes, the reboot problem is with the 4.4 kernel from ayufan. The psci is just fine like in linux-mainline-kernel.
But I found the cause in the reboot_notifier of driver/cpufreq/rockchip-cpufreq.c
This driver is missing from linux-mainline-kernel.
When disabling CONFIG_ARM_ROCKCHIP_CPUFREQ the 4.4 kernel reboots just fine with your u-boot.
I guess this is also the reason, why the mainline-kernel runs painfully slow when booting with the old u-boot from ayufan.