Bug 22182
Summary: | usbmon: completed ISO packet content is not fully arriving with mmap | ||
---|---|---|---|
Product: | Drivers | Reporter: | Márton Németh (nm127) |
Component: | USB | Assignee: | Greg Kroah-Hartman (greg) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | florian |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.36 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
example Wireshark capture
Parsed content of the capture file 2nd example Wireshark capture Parsed content of the 2nd capture file Suggested fix #2 (contra original) |
Description
Márton Németh
2010-11-06 14:36:28 UTC
Created attachment 36312 [details]
example Wireshark capture
Created attachment 36322 [details]
Parsed content of the capture file
I could imagine different expected behaviours: (a) the transfered size equals to 800+800+800+800+800+170=4170 bytes, so the iso desc 0...4 are fully transfered and the useful data from isodesc 5 (b) the transfered size equals to 800+800+800+800+800+800=4800 bytes, so the iso desc 0...5 are fully transfered (c) the transfered size equals to maximum possible size always, in this case 24*800=19200 bytes Created attachment 36362 [details]
2nd example Wireshark capture
In this second example we have an URB submitted with 24 ISO descritors, 800 bytes each.
The completed URB contains 242+101+177+156=767 data bytes. The ISO blocks 0...19 contains no data. The data is spread in ISO blocks 20..23.
Created attachment 36372 [details]
Parsed content of the 2nd capture file
Proposed patch sent, see http://lkml.org/lkml/2010/11/13/148 . Created attachment 38712 [details]
Suggested fix #2 (contra original)
merged in .38-rc1: commit b17ea167c5fb50dcd5dce5b874a467f04eec886d Author: Pete Zaitcev <zaitcev@redhat.com> Date: Tue Nov 16 21:51:19 2010 -0700 usbmon: correct length for isochronous |