From nobody Thu Feb 17 11:07:42 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 9B29519D760B for ; Thu, 17 Feb 2022 11:07:42 +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 4JzsVk1ZLXz4m2w for ; Thu, 17 Feb 2022 11:07:42 +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 1230E74F for ; Thu, 17 Feb 2022 11:07:42 +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 21HB7gLF021197 for ; Thu, 17 Feb 2022 11:07:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 21HB7gbi021196 for usb@FreeBSD.org; Thu, 17 Feb 2022 11:07:42 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: Thu, 17 Feb 2022 11:07:42 +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=1645096062; 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=F8hasr8Zh/qRuSjaW/BKTFP8SZ5/IdP5NEF2Pz+k7Pw=; b=gRji1m2S2btSQck6GsEUKVWNdxF07sB7tIkHDnmv0GLA+825VHyXxwhUeLq/LfnMeAzmJH 6kINLfkwcF1nY4rtyS/BRyWmV5E2iqYkbwTDKutjiqbWBMv+XKFlpzOmczXBPQn5BWY5aU wc69UgVBqLg+4JiS/cY9USIsRCprzsS/t+MupB7tOKKJilUsI3LmU23zlTaB3S1ZhH+I9L LYqOsw8BVtomQcOzUYsFRvodGEOrEt1s0YzQtJrsaJHJRJhvBScR1JFDdTCJkhJ6leRWmd U2IFtlaSmipjMqNwJlotku/Yjc5APthpWI3JQksELHscAXASMM+kehEmr8pmNA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645096062; a=rsa-sha256; cv=none; b=ldAg3QEs0Yo+519H3UHg/knbRhhibjWyftZH3djDr0fwECQQapiux7fUcOieY2H4M4c1zv v0Vh78M94MLW5ViftrPNYJezxTbSsmldd5+WQv/ae6is6yrIX5hdHLO9GxLMJphOkDTSXd 7ueEg8jZ7K9c9ECmAh9DQtC9VE/8jQvE4ReaVkyu1aqu9V13Oxn1ZLjEqOFj8TyiEuAXAX cxXAdt/nghOBuDztJ6U79OmvaBu6Nt8lqOP2KKd8pdl84pf+iuT7AkClkfZTwvMZPN4S1e HwkdhzSIAZR5oJpfBXLbULinGSa+9ShFnfyRzuXRLP5zye3B/5+DT7M3DqZbyg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261989 --- Comment #4 from Jan Martin Mikkelsen --- I have tried on four machines, including through a root hub, an unpowered h= ub and a powered hub. An iMac through an ordinary, unpowered, desktop hub conn= ects fine. I just tested on a test machine (Atom E3950 based) with a single root hub a= nd no other USB devices and: sysctl hw.usb.uhub.debug=3D9 sysctl hw.usb.dev.debug=3D9 sysctl hw.usb.debug=3D9 sysctl hw.usb.ctrl.debug=3D9 sysctl hw.usb.xhci.debug=3D9 sysctl hw.usb.ehci.debug=3D9 sysctl hw.usb.uhci.debug=3D9 sysctl hw.usb.ohci.debug=3D9 See the attachment for the full log. (Not my timezone, just the timezone of= the test machine.) At lot happens in the second 21:31:43. At the end of 21:31:43, the device is connected. In the second 21:31:45 there is a successful port status request= on port 4 with wPortChange=3D0. At 21:31:46 this happens: Feb 17 21:31:46 fitlet2-test kernel: xhci_interrupt_poll: Unhandled event = =3D 34 Feb 17 21:31:46 fitlet2-test kernel: xhci_root_intr: port 4 changed Feb 17 21:31:46 fitlet2-test kernel: usb_needs_explore: Feb 17 21:31:46 fitlet2-test kernel: usb_bus_powerd: bus=3D0xfffffe0049b844= 28 Feb 17 21:31:46 fitlet2-test kernel: usb_bus_powerd: Recomputing power masks Feb 17 21:31:46 fitlet2-test kernel: xhci_set_hw_power: Followed by this a little later: Feb 17 21:31:46 fitlet2-test kernel: usbd_do_request_flags: udev=3D0xfffff80013035000 bmRequestType=3D0xa3 bRequest=3D0x00 wValue=3D0x0= 000 wIndex=3D0x0004 wLength=3D0x0004 Feb 17 21:31:46 fitlet2-test kernel: usbd_do_request_flags: Handle Request function is set Feb 17 21:31:46 fitlet2-test kernel: xhci_roothub_exec: type=3D0xa3 request= =3D0x00 wLen=3D0x0004 wValue=3D0x0000 wIndex=3D0x0004 Feb 17 21:31:46 fitlet2-test kernel: xhci_roothub_exec: UR_GET_STATUS i=3D4 Feb 17 21:31:46 fitlet2-test kernel: xhci_roothub_exec: port status=3D0x000= 202a0 Feb 17 21:31:46 fitlet2-test kernel: uhub_read_port_status: port 4, wPortStatus=3D0x06a0, wPortChange=3D0x0001, err=3DUSB_ERR_NORMAL_COMPLETION Feb 17 21:31:46 fitlet2-test kernel: uhub_reattach_port: reattaching port 4 Feb 17 21:31:46 fitlet2-test kernel: usbd_do_request_flags: udev=3D0xfffff80013035000 bmRequestType=3D0x23 bRequest=3D0x01 wValue=3D0x0= 010 wIndex=3D0x0004 wLength=3D0x0000 Feb 17 21:31:46 fitlet2-test kernel: usbd_do_request_flags: Handle Request function is set Feb 17 21:31:46 fitlet2-test kernel: xhci_roothub_exec: type=3D0x23 request= =3D0x01 wLen=3D0x0000 wValue=3D0x0010 wIndex=3D0x0004 Feb 17 21:31:46 fitlet2-test kernel: xhci_roothub_exec: UR_CLEAR_PORT_FEATU= RE Feb 17 21:31:46 fitlet2-test kernel: usb_free_device: udev=3D0xfffff8006eaa= 4000 port=3D4 Feb 17 21:31:46 fitlet2-test kernel: usb_set_device_state: udev 0xfffff8006eaa4000 state CONFIGURED -> DETACHED What is event 34? Does this shed any light on things? --=20 You are receiving this mail because: You are the assignee for the bug.=