From nobody Tue Jan 17 22:43:40 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NxP7d1rCWz2p5W2 for ; Tue, 17 Jan 2023 22:43:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NxP7c54j2z49yr for ; Tue, 17 Jan 2023 22:43:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673995420; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7/omjsK9T3iICLT5faA+PREX1akk+B0nSBcTHEVMqE4=; b=Lt44QUl3kXj5U10Kf2xlF74P1t2IPo0lhlGtjlpRoWSBf6c5uLHZrozbVnZqaamOLVo5Ch o46twmR7NDmpVeVfW/pqO9FlUqW6kh2Xyj/j+cboer6mUOOJW1NZvfKYQqM9xbknMcBRVs wtbvnZ6+vO25Eh6XmAdpyFEVNWS4psU8BhnFGy61nUCklrpAW3jqnW0Q3yGuPSYlogdVFa ym5/N7y4QZhLDoUkm4piFwJz0Rm0QtWw2S1XB32r4sqYVKdJo1BHKPuLu5WjjMYs1M9nay aW7D7IF4KP989fktSwW4CNUyI1Y99yNJ76o8kOZIhHjQEcvNL6odJ4V1X9havg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673995420; a=rsa-sha256; cv=none; b=NNTH1ry3UljFKs9KzHDaLzki6X4VZPRXhMpKtkq22r4EJWAKNUkI3sE0dNVpmUtRw/SH71 qQO5BXIjizBVJtTyM0r8ydqnSQ1xhVymdyBXFrpUhypczbu9bbN0l2+co7vq6FdyTZrHae 1xOT7P7MHStkQHOTKTTmnMvPcDSem0B66xQvk3slD3qOtZEaOhVYjIGE0LBMjq3qO+cJAb zLv8XtHjh/TaEBTPZYMe0OzP7MZk0NqauNNiyaY24LBKoBVMD9vm05Qek+YBrETix/w8R7 wp+9vV+CAGjS9XKCBFbiWdQl7d6ME5YjXJ7OO7E8SveTOpWQ4owg5lrLRBWWSg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NxP7c48GWzpXT for ; Tue, 17 Jan 2023 22:43:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 30HMhesS043828 for ; Tue, 17 Jan 2023 22:43:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 30HMheWJ043827 for bugs@FreeBSD.org; Tue, 17 Jan 2023 22:43: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: bugs@FreeBSD.org Subject: [Bug 269019] Serial number of Amazon Kindle is visible via camcotrol but not via geom disk list Date: Tue, 17 Jan 2023 22:43:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: osharoiko@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution 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 List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269019 Oleg Sharoyko changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Closed |New Resolution|FIXED |--- --- Comment #1 from Oleg Sharoyko --- Sorry, hit enter by mistake. When I connect my old Amazon Kindle it gets detected and block device appea= rs in the system which works fine except for one minor issue. The serial numbe= r of Kindle can be seen with `camcontrol inquiry da0` but is not visible with `g= eom disk list da0`: ``` % sudo camcontrol inquiry da0 pass0: Removable Direct Access SCSI-2 device pass0: Serial Number B00AD0B11345001S pass0: 40.000MB/s transfers % geom disk list da0 Geom name: da0 Providers: 1. Name: da0 Mediasize: 3282272256 (3.1G) Sectorsize: 512 Mode: r0w0e0 descr: Kindle Internal Storage ident: (null) rotationrate: unknown fwsectors: 63 fwheads: 255 ``` I'm trying to update Calibre device detection to work under recent versions= of FreeBSD and serial number is needed to associate block device with USB devi= ce. Please find verbose kernel messages covering device attachment below (note: there's something strange that causes "xhci0: Resetting controller", but th= is only happens first time after fresh boot and not on subsequent detach/reatt= ach of Kindle. It doesn't seem to affect access to block device and detaching/reattaching Kindle doesn't change situation with the serial numbe= r in GEOM). da0 is Kindle, da1 is card reader in the chassis. Please let me know= if any other information is needed. ``` Jan 17 22:19:38 forlond kernel: xhci0: Resetting controller Jan 17 22:19:38 forlond kernel: usb_alloc_device: set address 3 failed (USB_ERR_TIMEOUT, ignored) Jan 17 22:19:43 forlond kernel: usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_IOERROR Jan 17 22:19:44 forlond kernel: usb_msc_auto_quirk: UQ_MSC_NO_GETMAXLUN set= for USB mass storage device Amazon Amazon Kindle (0x1949:0x0004) Jan 17 22:19:44 forlond kernel: usb_msc_auto_quirk: UQ_MSC_NO_TEST_UNIT_REA= DY set for USB mass storage device Amazon Amazon Kindle (0x1949:0x0004) Jan 17 22:19:45 forlond kernel: ugen0.3: at usbus0 Jan 17 22:19:45 forlond kernel: umass1 on uhub1 Jan 17 22:19:45 forlond kernel: umass1: on usbus0 Jan 17 22:19:45 forlond kernel: umass1: SCSI over Bulk-Only; quirks =3D 0x= 0101 Jan 17 22:19:45 forlond kernel: umass1:5:1: Attached to scbus5 Jan 17 22:19:45 forlond kernel: uhub1: at usbus0, port 1, addr 1 (disconnec= ted) Jan 17 22:19:45 forlond kernel: ugen0.3: at usbus0 (disconnected) Jan 17 22:19:45 forlond kernel: umass1: at uhub1, port 5, addr 2 (disconnec= ted) Jan 17 22:19:45 forlond kernel: (probe0:umass-sim1:1:0:0): INQUIRY. CDB: 12= 00 00 00 24 00 Jan 17 22:19:45 forlond kernel: (probe0:umass-sim1:1:0:0): CAM status: CCB request completed with an error Jan 17 22:19:45 forlond kernel: (probe0:umass-sim1:1:0:0): Retrying command= , 3 more tries remain Jan 17 22:19:45 forlond kernel: umass1: detached Jan 17 22:19:45 forlond kernel: ugen0.2: = at usbus0 (disconnected) Jan 17 22:19:45 forlond kernel: umass0: at uhub1, port 13, addr 1 (disconnected) Jan 17 22:19:45 forlond kernel: da0 at umass-sim0 bus 0 scbus4 target 0 lun= 0 Jan 17 22:19:45 forlond kernel: da0: s/n 058F63666479 detached Jan 17 22:19:45 forlond kernel: pass0 at umass-sim0 bus 0 scbus4 target 0 l= un 0 Jan 17 22:19:45 forlond kernel: pass0: s/n 058F63666479 detached Jan 17 22:19:45 forlond kernel: (pass0:umass-sim0:0:0:0): Periph destroyed Jan 17 22:19:45 forlond kernel: (da0:umass-sim0:0:0:0): Periph destroyed Jan 17 22:19:45 forlond kernel: umass0: detached Jan 17 22:19:45 forlond kernel: uhub1: detached Jan 17 22:19:45 forlond kernel: uhub1 on usbus0 Jan 17 22:19:45 forlond kernel: uhub1: on usbus0 Jan 17 22:19:46 forlond kernel: uhub1: 22 ports with 22 removable, self pow= ered Jan 17 22:19:48 forlond kernel: usb_msc_auto_quirk: UQ_MSC_NO_GETMAXLUN set= for USB mass storage device Amazon Amazon Kindle (0x1949:0x0004) Jan 17 22:19:48 forlond kernel: usb_msc_auto_quirk: UQ_MSC_NO_TEST_UNIT_REA= DY set for USB mass storage device Amazon Amazon Kindle (0x1949:0x0004) Jan 17 22:19:48 forlond kernel: ugen0.2: at usbus0 Jan 17 22:19:48 forlond kernel: umass0 on uhub1 Jan 17 22:19:48 forlond kernel: umass0: on usbus0 Jan 17 22:19:48 forlond kernel: umass0: SCSI over Bulk-Only; quirks =3D 0x= 0101 Jan 17 22:19:48 forlond kernel: umass0:4:0: Attached to scbus4 Jan 17 22:19:48 forlond kernel: pass0 at umass-sim0 bus 0 scbus4 target 0 l= un 0 Jan 17 22:19:48 forlond kernel: pass0: Remov= able Direct Access SCSI-2 device Jan 17 22:19:48 forlond kernel: pass0: 40.000MB/s transfers Jan 17 22:19:48 forlond kernel: GEOM: new disk da0 Jan 17 22:19:48 forlond kernel: da0 at umass-sim0 bus 0 scbus4 target 0 lun= 0 Jan 17 22:19:48 forlond kernel: da0: Removab= le Direct Access SCSI-2 device Jan 17 22:19:48 forlond kernel: da0: 40.000MB/s transfers Jan 17 22:19:48 forlond kernel: da0: 3130MB (6410688 512 byte sectors) Jan 17 22:19:48 forlond kernel: da0: quirks=3D0x2 Jan 17 22:19:48 forlond kernel: da0: Delete methods: Jan 17 22:19:48 forlond kernel: ugen0.3: = at usbus0 Jan 17 22:19:48 forlond kernel: umass1 on uhub1 Jan 17 22:19:48 forlond kernel: umass1: on usbus0 Jan 17 22:19:48 forlond kernel: umass1: SCSI over Bulk-Only; quirks =3D 0x= 4001 Jan 17 22:19:48 forlond kernel: umass1:5:1: Attached to scbus5 Jan 17 22:19:48 forlond kernel: pass1 at umass-sim1 bus 1 scbus5 target 0 l= un 0 Jan 17 22:19:48 forlond kernel: pass1: Removable Direct Access SPC-2 SCSI device Jan 17 22:19:48 forlond kernel: pass1: Serial Number 058F63666479 Jan 17 22:19:48 forlond kernel: pass1: 40.000MB/s transfers Jan 17 22:19:48 forlond kernel: da1 at umass-sim1 bus 1 scbus5 target 0 lun= 0 Jan 17 22:19:48 forlond kernel: da1: Remova= ble Direct Access SPC-2 SCSI device Jan 17 22:19:48 forlond kernel: da1: Serial Number 058F63666479 Jan 17 22:19:48 forlond kernel: da1: 40.000MB/s transfers Jan 17 22:19:48 forlond kernel: da1: Attempt to query device size failed: N= OT READY, Medium not present Jan 17 22:19:48 forlond kernel: da1: quirks=3D0x2 Jan 17 22:19:48 forlond kernel: da1: Delete methods: Jan 17 22:19:49 forlond kernel: GEOM: new disk da1 Jan 17 22:19:49 forlond kernel: (da1:umass-sim1:1:0:0): PREVENT ALLOW MEDIUM REMOVAL not supported. ``` --=20 You are receiving this mail because: You are the assignee for the bug.=