--- Lothar Wassmann <[EMAIL PROTECTED]> wrote:

> Hi,
> > However, I'm running into a bug when I try to write to it.
> > I'm still trying to decipher it all, but if you have any ideas,
> > they are welcome.
> > 
> > Thanks!
> > Mike
> > 
[...]

> What's the value of td->hwNextTD? Since you are oviously using
> virtual
> addresses in hwNextED (according to your hexlified dbg output), I
> suspect that hwNextTD also is a virtual address in which case
> dma_to_td() cannot return any reasonable result.
> 

Hi.  Here's some more data dumps:

(gdb) p /x *td
$3 = {hwINFO = 0xa2cc0000, hwCBP = 0xc51f3200, 
      hwNextTD = 0xc115e0c0, hwBE = 0xc51f3fff, hwPSW = {0x0},
      index = 0x0, ed = 0xffc0d040, td_hash = 0x0, next_dl_td =
0x0,
      urb = 0xc51eb8a0, td_dma = 0xc115e000, data_dma = 0xc51f3000,
      td_list = {next = 0xffc0e0ec, prev = 0xffc0d060}}
(gdb) p /x **edp
$5 = {hwINFO = 0xc018ba44, hwTailP = 0xc0188edc,
      hwHeadP =   0xc018ba4c, hwNextED = 0xc0189010,
      dma = 0xc018d134, dummy = 0xc018d134, ed_next = 0xc01af4cc,
      ed_prev = 0xc01af4cc, td_list = {next = 0xc0188ec4,
      prev = 0xc017d248}, state = 0x69, type = 0x73, branch = 0x70,
      interval = 0x3633, load = 0x2d32, last_iso = 0x686f,
      tick = 0x6963}

I'm not sure that I'm using virtual addresses for any of these.
I didn't change that aspect, at any rate.

Do you think this data structure might be broken?  I notice this
bug happen only when transferring larger blocks of data at once.  I
could copy up to 7KiB and sync multiple times, and it would work,
but when I do 32KiB and sync it can fail.

This same situation seems to fit what Olav described, where the
device will send a constant stream of NAKs when this bug manifests.
I wish I had a greater understanding of how this all fits together.
 

Thanks again,
Mike


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to