Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use IRQ2 for HPET. #353

Open
todo bot opened this issue Jun 27, 2019 · 0 comments
Open

Use IRQ2 for HPET. #353

todo bot opened this issue Jun 27, 2019 · 0 comments
Assignees
Labels
project-kernel Related to the kernel status-upstream Blocked by an upstream bug todo 🗒️ Created by the todo bot

Comments

@todo
Copy link

todo bot commented Jun 27, 2019

Idealy, HPET should be using IRQ2 (which seems to be generally wired properly). Unfortunately, qemu has an unfortunate bug where interrupts for IRQ2 gets ignored.
As a workaround, we currently use IRQ16 as the timer IRQ. This is not very portable - but it'll do until we have a proper IRQ allocation scheme.
Upstream bug: https://bugs.launchpad.net/qemu/+bug/1834051


// TODO: Use IRQ2 for HPET.
// BODY: Idealy, HPET should be using IRQ2 (which seems to be generally
// BODY: wired properly). Unfortunately, qemu has an unfortunate bug where
// BODY: interrupts for IRQ2 gets ignored.
// BODY:
// BODY: As a workaround, we currently use IRQ16 as the timer IRQ. This is
// BODY: not very portable - but it'll do until we have a proper IRQ
// BODY: allocation scheme.
// BODY:
// BODY: Upstream bug: https://bugs.launchpad.net/qemu/+bug/1834051
// Route the timer to the IRQ 16. IRQ 2 is broken, and IRQ 0 is not


This issue was generated by todo based on a TODO comment in 4f01071 when #348 was merged. cc @roblabla.
@todo todo bot assigned roblabla Jun 27, 2019
@todo todo bot added the todo 🗒️ Created by the todo bot label Jun 27, 2019
@roblabla roblabla added project-kernel Related to the kernel status-upstream Blocked by an upstream bug labels Jun 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project-kernel Related to the kernel status-upstream Blocked by an upstream bug todo 🗒️ Created by the todo bot
Projects
None yet
Development

No branches or pull requests

1 participant