From owner-freebsd-usb@freebsd.org Sun Feb 19 09:04:13 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 A2821CE55CE for ; Sun, 19 Feb 2017 09:04:13 +0000 (UTC) (envelope-from jan.l.peterson@gmail.com) Received: from mail-pf0-x22c.google.com (mail-pf0-x22c.google.com [IPv6:2607:f8b0:400e:c00::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 64D871433 for ; Sun, 19 Feb 2017 09:04:13 +0000 (UTC) (envelope-from jan.l.peterson@gmail.com) Received: by mail-pf0-x22c.google.com with SMTP id 68so12235890pfx.2 for ; Sun, 19 Feb 2017 01:04:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:openpgp:message-id:date:user-agent:mime-version; bh=JKd2CoshebHP6Sv2JUwYQhLYbfWstCO+LWlaGsVdEOs=; b=QGh1ou5DMRLgyPrhGOfkL7enFzOiQXZhjEI1DM0Ww6Jh0iLEmMKmpc+Uw91BAU2RLa lHyWoiy8TspltYejWU/LfvcpWIXQndFX1GF3+qLdrpWdzPJNcMoeErOphTDMsIX2AN6O qNsgGl6gnUDSNc0MChR1FLgWi5z4tZCDuoQJEKHSfsBNF5Pt6IQos7lvvAy2xtWF5UPW YdjCcZ+4cDrHfbxKgLEy5lMvxQo+gf9S/b0qJRf/i52qxK0XkbUq1A/peDatLGe/ksZW zMMMQPI8p239X1rsl7TMYpCSCWjCI7S1ZULECt1b2wdG+3nm1+bdsszF1CJeIp2YwNRv S5fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:openpgp:message-id:date :user-agent:mime-version; bh=JKd2CoshebHP6Sv2JUwYQhLYbfWstCO+LWlaGsVdEOs=; b=lQsJmizSvv/x0NC9BACz6obgaKTeTZK67rWkF4TOM+BbuXL3s2ZepPwZdUv6um28dn oxuPCoTKDc6Eac8TuTJA5vOUwHFybot3syw8p91hSEA0JP/dXyL+ebx/dkFr1/0f5YrH KKAJoK9FXL58VN1OssE3DYvr9rx2nWDd1kpiRDcHC8VQI8zIux/MXk1ekRBex3TB0kYP 1wRk4XUsHkqbSKG3Hsl42rHmghB+zLqHF9fvbJWF7soO/BbwRi9KfiA0avjLaV/O8M40 m0wmfRWNdHPdBW6kAgQE3jFVhTAH4Fp36XWh1NOBaA/D7kDQecSaigRVxYN7uOUA76zd 3CYw== X-Gm-Message-State: AMke39nY0EA4AMj/42TR4b2msB+PFtgcG6AosPZZyU1RRPuINdNCRr3+1LjQobxBURAIfA== X-Received: by 10.84.215.154 with SMTP id l26mr23393834pli.120.1487495052652; Sun, 19 Feb 2017 01:04:12 -0800 (PST) Received: from [192.168.1.187] (c-24-2-102-99.hsd1.ut.comcast.net. [24.2.102.99]) by smtp.gmail.com with ESMTPSA id 75sm16636162pfy.38.2017.02.19.01.04.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Feb 2017 01:04:11 -0800 (PST) To: freebsd-usb@freebsd.org From: "Jan L. Peterson" Subject: device not attaching at boot Openpgp: id=2CAC736D784BCE50E46350000FD833AA1EF031ED Message-ID: <68a36048-dae3-dc3b-b9f4-e63450c54045@gmail.com> Date: Sun, 19 Feb 2017 02:04:09 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="gQettf2EtNe1tTgKB4hcJUGkmb7OtE7ka" 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, 19 Feb 2017 09:04:13 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --gQettf2EtNe1tTgKB4hcJUGkmb7OtE7ka Content-Type: multipart/mixed; boundary="A2IftDKIAsQ9WRvVF5OBcv1OGhUd4JjnL"; protected-headers="v1" From: "Jan L. Peterson" To: freebsd-usb@freebsd.org Message-ID: <68a36048-dae3-dc3b-b9f4-e63450c54045@gmail.com> Subject: device not attaching at boot --A2IftDKIAsQ9WRvVF5OBcv1OGhUd4JjnL Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, folks, I have a weird problem... Hardware is an HP dc7900 small form factor PC. OS is FreeBSD 11.0-RELEASE-p7. I am running the GENERIC kernel. I have a USB ethernet adapter that contains a Realtek chip... the vendor ID is 0x0bda and the product ID is 0x8153. If I plug this device into the machine while the system is already up and running, it is detected and attached as ue0 on cdce0 (it appears as ugen3.2, no matter which of the several USB ports on the machine I plug it into). If the device is plugged into the machine when it boots up, nothing I can do (short of unplugging it and replugging it) will make the machine recognize that it is there. I have tried the following: 1. played with hw.usb.timings.* values 2. usbconfig -d 3.1 set_config 255; usbconfig -d 3.1 set_config 0 (which deactivates the hub that the device is connected to and then reactivates it) 3. did the same (set_config 255; set_config 0) on *all* of the usb hubs (ugen*.1) 4. turned on various hw.usb.*.debug options (which produced copious debug info, but nothing containing the strings 8153, 0bda, or Realtek) 5. tried various devctl rescan options (including pci0) 6. googled frantically for something similar to this problem to no avail (well, I did come across some people with similar problems, but their problems all seemed to be around the device coming up with the wrong config and needing a SET_CFG_1 quirk set, which appears to already be in the kernel as of 2015 or so) I've looked for ways to force the USB bus to rescan (hence the usbconfig stuff in number 2 above) but nothing I have tried seems to work. Again, the device works fine if I unplug it from the machine and then plug it back in. It is detected, probes, and attaches just fine and dandy. The problem is that the machine is destined to be locked in a cabinet at a remote location where there won't be anyone available to go unplug and replug it any time the machine needs a reboot. To clarify... when I have the device plugged into the machine and I reboot, the device is not detected or noticed by the OS in any way.=20 There is nothing relevant in dmesg or /var/log/messages. usbconfig and devinfo do not see it at all. If I unplug the device and plug it back in, it is recognized immediately and works fine. Any ideas? -jan- --=20 Jan L. Peterson http://www.peterson-tech.com/~jlp/ --A2IftDKIAsQ9WRvVF5OBcv1OGhUd4JjnL-- --gQettf2EtNe1tTgKB4hcJUGkmb7OtE7ka Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYqV+KAAoJEA/YM6oe8DHtCXEQALOpr2mmTXOWqlQsCEOxENid bwmelNN1TF6Hl6YaN5kLMFriaibBpTj7gOLldDz71BPF8SikId0W+06fm5UJob8D vVmrSQWZ2ZyLxgkWaGIWQfEQdbAK+wpetn942KbXU0DJeTNVviq+SMgbzMZ1cOSh 9Ht/6t8Z1JGlqQZF95ytSSa5ysWsgvi8GXonhmYtrhutzv9SqwfX/RbpT8x6QHno I4Jch5prNB3icstcno82f5y3HBBYnz2q13BIcKX/D6O1+tGLsFT5nZGwVwh5A/lK VVJCeYAG79pY1XC9rmBidIMfk3Ft+D4K6EsQtqUuqRSAfm8wjI2+U0KLBjSAN29e 2jFNQI7bDhtVtrVJSNmb9tY49AjZUgLXQljoLlns7ftic2oYqcrLX7AsGm/wrYQw yqHo1bzSQ7eTwvuC0YBb6JmuXOxvIq1iG0dT+8RG8O9lDQ0mSqYB5Z89M3/l6LKH 8OFhRYyWNhw100AHaB7AiXbUpyYefZ3RaOoxZltF3TOVmBvvwn8GcY5His4oB33X ziNImTcxN29nHcBsnPmAfhLS2lj1IMYy33hVChFU1+HWR6n4HwsL0fd/q1Lgk5Ox bHwqtznDL+O32OyW26O5mSaqibA+KFNeklI3MwyhVAqtx6ONShgK4iMv3MnYByWQ mqVqhFpmKt2jXy7ZS3pw =skE+ -----END PGP SIGNATURE----- --gQettf2EtNe1tTgKB4hcJUGkmb7OtE7ka--