Bug 255444 - USB mouse related messages last for many minutes during shutdown
Summary: USB mouse related messages last for many minutes during shutdown
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.2-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-27 17:27 UTC by Yuri Victorovich
Modified: 2021-04-27 21:14 UTC (History)
2 users (show)

See Also:


Attachments
mouse-shutdown-too-long.png (570.73 KB, image/png)
2021-04-27 17:27 UTC, Yuri Victorovich
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer 2021-04-27 17:27:34 UTC
Created attachment 224475 [details]
mouse-shutdown-too-long.png

During the session after a while mouse begins to malfunction: multi-click action is performed when one click occurs.

During shutdown same ums0 shutdown message was repeated many times over >5 minues, see the attached screenshot.

> ugen8.6: <Logitech USB Optical Mouse> at usbus8, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA)

ugen8.6: <Logitech USB Optical Mouse> at usbus8, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA)

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0200 
  bDeviceClass = 0x0000  <Probed by interface class>
  bDeviceSubClass = 0x0000 
  bDeviceProtocol = 0x0000 
  bMaxPacketSize0 = 0x0008 
  idVendor = 0x046d 
  idProduct = 0xc077 
  bcdDevice = 0x7200 
  iManufacturer = 0x0001  <Logitech>
  iProduct = 0x0002  <USB Optical Mouse>
  iSerialNumber = 0x0000  <no string>
  bNumConfigurations = 0x0001 

 Configuration index 0

    bLength = 0x0009 
    bDescriptorType = 0x0002 
    wTotalLength = 0x0022 
    bNumInterfaces = 0x0001 
    bConfigurationValue = 0x0001 
    iConfiguration = 0x0000  <no string>
    bmAttributes = 0x00a0 
    bMaxPower = 0x0032 

    Interface 0
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0000 
      bAlternateSetting = 0x0000 
      bNumEndpoints = 0x0001 
      bInterfaceClass = 0x0003  <HID device>
      bInterfaceSubClass = 0x0001 
      bInterfaceProtocol = 0x0002 
      iInterface = 0x0000  <no string>

      Additional Descriptor

      bLength = 0x09
      bDescriptorType = 0x21
      bDescriptorSubType = 0x11
       RAW dump: 
       0x00 | 0x09, 0x21, 0x11, 0x01, 0x00, 0x01, 0x22, 0x2e, 
       0x08 | 0x00

     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0081  <IN>
        bmAttributes = 0x0003  <INTERRUPT>
        wMaxPacketSize = 0x0004 
        bInterval = 0x000a 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000
Comment 1 Hans Petter Selasky freebsd_committer 2021-04-27 21:14:46 UTC
Should probably block attachments during shutdown. I'll check the USB core code tomorrow.

Anyways, seems like a USB mouse bug, flipping the attach sequence pullup on the USB wires.

--HPS