mx8mm: u-boot: psci doesn't reset the board without WDOG_B

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

mx8mm: u-boot: psci doesn't reset the board without WDOG_B

跳至解决方案
3,581 次查看
flaviosuligoi
Contributor IV

Hi all,

I removed both all wdogs initialization and the pinmux setting for WDOG_B pin and the board reset doesn't work anymore. It hangs after calling the function "invoke_psci_fn" with the parameter "PSCI_0_2_FN_SYSTEM_RESET", so I deduce that the PSCI fw is not able to reset the CPU.

If I re-enable only the pinmux setting for WDOG_B pin, the reset works.

My question is: is the PSCI firmware, for the function "PSCI_0_2_FN_SYSTEM_RESET", able to move the WDOG_B pin and so it needs this pin to reset the board?

Regards,

Flavio

0 项奖励
回复
1 解答
3,534 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Flavio

 

what bsp used in the case, one can try to debug it starting from nxp codes:

https://source.codeaurora.org/external/imx/imx-atf/tree/plat/imx/imx8m/imx8mm/imx8mm_psci.c?h=imx_5....

use AN4553 Using Open Source Debugging Tools for Linux on i.MX Processors
https://www.nxp.com/docs/en/application-note/AN4553.pdf

 

Best regards
igor

 

在原帖中查看解决方案

0 项奖励
回复
6 回复数
3,571 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Flavio

 

without using wdog connections (shortly removing power from all board)

it is not possible to implement reliable reset, as some board components can be left

in random state. NXP boards use reset solution with wdog, on

CPU WDOG_B Reset, PMIC U8C on p.12 spf-SPF-31399 schematic

i.MX 8M Mini Evaluation Kit LPDDR4 Design Files

 

Best regards
igor

0 项奖励
回复
3,562 次查看
flaviosuligoi
Contributor IV

Hi Igor,

ok, the best reset solution is using the WDOG_B, but my question is now related to the PSCI fw: 

is the PSCI firmware, for the function "PSCI_0_2_FN_SYSTEM_RESET", able to move the WDOG_B pin and so it needs this pin to reset the board?

In other words, in the kernel, I can remove the wdog1 from the machine_restart notifiers chain and use the wdog1 for other purposes, since the PSCI_0_2_FN_SYSTEM_RESET function uses the WDOG_B on its own?

Thanks,

Flavio

 

0 项奖励
回复
3,549 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Flavio


sorry I could not understand question. So You wish to remove WDOG_B

from PSCI firmware ?

https://source.codeaurora.org/external/imx/imx-atf/tree/plat/imx/imx8m/imx8mm/imx8mm_psci.c?h=imx_5....

 


Best regards
igor

0 项奖励
回复
3,540 次查看
flaviosuligoi
Contributor IV

Hi Igor,

I don't want to remove the WDOG_B from the PSCI fw, I'd like only to understand why, when the board is rebooted by the PSCI fw, the WDOG_B toggles. I suppose that the fw moves it, right?

Regards,

Flavio

0 项奖励
回复
3,535 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Flavio

 

what bsp used in the case, one can try to debug it starting from nxp codes:

https://source.codeaurora.org/external/imx/imx-atf/tree/plat/imx/imx8m/imx8mm/imx8mm_psci.c?h=imx_5....

use AN4553 Using Open Source Debugging Tools for Linux on i.MX Processors
https://www.nxp.com/docs/en/application-note/AN4553.pdf

 

Best regards
igor

 

0 项奖励
回复
3,508 次查看
flaviosuligoi
Contributor IV

Hi Igor,

ok, I'll analyze in details the sources of the imx-atf code.

Thanks,

 

Flavio

0 项奖励
回复