[PATCH v2 0/5] hw/arm/raspi: Fix SYS_timer to unbrick Linux kernels v3.7+

Philippe Mathieu-Daudé posted 5 patches 3 years, 7 months ago
Test docker-quick@centos7 passed
Test docker-mingw@fedora passed
Test checkpatch passed
Test FreeBSD passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200921035257.434532-1-f4bug@amsat.org
There is a newer version of this series
include/hw/timer/bcm2835_systmr.h | 17 ++++++++---
hw/arm/bcm2835_peripherals.c      | 13 ++++++--
hw/intc/bcm2835_ic.c              |  4 ++-
hw/timer/bcm2835_systmr.c         | 50 ++++++++++++++++++-------------
hw/intc/trace-events              |  4 +++
hw/timer/trace-events             |  4 ++-
6 files changed, 64 insertions(+), 28 deletions(-)
[PATCH v2 0/5] hw/arm/raspi: Fix SYS_timer to unbrick Linux kernels v3.7+
Posted by Philippe Mathieu-Daudé 3 years, 7 months ago
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 v1:
- Extracted unrelated patches to previous series
  (which happened to be mis-rebased)

Based-on: <20200921034729.432931-1-f4bug@amsat.org>
Supersedes: <20200920175825.417680-1-f4bug@amsat.org>

Philippe Mathieu-Daudé (5):
  hw/intc/bcm2835_ic: Trace GPU/CPU IRQ handlers
  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/intc/bcm2835_ic.c              |  4 ++-
 hw/timer/bcm2835_systmr.c         | 50 ++++++++++++++++++-------------
 hw/intc/trace-events              |  4 +++
 hw/timer/trace-events             |  4 ++-
 6 files changed, 64 insertions(+), 28 deletions(-)

-- 
2.26.2

Re: [PATCH v2 0/5] hw/arm/raspi: Fix SYS_timer to unbrick Linux kernels v3.7+
Posted by Philippe Mathieu-Daudé 3 years, 7 months ago
On 9/21/20 5:52 AM, Philippe Mathieu-Daudé wrote:
> 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 v1:
> - Extracted unrelated patches to previous series
>   (which happened to be mis-rebased)
> 
> Based-on: <20200921034729.432931-1-f4bug@amsat.org>
> Supersedes: <20200920175825.417680-1-f4bug@amsat.org>
> 
> Philippe Mathieu-Daudé (5):
>   hw/intc/bcm2835_ic: Trace GPU/CPU IRQ handlers
>   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

I'll respin this series trying to address Luc's comments on patch 4.