Skip to contentSkip to conversation

ALSA: Reduce stall detection timeout in riptide.c

PATCH Applied [email protected] 2 participants 2 messages Dec 3, 2008 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: Reduce stall detection timeout in riptide.c

Reduce the command timeout to 0.5sec. Should be enough to allow a working command interface but removes a RCU stall and slow resume on some revisions where the AC97 revision detection stalls in resume.

---

sound/pci/riptide/riptide.c +1 -1
index e9f0706..d0ccfc6 100644
@@ -172,7 +172,7 @@
 
 #define MAX_WRITE_RETRY  10    /* cmd interface limits */
 #define MAX_ERROR_COUNT  10
-#define CMDIF_TIMEOUT    500000
+#define CMDIF_TIMEOUT    50000
 #define RESET_TRIES      5
 
 #define READ_PORT_ULONG(p)     inl((unsigned long)&(p))
Applied
#1 lore raw

At Wed, 03 Dec 2008 15:32:15 +0100,

Quoted 6 lines · [email protected] wrote:

Reduce the command timeout to 0.5sec. Should be enough to allow a working command interface but removes a RCU stall and slow resume on some revisions where the AC97 revision detection stalls in resume.

Applied. Sounds like a reasonable workaround until the real culprit gets fixed.

thanks,

Takashi

Quoted 23 lines

---

sound/pci/riptide/riptide.c +1 -1
index e9f0706..d0ccfc6 100644
@@ -172,7 +172,7 @@
 
 #define MAX_WRITE_RETRY  10    /* cmd interface limits */
 #define MAX_ERROR_COUNT  10
-#define CMDIF_TIMEOUT    500000
+#define CMDIF_TIMEOUT    50000
 #define RESET_TRIES      5
 
 #define READ_PORT_ULONG(p)     inl((unsigned long)&(p))

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel