From owner-freebsd-usb@freebsd.org Sun Nov 25 21:00:52 2018 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 29FCC1142332 for ; Sun, 25 Nov 2018 21:00:52 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id DB70676E90 for ; Sun, 25 Nov 2018 21:00:51 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 9ECF11142330; Sun, 25 Nov 2018 21:00:51 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8D48A114232F for ; Sun, 25 Nov 2018 21:00:51 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1AF0576E86 for ; Sun, 25 Nov 2018 21:00:51 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 4EEA0147F3 for ; Sun, 25 Nov 2018 21:00:50 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id wAPL0o4v095150 for ; Sun, 25 Nov 2018 21:00:50 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id wAPL0o1T095138 for usb@FreeBSD.org; Sun, 25 Nov 2018 21:00:50 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201811252100.wAPL0o1T095138@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: usb@FreeBSD.org Subject: Problem reports for usb@FreeBSD.org that need special attention Date: Sun, 25 Nov 2018 21:00:50 +0000 MIME-Version: 1.0 X-Rspamd-Queue-Id: DB70676E90 X-Spamd-Result: default: False [2.19 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_SPAM_LONG(0.78)[0.780,0]; NEURAL_SPAM_MEDIUM(0.68)[0.681,0]; ASN(0.00)[asn:10310, ipnet:2001:1900:2254::/48, country:US]; NEURAL_SPAM_SHORT(0.73)[0.726,0] X-Rspamd-Server: mx1.freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Nov 2018 21:00:52 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 213877 | xhci reset causes panic on SuperMicro A1SRi-2758F 1 problems total for which you should take action. From owner-freebsd-usb@freebsd.org Tue Nov 27 09:10:56 2018 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6EE6E114158D for ; Tue, 27 Nov 2018 09:10:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 0686E6CEA7 for ; Tue, 27 Nov 2018 09:10:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id BE7B8114158C; Tue, 27 Nov 2018 09:10:55 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ACD87114158B for ; Tue, 27 Nov 2018 09:10:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4AF806CEA5 for ; Tue, 27 Nov 2018 09:10:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 7FB8E76D5 for ; Tue, 27 Nov 2018 09:10:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id wAR9Asbm021483 for ; Tue, 27 Nov 2018 09:10:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id wAR9Asq3021470 for usb@FreeBSD.org; Tue, 27 Nov 2018 09:10:54 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 204073] new USB Quirk for Samsung M3 Portable 4TB [PATCH] Date: Tue, 27 Nov 2018 09:10:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: philipp.maechler@mamo.li X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Overcome By Events X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Rspamd-Queue-Id: 0686E6CEA7 X-Spamd-Result: default: False [2.01 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_SPAM_LONG(0.58)[0.580,0]; NEURAL_SPAM_MEDIUM(0.69)[0.692,0]; ASN(0.00)[asn:10310, ipnet:2001:1900:2254::/48, country:US]; NEURAL_SPAM_SHORT(0.74)[0.739,0] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2018 09:10:56 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D204073 philipp.maechler@mamo.li changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |Overcome By Events Status|New |Closed --- Comment #2 from philipp.maechler@mamo.li --- not needed for newer freebsd versions --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Tue Nov 27 11:53:42 2018 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8D4171147849 for ; Tue, 27 Nov 2018 11:53:42 +0000 (UTC) (envelope-from thj@freebsd.org) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 19E8F73617 for ; Tue, 27 Nov 2018 11:53:42 +0000 (UTC) (envelope-from thj@freebsd.org) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 350E7C30 for ; Tue, 27 Nov 2018 06:53:35 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 27 Nov 2018 06:53:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=mA93T0xZ6pyeBee3AD930jb/bMCMK pDP4xNnsZ+lc/4=; b=q2ZKwsAC6/YmvM/uKk5GQ3xiddmS7G2TzNzUjQAKVQoFG Hqt5KsFaYWpSlIJTk6FZU9YUGB7fgcF62yJnn5+xSCTfYCoxUzNXilmID3keTLKV 21qRCZvrNIenNbzfWlHANmpSzOO0PU+rHpyqlP58YszBKCJsxWbTmtsthCePipl0 OL6pUF1UVyMf+kKquOe9Ay7Q4weykNo1e0LjF0lB5MZ28C9c6W90E8TnfDwv2Sl/ o0qpvgLc+6ZTNkkYJnlPxKvZVsoCFnlJGLt2CZLh6t3PXHi+jZWgl7PT3TkVVbsP M+V7aA9znu/dzbzoESa+HkZ2A+kUgfn8Zt8XLnAmA== X-ME-Sender: X-ME-Proxy: Received: from tom-desk.erg.abdn.ac.uk (tom-desk.erg.abdn.ac.uk [137.50.17.12]) by mail.messagingengine.com (Postfix) with ESMTPA id 0A97AE4A3B for ; Tue, 27 Nov 2018 06:53:33 -0500 (EST) Date: Tue, 27 Nov 2018 11:53:29 +0000 From: Tom Jones To: freebsd-usb@freebsd.org Subject: Missing USB on Intel Cherryview Message-ID: <20181127115327.GA84974@tom-desk.erg.abdn.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: 19E8F73617 X-Spamd-Result: default: False [1.76 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_SPAM_SHORT(0.36)[0.359,0]; NEURAL_SPAM_MEDIUM(0.70)[0.700,0]; NEURAL_SPAM_LONG(0.70)[0.703,0]; ASN(0.00)[asn:11403, ipnet:64.147.123.0/24, country:US] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2018 11:53:42 -0000 Hi, I have a Intel Cherryview based laptop with Braswell XHCI. The laptop has two usb ports, a USB-A port routed to USB3 (this works) and a USB-C port routed a USB 2 bus. The USB bus routed to the USB-C port does not appear under FreeBSD. xhci0: mem 0xa1a00000-0xa1a0ffff at device 20.0 on pci0 xhci0: 32 bytes context size, 64-bit DMA usbus0 on xhci0 usbus0: 5.0Gbps Super Speed USB v3.0 There is full (if slightly old) dmesg here: https://dmesgd.nycbug.org/index.cgi?do=view&id=3213 It is picket up on Linux: [ 19.200330] uhci_hcd: USB Universal Host Controller Interface driver [ 19.200827] xhci_hcd 0000:00:14.0: xHCI Host Controller [ 19.200855] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 1 [ 19.202004] xhci_hcd 0000:00:14.0: hcc params 0x200077c1 hci version 0x100 quirks 0x0000000081509810 [ 19.202019] xhci_hcd 0000:00:14.0: cache line size of 64 is not supported [ 19.202522] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18 [ 19.202526] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 19.202529] usb usb1: Product: xHCI Host Controller [ 19.202534] usb usb1: Manufacturer: Linux 4.18.0-10-generic xhci-hcd [ 19.202537] usb usb1: SerialNumber: 0000:00:14.0 [ 19.203545] hub 1-0:1.0: USB hub found [ 19.203579] hub 1-0:1.0: 7 ports detected [ 19.205628] xhci_hcd 0000:00:14.0: xHCI Host Controller [ 19.205638] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2 [ 19.205649] xhci_hcd 0000:00:14.0: Host supports USB 3.0 SuperSpeed [ 19.205764] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.18 [ 19.205768] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 19.205771] usb usb2: Product: xHCI Host Controller [ 19.205774] usb usb2: Manufacturer: Linux 4.18.0-10-generic xhci-hcd [ 19.205777] usb usb2: SerialNumber: 0000:00:14.0 [ 19.206868] hub 2-0:1.0: USB hub found [ 19.206907] hub 2-0:1.0: 6 ports detected It is also picked up on NetBSD, but conversations with stejda@ raise some doubts about support there. xhci0 at pci0 dev 20 function 0: vendor 8086 product 22b5 (rev. 0x34) xhci0: interrupting at msi0 vec 0 xhci0: xHCI version 1.0 usb0 at xhci0: USB revision 3.0 usb1 at xhci0: USB revision 2.0 I have done some digging, but don't the background with usb to really know where to look. Could someone give me some pointers for what to try? - Tom -- - [tj] From owner-freebsd-usb@freebsd.org Tue Nov 27 12:31:19 2018 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D47A31149E2F for ; Tue, 27 Nov 2018 12:31:18 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1A47F76D8C; Tue, 27 Nov 2018 12:31:18 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [178.17.145.230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id E6F20260488; Tue, 27 Nov 2018 13:31:10 +0100 (CET) Subject: Re: Missing USB on Intel Cherryview To: Tom Jones , freebsd-usb@freebsd.org References: <20181127115327.GA84974@tom-desk.erg.abdn.ac.uk> From: Hans Petter Selasky Message-ID: Date: Tue, 27 Nov 2018 13:30:36 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0.1 MIME-Version: 1.0 In-Reply-To: <20181127115327.GA84974@tom-desk.erg.abdn.ac.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 1A47F76D8C X-Spamd-Result: default: False [-6.76 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MX_GOOD(-0.01)[cached: mail.turbocat.net]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-0.996,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; IP_SCORE(-3.45)[ip: (-9.53), ipnet: 88.99.0.0/16(-4.79), asn: 24940(-2.91), country: DE(-0.02)]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2018 12:31:19 -0000 On 11/27/18 12:53 PM, Tom Jones wrote: > Hi, > > I have a Intel Cherryview based laptop with Braswell XHCI. The laptop has two > usb ports, a USB-A port routed to USB3 (this works) and a USB-C port routed a > USB 2 bus. > > The USB bus routed to the USB-C port does not appear under FreeBSD. > > xhci0: mem 0xa1a00000-0xa1a0ffff at device 20.0 on pci0 > xhci0: 32 bytes context size, 64-bit DMA > usbus0 on xhci0 > usbus0: 5.0Gbps Super Speed USB v3.0 > > There is full (if slightly old) dmesg here: https://dmesgd.nycbug.org/index.cgi?do=view&id=3213 > > It is picket up on Linux: > > [ 19.200330] uhci_hcd: USB Universal Host Controller Interface driver > [ 19.200827] xhci_hcd 0000:00:14.0: xHCI Host Controller > [ 19.200855] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 1 > [ 19.202004] xhci_hcd 0000:00:14.0: hcc params 0x200077c1 hci version 0x100 quirks 0x0000000081509810 > [ 19.202019] xhci_hcd 0000:00:14.0: cache line size of 64 is not supported > [ 19.202522] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18 > [ 19.202526] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 > [ 19.202529] usb usb1: Product: xHCI Host Controller > [ 19.202534] usb usb1: Manufacturer: Linux 4.18.0-10-generic xhci-hcd > [ 19.202537] usb usb1: SerialNumber: 0000:00:14.0 > [ 19.203545] hub 1-0:1.0: USB hub found > [ 19.203579] hub 1-0:1.0: 7 ports detected > [ 19.205628] xhci_hcd 0000:00:14.0: xHCI Host Controller > [ 19.205638] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2 > [ 19.205649] xhci_hcd 0000:00:14.0: Host supports USB 3.0 SuperSpeed > [ 19.205764] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.18 > [ 19.205768] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 > [ 19.205771] usb usb2: Product: xHCI Host Controller > [ 19.205774] usb usb2: Manufacturer: Linux 4.18.0-10-generic xhci-hcd > [ 19.205777] usb usb2: SerialNumber: 0000:00:14.0 > [ 19.206868] hub 2-0:1.0: USB hub found > [ 19.206907] hub 2-0:1.0: 6 ports detected > > It is also picked up on NetBSD, but conversations with stejda@ raise some > doubts about support there. > > xhci0 at pci0 dev 20 function 0: vendor 8086 product 22b5 (rev. 0x34) > xhci0: interrupting at msi0 vec 0 > xhci0: xHCI version 1.0 > usb0 at xhci0: USB revision 3.0 > usb1 at xhci0: USB revision 2.0 > > I have done some digging, but don't the background with usb to really know > where to look. Could someone give me some pointers for what to try? > > - Tom > Hi, Currently there is not so much to try, but you can start poking in sys/dev/usb/controller/xhci*.[ch] . I have not made any USB-C specific changes to the XHCI driver in FreeBSD, so yes, it might not work. There are also some debug knobs: sysctl -a | grep xhci --HPS From owner-freebsd-usb@freebsd.org Tue Nov 27 14:21:49 2018 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AB6E3114DFE9 for ; Tue, 27 Nov 2018 14:21:49 +0000 (UTC) (envelope-from thj@freebsd.org) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3073D7DA29 for ; Tue, 27 Nov 2018 14:21:49 +0000 (UTC) (envelope-from thj@freebsd.org) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id AA7F8C9A; Tue, 27 Nov 2018 09:21:47 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 27 Nov 2018 09:21:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=8OqBVm SlfvxP534qPVlXBJWS9o+3dlwFp3tQBD3EQyk=; b=zFd2PPme/y2PZPOFfHWi/u 9P9K5i9w7VniEfwSv/5OkBckDeg+V86i7TYqXpDVMwvNtsAsZNS3sBhlq5Zvcc0F 2Om9Wny4mpn9xKzegLXGLP8Hhe1NDF0zSj1/HwpsIuSJ/TX/nQS3nMNMz7d70GEC nD0ri4Gi1GtyLs0PaEDEz3RPeLfDr9xjoOsa7e2Ce89SCDKmhcWAIX6QF1MY0Bti BBZEMQ5S0WfG4iPNDC4Ql2u5TQnWQr4JXYX6F+BuahRnHHLw8Pvvtakq35IBtxEN yU7doqY6nzfo3MyqaqnCFUSpRR1jxkLXCjaHmJoj4GPL4mAoQCXTIc4efXFSZk9A == X-ME-Sender: X-ME-Proxy: Received: from tom-desk.erg.abdn.ac.uk (tom-desk.erg.abdn.ac.uk [137.50.17.12]) by mail.messagingengine.com (Postfix) with ESMTPA id 28B5D102F9; Tue, 27 Nov 2018 09:21:46 -0500 (EST) Date: Tue, 27 Nov 2018 14:21:41 +0000 From: Tom Jones To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org Subject: Re: Missing USB on Intel Cherryview Message-ID: <20181127142141.GA15340@tom-desk.erg.abdn.ac.uk> References: <20181127115327.GA84974@tom-desk.erg.abdn.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: 3073D7DA29 X-Spamd-Result: default: False [1.30 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_SPAM_LONG(0.48)[0.476,0]; NEURAL_SPAM_MEDIUM(0.37)[0.372,0]; ASN(0.00)[asn:11403, ipnet:64.147.123.0/24, country:US]; NEURAL_SPAM_SHORT(0.45)[0.452,0] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2018 14:21:49 -0000 Hi, Thanks for your reply. > Currently there is not so much to try, but you can start poking in > sys/dev/usb/controller/xhci*.[ch] . I have not made any USB-C specific > changes to the XHCI driver in FreeBSD, so yes, it might not work. > > There are also some debug knobs: sysctl -a | grep xhci USB-C here is a red herring, there is a i2c controlled mux involved before it will work for USB data. I think we are missing a second usb instance (instances? I am not sure of the terminology) on the xhci controller. Looking at Linux and NetBSD, they both launch two USB from their xhci_pci drivers. Linux creates the first here: https://github.com/torvalds/linux/blob/master/drivers/usb/host/xhci-pci.c#L326 the second here https://github.com/torvalds/linux/blob/master/drivers/usb/host/xhci-pci.c#L334 NetBSD manages two instances of bus in the softc, sc_bus and sc_bus2 sc_bus2 is configured here, the same as the first bus but with an explicit usb revision set to USBREV_2_0. They share the same dmatag. https://github.com/NetBSD/src/blob/trunk/sys/dev/usb/xhci.c#L929 Both instances are then registered with the usb subsystem here: https://github.com/NetBSD/src/blob/trunk/sys/dev/pci/xhci_pci.c#L281 I seem a similar pattern in the tegra xhci drivers for NetBSD and Linux. I am going to have a dive into the intel xHCI Interface docs to get more background. https://www.intel.com/content/dam/www/public/us/en/documents/technical-specifications/extensible-host-controler-interface-usb-xhci.pdf Could you tell me if this multiple usb instance interface is something we are missing or something we implement in a different manner? - Tom From owner-freebsd-usb@freebsd.org Tue Nov 27 14:54:55 2018 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B4336114F4D5 for ; Tue, 27 Nov 2018 14:54:55 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EF2D67F389; Tue, 27 Nov 2018 14:54:54 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [178.17.145.230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id AAE47260535; Tue, 27 Nov 2018 15:54:52 +0100 (CET) Subject: Re: Missing USB on Intel Cherryview To: Tom Jones Cc: freebsd-usb@freebsd.org References: <20181127115327.GA84974@tom-desk.erg.abdn.ac.uk> <20181127142141.GA15340@tom-desk.erg.abdn.ac.uk> From: Hans Petter Selasky Message-ID: Date: Tue, 27 Nov 2018 15:54:17 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0.1 MIME-Version: 1.0 In-Reply-To: <20181127142141.GA15340@tom-desk.erg.abdn.ac.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: EF2D67F389 X-Spamd-Result: default: False [-6.73 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MX_GOOD(-0.01)[cached: mail.turbocat.net]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.97)[-0.972,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; IP_SCORE(-3.45)[ip: (-9.53), ipnet: 88.99.0.0/16(-4.79), asn: 24940(-2.91), country: DE(-0.02)]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2018 14:54:55 -0000 On 11/27/18 3:21 PM, Tom Jones wrote: > Could you tell me if this multiple usb instance interface is something > we are missing or something we implement in a different manner? We only attach to PCI devices and devices ACPI provides. Can you dump "pciconf -lv" and maybe also provide an ACPI dump? --HPS From owner-freebsd-usb@freebsd.org Sat Dec 1 04:38:45 2018 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 22DAB115C5CD for ; Sat, 1 Dec 2018 04:38:45 +0000 (UTC) (envelope-from bounce+f7978d.c06c8-freebsd-usb=freebsd.org@mn.co) Received: from p142.mailgun.us (p142.mailgun.us [184.173.105.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1CB0988638 for ; Sat, 1 Dec 2018 04:38:44 +0000 (UTC) (envelope-from bounce+f7978d.c06c8-freebsd-usb=freebsd.org@mn.co) DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mn.co; q=dns/txt; s=krs; t=1543639123; h=List-Unsubscribe: List-Unsubscribe: Content-Transfer-Encoding: Content-Type: Mime-Version: Subject: Message-Id: To: Reply-To: From: Date: Sender; bh=2Bsu022pZa3t5p6XD6B6nNbybLihUKJkJvWSayCTnpo=; b=QlBnk1SZtCFQP5uDev4U1RBmGYJ/b/pyd4E/sl2dejqm2TK2enD5oyLrmi7Mc2wTUMixLk5r 8+6wTXiLFFxX+/zF3ksidvhB1PIUe8FDV0ljlcLdMOrqZ4g7EaBEpwtJXXDBieataP+YNm1+ gh/bDf+kwGAeFDfZWYrXhq2gowI= X-Mailgun-Sending-Ip: 184.173.105.142 X-Mailgun-Sid: WyIzNDFmMyIsICJmcmVlYnNkLXVzYkBmcmVlYnNkLm9yZyIsICJjMDZjOCJd Sender: cinema-summit@mn.co Received: from mn.co (ec2-54-157-145-226.compute-1.amazonaws.com [54.157.145.226]) by mxa.mailgun.org with ESMTP id 5c020b9b.7f0ac823bd50-smtp-out-n01; Sat, 01 Dec 2018 04:18:35 -0000 (UTC) Date: Sat, 01 Dec 2018 04:18:35 +0000 From: Alex Darke Reply-To: Alex Darke To: freebsd-usb@freebsd.org Message-Id: 5c01da5b9af4a_8ffdcc1334968f2@mn.co Subject: Your exclusive invitation to join Fearless Filmmakers Mime-Version: 1.0 X-Mailgun-Tag: email_manual invite X-Mb-Invite-Id: 3748020 Tag: email_manual invite X-Rspamd-Queue-Id: 1CB0988638 X-Spamd-Result: default: False [9.75 / 15.00]; HAS_REPLYTO(0.00)[alex@cinemasummit.com]; R_SPF_ALLOW(0.00)[+ip4:184.173.105.0/24]; MV_CASE(0.50)[]; REPLYTO_DN_EQ_FROM_DN(0.00)[]; TO_DN_NONE(0.00)[]; MX_GOOD(-0.01)[cached: mxb.mailgun.org]; DKIM_TRACE(0.00)[mn.co:+]; FORGED_SENDER(0.30)[cinema-summit@mn.co,bounce@mn.co]; RCVD_TLS_LAST(0.00)[]; MID_MISSING_BRACKETS(0.50)[]; ASN(0.00)[asn:36351, ipnet:184.173.64.0/18, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[f7978d.c06c8-freebsd-usb=freebsd.org]; RSPAMD_URIBL(4.50)[app.link]; ARC_NA(0.00)[]; R_DKIM_ALLOW(0.00)[mn.co]; FROM_NEQ_ENVFROM(0.00)[cinema-summit@mn.co,bounce@mn.co]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.97)[0.971,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; HTML_SHORT_LINK_IMG_2(1.00)[]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; BAD_REP_POLICIES(0.10)[]; NEURAL_SPAM_MEDIUM(1.00)[1.000,0]; IP_SCORE(0.00)[asn: 36351(0.10), country: US(-0.09)]; NEURAL_SPAM_LONG(1.00)[1.000,0]; RCVD_IN_DNSWL_NONE(0.00)[142.105.173.184.list.dnswl.org : 127.0.15.0]; RCVD_COUNT_TWO(0.00)[2]; GREYLIST(0.00)[pass,body] X-Rspamd-Server: mx1.freebsd.org X-Spam: Yes Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Dec 2018 04:38:45 -0000 An invitation from Alex Darke to join =3D=3D=3D=3D=3D Fearless Filmmakers: Join the Community =3D=3D=3D=3D=3D Alex Darke invited you to join the other 835 members in = Fearless Filmmakers: Join the Community. Hi there, As a former member of Top Film Festivals, I'd like to formally invite you= to a new online community of Fearless Filmmakers such as yourself. Here are some things you can expect once you are inside: *Experience exclusive content and conversations you can=E2=80=99t find an= ywhere else. *Meet people who share your interests, who live near you, who do the same= things, or who care about the same topics. *Swap stories, experiences, and ideas *Find a little inspiration, thought-provoking conversations, and expert p= erspective The best part about our community is that just as much yours as it is our= s. It only takes a second, and you=E2=80=99ll know at least one person go= ing in! Cheers, Alex Join Me: https://app.mn.co/8/spaces/817010?invite_token=3D85b2de8cd7419ff= 0a1939eea4d7ce1d6 ----- Fearless Filmmakers is powered by Mighty Networks (mightynetworks.com). Mighty Networks is a platform for creating specialized professional netwo= rks. ----- Unsubscribe from all Mighty Networks emails going forward: https://mighty= networks.com/u?invite_token=3D85b2de8cd7419ff0a1939eea4d7ce1d6 ----- 127 Lytton Ave Palo Alto, CA 94301 Download the iOS app: https://mightybell-app.app.link/PaL1Pperlv Download the Android app: https://mightybell-app.app.link/PaL1Pperlv