NetBSD Problem Report #56666
From jdbaker@consolidated.net Mon Jan 24 18:05:21 2022
Return-Path: <jdbaker@consolidated.net>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 9E1DC1A9239
for <gnats-bugs@gnats.NetBSD.org>; Mon, 24 Jan 2022 18:05:21 +0000 (UTC)
Message-Id: <20220124180512.3985A13E118@spike.technoskunk.fur>
Date: Mon, 24 Jan 2022 12:05:12 -0600 (CST)
From: jdbaker@consolidated.net
Reply-To: jdbaker@consolidated.net
To: gnats-bugs@NetBSD.org
Subject: gphoto2 hangs accessing Nikon Coolpix L22
X-Send-Pr-Version: 3.95
>Number: 56666
>Category: pkg
>Synopsis: gphoto2 hangs accessing Nikon Coolpix L22
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jan 24 18:10:00 +0000 2022
>Last-Modified: Tue Jan 25 16:35:01 +0000 2022
>Originator: John D. Baker
>Release: NetBSD 9.2_STABLE
>Organization:
>Environment:
System: NetBSD spike.technoskunk.fur 9.2_STABLE NetBSD 9.2_STABLE (SPIKE) #152: Thu Dec 30 12:29:10 CST 2021 sysop@plex760.technoskunk.fur:/r0/build/netbsd-9/obj/amd64/sys/arch/amd64/compile/SPIKE amd64
Architecture: x86_64
Machine: amd64
>Description:
Any attempt to access my Nikon Coolpix L22 camera through "gphoto2"
hangs without producing any output (or error message).
>How-To-Repeat:
S/A
>Fix:
Workaround for NetBSD:
The following patch was provided by M. Levinson
<mlevins@users.sourceforge.net> in private email:
+--- libgphoto2_port/libusb1/libusb1.c
++++ libgphoto2_port/libusb1/libusb1.c
+@@ -684,6 +684,8 @@ gp_libusb1_queue_interrupt_urbs (GPPort *port)
+ unsigned int i;
+ int ret = 0;
+
++ return 0; /* not working yet */
++
+ /* no interrupt endpoint */
+ if (port->settings.usb.intep == -1)
+ return GP_OK;
With the above patch applied to "devel/libgphoto2", I can access the camera
without problems. Don't know what the correct solution might be.
>Audit-Trail:
From: "John D. Baker" <jdbaker@consolidated.net>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/56666: gphoto2 hangs accessing Nikon Coolpix L22
Date: Tue, 25 Jan 2022 09:04:00 -0600 (CST)
In case it's relevant, here's the USB-related parts of the host's dmesg:
[...]
uhci0 at pci0 dev 29 function 0: Intel 82801GB/GR USB UHCI Controller (rev. 0x01)
uhci0: interrupting at ioapic0 pin 23
usb0 at uhci0: USB revision 1.0
uhci1 at pci0 dev 29 function 1: Intel 82801GB/GR USB UHCI Controller (rev. 0x01)
uhci1: interrupting at ioapic0 pin 19
usb1 at uhci1: USB revision 1.0
uhci2 at pci0 dev 29 function 2: Intel 82801GB/GR USB UHCI Controller (rev. 0x01)
uhci2: interrupting at ioapic0 pin 18
usb2 at uhci2: USB revision 1.0
uhci3 at pci0 dev 29 function 3: Intel 82801GB/GR USB UHCI Controller (rev. 0x01)
uhci3: interrupting at ioapic0 pin 16
usb3 at uhci3: USB revision 1.0
ehci0 at pci0 dev 29 function 7: Intel 82801GB/GR USB EHCI Controller (rev. 0x01)
ehci0: interrupting at ioapic0 pin 23
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: 4 companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
[...]
uhub0 at usb0: NetBSD (0000) UHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1 at usb1: NetBSD (0000) UHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhub2 at usb2: NetBSD (0000) UHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhub3 at usb3: NetBSD (0000) UHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
uhub4 at usb4: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
uhub5 at uhub4 port 5: SMSC (0x424) product 2504 (0x2504), class 9/0, rev 2.00/0.01, addr 2
uhub5: multiple transaction translators
uhub5: 4 ports with 4 removable, self powered
[...]
uftdi0 at uhub5 port 3 configuration 1 interface 0
uftdi0: FTDI (0x403) FT232R USB UART (0x6001), rev 2.00/6.00, addr 3
ucom0 at uftdi0 portno 1
[...]
[ 776963.8781836] ugen0 at uhub4 port 1
[ 776963.8781836] ugen0: NIKON (0x4b0) NIKON DSC COOLPIX L22-PTP (0x31c), rev 2.00/1.00, addr 4
# usbdevs
Password:
addr 1: UHCI root hub, NetBSD
addr 1: UHCI root hub, NetBSD
addr 1: UHCI root hub, NetBSD
addr 1: UHCI root hub, NetBSD
addr 1: EHCI root hub, NetBSD
addr 4: NIKON DSC COOLPIX L22-PTP, NIKON
addr 2: product 2504, SMSC
addr 3: FT232R USB UART, FTDI
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.