Bug 7694
Summary: | Audigy NX normal playback impossible | ||
---|---|---|---|
Product: | Drivers | Reporter: | Denis Zalewsky (oculus) |
Component: | USB | Assignee: | Greg Kroah-Hartman (greg) |
Status: | CLOSED CODE_FIX | ||
Severity: | high | CC: | dbrownell, protasnb, stern |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.17 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Bug Depends on: | |||
Bug Blocks: | 5089 | ||
Attachments: | Patch for this bug |
Description
Denis Zalewsky
2006-12-16 14:41:37 UTC
It's not the same problem as being discussed in those threads. The thread "[PATCH 15/15] usbaudio retries EL2NSYNC" is a temporary workaround for a bug caused by/exposed by the new scheduler patch, which is not yet in any mainline kernel, and happens only before playback begins. The thread "PATCH 15/15] ehci-hcd: full-featured EHCI budgeter/scheduler" is relevant primarily because it entirely replaces the code that can return that error (as the existing code in the mainline kernel appears to be broken in that I can't figure out what it intends to do). Monty Any updates on the problem? Does it still exist with latest kernel? Thanks. If I apply the following changes everything works fine. Anyway the whole control flow branch where this patch applied performs some calculations w/o any practical result. And to understand what is the better way to fix first I should understand why this code has been added sometimes before. Maybe it is rather old and deprecated but maybe it is still actual. --- a/drivers/usb/host/ehci-sched.c +++ b/drivers/usb/host/ehci-sched.c @@ -1347,7 +1347,7 @@ iso_stream_schedule ( if (likely (!list_empty (&stream->td_list))) { start = stream->next_uframe; if (start < now) - start += mod; + start = now; if (likely ((start + sched->span) < max)) goto ready; /* else fell behind; someday, try to reschedule */ This will be definitely useful for the developers to know, adding appropriate people... Denis, if the problem still present with the latest kernel, can you post your patch and question to lkml please. Created attachment 15761 [details]
Patch for this bug
Can you try this patch from Alan Stern? It seems what will address this. Accordingly to Laurent Pinchart probably the patch will go into 2.6.26
Thank you! I will try it and report results This could be fixed too with 2.6.25 without the patch, at least for uvcvideo seems the case. Please test without the patch on a 2.6.25 kernel too. Fixed by b40e43fcc532fa44a375a37d592e32cd0d50fe7a yes? If nobody says otherwise, we'll assume this bug is now fixed... I have tested on vanilla 2.6.25 and the issue exists there and it seems became more prominent. So, now I should try to build with attached patch and with b40e43fcc532fa44a375a37d592e32cd0d50fe7a. 2 David Brownell: In which repository b40e43fcc532fa44a375a37d592e32cd0d50fe7a exists? I see Linus repository doesn't contain it yet. b40e43fcc532fa44a375a37d592e32cd0d50fe7a has been in mainline for long enough that its date says "May 20 2008". Which is FWIW after 2.6.25 froze... I have no idea why you're looking at 2.6.25 when 2.6.27-rc4 is current. 2 David Brownell: regarding 2.6.25: it was reply to previous post of Herton Ronaldo Krzesinski, look for previous comments. I can confirm the issue is not actual in 2.6.26 (where b40e43fcc532fa44a375a37d592e32cd0d50fe7a is included) and can be closed. |