From: "Alex Bennée" <alex.bennee@linaro.org>
To: ~lbryndza <lbryndza@git.sr.ht>
Cc: qemu-devel@nongnu.org, ~lbryndza <lbryndza.oss@icloud.com>,
Alistair Francis <alistair23@gmail.com>,
Peter Maydell <peter.maydell@linaro.org>
Subject: Re: [PATCH qemu v3 02/20] Fixing the basic functionality of STM32 timers
Date: Wed, 06 Dec 2023 15:52:34 +0000 [thread overview]
Message-ID: <87wmtrz5tp.fsf@draig.linaro.org> (raw)
In-Reply-To: <170152443229.18048.53824064267512246-2@git.sr.ht> (lbryndza@git.sr.ht's message of "Sat, 02 Dec 2023 13:05:19 +0100")
~lbryndza <lbryndza@git.sr.ht> writes:
> From: Lucjan Bryndza <lbryndza.oss@icloud.com>
>
> The current implementation of timers does not work properly
> even in basic functionality. A counter configured to report
> an interrupt every 10ms reports the first interrupts after a
> few seconds. There are also no properly implemented count up an
> count down modes. This commit fixes bugs with interrupt
> reporting and implements the basic modes of the counter's
> time-base block.
>
> Remove wrong qemu timer implementation
I suspect this breaks bisectability of the series. Each point in the
series should still be able to compile and at least function as well as
it did before. So in this case I think this patch needs to be merged
with the patch that brings in the replacement functionality.
>
> Signed-off-by: Lucjan Bryndza <lbryndza.oss@icloud.com>
> ---
> hw/timer/stm32f2xx_timer.c | 55 ++++----------------------------------
> 1 file changed, 5 insertions(+), 50 deletions(-)
>
> diff --git a/hw/timer/stm32f2xx_timer.c b/hw/timer/stm32f2xx_timer.c
> index ba8694dcd3..f03f594a17 100644
> --- a/hw/timer/stm32f2xx_timer.c
> +++ b/hw/timer/stm32f2xx_timer.c
> @@ -23,12 +23,17 @@
> */
>
> #include "qemu/osdep.h"
> +#include "qapi/error.h"
> #include "hw/irq.h"
> #include "hw/qdev-properties.h"
> #include "hw/timer/stm32f2xx_timer.h"
> #include "migration/vmstate.h"
> #include "qemu/log.h"
> #include "qemu/module.h"
> +#include "qemu/typedefs.h"
> +#include "qemu/timer.h"
> +#include "qemu/main-loop.h"
> +#include "sysemu/dma.h"
Seems odd to increase the includes needed when the rest of the patch
just deletes code.
<snip>
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
next prev parent reply other threads:[~2023-12-06 15:53 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-02 13:40 [PATCH qemu v3 00/20] Fix malfunctioning of T2-T5 timers on the STM32 platform ~lbryndza
2023-12-02 11:55 ` [PATCH qemu v3 01/20] Fixing the basic functionality of STM32 timers ~lbryndza
2023-12-02 12:05 ` [PATCH qemu v3 02/20] " ~lbryndza
2023-12-06 15:52 ` Alex Bennée [this message]
2023-12-02 12:09 ` [PATCH qemu v3 03/20] " ~lbryndza
2023-12-02 12:11 ` [PATCH qemu v3 04/20] " ~lbryndza
2023-12-02 12:12 ` [PATCH qemu v3 05/20] " ~lbryndza
2023-12-02 12:13 ` [PATCH qemu v3 06/20] " ~lbryndza
2023-12-02 12:15 ` [PATCH qemu v3 07/20] " ~lbryndza
2023-12-02 12:16 ` [PATCH qemu v3 08/20] " ~lbryndza
2023-12-02 12:18 ` [PATCH qemu v3 09/20] " ~lbryndza
2023-12-02 12:18 ` [PATCH qemu v3 10/20] " ~lbryndza
2023-12-02 12:19 ` [PATCH qemu v3 11/20] " ~lbryndza
2023-12-02 12:19 ` [PATCH qemu v3 12/20] " ~lbryndza
2023-12-02 12:20 ` [PATCH qemu v3 13/20] " ~lbryndza
2023-12-02 12:21 ` [PATCH qemu v3 14/20] " ~lbryndza
2023-12-02 12:21 ` [PATCH qemu v3 15/20] " ~lbryndza
2023-12-02 12:22 ` [PATCH qemu v3 16/20] " ~lbryndza
2023-12-02 12:23 ` [PATCH qemu v3 17/20] " ~lbryndza
2023-12-02 12:24 ` [PATCH qemu v3 18/20] " ~lbryndza
2023-12-02 12:26 ` [PATCH qemu v3 19/20] " ~lbryndza
2023-12-02 12:28 ` [PATCH qemu v3 20/20] " ~lbryndza
2023-12-06 1:04 ` [PATCH qemu v3 00/20] Fix malfunctioning of T2-T5 timers on the STM32 platform Alistair Francis
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=87wmtrz5tp.fsf@draig.linaro.org \
--to=alex.bennee@linaro.org \
--cc=alistair23@gmail.com \
--cc=lbryndza.oss@icloud.com \
--cc=lbryndza@git.sr.ht \
--cc=peter.maydell@linaro.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 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.