From: Hao Wu <wuhaotsh@google.com>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: qemu-devel@nongnu.org, Tyrone Ting <kfting@nuvoton.com>,
Fabiano Rosas <farosas@suse.de>,
Laurent Vivier <lvivier@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
"open list:Nuvoton NPCM7xx" <qemu-arm@nongnu.org>
Subject: Re: [RFC PATCH] tests/qtest: don't step clock at start of npcm7xx periodic IRQ test
Date: Wed, 22 Jan 2025 14:35:18 +0800 [thread overview]
Message-ID: <CAGcCb10qKaXQJCyBBs9mPWKM+zLUSWSVV63BRV7d=Qa1hB8oGQ@mail.gmail.com> (raw)
In-Reply-To: <87ed0wpiy9.fsf@draig.linaro.org>
[-- Attachment #1: Type: text/plain, Size: 1629 bytes --]
On Tue, Jan 21, 2025 at 6:20 PM Alex Bennée <alex.bennee@linaro.org> wrote:
> Hao Wu <wuhaotsh@google.com> writes:
>
> > Have you tried that the test can pass with this? If I remember
> correctly, interrupt won't trigger properly if not advancing the
> > timer
>
> Yes but the IRQ has yet to be enabled at this point.
>
I believe that's the case, so we should be able to remove this line in the
test.
>
> >
> > If the test passes it's probably fine to remove that.
>
> Of course.
>
> >
> > On Mon, Jan 20, 2025 at 11:00 PM Alex Bennée <alex.bennee@linaro.org>
> wrote:
> >
> > Until there are timers enabled the semantics of clock_step_next() will
> > fail. Since d524441a36 (system/qtest: properly feedback results of
> > clock_[step|set]) we will signal a FAIL if time doesn't advance.
> >
> > Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>
Reviewed-by: Hao Wu <wuhaotsh@google.com>
> > ---
> > tests/qtest/npcm7xx_timer-test.c | 1 -
> > 1 file changed, 1 deletion(-)
> >
> > diff --git a/tests/qtest/npcm7xx_timer-test.c
> b/tests/qtest/npcm7xx_timer-test.c
> > index 58f58c2f71..43711049ca 100644
> > --- a/tests/qtest/npcm7xx_timer-test.c
> > +++ b/tests/qtest/npcm7xx_timer-test.c
> > @@ -465,7 +465,6 @@ static void test_periodic_interrupt(gconstpointer
> test_data)
> > int i;
> >
> > tim_reset(td);
> > - clock_step_next();
> >
> > tim_write_ticr(td, count);
> > tim_write_tcsr(td, CEN | IE | MODE_PERIODIC | PRESCALE(ps));
> > --
> > 2.39.5
>
> --
> Alex Bennée
> Virtualisation Tech Lead @ Linaro
>
[-- Attachment #2: Type: text/html, Size: 2696 bytes --]
prev parent reply other threads:[~2025-01-22 6:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20250120150049.3611864-1-alex.bennee@linaro.org>
2025-01-20 23:52 ` [RFC PATCH] tests/qtest: don't step clock at start of npcm7xx periodic IRQ test Hao Wu
2025-01-21 9:53 ` Peter Maydell
2025-01-21 10:19 ` Alex Bennée
2025-01-22 6:35 ` Hao Wu [this message]
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='CAGcCb10qKaXQJCyBBs9mPWKM+zLUSWSVV63BRV7d=Qa1hB8oGQ@mail.gmail.com' \
--to=wuhaotsh@google.com \
--cc=alex.bennee@linaro.org \
--cc=farosas@suse.de \
--cc=kfting@nuvoton.com \
--cc=lvivier@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
/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;
as well as URLs for NNTP newsgroup(s).