From owner-freebsd-usb@freebsd.org Sun Dec 29 19:48:23 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 101BB1E7C76 for ; Sun, 29 Dec 2019 19:48:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47mB1y6cSRz42fF for ; Sun, 29 Dec 2019 19:48:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id E2C401E7C75; Sun, 29 Dec 2019 19:48:22 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E288F1E7C74 for ; Sun, 29 Dec 2019 19:48:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47mB1y5mLrz42fD for ; Sun, 29 Dec 2019 19:48:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C14AE1E6B4 for ; Sun, 29 Dec 2019 19:48:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xBTJmM0N085538 for ; Sun, 29 Dec 2019 19:48:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xBTJmMmJ085537 for usb@FreeBSD.org; Sun, 29 Dec 2019 19:48:22 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 220852] [cdce] [usb] raspberry pi or anything that can emulate Ethernet gadget over usb mac id not read Date: Sun, 29 Dec 2019 19:48:22 +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: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: jsm@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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-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, 29 Dec 2019 19:48:23 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220852 Jesper Schmitz Mouridsen changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jsm@FreeBSD.org --- Comment #11 from Jesper Schmitz Mouridsen --- (In reply to Bipin Chandra from comment #10) It works on 12.1-RELEASE by kldunload if_cdce.ko, after the Zero has booted. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Sun Dec 29 21:00:14 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 319AA1E96BA for ; Sun, 29 Dec 2019 21:00:14 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47mCct0bsjz45tN for ; Sun, 29 Dec 2019 21:00:14 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 148EB1E96B8; Sun, 29 Dec 2019 21:00:14 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 144541E96B7 for ; Sun, 29 Dec 2019 21:00:14 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47mCcs6kRMz45tJ for ; Sun, 29 Dec 2019 21:00:13 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E1F7D1F367 for ; Sun, 29 Dec 2019 21:00:13 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xBTL0D4R087362 for ; Sun, 29 Dec 2019 21:00:13 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xBTL0DTo087360 for usb@FreeBSD.org; Sun, 29 Dec 2019 21:00:13 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201912292100.xBTL0DTo087360@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, 29 Dec 2019 21:00:13 +0000 MIME-Version: 1.0 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, 29 Dec 2019 21:00:14 -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 Open | 233884 | Corsair CORSAIR K70 RGB MK.2 / K63 / K63 Wireless Open | 234578 | Support for Sierra Wireless EM7455 modem 3 problems total for which you should take action. From owner-freebsd-usb@freebsd.org Mon Dec 30 19:24:24 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 018491E7E19 for ; Mon, 30 Dec 2019 19:24:24 +0000 (UTC) (envelope-from farhan@farhan.codes) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (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 47mnRq0HLwz4Nrs for ; Mon, 30 Dec 2019 19:24:22 +0000 (UTC) (envelope-from farhan@farhan.codes) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 31B31689; Mon, 30 Dec 2019 14:24:21 -0500 (EST) Received: from imap35 ([10.202.2.85]) by compute5.internal (MEProxy); Mon, 30 Dec 2019 14:24:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=farhan.codes; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm1; bh=Ek6PyMRMTpv6mEnpyMGlwuPhp72ilkA ihq0nPJnl5GM=; b=Qbo1smCRUR5YKZWxthjSzLglFGBJxdjFJd1JfRO5dkasDW1 67qcz4w1HDQunmgE6eduAr3xsucFZqCmkEg0quInN3YPH2nifZwH27an0q9ert7b D5v2dgZRqKqcdWDWQ1aEkvmH04uQW+SXKRo4xIWa0e+R7AbdeYg/+2mwaT/iFXrE 2FGuumNIIveTy/p9IAs/lcVVUiqAExlxYEJ2gSvCJyihqklLOkplq/wCa2KlfC76 iuli6SAeZ8OpxhS8sexWcPCUUJJbVs34o5CjdVoTeD4pYOB8zEzSfusS4XIGTxav EDVfRbQ5+Vt+YDDnmSewIr/eLhCIZWRfdhVDImA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=Ek6PyM RMTpv6mEnpyMGlwuPhp72ilkAihq0nPJnl5GM=; b=PRDPqY31jr3jioUrhk05VY BZ9di+XtIZ1f8HZ2Gl2p6WN2Eowi+fu1cMxLCg9lyKKTpCI3wnVOTVglxsWI6S7w BA2ZTm2Z84AY4EOy79FrLCnA9fGNxgLJEL/JTHXMszxxB45nCF6BLNxJxSYMHKNd yKKDn1/fI4XUCD2u9j7rIahJBcPX4Y74IHvsZaxMWpGqfKeDfkv/0PnVVjoxo6eA wqYUeFAeywvLjSDQ/AVPu1okOA55tCQZqa/b6CJDLEZbk/sKS+IsMhc0f/W2IOX5 r/u8+ju2jzTYsZOkPEQyW0vLyB4uURoPjZMJg4X7Nt4kgK9dEi+ah292OGzyfOwQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdefhedguddvgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesrg dtreerreertdenucfhrhhomhepfdfhrghrhhgrnhcumfhhrghnfdcuoehfrghrhhgrnhes fhgrrhhhrghnrdgtohguvghsqeenucffohhmrghinhepkhhordguohdpghhnuhdrohhrgh enucfrrghrrghmpehmrghilhhfrhhomhepfhgrrhhhrghnsehfrghrhhgrnhdrtghouggv shenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 4D4E214C0552; Mon, 30 Dec 2019 14:24:20 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-694-gd5bab98-fmstable-20191218v1 Mime-Version: 1.0 Message-Id: <8490a117-3e38-4ff1-af77-5c963a654168@www.fastmail.com> In-Reply-To: <5e3315f6-33e0-e494-4515-9f6023e1f54c@selasky.org> References: <7b2a53c8-8640-4b0c-8d6e-22a1988a3ebd@www.fastmail.com> <5e3315f6-33e0-e494-4515-9f6023e1f54c@selasky.org> Date: Mon, 30 Dec 2019 14:23:59 -0500 From: "Farhan Khan" To: "Hans Petter Selasky" , freebsd-usb@freebsd.org Subject: Re: Page fault at USB attachment code X-Rspamd-Queue-Id: 47mnRq0HLwz4Nrs X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=farhan.codes header.s=fm1 header.b=Qbo1smCR; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=PRDPqY31; dmarc=none; spf=pass (mx1.freebsd.org: domain of farhan@farhan.codes designates 64.147.123.21 as permitted sender) smtp.mailfrom=farhan@farhan.codes X-Spamd-Result: default: False [-5.09 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[farhan.codes:s=fm1,messagingengine.com:s=fm1]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.21]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[farhan.codes]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[farhan.codes:+,messagingengine.com:+]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-3.50)[ip: (-9.85), ipnet: 64.147.123.0/24(-4.92), asn: 11403(-2.68), country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[21.123.147.64.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:11403, ipnet:64.147.123.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; MID_RHS_WWW(0.50)[] Content-Type: text/plain 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: Mon, 30 Dec 2019 19:24:24 -0000 On Thu, Dec 26, 2019, at 3:33 AM, Hans Petter Selasky wrote: > On 2019-12-26 01:46, Farhan Khan wrote: > > Hi all, > > > > I am writing a simple USB network device driver skeleton, just to learn the framework. What I think is fairly simple code is having a kernel panic when it hits the attachment code. > > > > The code and kgdb output are below. I apologize, its been some time since I used kgdb, so I am not sure what the next step I should do to debug this. > > > > --------------------- > > static int > > skel_usb_attach(device_t self) > > { > > struct usb_attach_arg *uaa = device_get_ivars(self); > > struct skel_usb_softc *uc = device_get_softc(self); > > struct skel_softc *sc = uc->sc_sc; > > struct ieee80211com *ic = &sc->sc_ic; > > > > device_set_usb_desc(self); > > uc->uc_udev = uaa->device; > > sc->sc_dev = self; > > ic->ic_name = device_get_nameunit(self); > > > > return 0; > > } > > --------------------- > > > > When I run kgdb, I get the following output. > > > > --------------------- > > sudo kgdb -n last > > GNU gdb (GDB) 8.3.1 [GDB v8.3.1 for FreeBSD] > > Copyright (C) 2019 Free Software Foundation, Inc. > > License GPLv3+: GNU GPL version 3 or later > > This is free software: you are free to change and redistribute it. > > There is NO WARRANTY, to the extent permitted by law. > > Type "show copying" and "show warranty" for details. > > This GDB was configured as "x86_64-portbld-freebsd13.0". > > Type "show configuration" for configuration details. > > For bug reporting instructions, please see: > > . > > Find the GDB manual and other documentation resources online at: > > . > > > > For help, type "help". > > Type "apropos word" to search for commands related to "word"... > > Reading symbols from /usr/obj/usr/src/amd64.amd64/sys/GENERIC/kernel.full... > > > > Unread portion of the kernel message buffer: > > Matched! > > skel0 on uhub0 > > skel0: on usbus0 > > > > Fatal trap 12: page fault while in kernel mode > > cpuid = 0; apic id = 00 > > fault virtual address = 0x7170 > > fault code = supervisor write data, page not present > > instruction pointer = 0x20:0xffffffff8271f094 > > stack pointer = 0x28:0xfffffe00036f5930 > > frame pointer = 0x28:0xfffffe00036f5950 > > code segment = base 0x0, limit 0xfffff, type 0x1b > > = DPL 0, pres 1, long 1, def32 0, gran 1 > > processor eflags = interrupt enabled, resume, IOPL = 0 > > current process = 15 (usbus0) > > trap number = 12 > > panic: page fault > > cpuid = 0 > > time = 1577299341 > > KDB: stack backtrace: > > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00036f5590 > > vpanic() at vpanic+0x17e/frame 0xfffffe00036f55f0 > > panic() at panic+0x43/frame 0xfffffe00036f5650 > > trap_fatal() at trap_fatal+0x386/frame 0xfffffe00036f56b0 > > trap_pfault() at trap_pfault+0x99/frame 0xfffffe00036f5730 > > trap() at trap+0x2a3/frame 0xfffffe00036f5860 > > calltrap() at calltrap+0x8/frame 0xfffffe00036f5860 > > --- trap 0xc, rip = 0xffffffff8271f094, rsp = 0xfffffe00036f5930, rbp = 0xfffffe00036f5950 --- > > skel_usb_attach() at skel_usb_attach+0x34/frame 0xfffffe00036f5950 > > device_attach() at device_attach+0x3ca/frame 0xfffffe00036f5990 > > device_probe_and_attach() at device_probe_and_attach+0x70/frame 0xfffffe00036f59c0 > > usb_probe_and_attach_sub() at usb_probe_and_attach_sub+0x150/frame 0xfffffe00036f5a10 > > usb_probe_and_attach() at usb_probe_and_attach+0x463/frame 0xfffffe00036f5ae0 > > uhub_explore() at uhub_explore+0x753/frame 0xfffffe00036f5b50 > > usb_bus_explore() at usb_bus_explore+0x11a/frame 0xfffffe00036f5b70 > > usb_process() at usb_process+0x103/frame 0xfffffe00036f5bb0 > > fork_exit() at fork_exit+0x80/frame 0xfffffe00036f5bf0 > > fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00036f5bf0 > > --- trap 0, rip = 0, rsp = 0, rbp = 0 --- > > KDB: enter: panic > > > > warning: Could not load shared library symbols for if_skel_usb.ko. > > Do you need "set solib-search-path" or "set sysroot"? > > --------------------- > > > > Note: I am testing this with an Atheros USB device. > > > > Thanks! > > > > Are you sure you specified sizeof the correct softc, in the driver > declaration? > > --HPS > > Hi HPS, It was a very silly mistake on my end. The HAL layer was not allocating memory for the skel_softc variable. This was causing "sc->sc_dev = self;" to panic. Thank you! -- Farhan Khan PGP Fingerprint: 1312 89CE 663E 1EB2 179C 1C83 C41D 2281 F8DA C0DE From owner-freebsd-usb@freebsd.org Tue Dec 31 00:23:32 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A3AD81EDEC8 for ; Tue, 31 Dec 2019 00:23:32 +0000 (UTC) (envelope-from Shichun.Ma@dell.com) Received: from mx0a-00154904.pphosted.com (mx0a-00154904.pphosted.com [148.163.133.20]) (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 47mw4z59x7z4fHH for ; Tue, 31 Dec 2019 00:23:31 +0000 (UTC) (envelope-from Shichun.Ma@dell.com) Received: from pps.filterd (m0170393.ppops.net [127.0.0.1]) by mx0a-00154904.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xBV0Ft7T017544 for ; Mon, 30 Dec 2019 19:23:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : mime-version; s=smtpout1; bh=ABMDl6+IjjYcAMMrPNZAvFC9OFOGKty4d9tt5MOSTWM=; b=SAx6m+ivA/YXNAlHVKXN7fbeN6n6IBbURU8yVkXKWHyuf+GRl80wSGvKkC+aowyXJG3q ZRPRFk7Vd1dvtsgqeYNPC9Mbr9TWD2tGAAnHkCJ7fjqYLSLHhg/K3AY+TRY5BfXMhw2j QXTaE0SP8cUu1QFN1vFimlcImzeJEdkfl/ia1XyOBm2IqtLtDQgcbZMRr+QiIXpXHTmc fmk+YSTpj40XKHcx7RMdNrJWj03p7YSNJ575lJzIxrDtM+QhK6rtrzyOWxKRHKJWBsQl 4o5FyM31kI1w/UOwy/4P89P7HYvtHE1hFjDQtd6OPbvGlfhJI7iI5ok+BXdCT4iz1PpX SA== Received: from mx0b-00154901.pphosted.com (mx0b-00154901.pphosted.com [67.231.157.37]) by mx0a-00154904.pphosted.com with ESMTP id 2x638nfr0k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 30 Dec 2019 19:23:29 -0500 Received: from pps.filterd (m0144104.ppops.net [127.0.0.1]) by mx0b-00154901.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xBV0DP3o079187 for ; Mon, 30 Dec 2019 19:23:28 -0500 Received: from ausc60ps301.us.dell.com (ausc60ps301.us.dell.com [143.166.148.206]) by mx0b-00154901.pphosted.com with ESMTP id 2x616nn2ye-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 30 Dec 2019 19:23:28 -0500 X-LoopCount0: from 10.166.132.54 X-PREM-Routing: D-Outbound X-IronPort-AV: E=Sophos;i="5.60,349,1549951200"; d="diff'?c'?scan'208";a="1394489212" From: To: , CC: Subject: RE: can not receive xfer interrupt after stop xfer is called intel XHCI Gemini Lake SOC Thread-Topic: can not receive xfer interrupt after stop xfer is called intel XHCI Gemini Lake SOC Thread-Index: AQHVvFIbwJYTQurGg0iodFW1OW6TtKfNNjBE///qBACABj9YYA== Date: Tue, 31 Dec 2019 00:23:16 +0000 Message-ID: References: <1577408331523.24347@Dell.com> <1577411424906.21267@Dell.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: msip_labels: MSIP_Label_a17f17c0-b23c-493d-99ab-b037779ecd33_Enabled=True; MSIP_Label_a17f17c0-b23c-493d-99ab-b037779ecd33_SiteId=945c199a-83a2-4e80-9f8c-5a91be5752dd; MSIP_Label_a17f17c0-b23c-493d-99ab-b037779ecd33_Owner=Shichun_Ma@Dell.com; MSIP_Label_a17f17c0-b23c-493d-99ab-b037779ecd33_SetDate=2019-12-31T00:23:00.8577211Z; MSIP_Label_a17f17c0-b23c-493d-99ab-b037779ecd33_Name=Customer Communication; MSIP_Label_a17f17c0-b23c-493d-99ab-b037779ecd33_Application=Microsoft Azure Information Protection; MSIP_Label_a17f17c0-b23c-493d-99ab-b037779ecd33_Extended_MSFT_Method=Manual; aiplabel=Customer Communication x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [125.252.73.116] Content-Type: multipart/mixed; boundary="_003_caff3f2cab964507b12df3841d443000KULX13MDC130APACDELLCOM_" MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-12-30_08:2019-12-27,2019-12-30 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 malwarescore=0 bulkscore=0 mlxlogscore=999 mlxscore=0 impostorscore=0 lowpriorityscore=0 spamscore=0 priorityscore=1501 adultscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1912310000 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 suspectscore=0 phishscore=0 priorityscore=1501 clxscore=1015 impostorscore=0 spamscore=0 mlxlogscore=999 lowpriorityscore=0 adultscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1912310000 X-Rspamd-Queue-Id: 47mw4z59x7z4fHH X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=dell.com header.s=smtpout1 header.b=SAx6m+iv; dmarc=pass (policy=none) header.from=dell.com; spf=pass (mx1.freebsd.org: domain of Shichun.Ma@dell.com designates 148.163.133.20 as permitted sender) smtp.mailfrom=Shichun.Ma@dell.com X-Spamd-Result: default: False [-7.42 / 15.00]; HAS_XOIP(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:148.163.133.20]; HAS_ATTACHMENT(0.00)[]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[dell.com:+]; MIME_BASE64_TEXT(0.10)[]; DMARC_POLICY_ALLOW(-0.50)[dell.com,none]; RCVD_IN_DNSWL_LOW(-0.10)[20.133.163.148.list.dnswl.org : 127.0.3.1]; IP_SCORE(-0.42)[ip: (-0.01), ipnet: 148.163.133.0/24(0.00), asn: 26211(-2.02), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; ASN(0.00)[asn:26211, ipnet:148.163.133.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[dell.com:s=smtpout1]; RCVD_COUNT_FIVE(0.00)[5]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; DWL_DNSWL_LOW(-1.00)[dell.com.dwl.dnswl.org : 127.0.9.1]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_NO_DN(0.00)[]; WHITELIST_SPF_DKIM(-3.00)[dell.com:d:+,dell.com:s:+]; RWL_MAILSPIKE_POSSIBLE(0.00)[20.133.163.148.rep.mailspike.net : 127.0.0.17] 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, 31 Dec 2019 00:23:32 -0000 --_003_caff3f2cab964507b12df3841d443000KULX13MDC130APACDELLCOM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IG5vdGlmeWluZyB1cyBh Ym91dCB0aGlzIGlzc3VlLg0KDQotLUhQUw0K --_003_caff3f2cab964507b12df3841d443000KULX13MDC130APACDELLCOM_ Content-Type: text/plain; name="umagic.c" Content-Description: umagic.c Content-Disposition: attachment; filename="umagic.c"; size=7911; creation-date="Mon, 30 Dec 2019 22:49:00 GMT"; modification-date="Mon, 30 Dec 2019 22:49:00 GMT" Content-Transfer-Encoding: base64 LyoKICogREVMTCBQUk9QUklFVEFSWSBJTkZPUk1BVElPTgogKgogKiBUaGlzIHNvZnR3YXJlIGlz IGNvbmZpZGVudGlhbC4gIERlbGwgSW5jLiwgb3Igb25lIG9mIGl0cyBzdWJzaWRpYXJpZXMsIGhh cwogKiBzdXBwbGllZCB0aGlzIHNvZnR3YXJlIHRvIHlvdSB1bmRlciB0aGUgdGVybXMgb2YgYSBs aWNlbnNlIGFncmVlbWVudCwKICogbm9uZGlzY2xvc3VyZSBhZ3JlZW1lbnQgb3IgYm90aC4gIFlv dSBtYXkgbm90IGNvcHksIGRpc2Nsb3NlLCBvciB1c2UgdGhpcwogKiBzb2Z0d2FyZSBleGNlcHQg aW4gYWNjb3JkYW5jZSB3aXRoIHRob3NlIHRlcm1zLgogKgogKiBDb3B5cmlnaHQgMjAxOSBEZWxs IEluYy4gb3IgaXRzIHN1YnNpZGlhcmllcy4gIEFsbCBSaWdodHMgUmVzZXJ2ZWQuCiAqCiAqIERF TEwgSU5DLiBNQUtFUyBOTyBSRVBSRVNFTlRBVElPTlMgT1IgV0FSUkFOVElFUwogKiBBQk9VVCBU SEUgU1VJVEFCSUxJVFkgT0YgVEhFIFNPRlRXQVJFLCBFSVRIRVIgRVhQUkVTUwogKiBPUiBJTVBM SUVELCBJTkNMVURJTkcgQlVUIE5PVCBMSU1JVEVEIFRPIFRIRSBJTVBMSUVECiAqIFdBUlJBTlRJ RVMgT0YgTUVSQ0hBTlRBQklMSVRZLCBGSVRORVNTIEZPUiBBCiAqIFBBUlRJQ1VMQVIgUFV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5DRUxMRUQpIHsKCQkJLyogdHJ5IGNsZWFy IHN0YWxsIGZpcnN0ICovCgkJCXVzYmRfeGZlcl9zZXRfc3RhbGwoeGZlcik7CgkJCWdvdG8gdHJf c2V0dXA7CgkJfQoJCXhmZXItPmVycm9yID0gMDsKCQlicmVhazsKCX0KfQoK --_003_caff3f2cab964507b12df3841d443000KULX13MDC130APACDELLCOM_ Content-Type: application/octet-stream; name="xhci_stop_xfer.diff" Content-Description: xhci_stop_xfer.diff Content-Disposition: attachment; filename="xhci_stop_xfer.diff"; size=4181; creation-date="Mon, 30 Dec 2019 23:13:00 GMT"; modification-date="Mon, 30 Dec 2019 23:13:00 GMT" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL3N5cy9kZXYvdXNiL2NvbnRyb2xsZXIveGhjaS5jIGIvc3lzL2Rldi91c2Iv Y29udHJvbGxlci94aGNpLmMKaW5kZXggOGM2YTIyMWNhOWIuLmNhZGU5MTExYTNjIDEwMDY0NAot LS0gYS9zeXMvZGV2L3VzYi9jb250cm9sbGVyL3hoY2kuYworKysgYi9zeXMvZGV2L3VzYi9jb250 cm9sbGVyL3hoY2kuYwpAQCAtMzkwNSw5ICszOTA1LDEwIEBAIHhoY2lfY29uZmlndXJlX3Jlc2V0 X2VuZHBvaW50KHN0cnVjdCB1c2JfeGZlciAqeGZlcikKIAogCXhoY2lfY29uZmlndXJlX21hc2so dWRldiwgKDFVIDw8IGVwbm8pIHwgMVUsIDApOwogCi0JaWYgKGVwbm8gPiAxKQotCQllcnIgPSB4 aGNpX2NtZF9jb25maWd1cmVfZXAoc2MsIGJ1Zl9pbnAucGh5c2FkZHIsIDAsIGluZGV4KTsKLQll bHNlCisJaWYgKGVwbm8gPiAxKSB7CisJCWlmICghcGVwZXh0LT5zdG9wX3hmZXJfZml4ZWQpCisJ CQllcnIgPSB4aGNpX2NtZF9jb25maWd1cmVfZXAoc2MsIGJ1Zl9pbnAucGh5c2FkZHIsIDAsIGlu ZGV4KTsKKwl9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X0xPQ0sodWRldi0+YnVzKTsKLQlwZXBleHQtPnRyYl9oYWx0ZWQgPSAxOwotCXBlcGV4dC0+dHJi X3J1bm5pbmcgPSAwOworCWlmIChlcG5vID09IDEpIHsKKwkJcGVwZXh0LT50cmJfaGFsdGVkID0g MTsKKwkJcGVwZXh0LT50cmJfcnVubmluZyA9IDA7CisJfSBlbHNlIHsKKwkJaWYgKGVycikgewor CQkJS0xPR04oS0VSUiwgImNvbmZpZ3VyZSBlcCBlcnIgJWRcbiIsIGVycik7CisJCQlwZXBleHQt PnRyYl9oYWx0ZWQgPSAxOworCQkJcGVwZXh0LT50cmJfcnVubmluZyA9IDA7CisJCX0gZWxzZSB7 CisJCQlwZXBleHQtPnRyYl9oYWx0ZWQgPSAwOworCQkJcGVwZXh0LT50cmJfcnVubmluZyA9IDE7 CisJCQlwZXBleHQtPnN0b3BfeGZlcl9maXhlZCA9IDE7CisJCX0KKwl9CiAJVVNCX0JVU19VTkxP Q0sodWRldi0+YnVzKTsKIH0KIAo= --_003_caff3f2cab964507b12df3841d443000KULX13MDC130APACDELLCOM_-- From owner-freebsd-usb@freebsd.org Tue Dec 31 10:54:31 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 989551D15A0 for ; Tue, 31 Dec 2019 10:54:31 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47nB523btbz48yH for ; Tue, 31 Dec 2019 10:54:30 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [62.141.129.235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id BFE342607D1; Tue, 31 Dec 2019 11:54:22 +0100 (CET) Subject: Re: can not receive xfer interrupt after stop xfer is called intel XHCI Gemini Lake SOC To: Shichun.Ma@dell.com, freebsd-usb@freebsd.org Cc: Shunchao.Hu@dell.com References: <1577408331523.24347@Dell.com> <1577411424906.21267@Dell.com> From: Hans Petter Selasky Message-ID: Date: Tue, 31 Dec 2019 11:53:55 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------F7341B54021F63A4FCBB01F8" Content-Language: en-US X-Rspamd-Queue-Id: 47nB523btbz48yH X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 88.99.82.50 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-5.42 / 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)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; HAS_ATTACHMENT(0.00)[]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[selasky.org]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(-3.12)[ip: (-9.33), ipnet: 88.99.0.0/16(-4.72), asn: 24940(-1.54), country: DE(-0.02)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; 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-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, 31 Dec 2019 10:54:31 -0000 This is a multi-part message in MIME format. --------------F7341B54021F63A4FCBB01F8 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 2019-12-31 01:23, Shichun.Ma@dell.com wrote: > Dell Customer Communication - Confidential > > Hi HPS, > > It's already in stopped status. I am also confusing on the root cause. > I attached the test application and my patch for the xhci stop xfer workaround solution. > The confusing points: > 1. cancel xfer error can be reproduced on all CCID smart readers (I have tested three different model of readers); > 2. keyboard has similar endpoint attribution, while I can't reproduce similar problem on the keyboard; > Hi, I suspect it is the newer XHCI hardware which has some additional checks. Can you verify if the XHCI controller in your computer accept multiple configure_ep() commands? The state diagram in the XHCI specification does not say you cannot do this, but I imagine this might be causing it. The XHCI driver in FreeBSD configure one and one endpoint and not all at the same time. Can you try the attached patch instead of yours? --HPS --------------F7341B54021F63A4FCBB01F8 Content-Type: text/x-patch; charset=UTF-8; name="xhci.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xhci.diff" Index: sys/dev/usb/controller/xhci.c =================================================================== --- sys/dev/usb/controller/xhci.c (revision 356220) +++ sys/dev/usb/controller/xhci.c (working copy) @@ -3838,6 +3838,7 @@ struct usb_page_cache *pcinp; usb_error_t err; usb_stream_t stream_id; + uint32_t mask; uint8_t index; uint8_t epno; @@ -3903,16 +3904,20 @@ * endpoint context state diagram in the XHCI specification: */ - xhci_configure_mask(udev, (1U << epno) | 1U, 0); + mask = (1U << epno); + xhci_configure_mask(udev, mask | 1U, 0); - if (epno > 1) + if (!(sc->sc_hw.devs[index].ep_configured & mask)) { + sc->sc_hw.devs[index].ep_configured |= mask; err = xhci_cmd_configure_ep(sc, buf_inp.physaddr, 0, index); - else + } else { err = xhci_cmd_evaluate_ctx(sc, buf_inp.physaddr, index); + } - if (err != 0) - DPRINTF("Could not configure endpoint %u\n", epno); - + if (err != 0) { + DPRINTF("Could not configure " + "endpoint %u at slot %u.\n", epno, index); + } XHCI_CMD_UNLOCK(sc); return (0); @@ -4273,6 +4278,7 @@ /* set default state */ sc->sc_hw.devs[index].state = XHCI_ST_DEFAULT; + sc->sc_hw.devs[index].ep_configured = 3U; /* reset number of contexts */ sc->sc_hw.devs[index].context_num = 0; @@ -4290,6 +4296,7 @@ break; sc->sc_hw.devs[index].state = XHCI_ST_ADDRESSED; + sc->sc_hw.devs[index].ep_configured = 3U; /* set configure mask to slot only */ xhci_configure_mask(udev, 1, 0); @@ -4304,11 +4311,19 @@ break; case USB_STATE_CONFIGURED: - if (sc->sc_hw.devs[index].state == XHCI_ST_CONFIGURED) - break; + if (sc->sc_hw.devs[index].state == XHCI_ST_CONFIGURED) { + /* deconfigure all endpoints, except EP0 */ + err = xhci_cmd_configure_ep(sc, 0, 1, index); + if (err) { + DPRINTF("Failed to deconfigure " + "slot %u.\n", index); + } + } + /* set configured state */ sc->sc_hw.devs[index].state = XHCI_ST_CONFIGURED; + sc->sc_hw.devs[index].ep_configured = 3U; /* reset number of contexts */ sc->sc_hw.devs[index].context_num = 0; Index: sys/dev/usb/controller/xhci.h =================================================================== --- sys/dev/usb/controller/xhci.h (revision 356220) +++ sys/dev/usb/controller/xhci.h (working copy) @@ -408,6 +408,8 @@ struct xhci_endpoint_ext endp[XHCI_MAX_ENDPOINTS]; + uint32_t ep_configured; + uint8_t state; uint8_t nports; uint8_t tt; --------------F7341B54021F63A4FCBB01F8-- From owner-freebsd-usb@freebsd.org Fri Jan 3 22:04:56 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0F0621EEAF8 for ; Fri, 3 Jan 2020 22:04:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47qJqC6khjz4QRC for ; Fri, 3 Jan 2020 22:04:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id E6EB91EEAF7; Fri, 3 Jan 2020 22:04:55 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E6B0F1EEAF6 for ; Fri, 3 Jan 2020 22:04:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qJqC5rglz4QRB for ; Fri, 3 Jan 2020 22:04:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C1D842D15 for ; Fri, 3 Jan 2020 22:04:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 003M4tkV048578 for ; Fri, 3 Jan 2020 22:04:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 003M4tVo048577 for usb@FreeBSD.org; Fri, 3 Jan 2020 22:04:55 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 243069] usb tape error Date: Fri, 03 Jan 2020 22:04:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 11.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: wayne@crinc.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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-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: Fri, 03 Jan 2020 22:04:56 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243069 Bug ID: 243069 Summary: usb tape error Product: Base System Version: 11.3-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: usb Assignee: usb@FreeBSD.org Reporter: wayne@crinc.com Every write to a usb dat160 tape drive results in a CAM error and a series = of scsi errors. Tape will successfully read tar and dd formats. It tries to = read cpio but is not successful (no error generated). Questions: Will stable version 12.1 fix? Will change to dat160 scsi lvd fi= x? Wayne --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri Jan 3 22:22:09 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2C5031F066D for ; Fri, 3 Jan 2020 22:22:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47qKC50SxJz4RKg for ; Fri, 3 Jan 2020 22:22:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 1008D1F066C; Fri, 3 Jan 2020 22:22:09 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0FC531F066B for ; Fri, 3 Jan 2020 22:22:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qKC46lFlz4RKf for ; Fri, 3 Jan 2020 22:22:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E30A430A9 for ; Fri, 3 Jan 2020 22:22:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 003MM8pb091391 for ; Fri, 3 Jan 2020 22:22:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 003MM8B1091390 for usb@FreeBSD.org; Fri, 3 Jan 2020 22:22:08 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 243069] usb tape error Date: Fri, 03 Jan 2020 22:22:08 +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: 11.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mav@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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-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: Fri, 03 Jan 2020 22:22:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243069 --- Comment #1 from Alexander Motin --- Wayne, my crystal ball is still not functional after past holidays, I can't= see the errors on your monitor clearly enough. Could you provide more informat= ion? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Sat Jan 4 21:23:18 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B15B31D433B for ; Sat, 4 Jan 2020 21:23:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47qvrk49Gtz4f85 for ; Sat, 4 Jan 2020 21:23:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 8F0621D433A; Sat, 4 Jan 2020 21:23:18 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8EC781D4339 for ; Sat, 4 Jan 2020 21:23:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qvrk26hLz4f84 for ; Sat, 4 Jan 2020 21:23:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4442D1B276 for ; Sat, 4 Jan 2020 21:23:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 004LNIXm029795 for ; Sat, 4 Jan 2020 21:23:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 004LNIDT029794 for usb@FreeBSD.org; Sat, 4 Jan 2020 21:23:18 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 243069] usb tape error Date: Sat, 04 Jan 2020 21:23:17 +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: 11.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: wayne@crinc.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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-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, 04 Jan 2020 21:23:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243069 --- Comment #2 from wayne anschutz --- Here is the error list for this problem. (sa0:umass-sim0:0:0:0): WRITE FILEMARKS(6). CDB: 10 00 00 00 02 00 (sa0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (sa0:umass-sim0:0:0:0): Error 5, Retries exhausted (sa0:umass-sim0:0:0:0): READ POSITION. CDB: 34 06 00 00 00 00 00 00 00 00 (sa0:umass-sim0:0:0:0): CAM status: SCSI Status Error (sa0:umass-sim0:0:0:0): SCSI status: Check Condition (sa0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:29,2 (SCSI bus reset occu rred) (sa0:umass-sim0:0:0:0): Retrying command (per sense data) (sa0:umass-sim0:0:0:0): failed to write terminating filemark(s) (sa0:umass-sim0:0:0:0): REWIND. CDB: 01 00 00 00 00 00 (sa0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (sa0:umass-sim0:0:0:0): Retrying command (sa0:umass-sim0:0:0:0): REWIND. CDB: 01 00 00 00 00 00 (sa0:umass-sim0:0:0:0): CAM status: SCSI Status Error (sa0:umass-sim0:0:0:0): SCSI status: Check Condition (sa0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:29,2 (SCSI bus reset occu rred) (sa0:umass-sim0:0:0:0): Retrying command (per sense data) Wayne --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Sat Jan 4 21:38:56 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C407D1D623A for ; Sat, 4 Jan 2020 21:38:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47qwBm4t4nz4fmn for ; Sat, 4 Jan 2020 21:38:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id A74B01D6239; Sat, 4 Jan 2020 21:38:56 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A712A1D6237 for ; Sat, 4 Jan 2020 21:38:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qwBm3xWVz4fmm for ; Sat, 4 Jan 2020 21:38:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 82A2E1B441 for ; Sat, 4 Jan 2020 21:38:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 004LcunK087028 for ; Sat, 4 Jan 2020 21:38:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 004LcuG5087023 for usb@FreeBSD.org; Sat, 4 Jan 2020 21:38:56 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 243069] usb tape error Date: Sat, 04 Jan 2020 21:38:55 +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: 11.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: wayne@crinc.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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-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, 04 Jan 2020 21:38:56 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243069 --- Comment #3 from wayne anschutz --- Note that I took an HP dat 160 out of a SCO box and tested in the BSD box.= =20 Same errors were generated! Wayne --=20 You are receiving this mail because: You are the assignee for the bug.=