[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH qemu v3 02/20] Fixing the basic functionality of STM32 timers
From: |
Alex Bennée |
Subject: |
Re: [PATCH qemu v3 02/20] Fixing the basic functionality of STM32 timers |
Date: |
Wed, 06 Dec 2023 15:52:34 +0000 |
User-agent: |
mu4e 1.11.26; emacs 29.1 |
~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
- [PATCH qemu v3 00/20] Fix malfunctioning of T2-T5 timers on the STM32 platform, ~lbryndza, 2023/12/02
- [PATCH qemu v3 02/20] Fixing the basic functionality of STM32 timers, ~lbryndza, 2023/12/02
- Re: [PATCH qemu v3 02/20] Fixing the basic functionality of STM32 timers,
Alex Bennée <=
- [PATCH qemu v3 04/20] Fixing the basic functionality of STM32 timers, ~lbryndza, 2023/12/02
- [PATCH qemu v3 12/20] Fixing the basic functionality of STM32 timers, ~lbryndza, 2023/12/02
- [PATCH qemu v3 05/20] Fixing the basic functionality of STM32 timers, ~lbryndza, 2023/12/02
- [PATCH qemu v3 03/20] Fixing the basic functionality of STM32 timers, ~lbryndza, 2023/12/02
- [PATCH qemu v3 01/20] Fixing the basic functionality of STM32 timers, ~lbryndza, 2023/12/02
- [PATCH qemu v3 06/20] Fixing the basic functionality of STM32 timers, ~lbryndza, 2023/12/02
- [PATCH qemu v3 07/20] Fixing the basic functionality of STM32 timers, ~lbryndza, 2023/12/02
- [PATCH qemu v3 10/20] Fixing the basic functionality of STM32 timers, ~lbryndza, 2023/12/02
- [PATCH qemu v3 08/20] Fixing the basic functionality of STM32 timers, ~lbryndza, 2023/12/02
- [PATCH qemu v3 11/20] Fixing the basic functionality of STM32 timers, ~lbryndza, 2023/12/02