From owner-freebsd-usb@freebsd.org Fri Dec 27 00:59:05 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7A9E91DD98C for ; Fri, 27 Dec 2019 00:59:05 +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 47kT3r2tZJz4W8m for ; Fri, 27 Dec 2019 00:59:04 +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 xBR0ngEE029989 for ; Thu, 26 Dec 2019 19:59:02 -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=sIFeE8AXXN88WDo7TUW8ZHHVWod9qS0nXSa5ZDtRu8c=; b=wW+M4G1n1PiB65so8wXaULXgvYkuAE12gz+m0Du1s0NJPZ2I+JRCLcsk5MCSnbC9o5VU QssURoB5fbKw5ZX8WNaEc+jvTpOXS3Shx0LbCuGTv2y5l4Ccx+VxgicxjN6n2MKrhLaA Vh6An9sTB+4gfYqAcNV/R6gjTNG6nXYkmo5AU/RXS4NRXFRxPA3xVSDFSM33onsyozZ0 GmQDXAfuJwmQWpfMcz5F498WuHz3O1e5NFhbHjf3AobbgeCWp9N5xBjiqrcfBR1FPzCo TT9+m8ww83GjwKMXWETdaJsg4Lf9hRHC+nzrEqZ2wV1hT7lS04ZeLLnwUusjI2VcNOZn 3Q== Received: from mx0a-00154901.pphosted.com (mx0a-00154901.pphosted.com [67.231.149.39]) by mx0b-00154904.pphosted.com with ESMTP id 2x1fgdt53y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 26 Dec 2019 19:59:02 -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 xBR0vsRp023143 for ; Thu, 26 Dec 2019 19:59:01 -0500 Received: from ausxippc101.us.dell.com (ausxippc101.us.dell.com [143.166.85.207]) by mx0b-00154901.pphosted.com with ESMTP id 2x4dbwares-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 26 Dec 2019 19:59:01 -0500 X-LoopCount0: from 10.166.135.93 X-PREM-Routing: D-Outbound X-IronPort-AV: E=Sophos;i="5.60,346,1549951200"; d="scan'208,217";a="1341250390" From: To: , Subject: 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: AQHVvE76krxsHnNswkmdInicDjBNdw== Date: Fri, 27 Dec 2019 00:58:51 +0000 Message-ID: <1577408331523.24347@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.95,18.0.572 definitions=2019-12-26_05:2019-12-24,2019-12-26 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 spamscore=0 priorityscore=1501 impostorscore=0 mlxlogscore=671 clxscore=1011 phishscore=0 bulkscore=0 malwarescore=0 suspectscore=0 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1912270007 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 clxscore=1011 priorityscore=1501 phishscore=0 suspectscore=0 malwarescore=0 spamscore=0 impostorscore=0 bulkscore=0 mlxscore=0 mlxlogscore=816 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1912270006 X-Rspamd-Queue-Id: 47kT3r2tZJz4W8m X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=dell.com header.s=smtpout1 header.b=wW+M4G1n; 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.54 / 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]; 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:+]; RCPT_COUNT_TWO(0.00)[2]; FROM_NO_DN(0.00)[]; DMARC_POLICY_ALLOW(-0.50)[dell.com,none]; IP_SCORE(-0.44)[ip: (-0.10), ipnet: 148.163.137.0/24(-0.04), 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:+,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, 27 Dec 2019 00:59:05 -0000 Background of the issue, with latest release of FreeBSD kernel. device used: CCID smart card reader, a PC which has Intel Gemini Lake SOC.= CCID reader has an interrupt endpoint which can detect card plugin. ccid and pcscd is used as the application that read data from smard card, a= nd CCID is using libusb to control the transfers. CCID may cancel URB and resubmit the URB, here is the problem: XHCI can't r= eceive interrupt after a cancel (stop) xfer is called. And XHCI interrupt can work normal after 1 plug-in/out. This issue can be avoided by do not call "xhci_cmd_configure_ep " in "xhci= _configure_reset_endpoint" I wish to confirm, is there any guy encounter similar issue? Thanks & Regards, Shichun Ma Software Engineer Dell | Cloud Client Computing office +86 10 82862579, Mobile +86 13241851528 shichun_ma@dell.com