Skip to contentSkip to conversation

HPET supports only one IRQ

Qemu-devel Julian Stecklina 1 participant 5 messages Nov 21, 2011 – Nov 4, 2017

lore
Share & tools
lore
#0 lore raw

Public bug reported:

The emulated HPET only supports triggering IRQ 2. Since MSIs are by default disabled, this severely limits the usefulness of the HPET as only one timer block can effectively be used (otherwise they would share IRQ 2). Ideally, the HPET should support as much timer blocks as CPUs and each timer block can be driven by a different IRQ.

TIMER: HPET at fed00000 -> 0xbf500000.
TIMER: HPET vendor 8086 revision 01: LEGACY 64BIT
TIMER: HPET: cap 8086a201 config 0 period 10000000
TIMER: HPET Timer[0]: config 30 int 4
TIMER: HPET Timer[1]: config 30 int 4
TIMER: HPET Timer[2]: config 30 int 4

** Affects: qemu
Importance: Undecided
Status: New

Signature · 26 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/893367

Title:
  HPET supports only one IRQ

Status in QEMU:
  New

Bug description:
  The emulated HPET only supports triggering IRQ 2. Since MSIs are by
  default disabled, this severely limits the usefulness of the HPET as
  only one timer block can effectively be used (otherwise they would
  share IRQ 2). Ideally, the HPET should support as much timer blocks as
  CPUs and each timer block can be driven by a different IRQ.

  TIMER: HPET at fed00000 -> 0xbf500000.
  TIMER: HPET vendor 8086 revision 01: LEGACY 64BIT
  TIMER: HPET: cap 8086a201 config 0 period 10000000
  TIMER: HPET Timer[0]: config 30 int 4
  TIMER: HPET Timer[1]: config 30 int 4
  TIMER: HPET Timer[2]: config 30 int 4

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/893367/+subscriptions
#1 lore raw

The offending code seems to be:

        /* advertise availability of ioapic inti2 */
        timer->config |=  0x00000004ULL << 32;

in hw/hpet.c hpet_reset().

Signature · 26 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/893367

Title:
  HPET supports only one IRQ

Status in QEMU:
  New

Bug description:
  The emulated HPET only supports triggering IRQ 2. Since MSIs are by
  default disabled, this severely limits the usefulness of the HPET as
  only one timer block can effectively be used (otherwise they would
  share IRQ 2). Ideally, the HPET should support as much timer blocks as
  CPUs and each timer block can be driven by a different IRQ.

  TIMER: HPET at fed00000 -> 0xbf500000.
  TIMER: HPET vendor 8086 revision 01: LEGACY 64BIT
  TIMER: HPET: cap 8086a201 config 0 period 10000000
  TIMER: HPET Timer[0]: config 30 int 4
  TIMER: HPET Timer[1]: config 30 int 4
  TIMER: HPET Timer[2]: config 30 int 4

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/893367/+subscriptions
#2 lore raw
In reply to Julian Stecklina

I assume this has been fixed by this commit here:
https://git.qemu.org/?p=qemu.git;a=commitdiff;h=7a10ef51c2397ac4323b
Or is there still something left to do here?

** Changed in: qemu
Status: New => Incomplete

Signature · 26 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/893367

Title:
  HPET supports only one IRQ

Status in QEMU:
  Incomplete

Bug description:
  The emulated HPET only supports triggering IRQ 2. Since MSIs are by
  default disabled, this severely limits the usefulness of the HPET as
  only one timer block can effectively be used (otherwise they would
  share IRQ 2). Ideally, the HPET should support as much timer blocks as
  CPUs and each timer block can be driven by a different IRQ.

  TIMER: HPET at fed00000 -> 0xbf500000.
  TIMER: HPET vendor 8086 revision 01: LEGACY 64BIT
  TIMER: HPET: cap 8086a201 config 0 period 10000000
  TIMER: HPET Timer[0]: config 30 int 4
  TIMER: HPET Timer[1]: config 30 int 4
  TIMER: HPET Timer[2]: config 30 int 4

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/893367/+subscriptions
#3 lore raw
In reply to Julian Stecklina

No. Looks good to me.

Signature · 26 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/893367

Title:
  HPET supports only one IRQ

Status in QEMU:
  Incomplete

Bug description:
  The emulated HPET only supports triggering IRQ 2. Since MSIs are by
  default disabled, this severely limits the usefulness of the HPET as
  only one timer block can effectively be used (otherwise they would
  share IRQ 2). Ideally, the HPET should support as much timer blocks as
  CPUs and each timer block can be driven by a different IRQ.

  TIMER: HPET at fed00000 -> 0xbf500000.
  TIMER: HPET vendor 8086 revision 01: LEGACY 64BIT
  TIMER: HPET: cap 8086a201 config 0 period 10000000
  TIMER: HPET Timer[0]: config 30 int 4
  TIMER: HPET Timer[1]: config 30 int 4
  TIMER: HPET Timer[2]: config 30 int 4

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/893367/+subscriptions
#4 lore raw
In reply to Julian Stecklina

** Changed in: qemu
Status: Incomplete => Fix Released

Signature · 26 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/893367

Title:
  HPET supports only one IRQ

Status in QEMU:
  Fix Released

Bug description:
  The emulated HPET only supports triggering IRQ 2. Since MSIs are by
  default disabled, this severely limits the usefulness of the HPET as
  only one timer block can effectively be used (otherwise they would
  share IRQ 2). Ideally, the HPET should support as much timer blocks as
  CPUs and each timer block can be driven by a different IRQ.

  TIMER: HPET at fed00000 -> 0xbf500000.
  TIMER: HPET vendor 8086 revision 01: LEGACY 64BIT
  TIMER: HPET: cap 8086a201 config 0 period 10000000
  TIMER: HPET Timer[0]: config 30 int 4
  TIMER: HPET Timer[1]: config 30 int 4
  TIMER: HPET Timer[2]: config 30 int 4

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/893367/+subscriptions