From owner-freebsd-usb@freebsd.org Sun Jan 5 17:47:52 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 B9D1B1E055A for ; Sun, 5 Jan 2020 17:47:52 +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 47rR1h4Kzsz4XgD for ; Sun, 5 Jan 2020 17:47:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 926721E0558; Sun, 5 Jan 2020 17:47:52 +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 920CC1E0557 for ; Sun, 5 Jan 2020 17:47:52 +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 47rR1h0xFNz4Xg9 for ; Sun, 5 Jan 2020 17:47:52 +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 1A6281224 for ; Sun, 5 Jan 2020 17:47:52 +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 005HlpIS000790 for ; Sun, 5 Jan 2020 17:47:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 005Hlpwc000789 for usb@FreeBSD.org; Sun, 5 Jan 2020 17:47:51 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: Sun, 05 Jan 2020 17:47:51 +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: Sun, 05 Jan 2020 17:47:52 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243069 --- Comment #4 from wayne anschutz --- Folks this has been solved! Someone responded and suggested a blocksize is= sue. We always set the blocksize to 0 and let the drive auto handle blocksize. = We have been assuming that out-of-the-box tape drives default to blocksize 0.= =20 Either BSD messed with it or it was not defaulted to 0. Issuing the command= mt blocksize 0 solved the write problem. Many thanks for everyones assistance with this! I would have ordered the p= arts for a scsi tape on Monday. Wayne --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Sun Jan 5 21:02:33 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 938E81E5B8E for ; Sun, 5 Jan 2020 21:02:33 +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 47rWLK3TtBz3GMh for ; Sun, 5 Jan 2020 21:02:33 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 774BD1E5B8D; Sun, 5 Jan 2020 21:02:33 +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 7713D1E5B8C for ; Sun, 5 Jan 2020 21:02:33 +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 47rWLK2cF6z3GMg for ; Sun, 5 Jan 2020 21:02:33 +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 550233885 for ; Sun, 5 Jan 2020 21:02:33 +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 005L2Xrr074414 for ; Sun, 5 Jan 2020 21:02:33 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 005L2XTN074413 for usb@FreeBSD.org; Sun, 5 Jan 2020 21:02:33 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202001052102.005L2XTN074413@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, 5 Jan 2020 21:02:33 +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, 05 Jan 2020 21:02:33 -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 Open | 237666 | repeated messages of "uhub_reattach_port: giving 4 problems total for which you should take action. From owner-freebsd-usb@freebsd.org Mon Jan 6 20:20:32 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 B27171EA01C for ; Mon, 6 Jan 2020 20:20:32 +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 47s6MN4NWCz49Cn for ; Mon, 6 Jan 2020 20:20:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 9664D1EA01B; Mon, 6 Jan 2020 20:20:32 +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 962941EA019 for ; Mon, 6 Jan 2020 20:20:32 +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 47s6MN3SCNz49Cm for ; Mon, 6 Jan 2020 20:20:32 +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 6D9981BBC2 for ; Mon, 6 Jan 2020 20:20:32 +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 006KKW4H097376 for ; Mon, 6 Jan 2020 20:20:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 006KKW6T097335 for usb@FreeBSD.org; Mon, 6 Jan 2020 20:20:32 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: Mon, 06 Jan 2020 20:20:31 +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: Mon, 06 Jan 2020 20:20:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243069 --- Comment #5 from wayne anschutz --- Sorry, but I made an error on my last post. Setting blocksize did not cure= the problem, but using dd only give a scsi rewind error. The data written to t= ape reads correctly and it will be useable as a backup. Please continue work on this error for others. Wayne --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Wed Jan 8 11:16:20 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 B12AC1EAE28 for ; Wed, 8 Jan 2020 11:16:20 +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 47t6BW5XHRz4MwD for ; Wed, 8 Jan 2020 11:16:19 +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 D4312260165; Wed, 8 Jan 2020 12:16:11 +0100 (CET) Subject: Re: can not receive xfer interrupt after stop xfer is called intel XHCI Gemini Lake SOC From: Hans Petter Selasky To: Shichun.Ma@dell.com, freebsd-usb@freebsd.org Cc: Shunchao.Hu@dell.com References: <1577408331523.24347@Dell.com> <1577411424906.21267@Dell.com> Message-ID: Date: Wed, 8 Jan 2020 12:15:40 +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: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47t6BW5XHRz4MwD 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.41 / 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:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[selasky.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(-3.11)[ip: (-9.33), ipnet: 88.99.0.0/16(-4.71), asn: 24940(-1.50), country: DE(-0.02)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; 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: Wed, 08 Jan 2020 11:16:20 -0000 On 2019-12-31 11:53, Hans Petter Selasky wrote: > 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? > Ping? --HPS From owner-freebsd-usb@freebsd.org Thu Jan 9 01:38:04 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 C62B42232E9 for ; Thu, 9 Jan 2020 01:38:04 +0000 (UTC) (envelope-from Shichun.Ma@dell.com) Received: from mx0b-00154904.pphosted.com (mx0b-00154904.pphosted.com [148.163.137.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 47tTJq4Xwmz4R7r for ; Thu, 9 Jan 2020 01:38:03 +0000 (UTC) (envelope-from Shichun.Ma@dell.com) Received: from pps.filterd (m0170397.ppops.net [127.0.0.1]) by mx0b-00154904.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0091Zaou002528 for ; Wed, 8 Jan 2020 20:38:01 -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 : content-transfer-encoding : mime-version; s=smtpout1; bh=I3BJtH92dqZYYeH8xQ9pN6SHbMxckFUmTwnUzG85+Zw=; b=alDi5KRjnqbPcwy34VAprq2acDmHGwJhMe0c3m09SR8EPnashQvcEcQ5CSDKLhaVmgiD jynhUwYu4JMWT9jDocU1cCsDUExAuGp/rRRmvuFAQGBrkA1XRk/PnCL6EbYOw1LX9moY kK77YBtISxTtg/AXQoenaFFjAleaiS9a+y71KYkxl5e/SLF+v2XNBU/2mCbRA63x1d60 yIKfFMjQEFnBd2SWgmLU2auVIONPhoQgYAGjCgPdxIdEG3hNWWUelHYzwq8cYv7oIXVS 4FjjnhsqfSX1xGS2v0RRb0kbV3L72kAr8EF2cKrekAeN73sE/W2RpOy6VsUwUGbnU08+ 5w== Received: from mx0a-00154901.pphosted.com (mx0a-00154901.pphosted.com [67.231.149.39]) by mx0b-00154904.pphosted.com with ESMTP id 2xdnv7h0fm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 08 Jan 2020 20:38:01 -0500 Received: from pps.filterd (m0133268.ppops.net [127.0.0.1]) by mx0a-00154901.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0091btTv051174 for ; Wed, 8 Jan 2020 20:38:00 -0500 Received: from ausc60pc101.us.dell.com (ausc60pc101.us.dell.com [143.166.85.206]) by mx0a-00154901.pphosted.com with ESMTP id 2xantvnm35-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 08 Jan 2020 20:38:00 -0500 X-LoopCount0: from 10.166.132.128 X-PREM-Routing: D-Outbound X-IronPort-AV: E=Sophos;i="5.60,349,1549951200"; d="scan'208";a="1513747656" 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///qBACABj9YYIAAMuSAgAyYugCAAXZioA== Date: Thu, 9 Jan 2020 01:37:56 +0000 Message-ID: <9730fb2b427449dc8f7727b624c9c822@KULX13MDC126.APAC.DELL.COM> References: <1577408331523.24347@Dell.com> <1577411424906.21267@Dell.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_a17f17c0-b23c-493d-99ab-b037779ecd33_Enabled=True; MSIP_Label_a17f17c0-b23c-493d-99ab-b037779ecd33_Method=Unknown x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [125.252.73.115] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-01-08_07:2020-01-08, 2020-01-08 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 malwarescore=0 priorityscore=1501 adultscore=0 clxscore=1015 impostorscore=0 mlxlogscore=494 spamscore=0 mlxscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001090014 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 suspectscore=0 malwarescore=0 mlxscore=0 priorityscore=1501 impostorscore=0 mlxlogscore=631 phishscore=0 clxscore=1015 adultscore=0 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001090013 X-Rspamd-Queue-Id: 47tTJq4Xwmz4R7r X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=dell.com header.s=smtpout1 header.b=alDi5KRj; dmarc=pass (policy=none) header.from=dell.com; spf=pass (mx1.freebsd.org: domain of Shichun.Ma@dell.com designates 148.163.137.20 as permitted sender) smtp.mailfrom=Shichun.Ma@dell.com X-Spamd-Result: default: False [-7.45 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[dell.com:s=smtpout1]; HAS_XOIP(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_COUNT_FIVE(0.00)[5]; R_SPF_ALLOW(-0.20)[+ip4:148.163.137.20]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; TO_DN_NONE(0.00)[]; DWL_DNSWL_LOW(-1.00)[dell.com.dwl.dnswl.org : 127.0.9.1]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[dell.com:+]; MIME_BASE64_TEXT(0.10)[]; FROM_NO_DN(0.00)[]; DMARC_POLICY_ALLOW(-0.50)[dell.com,none]; IP_SCORE(-0.45)[ip: (-0.14), ipnet: 148.163.137.0/24(-0.05), asn: 22843(-2.01), country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[20.137.163.148.list.dnswl.org : 127.0.3.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:22843, ipnet:148.163.137.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; WHITELIST_SPF_DKIM(-3.00)[dell.com:d:+,dell.com:s:+] 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: Thu, 09 Jan 2020 01:38:04 -0000 RGVsbCBDdXN0b21lciBDb21tdW5pY2F0aW9uIC0gQ29uZmlkZW50aWFsDQoNCkhpIEhQUywNClNv cnJ5IGZvciBsYXRlIHJlc3BvbnNlLCBJIGFtIGJ1c3kgd2l0aCBvdGhlciBpc3N1ZSBsYXN0IGRh eXMuDQpJIHZlcmlmaWVkIHlvdXIgZGlmZiwgYW5kIEkgZ290IHBvc2l0aXZlIHJlc3VsdC4gWW91 ciBkaWZmIGZpeGVzIGNhbmNlbCB4ZmVyIGlzc3VlLg0KV2lsbCB5b3UgY29tbWl0IGl0IHRvIG1h aW4gc3RyZWFtPw0KDQpSZWdhcmRzLA0KDQpIb3JzZSBNYSAoU2hpY2h1biBNYSkNCg0KU29mdHdh cmUgRW5naW5lZXINCkRlbGwgfCBDbG91ZCBjbGllbnQtY29tcHV0aW5nIC0gV3lzZQ0Kb2ZmaWNl ICs4NiAxMCA4Mjg2MjU3OSzCoCBNb2JpbGUgKzg2IDEzMjQxODUxNTI4DQoNClNlZSBvdXIgcHJv ZHVjdHMgYXQgd3d3LmRlbGwuY29tL3d5c2UNCg0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0N CkZyb206IEhhbnMgUGV0dGVyIFNlbGFza3kgPGhwc0BzZWxhc2t5Lm9yZz4gDQpTZW50OiBXZWRu ZXNkYXksIEphbnVhcnkgOCwgMjAyMCA3OjE2IFBNDQpUbzogTWEsIEhvcnNlOyBmcmVlYnNkLXVz YkBmcmVlYnNkLm9yZw0KQ2M6IEh1LCBTaHVuY2hhbw0KU3ViamVjdDogUmU6IGNhbiBub3QgcmVj ZWl2ZSB4ZmVyIGludGVycnVwdCBhZnRlciBzdG9wIHhmZXIgaXMgY2FsbGVkIGludGVsIFhIQ0kg R2VtaW5pIExha2UgU09DDQoNCg0KW0VYVEVSTkFMIEVNQUlMXSANCg0KT24gMjAxOS0xMi0zMSAx MTo1MywgSGFucyBQZXR0ZXIgU2VsYXNreSB3cm90ZToNCj4gT24gMjAxOS0xMi0zMSAwMToyMywg U2hpY2h1bi5NYUBkZWxsLmNvbSB3cm90ZToNCj4+IERlbGwgQ3VzdG9tZXIgQ29tbXVuaWNhdGlv biAtIENvbmZpZGVudGlhbA0KPj4NCj4+IEhpIEhQUywNCj4+DQo+PiBJdCdzIGFscmVhZHkgaW4g c3RvcHBlZCBzdGF0dXMuIEkgYW0gYWxzbyBjb25mdXNpbmcgb24gdGhlIHJvb3QgY2F1c2UuDQo+ PiBJIGF0dGFjaGVkIHRoZSB0ZXN0IGFwcGxpY2F0aW9uIGFuZCBteSBwYXRjaCBmb3IgdGhlIHho Y2kgc3RvcCB4ZmVyIA0KPj4gd29ya2Fyb3VuZCBzb2x1dGlvbi4NCj4+IFRoZSBjb25mdXNpbmcg cG9pbnRzOg0KPj4gMS4gY2FuY2VsIHhmZXIgZXJyb3IgY2FuIGJlIHJlcHJvZHVjZWQgb24gYWxs IENDSUQgc21hcnQgcmVhZGVycyAoSSANCj4+IGhhdmUgdGVzdGVkIHRocmVlIGRpZmZlcmVudCBt b2RlbCBvZiByZWFkZXJzKTsgMi4ga2V5Ym9hcmQgaGFzIA0KPj4gc2ltaWxhciBlbmRwb2ludCBh dHRyaWJ1dGlvbiwgd2hpbGUgSSBjYW4ndCByZXByb2R1Y2Ugc2ltaWxhciBwcm9ibGVtIA0KPj4g b24gdGhlIGtleWJvYXJkOw0KPj4NCj4gDQo+IEhpLA0KPiANCj4gSSBzdXNwZWN0IGl0IGlzIHRo ZSBuZXdlciBYSENJIGhhcmR3YXJlIHdoaWNoIGhhcyBzb21lIGFkZGl0aW9uYWwgDQo+IGNoZWNr cy4gQ2FuIHlvdSB2ZXJpZnkgaWYgdGhlIFhIQ0kgY29udHJvbGxlciBpbiB5b3VyIGNvbXB1dGVy IGFjY2VwdCANCj4gbXVsdGlwbGUgY29uZmlndXJlX2VwKCkgY29tbWFuZHM/IFRoZSBzdGF0ZSBk aWFncmFtIGluIHRoZSBYSENJIA0KPiBzcGVjaWZpY2F0aW9uIGRvZXMgbm90IHNheSB5b3UgY2Fu bm90IGRvIHRoaXMsIGJ1dCBJIGltYWdpbmUgdGhpcyANCj4gbWlnaHQgYmUgY2F1c2luZyBpdC4N Cj4gDQo+IFRoZSBYSENJIGRyaXZlciBpbiBGcmVlQlNEIGNvbmZpZ3VyZSBvbmUgYW5kIG9uZSBl bmRwb2ludCBhbmQgbm90IGFsbCANCj4gYXQgdGhlIHNhbWUgdGltZS4NCj4gDQo+IENhbiB5b3Ug dHJ5IHRoZSBhdHRhY2hlZCBwYXRjaCBpbnN0ZWFkIG9mIHlvdXJzPw0KPiANCg0KUGluZz8NCg0K LS1IUFMNCg== From owner-freebsd-usb@freebsd.org Thu Jan 9 08:46:19 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 6524922DC13 for ; Thu, 9 Jan 2020 08:46:19 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (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 47tfpy58lPz3JkT for ; Thu, 9 Jan 2020 08:46:18 +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 69960260179; Thu, 9 Jan 2020 09:46:15 +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> <9730fb2b427449dc8f7727b624c9c822@KULX13MDC126.APAC.DELL.COM> From: Hans Petter Selasky Message-ID: Date: Thu, 9 Jan 2020 09:46:11 +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: <9730fb2b427449dc8f7727b624c9c822@KULX13MDC126.APAC.DELL.COM> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47tfpy58lPz3JkT X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-4.93 / 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:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[selasky.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(-2.63)[ip: (-9.20), ipnet: 2a01:4f8::/29(-2.45), asn: 24940(-1.50), country: DE(-0.02)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, 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: Thu, 09 Jan 2020 08:46:19 -0000 On 2020-01-09 02:37, Shichun.Ma@dell.com wrote: > Dell Customer Communication - Confidential > > Hi HPS, > Sorry for late response, I am busy with other issue last days. > I verified your diff, and I got positive result. Your diff fixes cancel xfer issue. > Will you commit it to main stream? > Yes, I will upstream it later today. Thank you for testing. --HPS From owner-freebsd-usb@freebsd.org Thu Jan 9 08:48: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 80E5D22DCFA for ; Thu, 9 Jan 2020 08:48:18 +0000 (UTC) (envelope-from Shichun.Ma@dell.com) Received: from mx0b-00154904.pphosted.com (mx0b-00154904.pphosted.com [148.163.137.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 47tfsF1tVbz3Jvf for ; Thu, 9 Jan 2020 08:48:16 +0000 (UTC) (envelope-from Shichun.Ma@dell.com) Received: from pps.filterd (m0170398.ppops.net [127.0.0.1]) by mx0b-00154904.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0098iq3K025992 for ; Thu, 9 Jan 2020 03:48:16 -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 : content-transfer-encoding : mime-version; s=smtpout1; bh=YA1+5d0ghyEZVz0fUjW4feo0v1IXP+cgb177lqI88O0=; b=oZ3fJbBxWsGZBj0aK/fLtnSLdfr4fEwpSoUzYy5VqLWOhdOuvwGW5HgUQsLpiBaAhMBY mbdRhwWgaIdrl3bbnEzIj0n2cnFmiqTA2b459cpsjdsp3R36qNX8eQdvWFKfJAwvZAGS 702UO60GdvzGgNB2B5Z9ID2VLS4TNhHKDEasJeVdD/BDTY9iig+nB6g21EtPlnJfXt4J dnB18qYxbADDxsCF5P9O+DXxBZmBYqVF1EVp20t0nk4xoOd/5ZsjBbGZF1BiuOXqk6yN tP1+wqiHOGvVdqKXDIluqcH2lc0na5sQL+WH6qfBlIqCtEKPX4ZRVi0y+64VR+GZTCuD nw== Received: from mx0a-00154901.pphosted.com (mx0a-00154901.pphosted.com [67.231.149.39]) by mx0b-00154904.pphosted.com with ESMTP id 2xaptbmadq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 09 Jan 2020 03:48:15 -0500 Received: from pps.filterd (m0090351.ppops.net [127.0.0.1]) by mx0b-00154901.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0098hlKH066739 for ; Thu, 9 Jan 2020 03:48:14 -0500 Received: from ausxippc101.us.dell.com (ausxippc101.us.dell.com [143.166.85.207]) by mx0b-00154901.pphosted.com with ESMTP id 2xcwkse0v1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 09 Jan 2020 03:48:14 -0500 X-LoopCount0: from 10.166.132.189 X-PREM-Routing: D-Outbound X-IronPort-AV: E=Sophos;i="5.60,346,1549951200"; d="scan'208";a="1345425902" 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///qBACABj9YYIAAMuSAgAyYugCAAXZioP//8i+AgACGmwA= Date: Thu, 9 Jan 2020 08:48:06 +0000 Message-ID: <341502e181524c8caa67292ce40824b3@KULX13MDC126.APAC.DELL.COM> References: <1577408331523.24347@Dell.com> <1577411424906.21267@Dell.com> <9730fb2b427449dc8f7727b624c9c822@KULX13MDC126.APAC.DELL.COM> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_a17f17c0-b23c-493d-99ab-b037779ecd33_Enabled=True; MSIP_Label_a17f17c0-b23c-493d-99ab-b037779ecd33_Method=Unknown x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.80.193.67] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-01-09_02:2020-01-08, 2020-01-09 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 suspectscore=0 spamscore=0 lowpriorityscore=0 mlxscore=0 malwarescore=0 impostorscore=0 clxscore=1015 phishscore=0 bulkscore=0 mlxlogscore=612 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001090076 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 impostorscore=0 malwarescore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 mlxlogscore=753 clxscore=1015 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001090076 X-Rspamd-Queue-Id: 47tfsF1tVbz3Jvf X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=dell.com header.s=smtpout1 header.b=oZ3fJbBx; dmarc=pass (policy=none) header.from=dell.com; spf=pass (mx1.freebsd.org: domain of Shichun.Ma@dell.com designates 148.163.137.20 as permitted sender) smtp.mailfrom=Shichun.Ma@dell.com X-Spamd-Result: default: False [-7.45 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[dell.com:s=smtpout1]; HAS_XOIP(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_COUNT_FIVE(0.00)[5]; R_SPF_ALLOW(-0.20)[+ip4:148.163.137.20]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; TO_DN_NONE(0.00)[]; DWL_DNSWL_LOW(-1.00)[dell.com.dwl.dnswl.org : 127.0.9.1]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[dell.com:+]; MIME_BASE64_TEXT(0.10)[]; FROM_NO_DN(0.00)[]; DMARC_POLICY_ALLOW(-0.50)[dell.com,none]; IP_SCORE(-0.45)[ip: (-0.15), ipnet: 148.163.137.0/24(-0.06), asn: 22843(-2.02), country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[20.137.163.148.list.dnswl.org : 127.0.3.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:22843, ipnet:148.163.137.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; WHITELIST_SPF_DKIM(-3.00)[dell.com:d:+,dell.com:s:+] 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: Thu, 09 Jan 2020 08:48:18 -0000 RGVsbCBDdXN0b21lciBDb21tdW5pY2F0aW9uIC0gQ29uZmlkZW50aWFsDQoNClRoYW5rcyENCg0K UmVnYXJkcywNCg0KSG9yc2UgTWEgKFNoaWNodW4gTWEpDQoNClNvZnR3YXJlIEVuZ2luZWVyDQpE ZWxsIHwgQ2xvdWQgY2xpZW50LWNvbXB1dGluZyAtIFd5c2UNCm9mZmljZSArODYgMTAgODI4NjI1 NzkswqAgTW9iaWxlICs4NiAxMzI0MTg1MTUyOA0KDQpTZWUgb3VyIHByb2R1Y3RzIGF0IHd3dy5k ZWxsLmNvbS93eXNlDQoNCi0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQpGcm9tOiBIYW5zIFBl dHRlciBTZWxhc2t5IDxocHNAc2VsYXNreS5vcmc+IA0KU2VudDogVGh1cnNkYXksIEphbnVhcnkg OSwgMjAyMCA0OjQ2IFBNDQpUbzogTWEsIEhvcnNlOyBmcmVlYnNkLXVzYkBmcmVlYnNkLm9yZw0K Q2M6IEh1LCBTaHVuY2hhbw0KU3ViamVjdDogUmU6IGNhbiBub3QgcmVjZWl2ZSB4ZmVyIGludGVy cnVwdCBhZnRlciBzdG9wIHhmZXIgaXMgY2FsbGVkIGludGVsIFhIQ0kgR2VtaW5pIExha2UgU09D DQoNCg0KW0VYVEVSTkFMIEVNQUlMXSANCg0KT24gMjAyMC0wMS0wOSAwMjozNywgU2hpY2h1bi5N YUBkZWxsLmNvbSB3cm90ZToNCj4gRGVsbCBDdXN0b21lciBDb21tdW5pY2F0aW9uIC0gQ29uZmlk ZW50aWFsDQo+IA0KPiBIaSBIUFMsDQo+IFNvcnJ5IGZvciBsYXRlIHJlc3BvbnNlLCBJIGFtIGJ1 c3kgd2l0aCBvdGhlciBpc3N1ZSBsYXN0IGRheXMuDQo+IEkgdmVyaWZpZWQgeW91ciBkaWZmLCBh bmQgSSBnb3QgcG9zaXRpdmUgcmVzdWx0LiBZb3VyIGRpZmYgZml4ZXMgY2FuY2VsIHhmZXIgaXNz dWUuDQo+IFdpbGwgeW91IGNvbW1pdCBpdCB0byBtYWluIHN0cmVhbT8NCj4gDQoNClllcywgSSB3 aWxsIHVwc3RyZWFtIGl0IGxhdGVyIHRvZGF5Lg0KDQpUaGFuayB5b3UgZm9yIHRlc3RpbmcuDQoN Ci0tSFBTDQo= From owner-freebsd-usb@freebsd.org Thu Jan 9 09:31:14 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 986B522F0B2 for ; Thu, 9 Jan 2020 09:31:14 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (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 47tgpp08G0z3MZ6 for ; Thu, 9 Jan 2020 09:31:13 +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 35A0A26012C; Thu, 9 Jan 2020 10:31:12 +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> <9730fb2b427449dc8f7727b624c9c822@KULX13MDC126.APAC.DELL.COM> <341502e181524c8caa67292ce40824b3@KULX13MDC126.APAC.DELL.COM> From: Hans Petter Selasky Message-ID: <2f882032-c07c-9a05-ae2c-3e1f467e9a4a@selasky.org> Date: Thu, 9 Jan 2020 10:30:59 +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: <341502e181524c8caa67292ce40824b3@KULX13MDC126.APAC.DELL.COM> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47tgpp08G0z3MZ6 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-4.93 / 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:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[selasky.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(-2.63)[ip: (-9.20), ipnet: 2a01:4f8::/29(-2.45), asn: 24940(-1.50), country: DE(-0.02)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, 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: Thu, 09 Jan 2020 09:31:14 -0000 FYI: https://svnweb.freebsd.org/changeset/base/356545 --HPS From owner-freebsd-usb@freebsd.org Thu Jan 9 10:18:01 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 2447E1E8A7D for ; Thu, 9 Jan 2020 10:18:01 +0000 (UTC) (envelope-from Shichun.Ma@dell.com) Received: from mx0b-00154904.pphosted.com (mx0b-00154904.pphosted.com [148.163.137.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 47thrm2FXKz3Qp4 for ; Thu, 9 Jan 2020 10:17:59 +0000 (UTC) (envelope-from Shichun.Ma@dell.com) Received: from pps.filterd (m0170395.ppops.net [127.0.0.1]) by mx0b-00154904.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 009AExr7019957 for ; Thu, 9 Jan 2020 05:17:59 -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 : content-transfer-encoding : mime-version; s=smtpout1; bh=eaaZPKybyobxeuG3IDY+FxDUzxidVJb4stHPiarOQNk=; b=Dk0VUOjpm5jZoedAm2AUQMX5F9glHVclvuZr+DkoPJPbRhSTXNXjvdmvgal+nKv/7bgQ 7GbpGAiT/zbkNdhv3lYYjsRmv31oaqupS1dQbElZOT7hQs3WIq9YX7ABxnUhkZxXrcOX rOTQzysAYQzDmclwrTzGcZf+LKxCetW/wTVn3gMhV0mcV2JXHO4cSL83ugy+lLkkvPTX uKZ935BmgJpjUDOnb/rPBTTZMmmia7xxYyDiEXS6HxfC15ewiSAu90MjgyQKaWgUYtSn c2sOZGs+X9LKBZBec14rc5iodejB+xDxyXW/nUBczjbG8jKrSOBUwPqQ5nbUoTqY5D7V PQ== Received: from mx0a-00154901.pphosted.com (mx0a-00154901.pphosted.com [67.231.149.39]) by mx0b-00154904.pphosted.com with ESMTP id 2xdnb1tnj4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 09 Jan 2020 05:17:59 -0500 Received: from pps.filterd (m0133268.ppops.net [127.0.0.1]) by mx0a-00154901.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 009AHIQf162375 for ; Thu, 9 Jan 2020 05:17:58 -0500 Received: from ausxipps306.us.dell.com (AUSXIPPS306.us.dell.com [143.166.148.156]) by mx0a-00154901.pphosted.com with ESMTP id 2xantvu7d8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 09 Jan 2020 05:17:57 -0500 X-LoopCount0: from 10.166.135.39 X-PREM-Routing: D-Outbound X-IronPort-AV: E=Sophos;i="5.60,349,1549951200"; d="scan'208";a="422142658" 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///qBACABj9YYIAAMuSAgAyYugCAAXZioP//8i+AgACGmwD//4XqgAASZJUw Date: Thu, 9 Jan 2020 10:17:53 +0000 Message-ID: <5190bcfc4ebd494b94924d8a455658d3@KULX13MDC126.APAC.DELL.COM> References: <1577408331523.24347@Dell.com> <1577411424906.21267@Dell.com> <9730fb2b427449dc8f7727b624c9c822@KULX13MDC126.APAC.DELL.COM> <341502e181524c8caa67292ce40824b3@KULX13MDC126.APAC.DELL.COM> <2f882032-c07c-9a05-ae2c-3e1f467e9a4a@selasky.org> In-Reply-To: <2f882032-c07c-9a05-ae2c-3e1f467e9a4a@selasky.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: 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=2020-01-09T10:17:50.1915830Z; 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: [10.80.193.67] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-01-09_02:2020-01-09, 2020-01-09 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 malwarescore=0 priorityscore=1501 adultscore=0 clxscore=1015 impostorscore=0 mlxlogscore=350 spamscore=0 mlxscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001090091 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1015 mlxscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 phishscore=0 adultscore=0 spamscore=0 mlxlogscore=491 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001090091 X-Rspamd-Queue-Id: 47thrm2FXKz3Qp4 X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=dell.com header.s=smtpout1 header.b=Dk0VUOjp; dmarc=pass (policy=none) header.from=dell.com; spf=pass (mx1.freebsd.org: domain of Shichun.Ma@dell.com designates 148.163.137.20 as permitted sender) smtp.mailfrom=Shichun.Ma@dell.com X-Spamd-Result: default: False [-7.46 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[dell.com:s=smtpout1]; HAS_XOIP(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_COUNT_FIVE(0.00)[5]; R_SPF_ALLOW(-0.20)[+ip4:148.163.137.20]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; TO_DN_NONE(0.00)[]; DWL_DNSWL_LOW(-1.00)[dell.com.dwl.dnswl.org : 127.0.9.1]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[dell.com:+]; MIME_BASE64_TEXT(0.10)[]; FROM_NO_DN(0.00)[]; DMARC_POLICY_ALLOW(-0.50)[dell.com,none]; IP_SCORE(-0.46)[ip: (-0.16), ipnet: 148.163.137.0/24(-0.06), asn: 22843(-2.02), country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[20.137.163.148.list.dnswl.org : 127.0.3.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:22843, ipnet:148.163.137.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; WHITELIST_SPF_DKIM(-3.00)[dell.com:d:+,dell.com:s:+] 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: Thu, 09 Jan 2020 10:18:01 -0000 RGVsbCBDdXN0b21lciBDb21tdW5pY2F0aW9uIC0gQ29uZmlkZW50aWFsDQoNClRoYW5rcyENCg0K DQpSZWdhcmRzLA0KDQpIb3JzZSBNYSAoU2hpY2h1biBNYSkNCg0KU29mdHdhcmUgRW5naW5lZXIN CkRlbGwgfCBDbG91ZCBjbGllbnQtY29tcHV0aW5nIC0gV3lzZQ0Kb2ZmaWNlICs4NiAxMCA4Mjg2 MjU3OSzCoCBNb2JpbGUgKzg2IDEzMjQxODUxNTI4DQoNClNlZSBvdXIgcHJvZHVjdHMgYXQgd3d3 LmRlbGwuY29tL3d5c2UNCg0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206IEhhbnMg UGV0dGVyIFNlbGFza3kgPGhwc0BzZWxhc2t5Lm9yZz4gDQpTZW50OiBUaHVyc2RheSwgSmFudWFy eSA5LCAyMDIwIDU6MzEgUE0NClRvOiBNYSwgSG9yc2U7IGZyZWVic2QtdXNiQGZyZWVic2Qub3Jn DQpDYzogSHUsIFNodW5jaGFvDQpTdWJqZWN0OiBSZTogY2FuIG5vdCByZWNlaXZlIHhmZXIgaW50 ZXJydXB0IGFmdGVyIHN0b3AgeGZlciBpcyBjYWxsZWQgaW50ZWwgWEhDSSBHZW1pbmkgTGFrZSBT T0MNCg0KDQpbRVhURVJOQUwgRU1BSUxdIA0KDQpGWUk6DQoNCmh0dHBzOi8vc3Zud2ViLmZyZWVi c2Qub3JnL2NoYW5nZXNldC9iYXNlLzM1NjU0NQ0KDQotLUhQUw0K From owner-freebsd-usb@freebsd.org Fri Jan 10 02:29:31 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 35EE61FFFE7 for ; Fri, 10 Jan 2020 02:29:31 +0000 (UTC) (envelope-from Shichun.Ma@dell.com) Received: from mx0b-00154904.pphosted.com (mx0b-00154904.pphosted.com [148.163.137.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 47v6Pj6M5xz42xJ for ; Fri, 10 Jan 2020 02:29:29 +0000 (UTC) (envelope-from Shichun.Ma@dell.com) Received: from pps.filterd (m0170394.ppops.net [127.0.0.1]) by mx0b-00154904.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00A2TSOD028005 for ; Thu, 9 Jan 2020 21:29:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dell.com; h=from : to : cc : subject : date : message-id : content-type : mime-version; s=smtpout1; bh=8Q8OHYptoxKGHFcTP0e2UpThcU2iqtkgNjqobbw/GJ0=; b=V9dz75hx2/JRQPj2pdko+rMIQtpmySDX0UvChtk/CQiorfke8laAq8HH8jsfUZcmgcjD Lma4geDTUM8TpERFdSbr1rQSp47ToJGrytaEZFXuzVDgmB+J1kdmL9bVusFT25JD4sAk Qk6Bq9d5ffVOxTkh3tw0B9HVcvo+0MOADVjRcHG1Tckme7k52bVVIffmVT5QPDIwq5UG HTomMWEZovJkfY1i+xKzEZpVO8EBkeXWHVmYfYCnbLsHXwPj58KGdorhAc5Me6ZARPrZ 6Q81bclrAfLG0wTX1ELzxDh3ytKNbw/yJ8X7o1cXdkO9Yn6/Xr08iBqCPUhudrsqy7u7 3g== Received: from mx0b-00154901.pphosted.com (mx0b-00154901.pphosted.com [67.231.157.37]) by mx0b-00154904.pphosted.com with ESMTP id 2xe4knayq1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 09 Jan 2020 21:29:28 -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 00A2Ndje132474 for ; Thu, 9 Jan 2020 21:29:28 -0500 Received: from ausxipps301.us.dell.com (ausxipps301.us.dell.com [143.166.148.223]) by mx0b-00154901.pphosted.com with ESMTP id 2xdjsjs95t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 09 Jan 2020 21:29:27 -0500 X-LoopCount0: from 10.166.135.138 X-PREM-Routing: D-Outbound X-IronPort-AV: E=Sophos;i="5.60,349,1549951200"; d="scan'208,217";a="444025061" From: To: , CC: Subject: minor improve for xhci_cmd_stop_ep in xhci_configure_reset_endpoint Thread-Topic: minor improve for xhci_cmd_stop_ep in xhci_configure_reset_endpoint Thread-Index: AQHVx1zY/T1s1lBQl02qpmHnCbNkTw== Date: Fri, 10 Jan 2020 02:29:22 +0000 Message-ID: <1578623361805.72194@Dell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.143.18.86] MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-01-09_06:2020-01-09, 2020-01-09 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 malwarescore=0 adultscore=0 mlxlogscore=765 bulkscore=0 mlxscore=0 lowpriorityscore=0 clxscore=1015 phishscore=0 priorityscore=1501 impostorscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001100021 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 lowpriorityscore=0 bulkscore=0 impostorscore=0 clxscore=1015 priorityscore=1501 spamscore=0 malwarescore=0 phishscore=0 adultscore=0 mlxlogscore=920 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001100022 X-Rspamd-Queue-Id: 47v6Pj6M5xz42xJ X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=dell.com header.s=smtpout1 header.b=V9dz75hx; dmarc=pass (policy=none) header.from=dell.com; spf=pass (mx1.freebsd.org: domain of Shichun.Ma@dell.com designates 148.163.137.20 as permitted sender) smtp.mailfrom=Shichun.Ma@dell.com X-Spamd-Result: default: False [-7.56 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[dell.com:s=smtpout1]; HAS_XOIP(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_COUNT_FIVE(0.00)[5]; R_SPF_ALLOW(-0.20)[+ip4:148.163.137.20]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; TO_DN_NONE(0.00)[]; DWL_DNSWL_LOW(-1.00)[dell.com.dwl.dnswl.org : 127.0.9.1]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[dell.com:+]; DMARC_POLICY_ALLOW(-0.50)[dell.com,none]; FROM_NO_DN(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[20.137.163.148.list.dnswl.org : 127.0.3.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:22843, ipnet:148.163.137.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.46)[ip: (-0.17), ipnet: 148.163.137.0/24(-0.07), asn: 22843(-2.03), country: US(-0.05)]; WHITELIST_SPF_DKIM(-3.00)[dell.com:d:+,dell.com:s:+] Content-Type: text/plain; charset="iso-8859-1" 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: Fri, 10 Jan 2020 02:29:31 -0000 Hi HPS, As subject, this is just an minor improvement. When do first xfer on one ep, it use xhci_configure_reset_endpoint to star= t ep, in current cases, no need send xhci_cmd_stop_ep command. And xhci_cmd_stop_ep will return XHCI_TRB_ERROR_CONTEXT_STATE if it's not a= t running status. Could you consider and below check before callxhci_cmd_stop_ep? pcctx =3D &sc->sc_hw.devs[index].device_pc; usbd_get_page(pcctx, 0, &buf_dev); pdev =3D buf_dev.buffer; ctx_ep =3D &pdev->ctx_ep[epno - 1]; ep_status =3D XHCI_EPCTX_0_EPSTATE_GET(ctx_ep->dwEpCtx0); if ((ep_status =3D=3D 0) || (ep_status =3D=3D EP_STOPPED)) { KLOGN(KDBG, "ep %x is not started yet\n", edesc->bEndpointA= ddress); } else { err =3D xhci_cmd_stop_ep(sc, 0, epno, index); if (err) KLOGN(KWARN, "stop endpoint %u, %x, %d\n", epno, edesc->bEndpointAddress, err); } Thanks & Regards, Shichun Ma Software Engineer Dell | Cloud Client Computing office +86 10 82862579, Mobile +86 13241851528 shichun_ma@dell.com From owner-freebsd-usb@freebsd.org Fri Jan 10 03:06:38 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 EA21E221AF1 for ; Fri, 10 Jan 2020 03:06:38 +0000 (UTC) (envelope-from Shichun.Ma@dell.com) Received: from mx0b-00154904.pphosted.com (mx0b-00154904.pphosted.com [148.163.137.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 47v7DZ1GqDz44np for ; Fri, 10 Jan 2020 03:06:37 +0000 (UTC) (envelope-from Shichun.Ma@dell.com) Received: from pps.filterd (m0170398.ppops.net [127.0.0.1]) by mx0b-00154904.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00A367Xb023487 for ; Thu, 9 Jan 2020 22:06:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dell.com; h=from : to : subject : date : message-id : content-type : mime-version; s=smtpout1; bh=OoLgZgWNMN2AZGPy1jWMXsOwbOK7Mt9lc4B3rM1Q7Bw=; b=BpliBJ1L2ZGJTStdwwRxG27XQvOOWDfFtB3rirjHlF011fsOt7Vvn5n0I9sAZYCTF3lD Xdug4C3pcWL27TDfDSOeChB0gU+1VyzzScREcsDtrvTT/JskBQLP/5GCjcIh5leDMJbT NPLqxF1C55DXNKQ1hZ5O+gsspGlbguSNvAow5jVy/cklyKe46qLdhl18FEBn3Yie0n5p 8BOU+baUKR+XInj6Z6+nWpOdP9mJajovA84LcViLphqJZzT4sdlLF7M/BbhMbJOZhqXY WURRVvsfkJf7gFutVnT2EsxW4MJNQTEU5iJvu0RjBSaM9vVgbqMK4Rzzt3XCkfKH8gQ7 tA== Received: from mx0b-00154901.pphosted.com (mx0b-00154901.pphosted.com [67.231.157.37]) by mx0b-00154904.pphosted.com with ESMTP id 2xe5v92q6e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 09 Jan 2020 22:06:36 -0500 Received: from pps.filterd (m0089483.ppops.net [127.0.0.1]) by mx0b-00154901.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00A33wwb058868 for ; Thu, 9 Jan 2020 22:06:36 -0500 Received: from ausc60ps301.us.dell.com (ausc60ps301.us.dell.com [143.166.148.206]) by mx0b-00154901.pphosted.com with ESMTP id 2xe5whsrb6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 09 Jan 2020 22:06:36 -0500 X-LoopCount0: from 10.166.137.69 X-PREM-Routing: D-Outbound X-IronPort-AV: E=Sophos;i="5.60,349,1549951200"; d="scan'208,217";a="1396756211" From: To: Subject: USB keyboard/mouse wake up from S3 Thread-Topic: USB keyboard/mouse wake up from S3 Thread-Index: AQHVx199ZSq7SdYbTEa/gzYTMChF7g== Date: Fri, 10 Jan 2020 03:06:29 +0000 Message-ID: <1578625588784.46788@Dell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.143.242.75] MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-01-09_06:2020-01-09, 2020-01-09 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 clxscore=1015 mlxscore=0 malwarescore=0 phishscore=0 priorityscore=1501 impostorscore=0 mlxlogscore=426 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001100025 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 spamscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 mlxscore=0 phishscore=0 adultscore=0 mlxlogscore=586 malwarescore=0 lowpriorityscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001100026 X-Rspamd-Queue-Id: 47v7DZ1GqDz44np X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=dell.com header.s=smtpout1 header.b=BpliBJ1L; dmarc=pass (policy=none) header.from=dell.com; spf=pass (mx1.freebsd.org: domain of Shichun.Ma@dell.com designates 148.163.137.20 as permitted sender) smtp.mailfrom=Shichun.Ma@dell.com X-Spamd-Result: default: False [-7.57 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[dell.com:s=smtpout1]; HAS_XOIP(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; R_SPF_ALLOW(-0.20)[+ip4:148.163.137.20]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_LOW(-1.00)[dell.com.dwl.dnswl.org : 127.0.9.1]; IP_SCORE(-0.47)[ip: (-0.18), ipnet: 148.163.137.0/24(-0.07), asn: 22843(-2.03), country: US(-0.05)]; DKIM_TRACE(0.00)[dell.com:+]; DMARC_POLICY_ALLOW(-0.50)[dell.com,none]; FROM_NO_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_IN_DNSWL_LOW(-0.10)[20.137.163.148.list.dnswl.org : 127.0.3.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:22843, ipnet:148.163.137.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; WHITELIST_SPF_DKIM(-3.00)[dell.com:d:+,dell.com:s:+] Content-Type: text/plain; charset="iso-8859-1" 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: Fri, 10 Jan 2020 03:06:39 -0000 Any one tested wake up USB keyboard on FreeBSD? What's setting? It doesn't work in my test. Thanks & Regards, Shichun Ma Software Engineer Dell | Cloud Client Computing office +86 10 82862579, Mobile +86 13241851528 shichun_ma@dell.com From owner-freebsd-usb@freebsd.org Fri Jan 10 08:57:19 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 024CA1E09C5 for ; Fri, 10 Jan 2020 08:57:19 +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 47vH1B0dJSz4MZY for ; Fri, 10 Jan 2020 08:57:17 +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 DC3FD26013D; Fri, 10 Jan 2020 09:57:15 +0100 (CET) Subject: Re: minor improve for xhci_cmd_stop_ep in xhci_configure_reset_endpoint To: Shichun.Ma@dell.com, freebsd-usb@freebsd.org Cc: Shunchao.Hu@dell.com References: <1578623361805.72194@Dell.com> From: Hans Petter Selasky Message-ID: Date: Fri, 10 Jan 2020 09:57:05 +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: <1578623361805.72194@Dell.com> Content-Type: multipart/mixed; boundary="------------31F2CCFE12350A658CB943A8" Content-Language: en-US X-Rspamd-Queue-Id: 47vH1B0dJSz4MZY 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.41 / 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.11)[ip: (-9.34), ipnet: 88.99.0.0/16(-4.71), asn: 24940(-1.50), 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: Fri, 10 Jan 2020 08:57:19 -0000 This is a multi-part message in MIME format. --------------31F2CCFE12350A658CB943A8 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Hi, Can you test the attached patch? --HPS --------------31F2CCFE12350A658CB943A8 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 356545) +++ sys/dev/usb/controller/xhci.c (working copy) @@ -1598,11 +1598,27 @@ xhci_cmd_stop_ep(struct xhci_softc *sc, uint8_t suspend, uint8_t ep_id, uint8_t slot_id) { + struct usb_page_search buf_dev; + struct xhci_dev_ctx *pdev; struct xhci_trb trb; uint32_t temp; DPRINTF("\n"); + usbd_get_page(&sc->sc_hw.devs[slot_id].device_pc, 0, &buf_dev); + pdev = buf_dev.buffer; + usb_pc_cpu_invalidate(&sc->sc_hw.devs[slot_id].device_pc); + + switch (XHCI_EPCTX_0_EPSTATE_GET(pdev->ctx_ep[ep_id - 1].dwEpCtx0)) { + case XHCI_EPCTX_0_EPSTATE_DISABLED: + case XHCI_EPCTX_0_EPSTATE_STOPPED: + DPRINTF("Endpoint %u on slot %u is already stopped\n", + ep_id, slot_id); + return (USB_ERR_NORMAL_COMPLETION); + default: + break; + } + trb.qwTrb0 = 0; trb.dwTrb2 = 0; temp = XHCI_TRB_3_TYPE_SET(XHCI_TRB_TYPE_STOP_EP) | Index: sys/dev/usb/controller/xhci.h =================================================================== --- sys/dev/usb/controller/xhci.h (revision 356545) +++ sys/dev/usb/controller/xhci.h (working copy) @@ -115,6 +115,14 @@ volatile uint32_t dwEpCtx0; #define XHCI_EPCTX_0_EPSTATE_SET(x) ((x) & 0x7) #define XHCI_EPCTX_0_EPSTATE_GET(x) ((x) & 0x7) +#define XHCI_EPCTX_0_EPSTATE_DISABLED 0 +#define XHCI_EPCTX_0_EPSTATE_RUNNING 1 +#define XHCI_EPCTX_0_EPSTATE_HALTED 2 +#define XHCI_EPCTX_0_EPSTATE_STOPPED 3 +#define XHCI_EPCTX_0_EPSTATE_ERROR 4 +#define XHCI_EPCTX_0_EPSTATE_RESERVED_5 5 +#define XHCI_EPCTX_0_EPSTATE_RESERVED_6 6 +#define XHCI_EPCTX_0_EPSTATE_RESERVED_7 7 #define XHCI_EPCTX_0_MULT_SET(x) (((x) & 0x3) << 8) #define XHCI_EPCTX_0_MULT_GET(x) (((x) >> 8) & 0x3) #define XHCI_EPCTX_0_MAXP_STREAMS_SET(x) (((x) & 0x1F) << 10) --------------31F2CCFE12350A658CB943A8-- From owner-freebsd-usb@freebsd.org Fri Jan 10 08:59:03 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 25E0B1E0A49 for ; Fri, 10 Jan 2020 08:59:03 +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 47vH3B0Dchz4Mcd for ; Fri, 10 Jan 2020 08:59:01 +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 C3DB326013D; Fri, 10 Jan 2020 09:58:59 +0100 (CET) Subject: Re: USB keyboard/mouse wake up from S3 To: Shichun.Ma@dell.com, freebsd-usb@freebsd.org References: <1578625588784.46788@Dell.com> From: Hans Petter Selasky Message-ID: <47257477-bace-a9c5-69f5-7a0eb7af3947@selasky.org> Date: Fri, 10 Jan 2020 09:58:49 +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: <1578625588784.46788@Dell.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47vH3B0Dchz4Mcd 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.41 / 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)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[selasky.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-3.11)[ip: (-9.34), ipnet: 88.99.0.0/16(-4.71), asn: 24940(-1.50), country: DE(-0.02)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; 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: Fri, 10 Jan 2020 08:59:03 -0000 On 2020-01-10 04:06, Shichun.Ma@dell.com wrote: > Any one tested wake up USB keyboard on FreeBSD? What's setting? > > It doesn't work in my test. > Hi, FreeBSD USB detach and reset the XHCI before going to sleep. So likely wakeup doesn't work, because the USB device is no longer enumerated. --HPS From owner-freebsd-usb@freebsd.org Fri Jan 10 09:02:35 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 697591E0F3D for ; Fri, 10 Jan 2020 09:02:35 +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 47vH7G60Jfz4Mxg for ; Fri, 10 Jan 2020 09:02:34 +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 34173260060; Fri, 10 Jan 2020 10:02:33 +0100 (CET) Subject: Re: minor improve for xhci_cmd_stop_ep in xhci_configure_reset_endpoint From: Hans Petter Selasky To: Shichun.Ma@dell.com, freebsd-usb@freebsd.org Cc: Shunchao.Hu@dell.com References: <1578623361805.72194@Dell.com> Message-ID: Date: Fri, 10 Jan 2020 10:02:22 +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: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47vH7G60Jfz4Mxg 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.41 / 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:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[selasky.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(-3.11)[ip: (-9.34), ipnet: 88.99.0.0/16(-4.71), asn: 24940(-1.50), country: DE(-0.02)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; 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: Fri, 10 Jan 2020 09:02:35 -0000 On 2020-01-10 09:57, Hans Petter Selasky wrote: > Hi, > > Can you test the attached patch? > HI, How are we sure that the XHCI doesn't cache the device endpoint state in its internal memory cache. I.E. that it doesn't update the device context in host memory at all times? I think it is better to query the XHCI controller and if we get an error back that is OK. --HPS From owner-freebsd-usb@freebsd.org Fri Jan 10 09:21:59 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 395DE1E1789 for ; Fri, 10 Jan 2020 09:21:59 +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 47vHYf1SFYz4Nhy for ; Fri, 10 Jan 2020 09:21:57 +0000 (UTC) (envelope-from Shichun.Ma@dell.com) Received: from pps.filterd (m0170389.ppops.net [127.0.0.1]) by mx0a-00154904.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00A9KH0Y002383 for ; Fri, 10 Jan 2020 04:21:56 -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 : content-transfer-encoding : mime-version; s=smtpout1; bh=kd0h4vjXd4saryVNkopqVCTOwQ5TXlnwUIN6vW93JsM=; b=SPNt++cHzNywoVyw41H/G8OIen+o4nQ7cD97bfB/Sk1ARqM6XeFNIWquIk/d2xdCE8hK dHHCfkBQC1oHqZ1GqD5BFRGTS6uKHA3WozrB4RBaZbWjjNHQzRfEuRbJAcFDDTt7EFfH z4SAYZkLLS3hRnJu170nv88l5Hw7z353+/EG2ICO+YxoGS77O4rS9ARnHs0gfk44JBA7 KXLBK/Clau0E020qR90smiiYQo3+IQI8lfPg+fK383sLFgKHjnMlyA07OLymaFzFihBo sbhw6QrFtEChFvGtVey9vg0YdAeF9X7X21frgdAahmMAkrAw/E8H+Ti6/ePctfg0fpUh 8w== Received: from mx0a-00154901.pphosted.com (mx0b-00154901.pphosted.com [67.231.157.37]) by mx0a-00154904.pphosted.com with ESMTP id 2xe8smtss5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 10 Jan 2020 04:21:56 -0500 Received: from pps.filterd (m0089484.ppops.net [127.0.0.1]) by mx0b-00154901.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00A9IPNj060097 for ; Fri, 10 Jan 2020 04:21:55 -0500 Received: from ausxippc106.us.dell.com (AUSXIPPC106.us.dell.com [143.166.85.156]) by mx0b-00154901.pphosted.com with ESMTP id 2xen6e1305-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 10 Jan 2020 04:21:55 -0500 X-LoopCount0: from 10.166.132.127 X-PREM-Routing: D-Outbound X-IronPort-AV: E=Sophos;i="5.60,349,1549951200"; d="scan'208";a="507971588" From: To: , CC: Subject: Re: minor improve for xhci_cmd_stop_ep in xhci_configure_reset_endpoint Thread-Topic: minor improve for xhci_cmd_stop_ep in xhci_configure_reset_endpoint Thread-Index: AQHVx1zY/T1s1lBQl02qpmHnCbNkT6fjEwaAgAABegCAAIb6MA== Date: Fri, 10 Jan 2020 09:21:51 +0000 Message-ID: <1578648110788.20024@Dell.com> References: <1578623361805.72194@Dell.com> , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.143.242.75] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-01-10_01:2020-01-10, 2020-01-09 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 adultscore=0 impostorscore=0 suspectscore=0 phishscore=0 priorityscore=1501 mlxscore=0 mlxlogscore=807 lowpriorityscore=0 spamscore=0 malwarescore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001100079 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 adultscore=0 clxscore=1015 mlxscore=0 impostorscore=0 suspectscore=0 priorityscore=1501 mlxlogscore=999 lowpriorityscore=0 malwarescore=0 bulkscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001100079 X-Rspamd-Queue-Id: 47vHYf1SFYz4Nhy X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=dell.com header.s=smtpout1 header.b=SPNt++cH; 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.53 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[dell.com:s=smtpout1]; HAS_XOIP(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_COUNT_FIVE(0.00)[5]; R_SPF_ALLOW(-0.20)[+ip4:148.163.133.20]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; TO_DN_NONE(0.00)[]; DWL_DNSWL_LOW(-1.00)[dell.com.dwl.dnswl.org : 127.0.9.1]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[dell.com:+]; DMARC_POLICY_ALLOW(-0.50)[dell.com,none]; FROM_NO_DN(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[20.133.163.148.list.dnswl.org : 127.0.3.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:26211, ipnet:148.163.133.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.43)[ip: (-0.03), ipnet: 148.163.133.0/24(-0.01), asn: 26211(-2.04), country: US(-0.05)]; WHITELIST_SPF_DKIM(-3.00)[dell.com:d:+,dell.com:s:+] 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, 10 Jan 2020 09:21:59 -0000 Hi HPS,=0A= XHCI spec mentioned this, =0A= https://www.intel.com/content/dam/www/public/us/en/documents/technical-spec= ifications/extensible-host-controler-interface-usb-xhci.pdf, P443=0A= =0A= The Device Context data structure is used in the xHCI architecture as Outpu= t by the xHC to report device configuration and state information to system= software. The Device Context data structure is pointed to by an entry in t= he Device Context Base Address Array (refer to sectio=0A= =0A= XHCI shoud update this memory.=0A= =0A= your diff is ok in my test.=0A= =0A= Thanks & Regards,=0A= =0A= Shichun Ma=0A= Software Engineer=0A= Dell | Cloud Client Computing=0A= office +86 10 82862579, Mobile +86 13241851528=0A= shichun_ma@dell.com=0A= =0A= =0A= =0A= ________________________________________=0A= From: Hans Petter Selasky =0A= Sent: Friday, January 10, 2020 5:02 PM=0A= To: Ma, Horse; freebsd-usb@freebsd.org=0A= Cc: Hu, Shunchao=0A= Subject: Re: minor improve for xhci_cmd_stop_ep in xhci_configure_reset_end= point=0A= =0A= [EXTERNAL EMAIL]=0A= =0A= On 2020-01-10 09:57, Hans Petter Selasky wrote:=0A= > Hi,=0A= >=0A= > Can you test the attached patch?=0A= >=0A= =0A= HI,=0A= =0A= How are we sure that the XHCI doesn't cache the device endpoint state in=0A= its internal memory cache. I.E. that it doesn't update the device=0A= context in host memory at all times?=0A= =0A= I think it is better to query the XHCI controller and if we get an error=0A= back that is OK.=0A= =0A= --HPS=0A= =0A= From owner-freebsd-usb@freebsd.org Fri Jan 10 09:25:07 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 6A0351E18AC for ; Fri, 10 Jan 2020 09:25:07 +0000 (UTC) (envelope-from Shichun.Ma@dell.com) Received: from mx0b-00154904.pphosted.com (mx0b-00154904.pphosted.com [148.163.137.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 47vHdG3Fpdz4P1X for ; Fri, 10 Jan 2020 09:25:06 +0000 (UTC) (envelope-from Shichun.Ma@dell.com) Received: from pps.filterd (m0170397.ppops.net [127.0.0.1]) by mx0b-00154904.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00A9P5jj021160 for ; Fri, 10 Jan 2020 04:25:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dell.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=smtpout1; bh=j4sflMBWOJXEBSNor1fxzlBEziEz2hL4R4CdH0JoeUc=; b=Ws/dt38TrfsbXtfhGsaDPUl0lIcbCUqNmAmv3qlCs2jIuY+D3Typ3OwUc/HWD1YZYI8K 0dHI6JSv7hOVaGJ+fLJElEyqLS73U0YGvB9wf3fDeG2ki1f9UI7gdFmUCBjqkgIU/5ku 1h+CTGWTwf5RYsOwPTvrqw/UrA+FEq6VgpPxDKtVlvBy3OUKkMMaMbHaVUwOeSbLja/d j/ftegW9CKAGAhYrKrcWiGQIjvQYodtGKXYyp6iHvIjl63sO/BPWz7Ju/+o8Az2801g9 VelaOX+z186oLOpKnRFuFJq9Pp8oyg3OCXqy0p7hR7FH1IUtbFuTbceuZHYEXNMvy7S4 DQ== Received: from mx0b-00154901.pphosted.com (mx0a-00154901.pphosted.com [67.231.149.39]) by mx0b-00154904.pphosted.com with ESMTP id 2xdnv7q6db-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 10 Jan 2020 04:25:05 -0500 Received: from pps.filterd (m0090350.ppops.net [127.0.0.1]) by mx0b-00154901.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00A9N9LZ019690 for ; Fri, 10 Jan 2020 04:25:04 -0500 Received: from ausxippc106.us.dell.com (AUSXIPPC106.us.dell.com [143.166.85.156]) by mx0b-00154901.pphosted.com with ESMTP id 2xe6hr5ew6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 10 Jan 2020 04:25:04 -0500 X-LoopCount0: from 10.166.137.62 X-PREM-Routing: D-Outbound X-IronPort-AV: E=Sophos;i="5.60,349,1549951200"; d="scan'208";a="507972716" From: To: , Subject: Re: USB keyboard/mouse wake up from S3 Thread-Topic: USB keyboard/mouse wake up from S3 Thread-Index: AQHVx199ZSq7SdYbTEa/gzYTMChF7qfjE32AgACMne0= Date: Fri, 10 Jan 2020 09:24:58 +0000 Message-ID: <1578648297338.92657@Dell.com> References: <1578625588784.46788@Dell.com>, <47257477-bace-a9c5-69f5-7a0eb7af3947@selasky.org> In-Reply-To: <47257477-bace-a9c5-69f5-7a0eb7af3947@selasky.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.143.18.86] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-01-10_01:2020-01-10, 2020-01-09 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 priorityscore=1501 bulkscore=0 adultscore=0 mlxlogscore=712 clxscore=1015 lowpriorityscore=0 suspectscore=0 spamscore=0 mlxscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001100080 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 suspectscore=0 malwarescore=0 mlxscore=0 priorityscore=1501 impostorscore=0 mlxlogscore=864 phishscore=0 clxscore=1015 adultscore=0 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001100080 X-Rspamd-Queue-Id: 47vHdG3Fpdz4P1X X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=dell.com header.s=smtpout1 header.b=Ws/dt38T; dmarc=pass (policy=none) header.from=dell.com; spf=pass (mx1.freebsd.org: domain of Shichun.Ma@dell.com designates 148.163.137.20 as permitted sender) smtp.mailfrom=Shichun.Ma@dell.com X-Spamd-Result: default: False [-7.57 / 15.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]; HAS_XOIP(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:148.163.137.20:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; TO_DN_NONE(0.00)[]; DWL_DNSWL_LOW(-1.00)[dell.com.dwl.dnswl.org : 127.0.9.1]; RCVD_IN_DNSWL_LOW(-0.10)[20.137.163.148.list.dnswl.org : 127.0.3.1]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[dell.com:+]; RCPT_COUNT_TWO(0.00)[2]; FROM_NO_DN(0.00)[]; DMARC_POLICY_ALLOW(-0.50)[dell.com,none]; IP_SCORE(-0.47)[ip: (-0.19), ipnet: 148.163.137.0/24(-0.08), asn: 22843(-2.03), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22843, ipnet:148.163.137.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; WHITELIST_SPF_DKIM(-3.00)[dell.com:d:+,dell.com:s:+] 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, 10 Jan 2020 09:25:07 -0000 The USB wake up can still even device is detached. =0A= Before system enter to S3 and when detach the USB device, we can enable dev= ice's remote wake up feature.=0A= it can still send out the resume signal to host if it connected from hardwa= re.=0A= =0A= Thanks & Regards,=0A= =0A= Shichun Ma=0A= Software Engineer=0A= Dell | Cloud Client Computing=0A= office +86 10 82862579, Mobile +86 13241851528=0A= shichun_ma@dell.com=0A= =0A= =0A= =0A= ________________________________________=0A= From: Hans Petter Selasky =0A= Sent: Friday, January 10, 2020 4:58 PM=0A= To: Ma, Horse; freebsd-usb@freebsd.org=0A= Subject: Re: USB keyboard/mouse wake up from S3=0A= =0A= [EXTERNAL EMAIL]=0A= =0A= On 2020-01-10 04:06, Shichun.Ma@dell.com wrote:=0A= > Any one tested wake up USB keyboard on FreeBSD? What's setting?=0A= >=0A= > It doesn't work in my test.=0A= >=0A= =0A= Hi,=0A= =0A= FreeBSD USB detach and reset the XHCI before going to sleep.=0A= =0A= So likely wakeup doesn't work, because the USB device is no longer=0A= enumerated.=0A= =0A= --HPS=0A= =0A= From owner-freebsd-usb@freebsd.org Fri Jan 10 09:33:53 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 5F1B81E1D59 for ; Fri, 10 Jan 2020 09:33:53 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (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 47vHqN2n8hz4PZ2 for ; Fri, 10 Jan 2020 09:33:51 +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 CCDE926029D; Fri, 10 Jan 2020 10:33:49 +0100 (CET) Subject: Re: minor improve for xhci_cmd_stop_ep in xhci_configure_reset_endpoint To: Shichun.Ma@dell.com, freebsd-usb@freebsd.org Cc: Shunchao.Hu@dell.com References: <1578623361805.72194@Dell.com> <1578648110788.20024@Dell.com> From: Hans Petter Selasky Message-ID: Date: Fri, 10 Jan 2020 10:33:32 +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: <1578648110788.20024@Dell.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47vHqN2n8hz4PZ2 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-4.94 / 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:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[selasky.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(-2.64)[ip: (-9.21), ipnet: 2a01:4f8::/29(-2.45), asn: 24940(-1.50), country: DE(-0.02)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, 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: Fri, 10 Jan 2020 09:33:53 -0000 On 2020-01-10 10:21, Shichun.Ma@dell.com wrote: > Hi HPS, > XHCI spec mentioned this, > https://www.intel.com/content/dam/www/public/us/en/documents/technical-specifications/extensible-host-controler-interface-usb-xhci.pdf, P443 > > The Device Context data structure is used in the xHCI architecture as Output by the xHC to report device configuration and state information to system software. The Device Context data structure is pointed to by an entry in the Device Context Base Address Array (refer to sectio > Here you go: https://svnweb.freebsd.org/changeset/base/356598 --HPS From owner-freebsd-usb@freebsd.org Fri Jan 10 09:40:02 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 01C031E1E3D for ; Fri, 10 Jan 2020 09:40:02 +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 47vHyT0X09z4Pf0 for ; Fri, 10 Jan 2020 09:40:00 +0000 (UTC) (envelope-from Shichun.Ma@dell.com) Received: from pps.filterd (m0170390.ppops.net [127.0.0.1]) by mx0a-00154904.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00A9ZcQh013671 for ; Fri, 10 Jan 2020 04:39:59 -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 : content-transfer-encoding : mime-version; s=smtpout1; bh=7pitxb0TaXX5pKLQ4J1a1iczEpJzDTMKn5zp0hRzda8=; b=d8eTsdpptBWALo9msX0SRynY44x2iCM/hjHmC+FhQXQ7Big2WEyp9xi1nuqQrsNNvbxF DSyhX/RjAe5N3uxMyTMjZky5t3YVpcUXXZ99wL/xNwoXU0bjBb4HoQ1pI0F1UuBto9CG KH/cmQZWq/TaZ9LA5/VCL+DiDI8t1NNwYRaz+jw+dTc76K2K61Y8XdqRyIz0kiCcvPI3 I8NF+gUlPrdLcFTBAog/xlmMCMjpb6LipX5nKdkWJtPaVib4ko2xHbGPkjlBcaBPD4Y4 ZWnPlh7n2NrGAtgC9blX7inpaLRiofng/fh71qDeb2LD+9hcS2lFJfv6tgvUcDutKHzU 4g== Received: from mx0b-00154901.pphosted.com (mx0b-00154901.pphosted.com [67.231.157.37]) by mx0a-00154904.pphosted.com with ESMTP id 2xdjxtg0uw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 10 Jan 2020 04:39:59 -0500 Received: from pps.filterd (m0144103.ppops.net [127.0.0.1]) by mx0b-00154901.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00A9c0qJ184299 for ; Fri, 10 Jan 2020 04:39:58 -0500 Received: from ausxipps306.us.dell.com (AUSXIPPS306.us.dell.com [143.166.148.156]) by mx0b-00154901.pphosted.com with ESMTP id 2xe24hsh8d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 10 Jan 2020 04:39:58 -0500 X-LoopCount0: from 10.166.135.76 X-PREM-Routing: D-Outbound X-IronPort-AV: E=Sophos;i="5.60,349,1549951200"; d="scan'208";a="422562658" From: To: , CC: Subject: RE: minor improve for xhci_cmd_stop_ep in xhci_configure_reset_endpoint Thread-Topic: minor improve for xhci_cmd_stop_ep in xhci_configure_reset_endpoint Thread-Index: AQHVx1zY/T1s1lBQl02qpmHnCbNkT6fjEwaAgAABegCAAIb6MP//gbsAgACHrAA= Date: Fri, 10 Jan 2020 09:39:52 +0000 Message-ID: <6634211cd18d484b8fcc1d0c7cebcf79@KULX13MDC126.APAC.DELL.COM> References: <1578623361805.72194@Dell.com> <1578648110788.20024@Dell.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: 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=2020-01-10T09:39:49.9273813Z; 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: [10.80.193.67] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-01-10_01:2020-01-10, 2020-01-09 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=752 phishscore=0 adultscore=0 bulkscore=0 clxscore=1015 suspectscore=0 impostorscore=0 malwarescore=0 priorityscore=1501 lowpriorityscore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001100082 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 phishscore=0 adultscore=0 suspectscore=0 spamscore=0 malwarescore=0 mlxscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 mlxlogscore=908 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001100082 X-Rspamd-Queue-Id: 47vHyT0X09z4Pf0 X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=dell.com header.s=smtpout1 header.b=d8eTsdpp; 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.43 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[dell.com:s=smtpout1]; HAS_XOIP(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_COUNT_FIVE(0.00)[5]; R_SPF_ALLOW(-0.20)[+ip4:148.163.133.20]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; TO_DN_NONE(0.00)[]; DWL_DNSWL_LOW(-1.00)[dell.com.dwl.dnswl.org : 127.0.9.1]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[dell.com:+]; MIME_BASE64_TEXT(0.10)[]; FROM_NO_DN(0.00)[]; DMARC_POLICY_ALLOW(-0.50)[dell.com,none]; IP_SCORE(-0.43)[ip: (-0.04), ipnet: 148.163.133.0/24(-0.01), asn: 26211(-2.04), country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[20.133.163.148.list.dnswl.org : 127.0.3.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:26211, ipnet:148.163.133.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; WHITELIST_SPF_DKIM(-3.00)[dell.com:d:+,dell.com:s:+] 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, 10 Jan 2020 09:40:02 -0000 RGVsbCBDdXN0b21lciBDb21tdW5pY2F0aW9uIC0gQ29uZmlkZW50aWFsDQoNClRoYW5rcyBmb3Ig eW91ciBwcm9tcHQgcmVzcG9uc2UhDQoNClJlZ2FyZHMsDQoNCkhvcnNlIE1hIChTaGljaHVuIE1h KQ0KDQpTb2Z0d2FyZSBFbmdpbmVlcg0KRGVsbCB8IENsb3VkIGNsaWVudC1jb21wdXRpbmcgLSBX eXNlDQpvZmZpY2UgKzg2IDEwIDgyODYyNTc5LMKgIE1vYmlsZSArODYgMTMyNDE4NTE1MjgNCg0K U2VlIG91ciBwcm9kdWN0cyBhdCB3d3cuZGVsbC5jb20vd3lzZQ0KDQotLS0tLU9yaWdpbmFsIE1l c3NhZ2UtLS0tLQ0KRnJvbTogSGFucyBQZXR0ZXIgU2VsYXNreSA8aHBzQHNlbGFza3kub3JnPiAN ClNlbnQ6IEZyaWRheSwgSmFudWFyeSAxMCwgMjAyMCA1OjM0IFBNDQpUbzogTWEsIEhvcnNlOyBm cmVlYnNkLXVzYkBmcmVlYnNkLm9yZw0KQ2M6IEh1LCBTaHVuY2hhbw0KU3ViamVjdDogUmU6IG1p bm9yIGltcHJvdmUgZm9yIHhoY2lfY21kX3N0b3BfZXAgaW4geGhjaV9jb25maWd1cmVfcmVzZXRf ZW5kcG9pbnQNCg0KDQpbRVhURVJOQUwgRU1BSUxdIA0KDQpPbiAyMDIwLTAxLTEwIDEwOjIxLCBT aGljaHVuLk1hQGRlbGwuY29tIHdyb3RlOg0KPiBIaSBIUFMsDQo+IFhIQ0kgc3BlYyBtZW50aW9u ZWQgdGhpcywNCj4gaHR0cHM6Ly93d3cuaW50ZWwuY29tL2NvbnRlbnQvZGFtL3d3dy9wdWJsaWMv dXMvZW4vZG9jdW1lbnRzL3RlY2huaWNhbC1zcGVjaWZpY2F0aW9ucy9leHRlbnNpYmxlLWhvc3Qt Y29udHJvbGVyLWludGVyZmFjZS11c2IteGhjaS5wZGYsIFA0NDMNCj4gDQo+IFRoZSBEZXZpY2Ug Q29udGV4dCBkYXRhIHN0cnVjdHVyZSBpcyB1c2VkIGluIHRoZSB4SENJIGFyY2hpdGVjdHVyZSBh cyBPdXRwdXQgYnkgdGhlIHhIQyB0byByZXBvcnQgZGV2aWNlIGNvbmZpZ3VyYXRpb24gYW5kIHN0 YXRlIGluZm9ybWF0aW9uIHRvIHN5c3RlbSBzb2Z0d2FyZS4gVGhlIERldmljZSBDb250ZXh0IGRh dGEgc3RydWN0dXJlIGlzIHBvaW50ZWQgdG8gYnkgYW4gZW50cnkgaW4gdGhlIERldmljZSBDb250 ZXh0IEJhc2UgQWRkcmVzcyBBcnJheSAocmVmZXIgdG8gc2VjdGlvDQo+IA0KDQpIZXJlIHlvdSBn bzoNCg0KaHR0cHM6Ly9zdm53ZWIuZnJlZWJzZC5vcmcvY2hhbmdlc2V0L2Jhc2UvMzU2NTk4DQoN Ci0tSFBTDQo= From owner-freebsd-usb@freebsd.org Fri Jan 10 09:41:29 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 74A7F1E1EB0 for ; Fri, 10 Jan 2020 09:41:29 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (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 47vJ086rNdz4PrJ for ; Fri, 10 Jan 2020 09:41:28 +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 1221526029D; Fri, 10 Jan 2020 10:41:26 +0100 (CET) Subject: Re: USB keyboard/mouse wake up from S3 To: Shichun.Ma@dell.com, freebsd-usb@freebsd.org References: <1578625588784.46788@Dell.com> <47257477-bace-a9c5-69f5-7a0eb7af3947@selasky.org> <1578648297338.92657@Dell.com> From: Hans Petter Selasky Message-ID: <685f991f-6cb6-3f27-65d8-38181e4cfa8e@selasky.org> Date: Fri, 10 Jan 2020 10:41:08 +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: <1578648297338.92657@Dell.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47vJ086rNdz4PrJ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-4.94 / 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)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[selasky.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-2.64)[ip: (-9.21), ipnet: 2a01:4f8::/29(-2.45), asn: 24940(-1.50), country: DE(-0.02)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, 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: Fri, 10 Jan 2020 09:41:29 -0000 On 2020-01-10 10:24, Shichun.Ma@dell.com wrote: > The USB wake up can still even device is detached. > Before system enter to S3 and when detach the USB device, we can enable device's remote wake up feature. > it can still send out the resume signal to host if it connected from hardware. > I think we don't do that currently. Would need a patch in the USB core. Only during normal USB suspend / resume, not host suspend / resume. --HPS From owner-freebsd-usb@freebsd.org Fri Jan 10 09:45: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 015761E20C0 for ; Fri, 10 Jan 2020 09:45:17 +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 47vJ4Y14d0z4Py3 for ; Fri, 10 Jan 2020 09:45:16 +0000 (UTC) (envelope-from Shichun.Ma@dell.com) Received: from pps.filterd (m0170392.ppops.net [127.0.0.1]) by mx0a-00154904.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00A9iv9E008464 for ; Fri, 10 Jan 2020 04:45:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dell.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=smtpout1; bh=3qtN4YfYE5VH7ne9fRNkEaJDVQYpr9j8PJU9Tl1Jx1M=; b=a81YZxn1GweXec8K7Z1NyPG3xbiVhEs+oe5bKo2Sa5BYAiCyZ2RQ38WRdVaqf3tVkdA/ X2Wd7VCFpDVgTCkN6eGx0CmTw1B8EXhJeMpRwdDOn/TJcKAQlCJ4xC4t9sZweAjyvftA hcs2OdCFVjOOJeAGeEuWsbDjpSoL/QwVyw2JWacAyEgsL0mhKi23GedhUxgk3nHX8hoB Yg4ynBGVB57Pi7EdqD6Ba2vLF2G7JPpr28GXzLDNKy97mPt0oHvI/Slr8JEJ5FxP7fNP AYIOD0IMBAbR3ral2aO8rBilCLSYA9fcprPosmA5ATpHezsKow5SBWPHHNT/yTteYo6r pw== Received: from mx0b-00154901.pphosted.com (mx0b-00154901.pphosted.com [67.231.157.37]) by mx0a-00154904.pphosted.com with ESMTP id 2xe8r8jwey-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 10 Jan 2020 04:45:15 -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 00A9hPeo121767 for ; Fri, 10 Jan 2020 04:45:14 -0500 Received: from ausxipps301.us.dell.com (ausxipps301.us.dell.com [143.166.148.223]) by mx0b-00154901.pphosted.com with ESMTP id 2xdjsjwyhr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 10 Jan 2020 04:45:14 -0500 X-LoopCount0: from 10.166.132.127 X-PREM-Routing: D-Outbound X-IronPort-AV: E=Sophos;i="5.60,349,1549951200"; d="scan'208";a="444153692" From: To: , Subject: Re: USB keyboard/mouse wake up from S3 Thread-Topic: USB keyboard/mouse wake up from S3 Thread-Index: AQHVx199ZSq7SdYbTEa/gzYTMChF7qfjE32AgACMne3//382AIAAhvBh Date: Fri, 10 Jan 2020 09:45:10 +0000 Message-ID: <1578649510407.59499@Dell.com> References: <1578625588784.46788@Dell.com> <47257477-bace-a9c5-69f5-7a0eb7af3947@selasky.org> <1578648297338.92657@Dell.com>, <685f991f-6cb6-3f27-65d8-38181e4cfa8e@selasky.org> In-Reply-To: <685f991f-6cb6-3f27-65d8-38181e4cfa8e@selasky.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.143.18.86] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-01-10_01:2020-01-10, 2020-01-09 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 malwarescore=0 adultscore=0 mlxlogscore=488 bulkscore=0 mlxscore=0 lowpriorityscore=0 clxscore=1015 phishscore=0 priorityscore=1501 impostorscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001100083 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 clxscore=1015 malwarescore=0 adultscore=0 phishscore=0 mlxscore=0 lowpriorityscore=0 suspectscore=0 impostorscore=0 spamscore=0 mlxlogscore=641 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001100083 X-Rspamd-Queue-Id: 47vJ4Y14d0z4Py3 X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=dell.com header.s=smtpout1 header.b=a81YZxn1; 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.53 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[dell.com:s=smtpout1]; HAS_XOIP(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; R_SPF_ALLOW(-0.20)[+ip4:148.163.133.20]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; TO_DN_NONE(0.00)[]; DWL_DNSWL_LOW(-1.00)[dell.com.dwl.dnswl.org : 127.0.9.1]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[dell.com:+]; RCPT_COUNT_TWO(0.00)[2]; FROM_NO_DN(0.00)[]; DMARC_POLICY_ALLOW(-0.50)[dell.com,none]; IP_SCORE(-0.43)[ip: (-0.05), ipnet: 148.163.133.0/24(-0.02), asn: 26211(-2.04), country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[20.133.163.148.list.dnswl.org : 127.0.3.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:26211, ipnet:148.163.133.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; WHITELIST_SPF_DKIM(-3.00)[dell.com:d:+,dell.com:s:+] 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, 10 Jan 2020 09:45:18 -0000 It may need 2 weeks to implement this, will keep you post on the progress,= thanks!=0A= =0A= Thanks & Regards,=0A= =0A= Shichun Ma=0A= Software Engineer=0A= Dell | Cloud Client Computing=0A= office +86 10 82862579, Mobile +86 13241851528=0A= shichun_ma@dell.com=0A= =0A= =0A= =0A= ________________________________________=0A= From: Hans Petter Selasky =0A= Sent: Friday, January 10, 2020 5:41 PM=0A= To: Ma, Horse; freebsd-usb@freebsd.org=0A= Subject: Re: USB keyboard/mouse wake up from S3=0A= =0A= [EXTERNAL EMAIL]=0A= =0A= On 2020-01-10 10:24, Shichun.Ma@dell.com wrote:=0A= > The USB wake up can still even device is detached.=0A= > Before system enter to S3 and when detach the USB device, we can enable d= evice's remote wake up feature.=0A= > it can still send out the resume signal to host if it connected from hard= ware.=0A= >=0A= =0A= I think we don't do that currently. Would need a patch in the USB core.=0A= Only during normal USB suspend / resume, not host suspend / resume.=0A= =0A= --HPS=0A=