From owner-freebsd-usb@freebsd.org Wed Jun 12 19:36:43 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F20D915C0352 for ; Wed, 12 Jun 2019 19:36:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 886618AE79 for ; Wed, 12 Jun 2019 19:36:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 455E915C0351; Wed, 12 Jun 2019 19:36:42 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1DE9915C034F for ; Wed, 12 Jun 2019 19:36:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9E4288AE78 for ; Wed, 12 Jun 2019 19:36: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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id D2AAD881D for ; Wed, 12 Jun 2019 19:36:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x5CJaep5028091 for ; Wed, 12 Jun 2019 19:36:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x5CJaeYV028090 for usb@FreeBSD.org; Wed, 12 Jun 2019 19:36:40 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 238529] System hangs during boot when attaching da0 Date: Wed, 12 Jun 2019 19:36:40 +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: moritz@schmi.tt X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 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 attachments.created 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jun 2019 19:36:43 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238529 Bug ID: 238529 Summary: System hangs during boot when attaching da0 Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: usb Assignee: usb@FreeBSD.org Reporter: moritz@schmi.tt Created attachment 205016 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D205016&action= =3Dedit Output of dmesg, sysctl -a, and pciconf -lv I am using FreeBSD-CURRENT (Rev. 348849) on a Lenovo Thinkpad T470. Every second time or so when I boot my system stops booting with the following la= st messages: (...) uhub0: 18 ports with 18 removable, self powered ugen0.2: at usbus0 Enter passphrase for nvd0s1d: ugen0.3: at usbus0 ugen0.4: at usbus0 ugen0.5: at usbus0 ugen0.6: at usbus0 umass0 on uhub0 umass0: on usbus0 umass0: SCSI over Bulk-Only; quirks =3D 0x4000 umass0:0:0: Attached to scbus0 (probe0:umass-sim0:0:0:0): REPORT LUNS. CDB: a0 00 00 00 00 00 00 0= 0 00 10 00 00=20 (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI status: Check Condition (probe0:umass-sim0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) (probe0:umass-sim0:0:0:0): Error 22, Unretryable error da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Removable Direct Access SPC-4 SCSI devi= ce da0: Serial Number 20120501030900000 da0: 400.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not pre= sent da0: quirks=3D0x2 When I press Enter I get GEOM_ELI: Wrong key for nvd0s1d. Tries left: 2. Enter passphrase for nvd0s1d: After entering my password to unlock the harddisk encryption everything continues normally GEOM_ELI: Device nvd0s1d.eli created. GEOM_ELI: Encryption: AES-XTS 256 GEOM_ELI: Crypto: hardware GEOM_ELI: Device nvd0s1b.eli created. GEOM_ELI: Encryption: AES-XTS 128 GEOM_ELI: Crypto: hardware (...) I compiled FreeBSD from source by doing: # cd /usr/src # sudo make cleanworld # sudo make -j4 buildworld # sudo make -j4 buildkernel KERNCONF=3DBSD1993 # cd /usr/src # sudo make installkernel KERNCONF=3DBSD1993 # shutdown -r now # cd /usr/src # make installworld # shutdown -r now The custom kernel config I use is GENERIC plus the following two lines: device iwm device iwmfw Any idea what's going on? Please find attached the output of dmesg, sysctl -a, and pciconf -lv. --=20 You are receiving this mail because: You are the assignee for the bug.=