NetBSD Problem Report #59816
From www@netbsd.org Thu Dec 4 13:17:52 2025
Return-Path: <www@netbsd.org>
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)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id AF2481A9239
for <gnats-bugs@gnats.NetBSD.org>; Thu, 4 Dec 2025 13:17:52 +0000 (UTC)
Message-Id: <20251204131751.29ADE1A923A@mollari.NetBSD.org>
Date: Thu, 4 Dec 2025 13:17:51 +0000 (UTC)
From: emmankoko519@gmail.com
Reply-To: emmankoko519@gmail.com
To: gnats-bugs@NetBSD.org
Subject: starting wifi on Rasberry pi 3 emits ioctl error and stops USB drivers.
X-Send-Pr-Version: www-1.0
>Number: 59816
>Category: kern
>Synopsis: starting wifi on Rasberry pi 3 emits ioctl error and stops USB drivers.
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Dec 04 13:20:00 +0000 2025
>Last-Modified: Thu Dec 04 15:20:01 +0000 2025
>Originator: Emmanuel Nyarko
>Release: netbsd 11
>Organization:
NetBSD
>Environment:
arm64 netbsd 11
>Description:
arm64# service wpa_supplicant start
Starting wpa_supplicant.
Successfully initialized wpa_supplicant
ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument
ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument
arm64# Successfully initialized wpa_supplicant
Nov 28 14:23:42 arm64 /netbsd: [ 3811.8325799] ure0: at uhub1 port 4 (addr 5) disconnected
Nov 28 14:23:42 arm64 /netbsd: [ 4675.4597531] dwc2_host_complete: unknown error status -54
Nov 28 14:23:42 arm64 /netbsd: [ 4675.4754725] dwc2_host_complete: unknown error status -54
Nov 28 14:23:42 arm64 /netbsd: [ 4675.4841546] smscphy0: detached
Nov 28 14:23:42 arm64 /netbsd: [ 4675.4941586] usmsc0: detached
Nov 28 14:23:42 arm64 /netbsd: [ 4675.4941586] usmsc0: at uhub1 port 1 (addr 3) disconnected
Nov 28 14:23:42 arm64 /netbsd: [ 4675.5041631] audio0: detached
Nov 28 14:23:42 arm64 /netbsd: [ 4675.5141760] uaudio0: detached
Nov 28 14:23:42 arm64 dhcpcd[825]: usmsc0: carrier lost - roaming
Nov 28 14:23:42 arm64 /netbsd: [ 4675.4941586] usmsc0: detached (addr 4) disconnected
Nov 28 14:23:42 arm64 /netbsd: [ 4675.5351670] ukbd0: was console keyboard
Nov 28 14:23:42 arm64 /netbsd: [ 4675.5351670] wskbd0: detached
Nov 28 14:23:42 arm64 /netbsd: [ 4675.5464229] ukbd0: detached
Nov 28 14:23:42 arm64 /netbsd: [ 4675.5574783] uhidev0: detached
Nov 28 14:23:42 arm64 /netbsd: [ 4675.5574783] uhidev0: at uhub1 port 2 (addr 4) disconnected
Nov 28 14:23:42 arm64 /netbsd: [ 4675.5770233] uhid2: detached
Nov 28 14:23:42 arm64 /netbsd: [ 4675.5870200] uhid1: detached
Nov 28 14:23:42 arm64 /netbsd: [ 4675.5870200] uhid0: detached
Nov 28 14:23:42 arm64 /netbsd: [ 4675.5970447] wsmouse0: detached
Nov 28 14:23:42 arm64 /netbsd: [ 4675.5970447] ums0: detached
Nov 28 14:23:42 arm64 /netbsd: [ 4675.6070499] uhidev1: detached
Nov 28 14:23:42 arm64 /netbsd: [ 4675.6070499] uhidev1: at uhub1 port 2 (addr 4) disconnected
Nov 28 14:23:42 arm64 /netbsd: [ 4675.6170556] uhub1: detached
>How-To-Repeat:
service wpa_supplicant start
>Fix:
No.
>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/59816: starting wifi on Rasberry pi 3 emits ioctl error and
stops USB drivers.
Date: Thu, 4 Dec 2025 15:11:15 +0100
On Thu, Dec 04, 2025 at 01:20:01PM +0000, emmankoko519@gmail.com wrote:
> ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument
> ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument
This is not a problem, wpa_supplicant tries to use SIOCS80211 on all
interfaces, but it only works on the wifi ones.
Martin
From: mlelstv@serpens.de (Michael van Elst)
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/59816: starting wifi on Rasberry pi 3 emits ioctl error and stops USB drivers.
Date: Thu, 4 Dec 2025 14:23:24 -0000 (UTC)
emmankoko519@gmail.com writes:
>arm64# service wpa_supplicant start
>Starting wpa_supplicant.
>Successfully initialized wpa_supplicant
>ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument
>ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument
That can happen on every arch. Since the last update wpa_supplicant tries
to clear keys 5 and 6 where our stack only knows about 4 keys.
>Nov 28 14:23:42 arm64 /netbsd: [ 3811.8325799] ure0: at uhub1 port 4 (addr 5) disconnected
>Nov 28 14:23:42 arm64 /netbsd: [ 4675.4941586] usmsc0: detached
>Nov 28 14:23:42 arm64 /netbsd: [ 4675.5141760] uaudio0: detached
>Nov 28 14:23:42 arm64 /netbsd: [ 4675.5351670] ukbd0: was console keyboard
>Nov 28 14:23:42 arm64 /netbsd: [ 4675.5970447] ums0: detached
This could be caused by overloading the USB ports. You can supply
up to 1.2A (6W) to all 4 ports in total, and this requires a PSU
(like the "official" one) that can deliver 2.5A (12.5W).
From: Emmanuel Nyarko <emmankoko519@gmail.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/59816: starting wifi on Rasberry pi 3 emits ioctl error and
stops USB drivers.
Date: Thu, 4 Dec 2025 14:37:57 +0000
>> Nov 28 14:23:42 arm64 /netbsd: [ 3811.8325799] ure0: at uhub1 port 4 =
(addr 5) disconnected
>> Nov 28 14:23:42 arm64 /netbsd: [ 4675.4941586] usmsc0: detached
>> Nov 28 14:23:42 arm64 /netbsd: [ 4675.5141760] uaudio0: detached
>> Nov 28 14:23:42 arm64 /netbsd: [ 4675.5351670] ukbd0: was console =
keyboard
>> Nov 28 14:23:42 arm64 /netbsd: [ 4675.5970447] ums0: detached
>=20
> This could be caused by overloading the USB ports. You can supply
> up to 1.2A (6W) to all 4 ports in total, and this requires a PSU
> (like the "official" one) that can deliver 2.5A (12.5W).
>=20
I am actually on low power so maybe that could be a cause ?
Emmanuel
From: mlelstv@serpens.de (Michael van Elst)
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/59816: starting wifi on Rasberry pi 3 emits ioctl error and stops USB drivers.
Date: Thu, 4 Dec 2025 15:15:31 -0000 (UTC)
gnats-admin@NetBSD.org ("Emmanuel Nyarko via gnats") writes:
> I am actually on low power so maybe that could be a cause ?
Could be. It depends on your power supply and the actual devices
that require power. There are reports about high power usage from
gaming keyboards/mice (obvious) but also audio and wifi devices.
Gigabit Ethernet is usally 0.5-1.0W, that's rarely and issue.
Regular PCs, even notebooks usually don't care as there is plenty
of power compared to an RPI.
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.