Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102936404
D34117.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
589 B
Referenced Files
None
Subscribers
None
D34117.diff
View Options
diff --git a/sys/dev/sound/pci/hda/hdac.c b/sys/dev/sound/pci/hda/hdac.c
--- a/sys/dev/sound/pci/hda/hdac.c
+++ b/sys/dev/sound/pci/hda/hdac.c
@@ -384,13 +384,13 @@
* re-examine GIS then we can leave it set and never get an interrupt
* again.
*/
+ hdac_lock(sc);
intsts = HDAC_READ_4(&sc->mem, HDAC_INTSTS);
- while ((intsts & HDAC_INTSTS_GIS) != 0) {
- hdac_lock(sc);
+ while (intsts != 0xffffffff && (intsts & HDAC_INTSTS_GIS) != 0) {
hdac_one_intr(sc, intsts);
- hdac_unlock(sc);
intsts = HDAC_READ_4(&sc->mem, HDAC_INTSTS);
}
+ hdac_unlock(sc);
}
static void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 11:33 PM (21 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14725338
Default Alt Text
D34117.diff (589 B)
Attached To
Mode
D34117: hdac: Handle interrupts racing with device suspend
Attached
Detach File
Event Timeline
Log In to Comment