[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Added periodic IRQ support for bcm2836_control
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH] Added periodic IRQ support for bcm2836_control local timer |
Date: |
Sat, 9 Mar 2019 14:39:00 +0000 |
On Sat, 9 Mar 2019 at 01:03, bzt <address@hidden> wrote:
> Thanks for your answers. If I don't clear the INTENABLE flag, then the
> IRQ would keep firing constantly. This is not how the real hardware
> works: it triggers the IRQ once, and then it inhibits. The timer won't
> trigger the IRQ again until you acknowledge it by writing the INTFLAG
> into the ack register. My solution emulates this behaviour. That's
> what the triggered flag was for in my original patch. Should I bring
> that flag back or is the current solution acceptable knowing this?
Huh. The QA7 spec doc is pretty clear that the IRQ is kept high
until the guest acknowledges it (and that is how in general
IRQ/FIQ works for Arm -- it is level triggered and it stays high
until the guest silences the device):
"An interrupt is generated as long as the interrupt flag is set
and the interrupt-enable bit is set" and "The user must clear the
interrupt flag".
thanks
-- PMM
- Re: [Qemu-devel] [PATCH] Added periodic IRQ support for bcm2836_control local timer, Peter Maydell, 2019/03/04
- Re: [Qemu-devel] [PATCH] Added periodic IRQ support for bcm2836_control local timer, bzt, 2019/03/04
- Re: [Qemu-devel] [PATCH] Added periodic IRQ support for bcm2836_control local timer, bzt, 2019/03/04
- Re: [Qemu-devel] [PATCH] Added periodic IRQ support for bcm2836_control local timer, Peter Maydell, 2019/03/05
- Re: [Qemu-devel] [PATCH] Added periodic IRQ support for bcm2836_control local timer, bzt, 2019/03/07
- Re: [Qemu-devel] [PATCH] Added periodic IRQ support for bcm2836_control local timer, Peter Maydell, 2019/03/07
- Re: [Qemu-devel] [PATCH] Added periodic IRQ support for bcm2836_control local timer, bzt, 2019/03/07
- Re: [Qemu-devel] [PATCH] Added periodic IRQ support for bcm2836_control local timer, Peter Maydell, 2019/03/07
- Re: [Qemu-devel] [PATCH] Added periodic IRQ support for bcm2836_control local timer, bzt, 2019/03/08
- Re: [Qemu-devel] [PATCH] Added periodic IRQ support for bcm2836_control local timer,
Peter Maydell <=
- Re: [Qemu-devel] [PATCH] Added periodic IRQ support for bcm2836_control local timer, bzt, 2019/03/10
- Re: [Qemu-devel] [PATCH] Added periodic IRQ support for bcm2836_control local timer, Peter Maydell, 2019/03/12
- Re: [Qemu-devel] [PATCH] Added periodic IRQ support for bcm2836_control local timer, bzt, 2019/03/13