* sandbox: "Reset Status: WARM Reset Status: COLD"
@ 2022-12-29 9:18 Heinrich Schuchardt
2022-12-29 22:38 ` Simon Glass
0 siblings, 1 reply; 2+ messages in thread
From: Heinrich Schuchardt @ 2022-12-29 9:18 UTC (permalink / raw)
To: Simon Glass; +Cc: U-Boot Mailing List
Hello Simon,
the sandbox prints the following line when started:
"Reset Status: WARM Reset Status: COLD"
This does not make much sense. Either the last reset was WARM or COLD
but not both.
sandbox_sysreset_get_status() and sandbox_warm_sysreset_get_status()
should determine the reset status before printing anything incorrect.
After executing the reset command
state->last_sysreset == 4
This cannot be correct. It seems to be due to:
arch/sandbox/cpu/state.c:365: state->last_sysreset = SYSRESET_COUNT;
state_reset_for_test() should only be called in tests.
Best regards
Heinrich
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: sandbox: "Reset Status: WARM Reset Status: COLD"
2022-12-29 9:18 sandbox: "Reset Status: WARM Reset Status: COLD" Heinrich Schuchardt
@ 2022-12-29 22:38 ` Simon Glass
0 siblings, 0 replies; 2+ messages in thread
From: Simon Glass @ 2022-12-29 22:38 UTC (permalink / raw)
To: Heinrich Schuchardt; +Cc: U-Boot Mailing List
Hi Heinrich,
On Thu, 29 Dec 2022 at 03:18, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>
> Hello Simon,
>
> the sandbox prints the following line when started:
> "Reset Status: WARM Reset Status: COLD"
This seems to be when you use the -T flag.
>
> This does not make much sense. Either the last reset was WARM or COLD
> but not both.
>
Indeed!
> sandbox_sysreset_get_status() and sandbox_warm_sysreset_get_status()
> should determine the reset status before printing anything incorrect.
>
> After executing the reset command
>
> state->last_sysreset == 4
>
> This cannot be correct. It seems to be due to:
>
> arch/sandbox/cpu/state.c:365: state->last_sysreset = SYSRESET_COUNT;
>
> state_reset_for_test() should only be called in tests.
It needs to be called at init also. But actually the name is
confusing. How about state_reset_common() or something like that?
For testing we have two sysreset devices. Perhaps print_resetinfo()
should only print the first?
Regards,
Simon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-12-29 22:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-29 9:18 sandbox: "Reset Status: WARM Reset Status: COLD" Heinrich Schuchardt
2022-12-29 22:38 ` Simon Glass
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.