From nobody Mon Feb 21 08:10:29 2022 X-Original-To: usb@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8088619CB1DD for ; Mon, 21 Feb 2022 08:10:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K2FNP2Lx2z3rnY for ; Mon, 21 Feb 2022 08:10:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 310474B04 for ; Mon, 21 Feb 2022 08:10:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 21L8ATLN011484 for ; Mon, 21 Feb 2022 08:10:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 21L8ATtZ011483 for usb@FreeBSD.org; Mon, 21 Feb 2022 08:10:29 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 261989] USB Joystick disconnects every three seconds Date: Mon, 21 Feb 2022 08:10:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 12.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: janm@transactionware.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645431029; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3UlRa1mtmg19sYFegSk73xvuI2zh28da4mQ5+d+bTqE=; b=Ddxa6ccThZJe18nZbkk84EfrWZ7W/bJpQ8R6Tdi9XRNjiZ0ckUNSBkxkaNEcpEQAXu01GO ZSw3Tmkpa6Vh1/6giHPIqB7q8UmFnh3DCtG/MjOxPay7vnIA7T02wyzrKmMAiGV9232JCP F9RmfWFDoVcc5Qxf9urZmz4ENsxnLil9CTawLVVvruYHA2zWB2GdGj5HOaEj8wvE9sJ/XD SMpWPnSSdNYSlEkodK1B1VRZBkEkb87QK/S1OzBgJvpsfu9X50HdgCi4MrJxW36l9T5/aj NocTLltE1n0T6hfto1nKc4kgNeq+Pr5RRC1EAGEyDmWg2SbAJmHxqQnxmdAnHg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645431029; a=rsa-sha256; cv=none; b=lKB/cCIXri0x46eCOc1rrEgdO1w5BoKXKZgdQyjJDiOlo8qoKzFw7jc0KDi6vOWctmigVd u5ua4+wtThW7BOH5EmNueyfZGhPNW/sFBraTbIjdvnltXQeGhV4LB7aPHrq1+ybh7NhtzQ 6soKYWN+GXB0tqJWQty62XO5IOUX+WqyzGdo4OQC0tUpQC6l2Uy8f2KWj5d8aVsSFIhwvu hLsHd4bsGjs9oOROUKJOyt6Ap+Hw402D2oBdH50q2evuYYXr/yh6YCpajcBGN8l/EasOKD n0WEr6ANVisD7XFuYYzQFJWS0b+JFV62Pm4Bj8fGUHRtmY0L8Rr3gLbuauWPWw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261989 --- Comment #13 from Jan Martin Mikkelsen --- Looking more closely at the Windows trace today, I see another big differen= ce. Windows is polling the device every 10-15ms. I missed that on Friday becaus= e I thought it was just the device generating data, not responding to a host message. Looking at the code for other USB input devices (eg. ums.c, uep.c, wsp.c) t= here is code to set up polling. That does not seem to be there for a plain HID device. Poll: USB URB [Source: host] [Destination: 1.3.2] USBPcap pseudoheader length: 27 IRP ID: 0xffffffff85bf5198 IRP USBD_STATUS: USBD_STATUS_SUCCESS (0x00000000) URB Function: URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER (0x0009) IRP information: 0x00, Direction: FDO -> PDO URB bus id: 1 Device address: 3 Endpoint: 0x82, Direction: IN 1... .... =3D Direction: IN (1) .... 0010 =3D Endpoint number: 2 URB transfer type: URB_INTERRUPT (0x01) Packet Data Length: 0 [Response in: 47] [bInterfaceClass: HID (0x03)] 0000 1b 00 98 51 bf 85 ff ff ff ff 00 00 00 00 09 00 0010 00 01 00 03 00 82 01 00 00 00 00 Response: Frame 47: 38 bytes on wire (304 bits), 38 bytes captured (304 bits) USB URB [Source: 1.3.2] [Destination: host] USBPcap pseudoheader length: 27 IRP ID: 0xffffffff85bf5198 IRP USBD_STATUS: USBD_STATUS_SUCCESS (0x00000000) URB Function: URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER (0x0009) IRP information: 0x01, Direction: PDO -> FDO URB bus id: 1 Device address: 3 Endpoint: 0x82, Direction: IN 1... .... =3D Direction: IN (1) .... 0010 =3D Endpoint number: 2 URB transfer type: URB_INTERRUPT (0x01) Packet Data Length: 11 [Request in: 45] [Time from request: 0.010000000 seconds] [bInterfaceClass: HID (0x03)] HID Data: ff1fff1fff1f0800000000 0001 1111 1111 1111 =3D X Axis: 8191 0001 1111 1111 1111 =3D Y Axis: 8191 0001 1111 1111 1111 =3D Z Axis: 8191 0000 1000 =3D Rz Axis: 8 .... ...0 =3D Button: 1 (primary/trigger): UP .... ..0. =3D Button: 2 (secondary): UP .... .0.. =3D Button: 3 (tertiary): UP .... 0... =3D Button: 4: UP ...0 .... =3D Button: 5: UP ..0. .... =3D Button: 6: UP .0.. .... =3D Button: 7: UP 0... .... =3D Button: 8: UP .... ...0 =3D Button: 9: UP .... ..0. =3D Button: 10: UP .... .0.. =3D Button: 11: UP .... 0... =3D Button: 12: UP ...0 .... =3D Button: 13: UP ..0. .... =3D Button: 14: UP .0.. .... =3D Button: 15: UP 0... .... =3D Button: 16: UP .... ...0 =3D Button: 17: UP .... ..0. =3D Button: 18: UP .... .0.. =3D Button: 19: UP .... 0... =3D Button: 20: UP ...0 .... =3D Button: 21: UP ..0. .... =3D Button: 22: UP .0.. .... =3D Button: 23: UP 0... .... =3D Button: 24: UP .... ...0 =3D Button: 25: UP .... ..0. =3D Button: 26: UP .... .0.. =3D Button: 27: UP .... 0... =3D Button: 28: UP ...0 .... =3D Button: 29: UP Padding: 00 0000 1b 00 98 51 bf 85 ff ff ff ff 00 00 00 00 09 00 0010 01 01 00 03 00 82 01 0b 00 00 00 ff 1f ff 1f ff 0020 1f 08 00 00 00 00 --=20 You are receiving this mail because: You are the assignee for the bug.=