From owner-freebsd-usb@freebsd.org Sun May 7 21:00:31 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B2DB4D53CDD for ; Sun, 7 May 2017 21:00:31 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 84C211FC for ; Sun, 7 May 2017 21:00:31 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v47L01wv049612 for ; Sun, 7 May 2017 21:00:31 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201705072100.v47L01wv049612@kenobi.freebsd.org> From: bugzilla-noreply@FreeBSD.org To: freebsd-usb@FreeBSD.org Subject: Problem reports for freebsd-usb@FreeBSD.org that need special attention Date: Sun, 07 May 2017 21:00:31 +0000 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 May 2017 21:00:31 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 213877 | xhci reset causes panic on SuperMicro A1SRi-2758F 1 problems total for which you should take action. From owner-freebsd-usb@freebsd.org Tue May 9 09:47:39 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 09C3AD65B77 for ; Tue, 9 May 2017 09:47:39 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B509A118F for ; Tue, 9 May 2017 09:47:38 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [2.247.254.164] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1d81jy-0007gH-Dr for freebsd-usb@freebsd.org; Tue, 09 May 2017 11:47:34 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id v499lU1i003728 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 9 May 2017 11:47:30 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id v499lTap003727 for freebsd-usb@freebsd.org; Tue, 9 May 2017 11:47:30 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Tue, 9 May 2017 11:47:29 +0200 From: Matthias Apitz To: freebsd-usb@freebsd.org Subject: GnuPG && card readers Message-ID: <20170509094729.GA3668@c720-r314251> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) User-Agent: Mutt/1.8.0 (2017-02-23) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 2.247.254.164 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 May 2017 09:47:39 -0000 Hello, The GnuPG project has a list of supported (USB) card readers: https://gnupg.org/howtos/card-howto/en/smartcard-howto-single.html#id2503342 Any comments or experiences about which of them are supported in FreeBSD 12-C? Best would be the smallest one to carry it all day in the bag. matthias -- Matthias Apitz, ✉ guru@unixarea.de, ⌂ http://www.unixarea.de/ ☎ +49-176-38902045 From owner-freebsd-usb@freebsd.org Tue May 9 19:37:12 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 98692D66E30 for ; Tue, 9 May 2017 19:37:12 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (mailgate.leidinger.net [IPv6:2a00:1828:2000:375::1:5]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2ECA98EA for ; Tue, 9 May 2017 19:37:12 +0000 (UTC) (envelope-from Alexander@leidinger.net) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=leidinger.net; s=outgoing-alex; t=1494358598; bh=oo4kgLpQz1n8r7FDg65xup5LsjgXaxmUrP/5lGx5mls=; h=Date:From:To:Cc:Subject:In-Reply-To; b=WpL3FUgubMSVx2S4y+ZJoSpjwl9yQ8JQSBBR/xiIwpzd0hBMjKNNe6unGDT4hr7Ai hgELS2cawPCQAzgqJhl8DT+dyBp0MuwbIryzDZk3gi5aQ3J6RsY0GZbxFAG/ax3I82 NLIry5yXLA8Mh1DzYeuE8x+FzLLIZG/o3v38M4SD6Keb9YRcHyYAo0CfRQDntLqHWv RJJ/Dv8peZ/QKrNXGR3NSCwdeRDkvwIZ6mFQc6YJuwWMN+Cb9ZbaWOaxyRMSxVObv8 EhaA7KJ5J7ps3VgrglQXrjXIS2WJpMvb/SdmyrRsYY6I9shQGxy1LfUqU4zaalv7Ou W8RbYmRKaOW5g== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=leidinger.net; s=outgoing-alex; t=1494358630; bh=oo4kgLpQz1n8r7FDg65xup5LsjgXaxmUrP/5lGx5mls=; h=Date:From:To:Cc:Subject:In-Reply-To; b=FuORcRvK+EcWehJ3GU8VVjecJ/q5t+56/hH4r3v2BzcRGNJfDt9Fq+iyCSkopbX9B Np67xOmbGYgjY+6hG7aGtVtII6LZ5Uo4PdUuqKTjEU/kncCShFS8qpw9QU7mExxcL6 HRCkvT6Yii3rKUEssx9nDM/xxSEkQaj23vYRa3ZkqPXGajJpAOVGRysJ7RStt9ncLK qjWLW0NtKMg/CCQrQHyQNld0RDJUPLHTX+r/SCEDJDU3E8Hd8JO/Wnhso71OcYe//P FfCqrhfw092O8jrspssAfHpmKzrgcjmR+gqyFD9B+llL8eudQj0r1yJjHcITa9y4hg 31jJNcM2nkieQ== Date: Tue, 09 May 2017 21:36:37 +0200 Message-ID: <20170509213637.Horde.u9PInhb6UaNmyy2nhXlnMGr@webmail.leidinger.net> From: Alexander Leidinger To: Matthias Apitz Cc: freebsd-usb@freebsd.org Subject: Re: GnuPG && card readers In-Reply-To: <20170509094729.GA3668@c720-r314251> User-Agent: Horde Application Framework 5 Content-Type: multipart/signed; boundary="=_-MrAqL6oA1SlQai_zrudX-K"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 May 2017 19:37:12 -0000 This message is in MIME format and has been PGP signed. --=_-MrAqL6oA1SlQai_zrudX-K Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Matthias Apitz (from Tue, 9 May 2017=20=20 11:47:29=20+0200): > Hello, > > The GnuPG project has a list of supported (USB) card readers: > > https://gnupg.org/howtos/card-howto/en/smartcard-howto-single.html#id2503= 342 > > Any comments or experiences about which of them are supported in=20=20 >=20FreeBSD 12-C? > Best would be the smallest one to carry it all day in the bag. It's not FreeBSD which needs the support. gnupg comes with the=20=20 drivers,=20FreeBSD only needs to see "a device on the bus", that's enough. Check out the ports security/opensc amd devel/libccid (and gnupg needs=20= =20 to=20be build with the SCDAEMON option of the port). This will bring in=20= =20 the=20pcsc-lite port as a depedency. Those are the "drivers" for USB=20=20 card=20readers if you want to use them beyond what gnupg will do. You need to pay attention that the card reader support "extended=20=20 APDUs"=20(or support for digital signatures, which is more likely to be=20= =20 announced=20in marketing material from the vendor). It may be OK without=20= =20 extended=20APDUs if you only use OpenPGP v2 cards and generate the=20=20 keys/certs=20on the card itself, but if you want to go for bigger keys=20= =20 than=20documented to work on the cards (I was able to put 4k-keys on the=20= =20 OpenPGP=20v2 cards) the extended APDUs are needed. If the reader is CCID=20= =20 compatible,=20the libccid driver will probably work. You can use the=20=20 opensc=20and pcsc-lite tools to transfer certs to the card which you=20=20 created=20with openssl (e.g. 4k keys). Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_-MrAqL6oA1SlQai_zrudX-K Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJZEhpFAAoJEKrxQhqFIICEj98P/jKxQhFNTpxQ5mhXvDph1ZVB aWlNvOmrOqeqGe5EzP/QoLP3n+3wmmrjpY/L3udZx8fHPSyCUqMO8V6YSbkn8INS /6n1XfiRxMzHSIEpP7aJDGuXDrVg32jaiU2E0aVW824N8J7pLxjnCar9qp4Ryy1S cigPilBn+KYRRs8qfnyhHDg7nbDMQEIKpH4f6Sd2eQJx3+m/AjRnnxs8r0lfHrtO cO4Roiu5lQhRQWYMyvK9PMILC2XFkeIeeJ2ED8Y2zuAD0kzEHJ9jbDcLzwUkIErC 4LIRpJadJ+wouN52B2OSwWmU92DONbmLQofOBwzsaNMrzt+JC6Jv6eQ2RIQeCchS sBtu/PmY/ty2eT8cUY9mwIL+E5AqAxNM6wNN70xk5AJYRpaPDBHdCqavfYkridgd /uFP03Y72OpEOYmawogbe8fdVpE1Wx0owoXvd1DgBKAXtl5ysfDERlFQJOZdhGh4 DPXRfn501r0utVm3d17UNBPk+jmCkRa1vHn/KYoj6ZDnOJO6ytx+nPO3QPqnxIJA yBBYjsG2KTHM2Pp86AmrXV8aN4EQFPWZ4xPXcFu6Wwy8CSEuCVYs5d2NZowCge37 ZnSwaq4jHmvEo0B4UAJSwjskotyXmMMwHu4Ut4MZk6c0jk0kLc8ihiXZPHzE9VYU 0zd9mLldmrQoOLxBXeFq =sfMP -----END PGP SIGNATURE----- --=_-MrAqL6oA1SlQai_zrudX-K-- From owner-freebsd-usb@freebsd.org Wed May 10 07:39:14 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 38A7BD66A69 for ; Wed, 10 May 2017 07:39:14 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F2D8A392 for ; Wed, 10 May 2017 07:39:13 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [89.204.130.99] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1d8MDA-0007Ko-IE for freebsd-usb@freebsd.org; Wed, 10 May 2017 09:39:04 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id v4A7d351002937 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 10 May 2017 09:39:03 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id v4A7d3KC002936 for freebsd-usb@freebsd.org; Wed, 10 May 2017 09:39:03 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Wed, 10 May 2017 09:39:03 +0200 From: Matthias Apitz To: freebsd-usb@freebsd.org Subject: Re: GnuPG && card readers Message-ID: <20170510073903.GA2836@c720-r314251> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-usb@freebsd.org References: <20170509094729.GA3668@c720-r314251> <20170509213637.Horde.u9PInhb6UaNmyy2nhXlnMGr@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170509213637.Horde.u9PInhb6UaNmyy2nhXlnMGr@webmail.leidinger.net> X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) User-Agent: Mutt/1.8.0 (2017-02-23) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.130.99 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 May 2017 07:39:14 -0000 El día martes, mayo 09, 2017 a las 09:36:37p. m. +0200, Alexander Leidinger escribió: > Quoting Matthias Apitz (from Tue, 9 May 2017 > 11:47:29 +0200): > > > Hello, > > > > The GnuPG project has a list of supported (USB) card readers: > > > > https://gnupg.org/howtos/card-howto/en/smartcard-howto-single.html#id2503342 > > > > Any comments or experiences about which of them are supported in > > FreeBSD 12-C? > > Best would be the smallest one to carry it all day in the bag. > > It's not FreeBSD which needs the support. gnupg comes with the > drivers, FreeBSD only needs to see "a device on the bus", that's enough. > > Check out the ports security/opensc amd devel/libccid (and gnupg needs > to be build with the SCDAEMON option of the port). This will bring in > the pcsc-lite port as a depedency. Those are the "drivers" for USB > card readers if you want to use them beyond what gnupg will do. > > You need to pay attention that the card reader support "extended > APDUs" (or support for digital signatures, which is more likely to be > announced in marketing material from the vendor). It may be OK without > extended APDUs if you only use OpenPGP v2 cards and generate the > keys/certs on the card itself, but if you want to go for bigger keys > than documented to work on the cards (I was able to put 4k-keys on the > OpenPGP v2 cards) the extended APDUs are needed. If the reader is CCID > compatible, the libccid driver will probably work. You can use the > opensc and pcsc-lite tools to transfer certs to the card which you > created with openssl (e.g. 4k keys). Alexander, Thanks for your explanations. I will opt for the Omnikey 6121 Mobile USB and see what I can do with it. It sells for around 20 euro, shipping to .de included. matthias -- Matthias Apitz, ✉ guru@unixarea.de, ⌂ http://www.unixarea.de/ ☎ +49-176-38902045 From owner-freebsd-usb@freebsd.org Wed May 10 17:31:54 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 327E9D67964 for ; Wed, 10 May 2017 17:31:54 +0000 (UTC) (envelope-from sergey.v28061999@gmail.com) Received: from mail-ua0-x22c.google.com (mail-ua0-x22c.google.com [IPv6:2607:f8b0:400c:c08::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D53FD1F50 for ; Wed, 10 May 2017 17:31:53 +0000 (UTC) (envelope-from sergey.v28061999@gmail.com) Received: by mail-ua0-x22c.google.com with SMTP id e55so3103478uaa.2 for ; Wed, 10 May 2017 10:31:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=dkz+umOMDmxgZ/lP6PPULMrQXlyYdXc99OYMD01DCQY=; b=dZts/0hs2KxJ52WktpSt/Qba2e+OgxQFzFHNrkCxPINwtoGSBMbbBUPdPcftGuihs4 TFHAsUB6Zxws8QsxxVR1wjszJvoAxoNvQni84jpgGh6r4atGuu6rNmhRMNl3KzTWWo8c bdavh1c/e5iMIKQJNKvt2IJQP+P21wrCQGjRKYj56zL+5ntyeTooIWFxo4N4TGQvSsOb GNAucbDOTX1Srvn06rSv+z/Euwz8Ff+ftJFoRbqRyHgCrjG6Ptnl8MCqtRRL5CMysrJe w1QAQwLfXtymC0v7yuViFtqrKExQYF2tvsffAJmsPbJALS/ThpGx2r73CbbfX3syupbO lLUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=dkz+umOMDmxgZ/lP6PPULMrQXlyYdXc99OYMD01DCQY=; b=Tpbp6gCTItea8ecPLfCiaZWX4sC3nJ55RfjdoFj12L5xBwM+2fOfgnz8Nu2TVLUKrS 7Rm1tECSYMtm7Xbgb61De98QHouQcq0rj0jzLkp9cOZ7SOrViICfgF4zxli1tm5TbILy Irg+OhgiqZbA6R1o0N4xAwJGCmjfuvZPQPkPwEdNPBWQYz+cnHZ3sdvMH9hHvvu2THl4 ij0TAEpHdK4UQY6EgcJSg+mZRFQ7JDMY2Vhg+ByiG+4o089VhU/jDEhTNx1twqchezu3 EZiBCCwHe/VzWTXibLulX7Rei3nc9JuPXZEonzPlLX7KAagvEVbM1YFIYT+CI8Djc2oH i1TA== X-Gm-Message-State: AODbwcChgY1P9UoofZ1IF90GVCWEMxhJOUY+2fMLc2qJVJUbhKZZiDIQ oYmaNtC0V+BEctBsQMfpJjF00CNaDl5j X-Received: by 10.176.7.5 with SMTP id h5mr2882748uah.147.1494437512725; Wed, 10 May 2017 10:31:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.2.21 with HTTP; Wed, 10 May 2017 10:31:52 -0700 (PDT) From: =?UTF-8?B?0YHQtdGA0LPQtdC5INCy0L7Qu9C60L7QstC40Yc=?= Date: Wed, 10 May 2017 20:31:52 +0300 Message-ID: Subject: i can't mount card reader from freebsd 11 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 May 2017 17:31:54 -0000 good afternoon I have a problem installing a flash drive under free bsd 11 UTB is Quite important for me Output dmesg (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 ed ff fe 00 00 01 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command type memorycard (card reader) From owner-freebsd-usb@freebsd.org Wed May 10 20:06:34 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4FC45D5BC25 for ; Wed, 10 May 2017 20:06:34 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (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 1C221899 for ; Wed, 10 May 2017 20:06:34 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 0DF6B2602EC; Wed, 10 May 2017 22:06:32 +0200 (CEST) Subject: Re: i can't mount card reader from freebsd 11 To: =?UTF-8?B?0YHQtdGA0LPQtdC5INCy0L7Qu9C60L7QstC40Yc=?= , freebsd-usb@freebsd.org References: From: Hans Petter Selasky Message-ID: <81d427af-e098-c723-a6db-c64b6c992c38@selasky.org> Date: Wed, 10 May 2017 22:04:34 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 May 2017 20:06:34 -0000 On 05/10/17 19:31, сергей волкович wrote: > good afternoon > I have a problem installing a flash drive under free bsd 11 UTB is > Quite important for me > Output dmesg > (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 ed ff fe 00 00 01 00 > (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error > (da0:umass-sim0:0:0:0): Retrying command > > type memorycard (card reader) Hi, Try to set some quirks for your device using: usbconfig -d X.Y add_quirk XXX Then re-plug your device and see if it enumerates. Where XXX is one of: UQ_MSC_NO_INQUIRY UQ_MSC_NO_SYNC_CACHE UQ_MSC_NO_TEST_UNIT_READY UQ_MSC_NO_RS_CLEAR_UA UQ_MSC_NO_START_STOP UQ_MSC_NO_GETMAXLUN UQ_MSC_NO_INQUIRY_EVPD UQ_MSC_NO_PREVENT_ALLOW --HPS From owner-freebsd-usb@freebsd.org Thu May 11 06:58:58 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 52F25D686C4 for ; Thu, 11 May 2017 06:58:58 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 19817A59 for ; Thu, 11 May 2017 06:58:57 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [2.247.254.148] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1d8i3p-0008Ic-Uu for freebsd-usb@freebsd.org; Thu, 11 May 2017 08:58:54 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id v4B6wpTc025138 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 11 May 2017 08:58:51 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id v4B6wopT025137 for freebsd-usb@freebsd.org; Thu, 11 May 2017 08:58:50 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Thu, 11 May 2017 08:58:44 +0200 From: Matthias Apitz To: freebsd-usb@freebsd.org Subject: Re: GnuPG && card readers Message-ID: <20170511065844.GA25086@c720-r314251> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-usb@freebsd.org References: <20170509094729.GA3668@c720-r314251> <20170509213637.Horde.u9PInhb6UaNmyy2nhXlnMGr@webmail.leidinger.net> <20170510073903.GA2836@c720-r314251> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170510073903.GA2836@c720-r314251> X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) User-Agent: Mutt/1.8.0 (2017-02-23) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 2.247.254.148 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 06:58:58 -0000 > El día martes, mayo 09, 2017 a las 09:36:37p. m. +0200, Alexander Leidinger escribió: > > > It's not FreeBSD which needs the support. gnupg comes with the > > drivers, FreeBSD only needs to see "a device on the bus", that's enough. > > > > Check out the ports security/opensc amd devel/libccid (and gnupg needs > > to be build with the SCDAEMON option of the port). This will bring in > > the pcsc-lite port as a depedency. Those are the "drivers" for USB > > card readers if you want to use them beyond what gnupg will do. > > > > ... I installed the mentioned ports and enabled the start in /etc/rc.conf with pcscd_enable="YES" but this would make hang the system on startup/boot: 25038 1 S+ 0:00,02 /bin/sh /usr/local/etc/rc.d/pcscd start 25043 1 S+ 0:00,01 /usr/local/sbin/pcscd 25044 1 S+ 0:00,01 /usr/local/sbin/pcscd What I have done wrong? matthias -- Matthias Apitz, ✉ guru@unixarea.de, ⌂ http://www.unixarea.de/ ☎ +49-176-38902045 8. Mai 1945: Wer nicht feiert hat den Krieg verloren. 8 de mayo de 1945: Quien no festeja perdió la Guerra. May 8, 1945: Who does not celebrate lost the War. From owner-freebsd-usb@freebsd.org Thu May 11 09:02:44 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 90FAED6875E for ; Thu, 11 May 2017 09:02:44 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 57058124F for ; Thu, 11 May 2017 09:02:44 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [2.247.254.148] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1d8jzX-0002To-EE for freebsd-usb@freebsd.org; Thu, 11 May 2017 11:02:35 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id v4B92Vmn026459 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 11 May 2017 11:02:31 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id v4B92U8a026458 for freebsd-usb@freebsd.org; Thu, 11 May 2017 11:02:30 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Thu, 11 May 2017 11:02:30 +0200 From: Matthias Apitz To: freebsd-usb@freebsd.org Subject: Re: GnuPG && card readers Message-ID: <20170511090230.GA26224@c720-r314251> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-usb@freebsd.org References: <20170509094729.GA3668@c720-r314251> <20170509213637.Horde.u9PInhb6UaNmyy2nhXlnMGr@webmail.leidinger.net> <20170510073903.GA2836@c720-r314251> <20170511065844.GA25086@c720-r314251> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170511065844.GA25086@c720-r314251> X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) User-Agent: Mutt/1.8.0 (2017-02-23) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 2.247.254.148 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 09:02:44 -0000 El día jueves, mayo 11, 2017 a las 08:58:44a. m. +0200, Matthias Apitz escribió: > > El día martes, mayo 09, 2017 a las 09:36:37p. m. +0200, Alexander Leidinger escribió: > > > > > It's not FreeBSD which needs the support. gnupg comes with the > > > drivers, FreeBSD only needs to see "a device on the bus", that's enough. > > > > > > Check out the ports security/opensc amd devel/libccid (and gnupg needs > > > to be build with the SCDAEMON option of the port). This will bring in > > > the pcsc-lite port as a depedency. Those are the "drivers" for USB > > > card readers if you want to use them beyond what gnupg will do. > > > > > > ... > > I installed the mentioned ports and enabled the start in /etc/rc.conf with > > pcscd_enable="YES" > > but this would make hang the system on startup/boot: > > 25038 1 S+ 0:00,02 /bin/sh /usr/local/etc/rc.d/pcscd start > 25043 1 S+ 0:00,01 /usr/local/sbin/pcscd > 25044 1 S+ 0:00,01 /usr/local/sbin/pcscd > interestingly to note: I have the exact same system (12-CURRENT r314251 and with same ports from my own pkg repository out of poudriere) in a VBOX machine; when I start there the pcscd in foreground and with --debug it says: root@r314251-amd64:~ # /usr/local/sbin/pcscd --debug --foreground 00000000 pcscdaemon.c:346:main() pcscd set to foreground with debug send to stdout 00000516 configfile.l:358:DBGetReaderList() Parsing conf file: /usr/local/etc/reader.conf.d 00000043 pcscdaemon.c:655:main() pcsc-lite 1.8.20 daemon ready. 00010018 hotplug_libusb.c:440:HPEstablishUSBNotifications() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead. 00000124 hotplug_libusb.c:449:HPEstablishUSBNotifications() Polling forced every 1 second(s) and a truss on the PID shows that is is really polling once every second: ... openat(AT_FDCWD,"/dev/ugen1.1",O_RDWR,00) = 7 (0x7) openat(AT_FDCWD,"/dev/ugen1.1",O_RDWR,00) = 8 (0x8) ioctl(8,USB_GET_PLUGTIME,0xdfdfcddc) = 0 (0x0) ioctl(7,USB_GET_CONFIG,0xdfdfce44) = 0 (0x0) close(8) = 0 (0x0) close(7) = 0 (0x0) openat(AT_FDCWD,"/dev/ugen1.1",O_RDWR,00) = 7 (0x7) openat(AT_FDCWD,"/dev/ugen1.1",O_RDWR,00) = 8 (0x8) ... On the other system, an Acer C720 netbook, it says only: root@c720-r314251:~ # /usr/local/sbin/pcscd --debug --foreground 00000000 pcscdaemon.c:346:main() pcscd set to foreground with debug send to stdout 00000550 configfile.l:358:DBGetReaderList() Parsing conf file: /usr/local/etc/reader.conf.d 00000049 pcscdaemon.c:655:main() pcsc-lite 1.8.20 daemon ready. i.e. the line about hotplug_libusb.c:440:HPEstablishUSBNotifications() does not show up; and a truss shows that is is doing/waiting on something on a dev; it is very slow doing some ioctls: openat(AT_FDCWD,"/dev/usbctl",O_RDONLY,00) = 11 (0xb) ioctl(11,USB_READ_DIR,0xdfdfcb38) = 0 (0x0) openat(AT_FDCWD,"/dev/ugen1.1",O_RDWR,00) = 12 (0xc) ioctl(12,USB_GET_PLUGTIME,0xdfdfcb1c) = 0 (0x0) ioctl(12,USB_GET_DEVICE_DESC,0xdfdfcb20) = 0 (0x0) ioctl(12,USB_GET_DEVICEINFO,0xdfdfccb0) = 0 (0x0) -- Matthias Apitz, ✉ guru@unixarea.de, ⌂ http://www.unixarea.de/ ☎ +49-176-38902045 From owner-freebsd-usb@freebsd.org Thu May 11 11:35:19 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0079DD65957 for ; Thu, 11 May 2017 11:35:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E4C2A1D8F for ; Thu, 11 May 2017 11:35:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4BBZISu090672 for ; Thu, 11 May 2017 11:35:18 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Thu, 11 May 2017 11:35:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: guru@unixarea.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 11:35:19 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 Bug ID: 219220 Summary: syscalls (ioctls) on USB devices are very slow Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: usb Assignee: freebsd-usb@FreeBSD.org Reporter: guru@unixarea.de I installed the port devel/pcsc-litepcsc-lite: # pkg inf pcsc-lite pcsc-lite-1.8.20,2 Name : pcsc-lite Version : 1.8.20,2 Installed on : Thu May 11 08:28:06 2017 CEST Origin : devel/pcsc-lite Architecture : freebsd:12:x86:64 ... and enabled the start of the 'pcscd' with pcscd_enable=3D"YES" in /etc/rc.conf, but this would make hang the system on startup/boot: > 25038 1 S+ 0:00,02 /bin/sh /usr/local/etc/rc.d/pcscd start > 25043 1 S+ 0:00,01 /usr/local/sbin/pcscd > 25044 1 S+ 0:00,01 /usr/local/sbin/pcscd >=20 interestingly to note: I have the exact same system (12-CURRENT r314251 and with same ports from my own pkg repository out of poudriere) in a VBOX machine; when I start there the pcscd in foreground and with --debug it says: root@r314251-amd64:~ # /usr/local/sbin/pcscd --debug --foreground 00000000 pcscdaemon.c:346:main() pcscd set to foreground with debug send to stdout 00000516 configfile.l:358:DBGetReaderList() Parsing conf file: /usr/local/etc/reader.conf.d 00000043 pcscdaemon.c:655:main() pcsc-lite 1.8.20 daemon ready. 00010018 hotplug_libusb.c:440:HPEstablishUSBNotifications() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead. 00000124 hotplug_libusb.c:449:HPEstablishUSBNotifications() Polling forced every 1 second(s) and a truss on the PID shows that is is really polling once every second: ... openat(AT_FDCWD,"/dev/ugen1.1",O_RDWR,00) =3D 7 (0x7) openat(AT_FDCWD,"/dev/ugen1.1",O_RDWR,00) =3D 8 (0x8) ioctl(8,USB_GET_PLUGTIME,0xdfdfcddc) =3D 0 (0x0) ioctl(7,USB_GET_CONFIG,0xdfdfce44) =3D 0 (0x0) close(8) =3D 0 (0x0) close(7) =3D 0 (0x0) openat(AT_FDCWD,"/dev/ugen1.1",O_RDWR,00) =3D 7 (0x7) openat(AT_FDCWD,"/dev/ugen1.1",O_RDWR,00) =3D 8 (0x8) ... On the system in question, an Acer C720 netbook, it says only: root@c720-r314251:~ # /usr/local/sbin/pcscd --debug --foreground 00000000 pcscdaemon.c:346:main() pcscd set to foreground with debug send to stdout 00000550 configfile.l:358:DBGetReaderList() Parsing conf file: /usr/local/etc/reader.conf.d 00000049 pcscdaemon.c:655:main() pcsc-lite 1.8.20 daemon ready. i.e. the line about hotplug_libusb.c:440:HPEstablishUSBNotifications() does not show up; and a truss shows that is is doing/waiting on something on a dev; it is very slow doing some ioctls: openat(AT_FDCWD,"/dev/usbctl",O_RDONLY,00) =3D 11 (0xb) ioctl(11,USB_READ_DIR,0xdfdfcb38) =3D 0 (0x0) openat(AT_FDCWD,"/dev/ugen1.1",O_RDWR,00) =3D 12 (0xc) ioctl(12,USB_GET_PLUGTIME,0xdfdfcb1c) =3D 0 (0x0) ioctl(12,USB_GET_DEVICE_DESC,0xdfdfcb20) =3D 0 (0x0) ioctl(12,USB_GET_DEVICEINFO,0xdfdfccb0) =3D 0 (0x0) I will attach a ktrace/kdump output which shows that the problem is caused = by *very* slow sys calls on the USB bus. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu May 11 11:40:18 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 21AD2D65A65 for ; Thu, 11 May 2017 11:40:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 11AF41EAF for ; Thu, 11 May 2017 11:40:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4BBeHeI097395 for ; Thu, 11 May 2017 11:40:17 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Thu, 11 May 2017 11:40:18 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: guru@unixarea.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 11:40:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #1 from Matthias Apitz --- Created attachment 182509 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D182509&action= =3Dedit output of kdump -T --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu May 11 11:41:05 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B601AD65AA8 for ; Thu, 11 May 2017 11:41:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A62411F47 for ; Thu, 11 May 2017 11:41:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4BBf5mV001758 for ; Thu, 11 May 2017 11:41:05 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Thu, 11 May 2017 11:41:05 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 11:41:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 Hans Petter Selasky changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hselasky@FreeBSD.org --- Comment #2 from Hans Petter Selasky --- The IOCTLs might be slow if another device is failing enumeration.=C2=A0Ple= ase check dmesg. The output from "procstat -ak" might also be useful. --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu May 11 11:41:47 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4EEF6D65ADE for ; Thu, 11 May 2017 11:41:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3F0A219E for ; Thu, 11 May 2017 11:41:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4BBfkro007485 for ; Thu, 11 May 2017 11:41:47 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Thu, 11 May 2017 11:41:47 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 11:41:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #3 from Hans Petter Selasky --- Also check if any processes are consuming 100% CPU. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu May 11 11:47:50 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 89538D65D53 for ; Thu, 11 May 2017 11:47:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 792BF2FE for ; Thu, 11 May 2017 11:47:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4BBloKX017158 for ; Thu, 11 May 2017 11:47:50 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Thu, 11 May 2017 11:47:50 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: guru@unixarea.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 11:47:50 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #4 from Matthias Apitz --- Created attachment 182510 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D182510&action= =3Dedit output of: procstat -ak CPU is nearly idle (~95%) and no other proc is using USB --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu May 11 11:50:22 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8FE25D65E54 for ; Thu, 11 May 2017 11:50:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7F36E37A for ; Thu, 11 May 2017 11:50:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4BBoMu8020545 for ; Thu, 11 May 2017 11:50:22 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Thu, 11 May 2017 11:50:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: guru@unixarea.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 11:50:22 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #5 from Matthias Apitz --- dmesg shows only attach and deattach of the mouse (which I inserted just to= see if this would kick the pcscd proc forward): ugen0.4: at usbus0 ums0 on uhub1 ums0: on us= bus0 ums0: 3 buttons and [XYZ] coordinates ID=3D0 ugen0.4: at usbus0 (disconnected) ums0: at uhub1, port 5, addr 3 (disconnected) ums0: detached ugen0.4: at usbus0 ums0 on uhub1 ums0: on us= bus0 ums0: 3 buttons and [XYZ] coordinates ID=3D0 ugen0.4: at usbus0 (disconnected) ums0: at uhub1, port 5, addr 4 (disconnected) ums0: detached nothing else after the boot messages; --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu May 11 11:54:09 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 58111D660AF for ; Thu, 11 May 2017 11:54:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 482FE8F4 for ; Thu, 11 May 2017 11:54:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4BBs8Zv035570 for ; Thu, 11 May 2017 11:54:09 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Thu, 11 May 2017 11:54:09 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 11:54:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #6 from Hans Petter Selasky --- Are there any USB-errors in dmesg? If you run "usbdump -i usbusX" on the bus where the device is connected, do= you see any timeouts? --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu May 11 12:14:21 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2038ED66E5A for ; Thu, 11 May 2017 12:14:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 103BC14EA for ; Thu, 11 May 2017 12:14:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4BCEKUT016666 for ; Thu, 11 May 2017 12:14:20 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Thu, 11 May 2017 12:14:21 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: guru@unixarea.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 12:14:21 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #7 from Matthias Apitz --- root@c720-r314251:~ # usbdump -i usbus1 14:13:00.912954 usbus1.2 DONE-CTRL-EP=3D00000080,SPD=3DHIGH,NFR=3D0,SLEN=3D0,IVAL=3D0,ERR=3DTIMEOUT 14:13:00.979775 usbus1.2 SUBM-CTRL-EP=3D00000080,SPD=3DHIGH,NFR=3D2,SLEN=3D= 8,IVAL=3D0 14:13:05.875133 usbus1.2 DONE-CTRL-EP=3D00000080,SPD=3DHIGH,NFR=3D0,SLEN=3D0,IVAL=3D0,ERR=3DTIMEOUT 14:13:05.938475 usbus1.2 SUBM-CTRL-EP=3D00000080,SPD=3DHIGH,NFR=3D2,SLEN=3D= 8,IVAL=3D0 14:13:10.840123 usbus1.2 DONE-CTRL-EP=3D00000080,SPD=3DHIGH,NFR=3D0,SLEN=3D0,IVAL=3D0,ERR=3DTIMEOUT 14:13:10.903602 usbus1.2 SUBM-CTRL-EP=3D00000080,SPD=3DHIGH,NFR=3D2,SLEN=3D= 8,IVAL=3D0 ^C 6 packets captured 6 packets received by filter 0 packets dropped by kernel root@c720-r314251:~ # usbdump -i usbus0 (hangs for ever) --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu May 11 12:16:49 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AFB4CD66F32 for ; Thu, 11 May 2017 12:16:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9F787166F for ; Thu, 11 May 2017 12:16:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4BCGnZ0020549 for ; Thu, 11 May 2017 12:16:49 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Thu, 11 May 2017 12:16:49 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 12:16:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #8 from Hans Petter Selasky --- The USB log shows that the device has a timeout on one of the USB commands. That's the reason it is slow! Wild guess: Try to set: UQ_NO_STRINGS using: usbconfig -d X.Y add_quirk UQ_NO_STRINGS --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu May 11 12:31:27 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 02D1ED6752B for ; Thu, 11 May 2017 12:31:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E63401BEA for ; Thu, 11 May 2017 12:31:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4BCVQA6081840 for ; Thu, 11 May 2017 12:31:26 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Thu, 11 May 2017 12:31:27 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: guru@unixarea.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 12:31:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #9 from Matthias Apitz --- $ dmesg | grep usb usbus0 on xhci0 usbus0: 5.0Gbps Super Speed USB v3.0 usbus1: EHCI version 1.0 usbus1 on ehci0 usbus1: 480Mbps High Speed USB v2.0 ugen1.1: at usbus1 ugen0.1: <0x8086 XHCI root HUB> at usbus0 uhub0: on usbus1 uhub1: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 ugen0.2: at usbus0 ugen1.2: at usbus1 uhub2: on usbus1 ugen0.3: at usbus0 ugen0.4: at usbus0 ums0: on us= bus0 ugen0.4: at usbus0 (disconnected) ugen0.4: at usbus0 ums0: on us= bus0 ugen0.4: at usbus0 (disconnected) --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu May 11 12:32:10 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CD310D67565 for ; Thu, 11 May 2017 12:32:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BD5771CCF for ; Thu, 11 May 2017 12:32:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4BCWASV003966 for ; Thu, 11 May 2017 12:32:10 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Thu, 11 May 2017 12:32:10 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: guru@unixarea.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 12:32:10 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #10 from Matthias Apitz --- they hang all: root@c720-r314251:~ # ls -l /dev/ug* lrwxr-xr-x 1 root wheel 9 11 may. 06:57 /dev/ugen0.1 -> usb/0.1.0 lrwxr-xr-x 1 root wheel 9 11 may. 06:57 /dev/ugen0.2 -> usb/0.2.0 lrwxr-xr-x 1 root wheel 9 11 may. 06:57 /dev/ugen0.3 -> usb/0.3.0 lrwxr-xr-x 1 root wheel 9 11 may. 06:57 /dev/ugen1.1 -> usb/1.1.0 lrwxr-xr-x 1 root wheel 9 11 may. 06:57 /dev/ugen1.2 -> usb/1.2.0 root@c720-r314251:~ # usbconfig -d 0.1 add_quirk UQ_NO_STRINGS ^C^C^C root@c720-r314251:~ # usbconfig -d 0.2 add_quirk UQ_NO_STRINGS ^C root@c720-r314251:~ # usbconfig -d 0.3 add_quirk UQ_NO_STRINGS ^C root@c720-r314251:~ # usbconfig -d 1.1 add_quirk UQ_NO_STRINGS ^C root@c720-r314251:~ # usbconfig -d 1.2 add_quirk UQ_NO_STRINGS ^C root@c720-r314251:~ # --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu May 11 12:35:40 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 72EC4D675DE for ; Thu, 11 May 2017 12:35:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5AC361E7F for ; Thu, 11 May 2017 12:35:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4BCZdCX084401 for ; Thu, 11 May 2017 12:35:40 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Thu, 11 May 2017 12:35:40 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 12:35:40 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #11 from Hans Petter Selasky --- Did you replug the USB device after adding the quirk? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu May 11 12:37:33 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A0A1BD6762F for ; Thu, 11 May 2017 12:37:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 90BB31EDC for ; Thu, 11 May 2017 12:37:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4BCbXB7025638 for ; Thu, 11 May 2017 12:37:33 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Thu, 11 May 2017 12:37:33 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 12:37:33 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #12 from Hans Petter Selasky --- Add -vvv to usbdump and send the output with USB_ERR_TIMEOUT to the PCSC USB driver developers. They might know why the device is hanging on the commands they are sending. This does not look like a FreeBSD USB stack issue. --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu May 11 12:43:43 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5BCE4D67814 for ; Thu, 11 May 2017 12:43:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BE3327B for ; Thu, 11 May 2017 12:43:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4BChhdo064021 for ; Thu, 11 May 2017 12:43:43 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Thu, 11 May 2017 12:43:43 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: guru@unixarea.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 12:43:43 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #13 from Matthias Apitz --- (In reply to Hans Petter Selasky from comment #11) appart of the test with the mouse (which now is not connected) I can not un= plu any device; they are built-in in the Acer C720 netbook; --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu May 11 12:45:03 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0CF73D6785B for ; Thu, 11 May 2017 12:45:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F126F2F1 for ; Thu, 11 May 2017 12:45:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4BCj2e4093856 for ; Thu, 11 May 2017 12:45:02 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Thu, 11 May 2017 12:45:03 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: guru@unixarea.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 12:45:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #14 from Matthias Apitz --- (In reply to Matthias Apitz from comment #13) are you sure? why all the usbconfig commands are hanging? there is no pcscd software involved... --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu May 11 12:49:10 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C2DD5D67908 for ; Thu, 11 May 2017 12:49:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B2FA837E for ; Thu, 11 May 2017 12:49:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4BCnAVx099342 for ; Thu, 11 May 2017 12:49:10 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Thu, 11 May 2017 12:49:10 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 12:49:10 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #15 from Hans Petter Selasky --- Hi, See "procstat -ak" and which thread is blocked inside USB. When you have a non-behaving USB device which times out and never closes its USB handle from userspace, that will block the enumeration thread, which in turn will block usbconfig. --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu May 11 13:26:29 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 485B0D671A7 for ; Thu, 11 May 2017 13:26:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 110801659 for ; Thu, 11 May 2017 13:26:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4BDQSVL004014 for ; Thu, 11 May 2017 13:26:28 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Thu, 11 May 2017 13:26:29 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: guru@unixarea.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 13:26:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #16 from Matthias Apitz --- (In reply to Hans Petter Selasky from comment #15) procstat -ak | grep usb only show system processes: root@c720-r314251:/home/guru # procstat -ak | grep usb > /tmp/usb root@c720-r314251:/home/guru # ps ax | grep '14 ' >> /tmp/usb root@c720-r314251:/home/guru # cat /tmp/usb 14 100030 usb usbus0 mi_switch sleepq_switch sleepq_wait _cv_wait usb_process fork_exit fork_trampoline=20 14 100031 usb usbus0 mi_switch sleepq_switch sleepq_wait _cv_wait usb_process fork_exit fork_trampoline=20 14 100032 usb usbus0 mi_switch sleepq_switch sleepq_wait _cv_wait usb_process fork_exit fork_trampoline=20 14 100033 usb usbus0 mi_switch sleepq_switch sleepq_wait _cv_wait usb_process fork_exit fork_trampoline=20 14 100034 usb usbus0 mi_switch sleepq_switch sleepq_wait _cv_wait usb_process fork_exit fork_trampoline=20 14 100041 usb usbus1 mi_switch sleepq_switch sleepq_wait _cv_wait usb_process fork_exit fork_trampoline=20 14 100042 usb usbus1 mi_switch sleepq_switch sleepq_wait _cv_wait usb_process fork_exit fork_trampoline=20 14 100043 usb usbus1 mi_switch sleepq_switch sleepq_wait _cv_wait usb_process fork_exit fork_trampoline=20 14 100044 usb usbus1 mi_switch sleepq_switch sleepq_wait _cv_wait usbd_do_request_flags usbd_req_get_port_status uhub_read_port_status uhub_explore uhub_explore usb_bus_explore usb_process fork_exit fork_trampoline=20 14 100045 usb usbus1 mi_switch sleepq_switch sleepq_wait _cv_wait usb_process fork_exit fork_trampoline=20 12 - WL 0:05,14 [intr] 14 - DL 0:00,04 [usb] 614 - Is 0:00,00 /sbin/ipmon -Ds 2238 1 R+ 0:00,00 grep 14=20 I also have deactivated any access to usb, like webcamd, hals, ... what else? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu May 11 13:29:04 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A6EA6D671F9 for ; Thu, 11 May 2017 13:29:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 96E7516CC for ; Thu, 11 May 2017 13:29:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4BDT4RC007403 for ; Thu, 11 May 2017 13:29:04 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Thu, 11 May 2017 13:29:04 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 13:29:04 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #17 from Hans Petter Selasky --- Which USB device is ugen1.2 ? It is the one causing the TIMEOUT issue accor= ding to the usbdump log you sent. --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu May 11 13:34:21 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BEA89D674F9 for ; Thu, 11 May 2017 13:34:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AEA311A7E for ; Thu, 11 May 2017 13:34:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4BDYLYP023859 for ; Thu, 11 May 2017 13:34:21 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Thu, 11 May 2017 13:34:21 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: guru@unixarea.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 13:34:21 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #18 from Matthias Apitz --- (In reply to Hans Petter Selasky from comment #17) $ dmesg | grep ugen ugen0.1: <0x8086 XHCI root HUB> at usbus0 ugen1.1: at usbus1 ugen0.2: at usbus0 ugen1.2: at usbus1 ugen0.3: at usbus0 I will invesrigate what this is at all; --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu May 11 13:38:09 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0C007D6758C for ; Thu, 11 May 2017 13:38:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F00D21B3A for ; Thu, 11 May 2017 13:38:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4BDc8bb028861 for ; Thu, 11 May 2017 13:38:08 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Thu, 11 May 2017 13:38:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 13:38:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #19 from Hans Petter Selasky --- Also the output "vmstat -i" might be interesting. You can try to disable ugen1.1 like this: usbconfig -d 1.1 set_config 255 And see if it helps. --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu May 11 14:22:51 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7A501D682B8 for ; Thu, 11 May 2017 14:22:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6490E152B for ; Thu, 11 May 2017 14:22:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4BEMp2t058977 for ; Thu, 11 May 2017 14:22:51 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Thu, 11 May 2017 14:22: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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: guru@unixarea.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 14:22:51 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #20 from Matthias Apitz --- (In reply to Hans Petter Selasky from comment #19) this hangs too :-( --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu May 11 14:28:32 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 79D09D68428 for ; Thu, 11 May 2017 14:28:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 69C9E176B for ; Thu, 11 May 2017 14:28:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4BESVwp066644 for ; Thu, 11 May 2017 14:28:32 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Thu, 11 May 2017 14:28:32 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 14:28:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #21 from Hans Petter Selasky --- Try to put: dev.uhub.2.disable_enumeration=3D1 In /boot/loader.conf or something like that and reboot. --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri May 12 05:16:00 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 951B9D68B68 for ; Fri, 12 May 2017 05:16:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 779CFCB3 for ; Fri, 12 May 2017 05:16:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4C5G0Wk015949 for ; Fri, 12 May 2017 05:16:00 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Fri, 12 May 2017 05:16:00 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: guru@unixarea.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 May 2017 05:16:00 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #22 from Matthias Apitz --- (In reply to Hans Petter Selasky from comment #21) I did so but this does not give any visible change in the problem: root@c720-r314251:/home/guru # sysctl -a | grep enumeration hw.usb.disable_enumeration: 0 dev.uhub.2.disable_enumeration: 1 dev.uhub.1.disable_enumeration: 0 dev.uhub.0.disable_enumeration: 0 root@c720-r314251:/home/guru # usbdump -i usbus0 ^C 0 packets captured 0 packets received by filter 0 packets dropped by kernel root@c720-r314251:/home/guru # usbdump -i usbus1 07:13:47.895287 usbus1.2 DONE-CTRL-EP=3D00000080,SPD=3DHIGH,NFR=3D0,SLEN=3D0,IVAL=3D0,ERR=3DTIMEOUT 07:13:47.962218 usbus1.2 SUBM-CTRL-EP=3D00000080,SPD=3DHIGH,NFR=3D2,SLEN=3D= 8,IVAL=3D0 07:13:52.863603 usbus1.2 DONE-CTRL-EP=3D00000080,SPD=3DHIGH,NFR=3D0,SLEN=3D0,IVAL=3D0,ERR=3DTIMEOUT 07:13:52.926434 usbus1.2 SUBM-CTRL-EP=3D00000080,SPD=3DHIGH,NFR=3D2,SLEN=3D= 8,IVAL=3D0 ^C 4 packets captured 4 packets received by filter 0 packets dropped by kernel --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri May 12 06:36:26 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 656E5D69418 for ; Fri, 12 May 2017 06:36:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 55248B7C for ; Fri, 12 May 2017 06:36:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4C6aQjX043730 for ; Fri, 12 May 2017 06:36:26 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Fri, 12 May 2017 06:36:26 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 May 2017 06:36:26 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #23 from Hans Petter Selasky --- Try to disable one of the other hubs in turn. --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri May 12 07:21:41 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2E60DD69017 for ; Fri, 12 May 2017 07:21:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 04A0B1D78 for ; Fri, 12 May 2017 07:21:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4C7LeoK081447 for ; Fri, 12 May 2017 07:21:40 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Fri, 12 May 2017 07:21:41 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: guru@unixarea.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 May 2017 07:21:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #24 from Matthias Apitz --- (In reply to Hans Petter Selasky from comment #23) I disabled all of them: # grep enumer /boot/loader.conf dev.uhub.0.disable_enumeration=3D1 dev.uhub.1.disable_enumeration=3D1 dev.uhub.2.disable_enumeration=3D1 with the following results: usbdump stopped working on all usbusN: root@c720-r314251:/home/guru # usbdump -i usbus0 ^C 0 packets captured 0 packets received by filter 0 packets dropped by kernel root@c720-r314251:/home/guru # usbdump -i usbus1 ^C^C 0 packets captured 0 packets received by filter 0 packets dropped by kernel the pcscd starts quickly up to polling: # /usr/local/sbin/pcscd --debug --foreground=20 00000000 pcscdaemon.c:346:main() pcscd set to foreground with debug send to stdout 00000567 configfile.l:358:DBGetReaderList() Parsing conf file: /usr/local/etc/reader.conf.d 00000057 pcscdaemon.c:655:main() pcsc-lite 1.8.20 daemon ready. 00015076 hotplug_libusb.c:440:HPEstablishUSBNotifications() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead. 00000711 hotplug_libusb.c:449:HPEstablishUSBNotifications() Polling forced every 1 second(s) BUT none of the two USB plugin slots give any reaction in /var/log/messages= on plugin USB devices and give not any light on the USB sticks itself; We say in German (translated): Operation successful, patient is dead :-) --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri May 12 07:48:59 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 34DC9D693B7 for ; Fri, 12 May 2017 07:48:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 192D093B for ; Fri, 12 May 2017 07:48:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4C7mw82042797 for ; Fri, 12 May 2017 07:48:58 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Fri, 12 May 2017 07:48:59 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: guru@unixarea.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 May 2017 07:48:59 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #25 from Matthias Apitz --- with only set dev.uhub.1.disable_enumeration=3D1 in loader.conf the 'usbdump' are not working, but the pcscd is now booting fast and fine; here is its log with time stamped each line; it does see the pull out of the CCID stick at 09:44:40, but not any plug-in again (will investigate this): 09:44:26: 00000000 pcscdaemon.c:346:main() pcscd set to foreground with deb= ug send to stdout 09:44:26: 00000554 configfile.l:358:DBGetReaderList() Parsing conf file: /usr/local/etc/reader.conf.d 09:44:26: 00000045 pcscdaemon.c:655:main() pcsc-lite 1.8.20 daemon ready. 09:44:26: 00015032 hotplug_libusb.c:536:HPAddHotPluggable() Adding USB devi= ce: 0:4:0 09:44:26: 00000122 readerfactory.c:1079:RFInitializeReader() Attempting sta= rtup of HID Global OMNIKEY 6121 Smart Card Reader 00 00 using /usr/local/lib/pcsc/drivers//ifd-ccid.bundle/Contents/FreeBSD/libccid.so 09:44:26: 00000245 readerfactory.c:954:RFBindFunctions() Loading IFD Handler 3.0 09:44:26: 00000048 ifdhandler.c:1953:init_driver() Driver version: 1.4.25 09:44:26: 00003965 ifdhandler.c:1970:init_driver() LogLevel: 0x0003 09:44:26: 00000013 ifdhandler.c:1981:init_driver() DriverOptions: 0x0000 09:44:26: 00002578 ifdhandler.c:110:CreateChannelByNameOrChannel() Lun: 0, device: usb:076b/6632:libusb-1.0:0:4:0 09:44:26: 00000053 ccid_usb.c:287:OpenUSBByName() Using: /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist 09:44:26: 00003592 ccid_usb.c:305:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau (ludovic.rousseau@free.fr) 09:44:26: 00000011 ccid_usb.c:306:OpenUSBByName() ifdProductString: Generic CCID driver 09:44:26: 00000010 ccid_usb.c:307:OpenUSBByName() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or= (at your option) any later version. 09:44:26: 00001580 ccid_usb.c:621:OpenUSBByName() Found Vendor/Product: 076B/6632 (HID Global OMNIKEY 6121 Smart Card Reader) 09:44:26: 00000011 ccid_usb.c:623:OpenUSBByName() Using USB bus/device: 0/4 09:44:27: 00012361 ccid_usb.c:1153:get_data_rates() Got 105 data rates but = was expecting 96 09:44:27: 00000106 ccid_usb.c:1171:get_data_rates() declared: 10752 bps 09:44:27: 00000007 ccid_usb.c:1171:get_data_rates() declared: 21505 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 43010 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 86021 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 172043 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 344086 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 129032 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 215053 bps 09:44:27: 00000014 ccid_usb.c:1171:get_data_rates() declared: 12903 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 25806 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 51612 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 103225 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 206451 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 412903 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 154838 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 258064 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 7168 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 14336 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 28673 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 57347 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 114695 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 229390 bps 09:44:27: 00000004 ccid_usb.c:1171:get_data_rates() declared: 143369 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 8602 bps 09:44:27: 00000006 ccid_usb.c:1171:get_data_rates() declared: 17204 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 34408 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 68817 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 137634 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 275268 bps 09:44:27: 00000004 ccid_usb.c:1171:get_data_rates() declared: 5376 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 64516 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 107526 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 6451 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 77419 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 8064 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 16129 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 32258 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 96774 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 161290 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 3584 bps 09:44:27: 00000019 ccid_usb.c:1171:get_data_rates() declared: 4301 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 2688 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 53763 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 3225 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 38709 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 4032 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 48387 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 80645 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 2150 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 2580 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 5161 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 10322 bps 09:44:27: 00000004 ccid_usb.c:1171:get_data_rates() declared: 20645 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 41290 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 82580 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 30967 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 7812 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 15625 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 31250 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 62500 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 125000 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 250000 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 93750 bps 09:44:27: 00000004 ccid_usb.c:1171:get_data_rates() declared: 156250 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 9375 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 18750 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 37500 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 75000 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 150000 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 300000 bps 09:44:27: 00000008 ccid_usb.c:1171:get_data_rates() declared: 112500 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 187500 bps 09:44:27: 00000004 ccid_usb.c:1171:get_data_rates() declared: 5208 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 10416 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 20833 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 41666 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 83333 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 166666 bps 09:44:27: 00000004 ccid_usb.c:1171:get_data_rates() declared: 104166 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 6250 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 12500 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 25000 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 50000 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 100000 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 200000 bps 09:44:27: 00000004 ccid_usb.c:1171:get_data_rates() declared: 3906 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 46875 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 78125 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 4687 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 56250 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 5859 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 11718 bps 09:44:27: 00000004 ccid_usb.c:1171:get_data_rates() declared: 23437 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 70312 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 117187 bps 09:44:27: 00000005 ccid_usb.c:1171:get_data_rates() declared: 2604 bps 09:44:27: 00120240 ifdhandler.c:379:IFDHGetCapabilities() tag: 0xFB3, usb:076b/6632:libusb-1.0:0:4:0 (lun: 0) 09:44:27: 00000016 readerfactory.c:395:RFAddReader() Using the reader polli= ng thread 09:44:27: 00000521 ifdhandler.c:379:IFDHGetCapabilities() tag: 0xFAE, usb:076b/6632:libusb-1.0:0:4:0 (lun: 0) 09:44:27: 00000010 ifdhandler.c:470:IFDHGetCapabilities() Reader supports 1 slot(s) 09:44:27: 00000095 readerfactory.c:1420:RFWaitForReaderInit() Waiting init = for reader: HID Global OMNIKEY 6121 Smart Card Reader 00 00 09:44:27: 00000025 hotplug_libusb.c:440:HPEstablishUSBNotifications() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead. 09:44:27: 00000018 hotplug_libusb.c:449:HPEstablishUSBNotifications() Polli= ng forced every 1 second(s) 09:44:40: 13099101 hotplug_libusb.c:626:HPRemoveHotPluggable() Removing USB device[0]: 0:4:0 09:44:40: 00002788 readerfactory.c:608:RFRemoveReader() UnrefReader() count was: 1 09:44:40: 00000012 eventhandler.c:176:EHDestroyEventHandler() Stomping thre= ad. 09:44:40: 00000008 ifdhandler.c:379:IFDHGetCapabilities() tag: 0xFB1, usb:076b/6632:libusb-1.0:0:4:0 (lun: 0) 09:44:40: 00000006 ifdhandler.c:379:IFDHGetCapabilities() tag: 0xFB2, usb:076b/6632:libusb-1.0:0:4:0 (lun: 0) 09:44:40: 00000004 eventhandler.c:201:EHDestroyEventHandler() Request stopp= ing of polling thread 09:44:40: 00000005 ifdhandler.c:344:IFDHStopPolling() usb:076b/6632:libusb-1.0:0:4:0 (lun: 0) 09:44:40: 00000013 ccid_usb.c:1337:InterruptStop() libusb_cancel_transfer failed: -5 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri May 12 08:05:12 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 107F3D699F7 for ; Fri, 12 May 2017 08:05:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 008EE113B for ; Fri, 12 May 2017 08:05:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4C85Bhq003116 for ; Fri, 12 May 2017 08:05:11 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 219220] syscalls (ioctls) on USB devices are very slow Date: Fri, 12 May 2017 08:05:12 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 May 2017 08:05:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219220 --- Comment #26 from Hans Petter Selasky --- Try to figure out which one of them is the culpit :-) --HPS --=20 You are receiving this mail because: You are the assignee for the bug.=