From owner-freebsd-usb@freebsd.org Fri Jul 26 09:25:37 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 232E8BABC6; Fri, 26 Jul 2019 09:25:37 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 63814870C1; Fri, 26 Jul 2019 09:25:36 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wm1-x32d.google.com with SMTP id s3so47376149wms.2; Fri, 26 Jul 2019 02:25:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:reply-to:mime-version :content-transfer-encoding; bh=jafF3xHeWgJjNGJbhiGYY3JR0yNg6jwstavhrKiE2Jc=; b=lHCo+zfnDYUF1TV2VrS2cgIyrefN8mpkbNLnM3f6W+7takGxw/xLc/tzs0/Ny1IaMv 6txDfEZdDEP58ULEeyJlgwvVpD1WUu0NE1R4UWPczfQ9OpRuNkH3E2LiyyaTZlRcyYO5 vAFlMVQowMVf+GH7ExllrQY5LEQJLnP6VKmQJO99E9WYg/G+nZZeCdnDmly7nEzpAKgr wMBUbPRYX4WLVxfgT/KO7T0U6YWiT12aer4jZMsuYXQXvj0whse9LJ/ApOdW+U0NHYyZ cNp6ao4ejmdfCbMtRA7mPJ8EQ/JllA0qSXQO/wjA6MrJyaxUWWapDSl5cTFpv0hQkwfD rAZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:reply-to :mime-version:content-transfer-encoding; bh=jafF3xHeWgJjNGJbhiGYY3JR0yNg6jwstavhrKiE2Jc=; b=X4Ceoxh2hzVxuo43cERegxZ171kyD5NvpSiFbT4x88ZU5UWKQNncfZlk5EZusQ8/4z SZ1BrhfMaFNUp3ogxxSjlv15O+nbNsZ9SP4fUfaykuvF0AstnoXkf8JR911WNVVrJr7+ eb/ayvisQGSXXU5Gl5jF0FiiIGAwYN54HKub40AWrgjIyq/u6c9w4Ti7c28HAQJsOoQB 9o7htrC6F3gK3Hh8pJhzupoosoJwY8x9NPWP6GuosCkf4lQ8H9jP4zDPKfhIJr6HZhD6 RmTWvG78fwmh2mq5skytgEgpC0Dwic015ZuHKm3y1PjxWOXt2AFnVsRGrqa7r0zoqD8U RJQQ== X-Gm-Message-State: APjAAAW/RmH5YnxewUbasAhSKiiXunXiQ5cLPxU/zo7SlarVYDi7ejSp yl+k4Lm/1ZmEOzSnxqWd+rd8dhib X-Google-Smtp-Source: APXvYqw/l6eXStIzuf4qf6hcsRAa87UvAqh5Ysut0Vnpqep1rM9dkgoaJM+uez949kA6OzI8/d+hGA== X-Received: by 2002:a1c:a6d3:: with SMTP id p202mr86091238wme.26.1564133134985; Fri, 26 Jul 2019 02:25:34 -0700 (PDT) Received: from ernst.home (p5B023CEA.dip0.t-ipconnect.de. [91.2.60.234]) by smtp.gmail.com with ESMTPSA id f70sm64107710wme.22.2019.07.26.02.25.34 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Jul 2019 02:25:34 -0700 (PDT) Date: Fri, 26 Jul 2019 11:25:33 +0200 From: Gary Jennejohn To: freebsd-usb@freebsd.org, freebsd-current@freebsd.org Subject: strange problem with external USB disks Message-ID: <20190726112533.522a15e2@ernst.home> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 63814870C1 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=lHCo+zfn; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gljennjohn@gmail.com designates 2a00:1450:4864:20::32d as permitted sender) smtp.mailfrom=gljennjohn@gmail.com X-Spamd-Result: default: False [-6.74 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[gljennjohn@gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.78)[-0.780,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_TLS_LAST(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[gmail.com]; IP_SCORE(-2.95)[ip: (-9.24), ipnet: 2a00:1450::/32(-3.02), asn: 15169(-2.44), country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[d.2.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jul 2019 09:25:37 -0000 I'm having a very strange problem with external USB disks in HEAD. I see the problem with a kernel from July 12th and also with one from today. I never saw it while I was running 12-STABLE (switched to HEAD on July 12th). Just for background I'm using a B350M-A mobo from Asus which supports only USB3 (XHCI). Also note that all external disks are in USB3 enclsures or docking stations. I can turn on an external disk and it is recognized and I can mount it and use it for hours. But, as soon as I turn it off, the port to which it is connected effectively stops working. The worst thing is that my keyboard also dies, no matter whether it's a USB keyboard or an old one plugged into the PS/2 port. Strangely enough, the mouse is not affected, even when it's plugged into the USB hub built into the USB keyboard. I state that the port stops working because turning the disk back on or replugging the USB keyboard into the same port results in no trace output from the kernel. Replugging in the keyboard or exiting X still leaves me with a dead keyboard and a working mouse. Whether this is a problem with XHCI or CAM is unclear. The fact that the keyboard is also affected makes things really weird. Since I'm running a custom kernel I'll try running GENERIC to see what happens and report back. -- Gary Jennejohn