[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 11/21] aspeed/timer: Ensure positive muldiv d
From: |
Joel Stanley |
Subject: |
Re: [Qemu-devel] [PATCH v2 11/21] aspeed/timer: Ensure positive muldiv delta |
Date: |
Wed, 19 Jun 2019 02:15:54 +0000 |
On Tue, 18 Jun 2019 at 16:54, Cédric Le Goater <address@hidden> wrote:
>
> From: Christian Svensson <address@hidden>
>
> If the host decrements the counter register that results in a negative
> delta. This is then passed to muldiv64 which only handles unsigned
> numbers resulting in bogus results.
>
> This fix ensures the delta being operated on is positive.
>
> Test case: kexec a kernel using aspeed_timer and it will freeze on the
> second bootup when the kernel initializes the timer. With this patch
> that no longer happens and the timer appears to run OK.
>
> Signed-off-by: Christian Svensson <address@hidden>
> Signed-off-by: Cédric Le Goater <address@hidden>
Reviewed-by: Joel Stanley <address@hidden>
- [Qemu-devel] [PATCH v2 05/21] aspeed: introduce a configurable number of CPU per machine, (continued)
- [Qemu-devel] [PATCH v2 05/21] aspeed: introduce a configurable number of CPU per machine, Cédric Le Goater, 2019/06/18
- [Qemu-devel] [PATCH v2 06/21] aspeed: add support for multiple NICs, Cédric Le Goater, 2019/06/18
- [Qemu-devel] [PATCH v2 08/21] aspeed/timer: Status register contains reload for stopped timer, Cédric Le Goater, 2019/06/18
- [Qemu-devel] [PATCH v2 07/21] aspeed/timer: Fix behaviour running Linux, Cédric Le Goater, 2019/06/18
- [Qemu-devel] [PATCH v2 09/21] aspeed/timer: Fix match calculations, Cédric Le Goater, 2019/06/18
- [Qemu-devel] [PATCH v2 10/21] aspeed/timer: Provide back-pressure information for short periods, Cédric Le Goater, 2019/06/18
- [Qemu-devel] [PATCH v2 11/21] aspeed/timer: Ensure positive muldiv delta, Cédric Le Goater, 2019/06/18
- [Qemu-devel] [PATCH v2 12/21] aspeed: remove the "ram" link, Cédric Le Goater, 2019/06/18
- [Qemu-devel] [PATCH v2 13/21] aspeed: add a RAM memory region container, Cédric Le Goater, 2019/06/18
- [Qemu-devel] [PATCH v2 14/21] aspeed/smc: add a 'sdram_base' property, Cédric Le Goater, 2019/06/18
- [Qemu-devel] [PATCH v2 15/21] aspeed/smc: add support for DMAs, Cédric Le Goater, 2019/06/18
- [Qemu-devel] [PATCH v2 18/21] aspeed/smc: Calculate checksum on normal DMA, Cédric Le Goater, 2019/06/18
- [Qemu-devel] [PATCH v2 17/21] aspeed/smc: inject errors in DMA checksum, Cédric Le Goater, 2019/06/18
- [Qemu-devel] [PATCH v2 16/21] aspeed/smc: add DMA calibration settings, Cédric Le Goater, 2019/06/18
- [Qemu-devel] [PATCH v2 19/21] aspeed: Add support for the swift-bmc board, Cédric Le Goater, 2019/06/18