mbox series

[v3,0/4] hw/arm/raspi: Fix SYS_timer to unbrick Linux kernels v3.7+

Message ID 20201002164216.1741110-1-f4bug@amsat.org
Headers show
Series hw/arm/raspi: Fix SYS_timer to unbrick Linux kernels v3.7+ | expand

Message

Philippe Mathieu-Daudé Oct. 2, 2020, 4:42 p.m. UTC
In this series we implement the COMPARE registers of the
SYS_timer, since they are used by Linux.

This fixes the hang reported by Niek here:
https://www.mail-archive.com/qemu-devel@nongnu.org/msg682090.html

Since v2:
- Fixed issue in COMPARE register reported by Luc

Since v1:
- Extracted unrelated patches to previous series
  (which happened to be mis-rebased)

Philippe Mathieu-Daudé (4):
  hw/timer/bcm2835: Introduce BCM2835_SYSTIMER_COUNT definition
  hw/timer/bcm2835: Rename variable holding CTRL_STATUS register
  hw/timer/bcm2835: Support the timer COMPARE registers
  hw/arm/bcm2835_peripherals: Correctly wire the SYS_timer IRQs

 include/hw/timer/bcm2835_systmr.h | 17 +++++++---
 hw/arm/bcm2835_peripherals.c      | 13 ++++++--
 hw/timer/bcm2835_systmr.c         | 54 +++++++++++++++++++------------
 hw/timer/trace-events             |  4 ++-
 4 files changed, 61 insertions(+), 27 deletions(-)