From: Dmitry Osipenko <digetx@gmail.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
qemu-arm <qemu-arm@nongnu.org>,
Peter Crosthwaite <crosthwaitepeter@gmail.com>
Subject: Re: [Qemu-devel] [PATCH v15 00/15] PTimer fixes/features and ARM MPTimer conversion
Date: Tue, 6 Sep 2016 13:32:04 +0300 [thread overview]
Message-ID: <d954c190-79a1-d413-c4d2-2f425fad9ee4@gmail.com> (raw)
In-Reply-To: <CAFEAcA9_ihKX0N4J02+yqkqAYU_h6EsHNzK-2dYubrVxBaoNEQ@mail.gmail.com>
On 06.09.2016 01:12, Peter Maydell wrote:
> On 5 September 2016 at 22:52, Dmitry Osipenko <digetx@gmail.com> wrote:
>> On 05.09.2016 21:14, Peter Maydell wrote:
>>> I tried "check this compiles and passes the tests for each commit",
>>> and what I found was that you get a lot of new warnings running
>>> 'make check' about "Timer with period zero, disabling", which were
>>> not there before. Could you look into this and fix it, please?
>
>> Sure, I'll silence those ptimer error messages by making them conditional of
>> qtest_enabled(). The messages are actually harmless, however not very useful in
>> the context of testing. Thanks a lot for returning to that series, I appreciate it.
>
> I had a look at the rest of the patches, but to be honest I found
> it very difficult to figure out whether any of the changes were
> making the right changes or the wrong changes. So it's not clear
> to me that "silence the warning if running under qtest" is right:
> why is the warning being produced at all?
>
The ptimer tests cover all ptimer behaviour cases, including the cases where
ptimer stops because of the error condition. This helps to ensure that further
applied ptimer patches (like new policies) are not affecting old ptimer (policy)
behaviour, including those error cases. So the warning message is being emitted
each time some of the ptimer tests checks the error condition behaviour.
If you have any thoughts on how to make review of this series easier for you,
please tell. I'm open to suggestions.
BTW, I'm going to turn "Fix counter - 1 returned by ptimer_get_count for the
active timer" patch into a ptimer policy. The patch is correct for all of the
current ptimer users, however that "counter - 1" feature could be useful for
some of the future added timers, like nios2 timer [0], and could be already used
by some of the QEMU forks. So it might be better to retain old behaviour for the
default policy.
[0] https://lists.nongnu.org/archive/html/qemu-devel/2016-07/msg06423.html
--
Dmitry
next prev parent reply other threads:[~2016-09-06 10:32 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-21 14:31 [Qemu-devel] [PATCH v15 00/15] PTimer fixes/features and ARM MPTimer conversion Dmitry Osipenko
2016-07-21 14:31 ` [Qemu-devel] [PATCH v15 01/15] hw/ptimer: Change ptimer_get_count to return "1" for the expired timer Dmitry Osipenko
2016-07-21 14:31 ` [Qemu-devel] [PATCH v15 02/15] hw/ptimer: Fix counter - 1 returned by ptimer_get_count for the active timer Dmitry Osipenko
2016-07-21 14:31 ` [Qemu-devel] [PATCH v15 03/15] hw/ptimer: Actually stop timer in case of error Dmitry Osipenko
2016-07-21 14:31 ` [Qemu-devel] [PATCH v15 04/15] hw/ptimer: Introduce timer policy feature Dmitry Osipenko
2016-07-21 14:31 ` [Qemu-devel] [PATCH v15 05/15] tests: Add ptimer tests Dmitry Osipenko
2016-07-21 14:31 ` [Qemu-devel] [PATCH v15 06/15] hw/ptimer: Add "wraparound after one period" policy Dmitry Osipenko
2016-07-21 14:31 ` [Qemu-devel] [PATCH v15 07/15] tests: ptimer: Add tests for " Dmitry Osipenko
2016-07-21 14:31 ` [Qemu-devel] [PATCH v15 08/15] hw/ptimer: Add "continuous trigger" policy Dmitry Osipenko
2016-07-21 14:31 ` [Qemu-devel] [PATCH v15 09/15] tests: ptimer: Add tests for " Dmitry Osipenko
2016-07-21 14:31 ` [Qemu-devel] [PATCH v15 10/15] hw/ptimer: Add "no immediate " Dmitry Osipenko
2016-07-21 14:31 ` [Qemu-devel] [PATCH v15 11/15] tests: ptimer: Add tests for " Dmitry Osipenko
2016-07-21 14:31 ` [Qemu-devel] [PATCH v15 12/15] hw/ptimer: Add "no immediate reload" policy Dmitry Osipenko
2016-07-21 14:31 ` [Qemu-devel] [PATCH v15 13/15] tests: ptimer: Add tests for " Dmitry Osipenko
2016-07-21 14:31 ` [Qemu-devel] [PATCH v15 14/15] arm_mptimer: Convert to use ptimer Dmitry Osipenko
2016-07-21 14:31 ` [Qemu-devel] [PATCH v15 15/15] tests: Add tests for the ARM MPTimer Dmitry Osipenko
2016-09-05 18:14 ` [Qemu-devel] [PATCH v15 00/15] PTimer fixes/features and ARM MPTimer conversion Peter Maydell
2016-09-05 21:52 ` Dmitry Osipenko
2016-09-05 22:12 ` Peter Maydell
2016-09-06 10:32 ` Dmitry Osipenko [this message]
2016-09-06 10:36 ` Peter Maydell
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=d954c190-79a1-d413-c4d2-2f425fad9ee4@gmail.com \
--to=digetx@gmail.com \
--cc=crosthwaitepeter@gmail.com \
--cc=peter.maydell@linaro.org \
--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).