From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86BF520E6F2 for ; Thu, 6 Mar 2025 13:44:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741268658; cv=none; b=XvidOb8H4GDEKvwzswHOMZEZFp5GeqBL6woJHO890Ijekpxog/4s5iLFV+8BWet4Jpnn6D2q4ZGEHxwx3tVoPLGdkjWkkfKkOiXDqCw+24Bvp7gitbkkp89dCyEVVZf+3+mWl5Zk3K0t7IEqEV6mHyrhkVNinCx6IOQHvJHNh08= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741268658; c=relaxed/simple; bh=A2My8BDMQF8VFr+4sgwGBz/rcCSkVwtLYDvDB+wZbtQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JJaw11AbDLBhenZDPzZnDdokn74xmbdY58B+K+0mmfrdf1hY5hnq9Ta1HpIyUGP0bQ4ThD0fX6O4YIQv2HU1/PLsl5vbejIb6HCux5EydtSxxM0yy98r4ufR8B5I9bKsj5CaS+7cuTdTc+Ec03BBtdf7BZYnY2MRBW0a2SmkbQs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rowland.harvard.edu; spf=fail smtp.mailfrom=g.harvard.edu; dkim=pass (2048-bit key) header.d=rowland.harvard.edu header.i=@rowland.harvard.edu header.b=S6lVwSsk; arc=none smtp.client-ip=209.85.222.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rowland.harvard.edu Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=g.harvard.edu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rowland.harvard.edu header.i=@rowland.harvard.edu header.b="S6lVwSsk" Received: by mail-qk1-f179.google.com with SMTP id af79cd13be357-7c3be0d212fso90210485a.2 for ; Thu, 06 Mar 2025 05:44:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rowland.harvard.edu; s=google; t=1741268655; x=1741873455; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=WwgjDPu5gQ57J7qpYXbCmGMvklNaQu3hyIrZ9bRfd44=; b=S6lVwSsk8ucJquJ+3M+Tiyid9mwG6Wgs0wpWG2gB+uQCcJvpXeTcrS6c3hL/Pg1KY6 v5f4AxzU9BnyUXEEXV7iQIrAVnTa5eCr5HfwlwEnWHzeBi0l3vCmQkzYmqMdctVetatw NyDcuLhTuIMERvZ+pL0CeoRdkrbpXTWg54i77FHUW47fH64IWk7UxKC6YkIq/0DL3A6B Qv9Ka4aP+WoHWsKEhjkOLATLdMVPz6eM4eg0AJ1kunDB3KjjwDmb+50uh8TSpi4M7kVd UhMF2GlZwmXHjm/Cm15BU4YZDX8sOSgUO4duwsA6yE7COXRu9vj4nwuCjSaB/069h0xk Yu+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741268655; x=1741873455; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WwgjDPu5gQ57J7qpYXbCmGMvklNaQu3hyIrZ9bRfd44=; b=posJUhxzNTVeuHlnxAK2aqVY1xc99z7m46PvFizNeGdEhA4wAEZaS54c84rX6xsLlP GNVGwnHe6a92C8JvcfIYvneEca0myRHu1gCbncCxoywxTDDPbJ5CuVwApt6r7MTxy3cg eBTXFXBI5YZHWNyj5E8GFaNoADGD0c7LF8rXhm/N9+tHy/Dp2cNHgI7wvzJd2LiNy1LT 4WODTUDqwNln0sNiP9rNTv7rLMnBacLU/6AYWnVgKwqtO76lBzuWGVfMIY0pL/ONPiVP vF0YU7c7GNmrLRkb8vlNGGQ/sX8frU2xoJNxUPK7xS+xhlMwvY/PIi1gnb9rOj3fLokC otPA== X-Forwarded-Encrypted: i=1; AJvYcCWEaGMTjy4+KZ8GKm1J5oPw4CswYADbXkL1RrMRjCiH158FpbV5jtP796XshWwiyBk8eYdbFRfKRzAsd+4=@vger.kernel.org X-Gm-Message-State: AOJu0YyPkcwRjwk6GRaEjkxhEfSlX41C4dYX33EVUn/JgyyunSejubVM 52c/uahX+3smUs4aT8zPFHbF5xFsFL0myeVL5gVgZbWW3vIK0HtLZc/1kywiNg== X-Gm-Gg: ASbGnctWFTWVS1kN39SM2BxbCbc+95/y8eRSh/9VBHWlE2b9216UA7DhZ/ZcJgkJkpn tc7wIj50iqSf/r6L9ugS0GeO054kjiyUN9m+hu52VeGxBRQRpZiUdxHYI6EhO6uKnPj7G4vMITx GwgsZiHAtHzfSWt0PoCpJx6Spv3K/lKFCJoYIcHQ+IrXMCXEUOfuT/ZcMP+IqnXN36D+Qo1k35T aZPbhp6ym4VcDc+++MDQRuGsVC46t3mwj4B2Vew0W6b826mFgqQesSupdXwuoJ7bCpoh1CsgXm1 Lj1/SWIrh0cXMpVkfqAL5vyheB+91XjLETRE1hsJqwAeIg== X-Google-Smtp-Source: AGHT+IFEipRBi3b1Lbw6KErxXrLIwaAdjxI5V6kG1WF27EYioXALQ7PyJP14C34zZXLZBr80yPK9Iw== X-Received: by 2002:a05:620a:4c8b:b0:7c0:9df3:a0cb with SMTP id af79cd13be357-7c3d8f10b02mr922493685a.53.1741268655321; Thu, 06 Mar 2025 05:44:15 -0800 (PST) Received: from rowland.harvard.edu ([2601:19b:681:fd10::3ca7]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7c3e533a1b7sm93507085a.5.2025.03.06.05.44.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Mar 2025 05:44:14 -0800 (PST) Date: Thu, 6 Mar 2025 08:44:11 -0500 From: Alan Stern To: incansvl Cc: eichest@gmail.com, francesco.dolcini@toradex.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, stable@vger.kernel.org, stefan.eichenberger@toradex.com Subject: Re: [PATCH v1] usb: core: fix pipe creation for get_bMaxPacketSize0 Message-ID: <1005263f-0a07-4dae-b74f-28e6ae3952bf@rowland.harvard.edu> References: <857c8982-f09f-4788-b547-1face254946d@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <857c8982-f09f-4788-b547-1face254946d@gmail.com> On Wed, Mar 05, 2025 at 10:02:15PM +0000, incansvl wrote: > Team, > >     I am experiencing a problem on multiple versions of the 6.x kernel, where initialisation > of a motherboard usb hub device fails and causes a stream of errors. The performance of the > machine is badly affected. > > I would have considered this most likely a hardware fault except- > > 1) I am seeing the same issue on 2 machines of very different age and spec. The differences may not matter if they use similar hardware components. > 2) In each case the hub generating errors has no external devices connected to it, so > the error can't be caused by an external device that has failed. In fact on > "machine 2", having no devices plugged in seems to be a necessary condition for the > error to occur (see details below). > > I found the discussion of this patch, but I am not clear about this description- I suspect that patch has nothing to do with your problem. Have you tried applying (or reverting) it to see if that causes the problem to go away? > 4) On both machines the errors relate to a USB root hub that has NO DEVICES connected to it. > On "machine 2", having a powered USB3.0 hub (which has a number of downstream devices > connected) plugged in to one port on the hub is enough to suppress the errors, although > I note the that "bad" port number (hub 2 : port 3) is not enumerated (skipped?). > (tail of "dmesg -w") > [ 781.020436] usb usb2-port3: Cannot enable. Maybe the USB cable is bad? > [ 784.990637] usb usb2-port3: Cannot enable. Maybe the USB cable is bad? ... Please try collecting a usbmon trace for bus 2 showing the problem. Ideally the trace should show what happens from system boot-up, but there's no way to do that. Instead, you can do this (the first command below disables the bus, the second starts the usbmon trace, and the third re-enables the bus): echo 0 >/sys/bus/usb/devices/usb2/bConfigurationValue cat /sys/kernel/debug/usb/usbmon/2u >usbmon.txt & echo 1 >/sys/bus/usb/devices/usb2/bConfigurationValue Then after enough time has passed for the errors to show up, kill the "cat" process and post the resulting trace file. (Note: If your keyboard is attached to bus 2, you won't be able to use it to issue the second and third commands. You could use a network login, or put the commands into a shell file and run them that way.) In fact, you should do this twice: The second time, run it on machine 2 with the powered hub plugged in to suppress the errors. Alan Stern