NetBSD Problem Report #55574

From ryo@tetera.org  Fri Aug 14 08:14:40 2020
Return-Path: <ryo@tetera.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 88CCD1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 14 Aug 2020 08:14:40 +0000 (UTC)
Message-Id: <5f3647ee.1c69fb81.4c220.4195@mx.google.com>
Date: Fri, 14 Aug 2020 17:14:32 +0900
From: ryo@tetera.org
Reply-To: ryoon@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: USB video class webcam (uvideo(4)) does not work with xhci(4)
X-Send-Pr-Version: 3.95

>Number:         55574
>Category:       kern
>Synopsis:       USB video class webcam (uvideo(4)) does not work with xhci(4)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jakllsch
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 14 08:15:01 +0000 2020
>Last-Modified:  Wed Sep 02 15:25:01 +0000 2020
>Originator:     Ryo ONODERA
>Release:        NetBSD 9.99.70
>Organization:
Ryo ONODERA // ryo@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3
>Environment:


System: NetBSD brownie 9.99.70 NetBSD 9.99.70 (GENERIC) #1: Fri Aug 14 10:18:30 JST 2020 ryoon@brownie:/usr/world/9.99/amd64/obj/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:

I have Logitech's Webcam C300 webcam that supports USB video class.
This device works correctly with echo(4), however it does not work
with xhci(4).

>How-To-Repeat:

(1) Install pkgsrc/multimedia/mplater.
(2) Connect uvideo(4) webcam to USB socket.
(3) Run 'mplayer tv://'
(4-1) With xhci(4), you can get a screen filled with green pixels.
(4-2) With ehci(4), you can get a scene captured by the webcam.

>Fix:

I have no idea.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: kern-bug-people->jakllsch
Responsible-Changed-By: jakllsch@NetBSD.org
Responsible-Changed-When: Fri, 14 Aug 2020 12:29:11 +0000
Responsible-Changed-Why:
take, I have a working yet unpolished implementation of Isoc pipes for xhci(4) already


From: "Jonathan A. Kollasch" <jakllsch@kollasch.net>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/55574: USB video class webcam (uvideo(4)) does not work
 with xhci(4)
Date: Fri, 14 Aug 2020 07:27:44 -0500

 xhci(4) does not currently implement Isochronous transfers.

From: Ryo ONODERA <ryo@tetera.org>
To: gnats-bugs@netbsd.org, jakllsch@netbsd.org
Cc: 
Subject: Re: kern/55574 (USB video class webcam (uvideo(4)) does not work with xhci(4))
Date: Sat, 15 Aug 2020 00:08:27 +0900

 Thank you.
 I will wait your work.

 And I have confirmed that my C300 webcam uses isoc transfer
 using Wireshark and USBPcap on Windows.

From: "Jonathan A. Kollasch" <jakllsch@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/55574 CVS commit: src/sys/dev/usb
Date: Fri, 21 Aug 2020 20:46:04 +0000

 Module Name:	src
 Committed By:	jakllsch
 Date:		Fri Aug 21 20:46:04 UTC 2020

 Modified Files:
 	src/sys/dev/usb: xhci.c xhcivar.h

 Log Message:
 xhci(4): initial support for Isochronous pipes

 Needs more cleanup, and more work, particularly transaction scheduling
 may need to be examined with bus analyzer (to check if too frequent/
 infrequent) or various isoc pipe consumers (to check if too infrequent)
 and fixed if incorrect.

 Begins to address PR kern/55574.


 To generate a diff of this commit:
 cvs rdiff -u -r1.133 -r1.134 src/sys/dev/usb/xhci.c
 cvs rdiff -u -r1.16 -r1.17 src/sys/dev/usb/xhcivar.h

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Ryo ONODERA <ryo@tetera.org>
To: gnats-bugs@netbsd.org, jakllsch@netbsd.org
Cc: 
Subject: Re: PR/55574 CVS commit: src/sys/dev/usb
Date: Thu, 03 Sep 2020 00:22:33 +0900

 Hi,

 This commit enables my webcam input and USB audio input/output.
 However on my original environment, this does not work well.
 My webcam input is less than 0.5 fps.
 This new problem may be in xhci(4) device driver.
 I will send another PR.

 On another machine, this commit works fine with the webcam and
 USB audio devices.

 Thank you very much!

 "Jonathan A. Kollasch" <jakllsch@netbsd.org> writes:

 > The following reply was made to PR kern/55574; it has been noted by GNATS.
 >
 > From: "Jonathan A. Kollasch" <jakllsch@netbsd.org>
 > To: gnats-bugs@gnats.NetBSD.org
 > Cc: 
 > Subject: PR/55574 CVS commit: src/sys/dev/usb
 > Date: Fri, 21 Aug 2020 20:46:04 +0000
 >
 >  Module Name:	src
 >  Committed By:	jakllsch
 >  Date:		Fri Aug 21 20:46:04 UTC 2020
 >  
 >  Modified Files:
 >  	src/sys/dev/usb: xhci.c xhcivar.h
 >  
 >  Log Message:
 >  xhci(4): initial support for Isochronous pipes
 >  
 >  Needs more cleanup, and more work, particularly transaction scheduling
 >  may need to be examined with bus analyzer (to check if too frequent/
 >  infrequent) or various isoc pipe consumers (to check if too infrequent)
 >  and fixed if incorrect.
 >  
 >  Begins to address PR kern/55574.
 >  
 >  
 >  To generate a diff of this commit:
 >  cvs rdiff -u -r1.133 -r1.134 src/sys/dev/usb/xhci.c
 >  cvs rdiff -u -r1.16 -r1.17 src/sys/dev/usb/xhcivar.h
 >  
 >  Please note that diffs are not public domain; they are subject to the
 >  copyright notices on the relevant files.
 >  

 -- 
 Ryo ONODERA // ryo@tetera.org
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.