On Mon, 31 Aug 2020 19:47:15 +0200
Patrick Wildt <[email protected]> wrote:

> On Sat, Aug 29, 2020 at 08:12:37AM -0700, [email protected] wrote:
> > >Synopsis:  Mouse is not functional in latest snapshot
> > >Category:
> > >Environment:  
> >     System      : OpenBSD 6.7
> >     Details     : OpenBSD 6.7-current (GENERIC.MP) #48: Fri Aug
> > 28 23:21:33 MDT 2020
> > [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > 
> >     Architecture: OpenBSD.amd64
> >     Machine     : amd64  
> > >Description:  
> >     My mouse that formerly worked does not respond at all on
> > the latest snapshot. I cannot move it, click any button, etc. In
> > dmesg I see "uhidev_intr: bad repid 228" each time I reseat the
> > mouse.  
> > >How-To-Repeat:  
> >     1. Install latest snapshot
> >     2. Plug in mouse
> >     3. Mouse does not work  
> > >Fix:  
> >     Unknown
> > 
> > 
> > dmesg:
> > OpenBSD 6.7-current (GENERIC.MP) #48: Fri Aug 28 23:21:33 MDT 2020
> >     [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > real mem = 17023057920 (16234MB)
> > avail mem = 16492109824 (15728MB)
> > random: good seed from bootblocks
> > mpath0 at root
> > scsibus0 at mpath0: 256 targets
> > mainbus0 at root
> > bios0 at mainbus0: SMBIOS rev. 3.0 @ 0x8b1a8000 (94 entries)
> > bios0: vendor American Megatrends Inc. version "3801" date
> > 03/14/2018 bios0: ASUSTeK COMPUTER INC. Z170-AR
> > acpi0 at bios0: ACPI 6.0
> > acpi0: sleep states S0 S3 S4 S5
> > acpi0: tables DSDT FACP APIC FPDT DBG2 MCFG SSDT FIDT SSDT SSDT
> > HPET SSDT SSDT UEFI SSDT LPIT WSMT SSDT SSDT DBGP acpi0: wakeup
> > devices PEG0(S4) PEGP(S4) PEG1(S4) PEGP(S4) PEG2(S4) PEGP(S4)
> > SIO1(S3) PS2K(S4) PS2M(S4) UAR1(S4) RP09(S4) PXSX(S4) RP10(S4)
> > PXSX(S4) RP11(S4) PXSX(S4) [...] acpitimer0 at acpi0: 3579545 Hz,
> > 24 bits acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at
> > mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM) i5-6600K
> > CPU @ 3.50GHz, 3510.81 MHz, 06-5e-03 cpu0:
> > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
> > cpu0: 256KB 64b/line 8-way L2 cache cpu0: smt 0, core 0, package 0
> > mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
> > cpu0: apic clock running at 24MHz cpu0: mwait min=64, max=64,
> > C-substates=0.2.1.2.4.1, IBE cpu1 at mainbus0: apid 2 (application
> > processor) cpu1: Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz, 3509.52
> > MHz, 06-5e-03 cpu1:
> > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
> > cpu1: 256KB 64b/line 8-way L2 cache cpu1: smt 0, core 1, package 0
> > cpu2 at mainbus0: apid 4 (application processor)
> > cpu2: Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz, 3509.51 MHz,
> > 06-5e-03 cpu2:
> > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
> > cpu2: 256KB 64b/line 8-way L2 cache cpu2: smt 0, core 2, package 0
> > cpu3 at mainbus0: apid 6 (application processor)
> > cpu3: Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz, 3509.51 MHz,
> > 06-5e-03 cpu3:
> > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
> > cpu3: 256KB 64b/line 8-way L2 cache cpu3: smt 0, core 3, package 0
> > ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 120 pins
> > acpimcfg0 at acpi0
> > acpimcfg0: addr 0xe0000000, bus 0-255
> > acpihpet0 at acpi0: 23999999 Hz
> > acpiprt0 at acpi0: bus 0 (PCI0)
> > acpiprt1 at acpi0: bus -1 (PEG0)
> > acpiprt2 at acpi0: bus -1 (PEG1)
> > acpiprt3 at acpi0: bus -1 (PEG2)
> > acpiprt4 at acpi0: bus 6 (RP09)
> > acpiprt5 at acpi0: bus -1 (RP10)
> > acpiprt6 at acpi0: bus -1 (RP11)
> > acpiprt7 at acpi0: bus -1 (RP12)
> > acpiprt8 at acpi0: bus -1 (RP13)
> > acpiprt9 at acpi0: bus 2 (RP01)
> > acpiprt10 at acpi0: bus -1 (RP02)
> > acpiprt11 at acpi0: bus 3 (RP03)
> > acpiprt12 at acpi0: bus -1 (RP04)
> > acpiprt13 at acpi0: bus -1 (RP05)
> > acpiprt14 at acpi0: bus 5 (RP06)
> > acpiprt15 at acpi0: bus -1 (RP07)
> > acpiprt16 at acpi0: bus -1 (RP08)
> > acpiprt17 at acpi0: bus 1 (RP17)
> > acpiprt18 at acpi0: bus -1 (RP18)
> > acpiprt19 at acpi0: bus -1 (RP19)
> > acpiprt20 at acpi0: bus -1 (RP20)
> > acpiprt21 at acpi0: bus -1 (RP21)
> > acpiprt22 at acpi0: bus -1 (RP22)
> > acpiprt23 at acpi0: bus -1 (RP23)
> > acpiprt24 at acpi0: bus -1 (RP24)
> > acpiprt25 at acpi0: bus -1 (RP14)
> > acpiprt26 at acpi0: bus -1 (RP15)
> > acpiprt27 at acpi0: bus -1 (RP16)
> > acpiec0 at acpi0: not present
> > acpipci0 at acpi0 PCI0: 0x00000004 0x00000011 0x00000001
> > extent `acpipci0 pcibus' (0x0 - 0xff), flags=0
> >      0xff - 0xff
> > extent `acpipci0 pciio' (0x0 - 0xffffffff), flags=0
> >      0xcf8 - 0xcff
> >      0x10000 - 0xffffffff
> > extent `acpipci0 pcimem' (0x0 - 0xffffffffffffffff), flags=0
> >      0x0 - 0x9ffff
> >      0xc0000 - 0x8fffffff
> >      0xe0000000 - 0xfcffffff
> >      0xfe800000 - 0xffffffffffffffff
> > acpicmos0 at acpi0
> > "PNP0C14" at acpi0 not configured
> > acpibtn0 at acpi0: SLPB
> > "PNP0C14" at acpi0 not configured
> > "INT33A1" at acpi0 not configured
> > acpibtn1 at acpi0: PWRB
> > "PNP0C14" at acpi0 not configured
> > acpicpu0 at acpi0: C1(@1 halt!), PSS
> > acpicpu1 at acpi0: C1(@1 halt!), PSS
> > acpicpu2 at acpi0: C1(@1 halt!), PSS
> > acpicpu3 at acpi0: C1(@1 halt!), PSS
> > acpipwrres0 at acpi0: PG00, resource for PEG0
> > acpipwrres1 at acpi0: PG01, resource for PEG1
> > acpipwrres2 at acpi0: PG02, resource for PEG2
> > acpipwrres3 at acpi0: WRST
> > acpipwrres4 at acpi0: WRST
> > acpipwrres5 at acpi0: WRST
> > acpipwrres6 at acpi0: WRST
> > acpipwrres7 at acpi0: WRST
> > acpipwrres8 at acpi0: WRST
> > acpipwrres9 at acpi0: WRST
> > acpipwrres10 at acpi0: WRST
> > acpipwrres11 at acpi0: WRST
> > acpipwrres12 at acpi0: WRST
> > acpipwrres13 at acpi0: WRST
> > acpipwrres14 at acpi0: WRST
> > acpipwrres15 at acpi0: WRST
> > acpipwrres16 at acpi0: WRST
> > acpipwrres17 at acpi0: WRST
> > acpipwrres18 at acpi0: WRST
> > acpipwrres19 at acpi0: WRST
> > acpipwrres20 at acpi0: WRST
> > acpipwrres21 at acpi0: WRST
> > acpipwrres22 at acpi0: WRST
> > acpivideo0 at acpi0: GFX0
> > acpivout0 at acpivideo0: DD1F
> > cpu0: using VERW MDS workaround (except on vmm entry)
> > cpu0: Enhanced SpeedStep 3510 MHz: speeds: 3501, 3500, 3300, 3100,
> > 2900, 2700, 2500, 2300, 2100, 2000, 1800, 1600, 1400, 1200, 1000,
> > 800 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0
> > "Intel Core 6G Host" rev 0x07 inteldrm0 at pci0 dev 2 function 0
> > "Intel HD Graphics 530" rev 0x06 drm0 at inteldrm0
> > inteldrm0: msi, SKYLAKE, gen 9
> > xhci0 at pci0 dev 20 function 0 "Intel 100 Series xHCI" rev 0x31:
> > msi, xHCI 1.0 usb0 at xhci0: USB revision 3.0
> > uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev
> > 3.00/1.00 addr 1 "Intel 100 Series MEI" rev 0x31 at pci0 dev 22
> > function 0 not configured ahci0 at pci0 dev 23 function 0 "Intel
> > 100 Series AHCI" rev 0x31: msi, AHCI 1.3.1 ahci0: PHY offline on
> > port 0 ahci0: PHY offline on port 1
> > ahci0: port 2: 6.0Gb/s
> > ahci0: port 3: 6.0Gb/s
> > ahci0: PHY offline on port 4
> > ahci0: PHY offline on port 5
> > scsibus1 at ahci0: 32 targets
> > sd0 at scsibus1 targ 2 lun 0: <ATA, ST2000DX001-1NS1, CC41>
> > naa.5000c50087c25129 sd0: 1907729MB, 512 bytes/sector, 3907029168
> > sectors sd1 at scsibus1 targ 3 lun 0: <ATA, Samsung SSD 850, EMT0>
> > naa.5002538d4070cf6e sd1: 238475MB, 512 bytes/sector, 488397168
> > sectors, thin ppb0 at pci0 dev 27 function 0 "Intel 100 Series
> > PCIE" rev 0xf1: msi pci1 at ppb0 bus 1
> > ppb1 at pci0 dev 28 function 0 "Intel 100 Series PCIE" rev 0xf1: msi
> > pci2 at ppb1 bus 2
> > xhci1 at pci2 dev 0 function 0 "ASMedia ASM1042AE xHCI" rev 0x00:
> > msi, xHCI 1.10 usb1 at xhci1: USB revision 3.0
> > uhub1 at usb1 configuration 1 interface 0 "ASMedia xHCI root hub"
> > rev 3.00/1.00 addr 1 ppb2 at pci0 dev 28 function 2 "Intel 100
> > Series PCIE" rev 0xf1: msi pci3 at ppb2 bus 3
> > ppb3 at pci3 dev 0 function 0 "ASMedia ASM1083/1085 PCIE-PCI" rev
> > 0x04 pci4 at ppb3 bus 4
> > ppb4 at pci0 dev 28 function 5 "Intel 100 Series PCIE" rev 0xf1: msi
> > pci5 at ppb4 bus 5
> > iwm0 at pci5 dev 0 function 0 "Intel Dual Band Wireless AC 7260"
> > rev 0x73, msi ppb5 at pci0 dev 29 function 0 "Intel 100 Series
> > PCIE" rev 0xf1: msi pci6 at ppb5 bus 6
> > nvme0 at pci6 dev 0 function 0 "Samsung SM981/PM981 NVMe" rev 0x00:
> > msix, NVMe 1.3 nvme0: Samsung SSD 970 EVO 500GB, firmware 1B2QEXE7,
> > serial S466NB0K616489R scsibus2 at nvme0: 2 targets, initiator 0
> > sd2 at scsibus2 targ 1 lun 0: <NVMe, Samsung SSD 970, 1B2Q>
> > sd2: 476940MB, 512 bytes/sector, 976773168 sectors
> > pcib0 at pci0 dev 31 function 0 "Intel Z170 LPC" rev 0x31
> > "Intel 100 Series PMC" rev 0x31 at pci0 dev 31 function 2 not
> > configured azalia0 at pci0 dev 31 function 3 "Intel 100 Series HD
> > Audio" rev 0x31: msi azalia0: codecs: Realtek/0x0892, Intel/0x2809,
> > using Realtek/0x0892 audio0 at azalia0
> > ichiic0 at pci0 dev 31 function 4 "Intel 100 Series SMBus" rev
> > 0x31: apic 2 int 16 iic0 at ichiic0
> > sdtemp0 at iic0 addr 0x18: gt30ts00
> > sdtemp1 at iic0 addr 0x19: gt30ts00
> > em0 at pci0 dev 31 function 6 "Intel I219-V" rev 0x31: msi, address
> > 30:5a:3a:54:cf:ea isa0 at pcib0
> > isadma0 at isa0
> > com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> > pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> > pckbd0 at pckbc0 (kbd slot)
> > wskbd0 at pckbd0: console keyboard
> > pcppi0 at isa0 port 0x61
> > spkr0 at pcppi0
> > vmm0 at mainbus0: VMX/EPT
> > uhub2 at uhub0 port 5 configuration 1 interface 0 "Texas
> > Instruments product 0x8142" rev 2.10/1.00 addr 2 uhidev0 at uhub2
> > port 3 configuration 1 interface 0 "Yubico Yubikey NEO
> > OTP+U2F+CCID" rev 2.00/3.49 addr 3 uhidev0: iclass 3/1 ukbd0 at
> > uhidev0: 8 variable keys, 6 key codes wskbd1 at ukbd0 mux 1
> > uhidev1 at uhub2 port 3 configuration 1 interface 1 "Yubico Yubikey
> > NEO OTP+U2F+CCID" rev 2.00/3.49 addr 3 uhidev1: iclass 3/0
> > fido0 at uhidev1: input=64, output=64, feature=0
> > ugen0 at uhub2 port 3 configuration 1 "Yubico Yubikey NEO
> > OTP+U2F+CCID" rev 2.00/3.49 addr 3 uhidev2 at uhub0 port 10
> > configuration 1 interface 0 "Holtek USB Keyboard" rev 1.10/1.10
> > addr 4 uhidev2: iclass 3/1 ukbd1 at uhidev2: 8 variable keys, 6 key
> > codes wskbd2 at ukbd1 mux 1
> > uhidev3 at uhub0 port 10 configuration 1 interface 1 "Holtek USB
> > Keyboard" rev 1.10/1.10 addr 4 uhidev3: iclass 3/1, 2 report ids
> > uhid0 at uhidev3 reportid 1: input=6, output=0, feature=0
> > uhid1 at uhidev3 reportid 2: input=1, output=0, feature=0
> > uhidev4 at uhub1 port 4 configuration 1 interface 0 "Logitech
> > Gaming Mouse G402" rev 2.00/90.02 addr 2 uhidev4: iclass 3/1
> > ums0 at uhidev4: 16 buttons, Z and W dir
> > wsmouse0 at ums0 mux 0
> > uhidev5 at uhub1 port 4 configuration 1 interface 1 "Logitech
> > Gaming Mouse G402" rev 2.00/90.02 addr 2 uhidev5: iclass 3/0, 17
> > report ids ukbd2 at uhidev5 reportid 1: 8 variable keys, 6 key codes
> > wskbd3 at ukbd2 mux 1
> > uhid2 at uhidev5 reportid 3: input=4, output=0, feature=0
> > uhid3 at uhidev5 reportid 4: input=1, output=0, feature=0
> > uhid4 at uhidev5 reportid 16: input=6, output=6, feature=0
> > uhid5 at uhidev5 reportid 17: input=19, output=19, feature=0
> > vscsi0 at root
> > scsibus3 at vscsi0: 256 targets
> > softraid0 at root
> > scsibus4 at softraid0: 256 targets
> > sd3 at scsibus4 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006>
> > sd3: 238472MB, 512 bytes/sector, 488391473 sectors
> > root on sd3a (4ff3f83b32292268.a) swap on sd3b dump on sd3b
> > inteldrm0: 2560x1440, 32bpp
> > wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation),
> > using wskbd0 wskbd1: connecting to wsdisplay0
> > wskbd2: connecting to wsdisplay0
> > wskbd3: connecting to wsdisplay0
> > wsdisplay0: screen 1-5 added (std, vt100 emulation)
> > iwm0: hw rev 0x140, fw ver 17.3216344376.0, address
> > 7c:5c:f8:2b:30:59
> > 
> > usbdevs:
> > Controller /dev/usb0:
> > addr 01: 8086:0000 Intel, xHCI root hub
> >      super speed, self powered, config 1, rev 1.00
> >      driver: uhub0
> > addr 02: 0451:8142 Texas Instruments, product 0x8142
> >      high speed, self powered, config 1, rev 1.00, iSerial
> > A2000849C37F driver: uhub2
> > addr 03: 1050:0116 Yubico, Yubikey NEO OTP+U2F+CCID
> >      full speed, power 30 mA, config 1, rev 3.49
> >      driver: uhidev0
> >      driver: uhidev1
> >      driver: ugen0
> > addr 04: 04d9:0169 Holtek, USB Keyboard
> >      low speed, power 100 mA, config 1, rev 1.10
> >      driver: uhidev2
> >      driver: uhidev3
> > addr 05: 046d:c07e Logitech, Gaming Mouse G402
> >      full speed, power 300 mA, config 1, rev 90.02, iSerial
> > 6D7524725055 driver: uhidev4
> >      driver: uhidev5
> > Controller /dev/usb1:
> > addr 01: 1b21:0000 ASMedia, xHCI root hub
> >      super speed, self powered, config 1, rev 1.00
> >      driver: uhub1
> >   
> 
> Hi,
> 
> thanks for the report!  I think the change that caused the regression
> has just been backouted, so the next snap should fix your issue.
> 
> Sorry,
> Patrick

I hope it's not related to the set_idle change.
Just in case Patricks backout wouldn't fix it you can test this diff.


Index: sys/dev/usb/uhid.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/uhid.c,v
retrieving revision 1.80
diff -u -p -r1.80 uhid.c
--- sys/dev/usb/uhid.c  13 May 2020 08:13:42 -0000      1.80
+++ sys/dev/usb/uhid.c  31 Aug 2020 17:50:52 -0000
@@ -129,6 +129,8 @@ uhid_attach(struct device *parent, struc
        sc->sc_hdev.sc_udev = uha->uaa->device;
        sc->sc_hdev.sc_report_id = uha->reportid;
 
+       usbd_set_idle(uha->parent->sc_udev, uha->parent->sc_ifaceno, 0,
+           uha->reportid);
        uhidev_get_report_desc(uha->parent, &desc, &size);
        repid = uha->reportid;
        sc->sc_hdev.sc_isize = hid_report_size(desc, size, hid_input, repid);

Reply via email to