* [Qemu-devel] [PATCH] HDA: Honor WAKEEN bits when deciding to raise an interrupt on codec status
@ 2010-11-07 15:12 François Revol
2010-11-07 17:24 ` malc
0 siblings, 1 reply; 2+ messages in thread
From: François Revol @ 2010-11-07 15:12 UTC (permalink / raw)
To: qemu-devel
From 2e6c61248c76d3f0c511658b9f34660d034703a4 Mon Sep 17 00:00:00 2001
HDA: Honor WAKEEN bits when deciding to raise an interrupt on codec status change.
This prevents an interrupt storm with the Haiku HDA driver which does not handle codec status changes in the irq handler.
Signed-off-by: François Revol <revol@free.fr>
---
hw/intel-hda.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/hw/intel-hda.c b/hw/intel-hda.c
index ccb059d..f1bd203 100644
--- a/hw/intel-hda.c
+++ b/hw/intel-hda.c
@@ -235,7 +235,7 @@ static void intel_hda_update_int_sts(IntelHDAState *d)
if (d->rirb_sts & ICH6_RBSTS_OVERRUN) {
sts |= (1 << 30);
}
- if (d->state_sts) {
+ if (d->state_sts & d->wake_en) {
sts |= (1 << 30);
}
@@ -617,6 +617,7 @@ static const struct IntelHDAReg regtab[] = {
[ ICH6_REG_WAKEEN ] = {
.name = "WAKEEN",
.size = 2,
+ .wmask = 0x3fff,
.offset = offsetof(IntelHDAState, wake_en),
},
[ ICH6_REG_STATESTS ] = {
--
1.7.2.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] HDA: Honor WAKEEN bits when deciding to raise an interrupt on codec status
2010-11-07 15:12 [Qemu-devel] [PATCH] HDA: Honor WAKEEN bits when deciding to raise an interrupt on codec status François Revol
@ 2010-11-07 17:24 ` malc
0 siblings, 0 replies; 2+ messages in thread
From: malc @ 2010-11-07 17:24 UTC (permalink / raw)
To: François Revol; +Cc: qemu-devel
On Sun, 7 Nov 2010, Fran?ois Revol wrote:
> From 2e6c61248c76d3f0c511658b9f34660d034703a4 Mon Sep 17 00:00:00 2001
>
> HDA: Honor WAKEEN bits when deciding to raise an interrupt on codec
> status change. This prevents an interrupt storm with the Haiku HDA
> driver which does not handle codec status changes in the irq handler.
>
Talk this over with the author of intel hda.
--
mailto:av1474@comtv.ru
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-07 17:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-07 15:12 [Qemu-devel] [PATCH] HDA: Honor WAKEEN bits when deciding to raise an interrupt on codec status François Revol
2010-11-07 17:24 ` malc
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).