public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Michal Simek <michal.simek@amd.com>
Cc: Angelo Dureghello <angelo@kernel-space.org>,
	Love Kumar <love.kumar@amd.com>,
	u-boot@lists.denx.de, git@xilinx.com, Marek Vasut <marex@denx.de>
Subject: Re: [PATCH v3] test/py: reset: Add a test for reset command
Date: Thu, 7 Mar 2024 07:55:25 -0500	[thread overview]
Message-ID: <20240307125525.GF1523872@bill-the-cat> (raw)
In-Reply-To: <c0bbe63d-adee-456f-bcf8-44579aa2593a@amd.com>

[-- Attachment #1: Type: text/plain, Size: 2759 bytes --]

On Thu, Mar 07, 2024 at 09:26:42AM +0100, Michal Simek wrote:
> 
> 
> On 3/7/24 08:56, Angelo Dureghello wrote:
> > Hi Tom,
> > 
> > On 07/03/24 1:10 AM, Tom Rini wrote:
> > > On Thu, Mar 07, 2024 at 12:36:42AM +0100, Angelo Dureghello wrote:
> > > > Hi,
> > > > 
> > > > On 05/03/24 1:34 PM, Michal Simek wrote:
> > > > > 
> > > > > 
> > > > > On 3/3/24 22:58, Angelo Dureghello wrote:
> > > > > > Hi Tom,
> > > > > > > On Tue, Feb 20, 2024 at 01:11:38PM +0530, Love Kumar wrote:
> > > > > > > > Add a test for reset commands which performs resetting of
> > > > > > > > CPU, It does COLD reset by default and WARM reset with -w
> > > > > > > > option. Signed-off-by: Love Kumar <love.kumar@amd.com>
> > > > > > > > Reviewed-by: Tom Rini <trini@konsulko.com> --- Changes in
> > > > > > > > v2: - Set bootmode through boardenv if modeboot is not
> > > > > > > > defined Changes in v3: - Fix the issue with bad pattern
> > > > > > > > found on console --- test/py/tests/test_reset.py | 61
> > > > > > > > +++++++++++++++++++++++++++++++++++++ 1 file changed, 61
> > > > > > > > insertions(+) create mode 100644 test/py/tests/test_reset.py
> > > > > > > I had hoped this was all sorted out now, but both this and the
> > > > > > > saveenv test cause qemu_m68k to fail now. See:
> > > > > > > https://source.denx.de/u-boot/u-boot/-/jobs/791635
> > > > > > looking into this.
> > > > > 
> > > > > Is reset implemented in qemu? It should be skipped if it is not.
> > > > > 
> > > > yes, seems not implemented
> > > > 
> > > > => reset
> > > > => reset -w
> > > > =>
> > > > =>
> > > > 
> > > > Not finding any trace in the qemu code related to
> > > > 
> > > > out_8(&rcm->rcr, RCM_RCR_SOFTRST);
> > > 
> > > Does reset work on the real HW, or can you not test? What I'm wondering
> > > is if we have a missing feature on the board/arch code (and should
> > > disable the reset command) or a problem with QEMU.
> > > 
> > I don't have the exact hardware (m5208evb) but:
> > 
> > 1) i checked by tracing that on qemu the reset function is properly called
> > 
> > => reset
> > resetting, RCR fc0a0000
> > 
> > 2) reset register address is correct. I checked also that writing
> > directly to it by mw.b does now produce the reset,
> > 
> > => reset
> > resetting, RCR fc0a0000
> > 
> > => mw.b 0xfc0a0000 80
> > =>
> > 
> > So looks not implemented in qemu.
> 
> ok. That means that we shouldn't run reset test inside CI loop for this platform.

Agreed.  The TEST_PY_TEST_SPEC variable in both of the pipelines can be
used to say "not reset" for this platform in the next rev. It would also
be nice to file a bug report with QEMU too I think. Thanks for digging
in to this everyone.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  reply	other threads:[~2024-03-07 12:55 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-20  7:41 [PATCH v3] test/py: reset: Add a test for reset command Love Kumar
2024-02-20 20:04 ` Tom Rini
2024-03-02 15:18 ` Tom Rini
2024-03-03 21:58   ` Angelo Dureghello
2024-03-05 12:34     ` Michal Simek
2024-03-06 23:36       ` Angelo Dureghello
2024-03-07  0:10         ` Tom Rini
2024-03-07  7:56           ` Angelo Dureghello
2024-03-07  8:26             ` Michal Simek
2024-03-07 12:55               ` Tom Rini [this message]
2024-03-08  6:40                 ` Angelo Dureghello
2024-03-11  8:41                 ` Angelo Dureghello
2024-03-11  9:10                   ` Love Kumar
2024-03-11 14:39                     ` Tom Rini
2024-03-11 14:52                       ` Michal Simek
2024-03-11 15:09                         ` Tom Rini
2024-03-11 15:14                           ` Michal Simek
2024-03-11 15:15                             ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240307125525.GF1523872@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=angelo@kernel-space.org \
    --cc=git@xilinx.com \
    --cc=love.kumar@amd.com \
    --cc=marex@denx.de \
    --cc=michal.simek@amd.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox