On Mon, Aug 23, 2021 at 02:45:01PM +0000, mazzurco.riccardo wrote:
> >Synopsis: usb mouse freeze the system
>
> >Category: system
>
> >Environment:
>
> System : OpenBSD 7.0
>
> Details : OpenBSD 7.0-beta (GENERIC.MP) #194: Sat Aug 21 14:29:36 MDT 2021
>
> [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>
> Architecture: OpenBSD.amd64
>
> Machine : amd64
>
> >Description:
>
> Attaching a USB mouse cause a freeze of the system. I'm unable to switch to a
> tty. It doesn't drop to ddb.
>
> I tried to `tail -f /var/log/messages` before attaching the device and these
> are the last logs before it hangs:
>
> /bsd: uhidev2 at uhub0 port2 configuration 1 interface 0 "SINOWEALTH Game
> Mouse" rev 1.10/1.00 addr 5
>
> /bsd: uhidev2: iclass 3/1
>
> /bsd: ums0 at uhidev2: 5 buttons, Z and W dir
>
> /bsd: wsmouse2 at ums0 mux 0
>
> /bsd: uhidev3 at uhub0 port 2 configuration 1 interface 1 "SINOWEALTH Game
> Mouse" rev 1.10/1.00 addr 5
>
> /bsd: uhidev3: iclass 3/1, 6 report ids
>
> /bsd: ukb2 at uhidev3 reportied 1: 8 variable keys, 6 key code
>
> I don't have any other usb mouse to test
>
> The problem appeared with today's snapshot. Before I was using a 3-4 weeks
> old one (don't remember the date); sorry for not being more specific.
It could be caused by the new ucc(4) driver. You could try disabling it
during boot by typing the following at the boot prompt:
boot> b -c
UKC> disable ucc
UKC> quit
Then try plugging in the mouse again. If that works, please send the
complete dmesg and the output of the following command, sending it
off-list is fine.
(set -ex; i=0; while doas usbhidctl -f /dev/uhid$i -R; do i=$((i + 1));
done)