]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm64: zynqmp: Print an error for split to lock mode switch
authorPadmarao Begari <padmarao.begari@amd.com>
Mon, 30 Sep 2024 04:38:13 +0000 (10:08 +0530)
committerMichal Simek <michal.simek@amd.com>
Fri, 25 Oct 2024 12:10:31 +0000 (14:10 +0200)
commit0ac27a62f9857837739585caa86fdd039556a31d
tree87bf8986879bdd64d2923d1f8998a62fdbf8e348
parent08ae12be8509daf3d1c5a148b8a50c0ffb6457c2
arm64: zynqmp: Print an error for split to lock mode switch

The zynqmp tcminit crashes the U-Boot when switching from
r5-mode "split" to "lockstep" instead it should throw an error.
When cpu is enabled, the check_tcm_mode() function checks
if the previous mode is "split", switch mode is "lockstep" then
it returns the error code and the initialize_tcm() function is not
updating the global control register of the RPU instead it prints
the error message. When cpu is disabled, the check_tcm_mode()
function returns the success code for switch split to lockstep mode.

Signed-off-by: Padmarao Begari <padmarao.begari@amd.com>
Link: https://lore.kernel.org/r/20240930043814.530181-2-padmarao.begari@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
arch/arm/mach-zynqmp/cpu.c
arch/arm/mach-zynqmp/include/mach/sys_proto.h
arch/arm/mach-zynqmp/mp.c