From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.54 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796294350; b=Tq2NC3ByzFkLtT6B3vo12WnAYZP2YJTX+qwZPHQK2h8PjX66Yuz/aqaEfNSymGvai32N xK2IJuSTXWq6M/BFxbNOzMlnxxm9Vg7+Bu8nLYwQyUISVW1r0gcWG2kD3Q+BgJAfpTpdp X42ZzucIPIXb8XCW8OHKpQ/6TiF3QpCkglYdvyr5ogqvqC9qsQ95ys/bMTfryM++AX16+ eUW1G9Aql2fCzf2yNFEMws7ul0QfIcaZsd4zAWiaVFsGcTLBa6Shpcx4eXkolrr+6M5hc VXKfamdng7f8MC+3Z4iJ1WDVLETYvmKAKu2i9RHLiPx64wijvoVGmR4jsyK2WxRDSMQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796294350; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=RJoBYIIR6VwWTI6kTwQPS8Ck6AAKx1wxKTcph0RXD/8=; b=hSE8sLwwx7JRSYqYAAXUcVPXOu3z/664O4foHOLuLXVRQaaNeu38eMjV5mnK6/46fSyc K02aw3avnnwk6F0MKbYJatE1dnYU8h+M9HmLOOwSWXAadb/KDS5lwDALDkThRssep60Ao 1mnb8uljk+VwcBoqCZ2Xyv5zxCzwLeUSXuZ9ohl+fI8T8JFAU9pIPAFesbMH34kn2n/H3 JbRcuNn5AoQpVQpNZX4dKiC8VC39vPLtwp5V5uiuH9eiye65xzdO8lSFGORLj2E1lrA+6 y54tG16o6nR8gKBK9G8b79dGGst2FzmjkuM1ipMNFhV5TRJtAWayQfjcCH5OMt7wzUg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=txn6t6nG; arc=none smtp.remote-ip=209.85.221.54 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E809F606A32D for ; Thu, 3 Dec 2026 10:39:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E809F606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=txn6t6nG Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-4acb44dcd7bso12395662f8f.0 for ; Thu, 03 Dec 2026 02:39:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796294348; x=1796899148; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=RJoBYIIR6VwWTI6kTwQPS8Ck6AAKx1wxKTcph0RXD/8=; b=txn6t6nGMz2ydQGeQgFVwdyEVZ74nKWysJCnc2Zk5Z1BQxwFA99qQ1tFVrFEE49IgK DQQCg2Sg98cCKuwlWAzKSw5yLk2ZNZerXHsQSftXeD10tE4ciCBDhB6k+ZZ/BXvGDuYU 9dEscpmfZk2oE+ItvXf3waCqnr3uk96kDAyS1X22ixS2X3BiXRxMfnxKaiUb5RP2CgkJ EiHVCYV+StOT7cavvBULfgjbFtuxCOgjOjDo9MqA/CSK8YKEosXR0A+kc1gP+XTZeS2s DkqWT68ieYXE0U5aNygxqu8rtQuzjLkJ8Fv+RfqSEl52mFwM35JVNIvtTA4GtyrDIDRU HWDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796294348; x=1796899148; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=RJoBYIIR6VwWTI6kTwQPS8Ck6AAKx1wxKTcph0RXD/8=; b=PzAr+Msz91IoPL1PbjnV9Jb4au6o20GdzfwKqYXtOXvj/P+MfkVtspuPssvesRdgx1 swLFwbE2ixw5YDr0+62K7wbQ0YQHzvcagzAARCIJnsAgjcu0GNjfT8c6KIoanlZHGsk+ PeLkUYPxHwxkBJcevHeV/rqLf6ATbohwdJeejHGbCMSG83b0yJiztEJuCXHJnGck6jM8 5Kk60n5g0PgvyDrzHfhVmTGt77AUAzS+6ixQXsLZHgKDqKMHZAQusnuC3Ndz8YKKpDR5 dj3a6rSCa8Ia0zX9QjC4ReVbZbrPSw6bcCyi1L4idOEVANMYYTYEthF4+HURvyPGtSc4 1YPg== X-Forwarded-Encrypted: i=1; AL+hErGiWVPD8bEQCtgddMCaLMJ0+CkMCKXVcaST4wJTWkiD3mqTkicFtjgMazLr8a2Q6yd7Wmzj1RY=@vger.kernel.org X-Gm-Message-State: APuU4Z+6hMGMTekyp7e5QN/Ov1lvmN52Z12XCt4dYPzs7rva1aTo8rO1 E/P/IDhAdeOMAaAKh2BmwrfQtYdVcz761U8wtppm9Nk6dRLiDTk/+oSb X-Gm-Gg: AZFdTZcPbIn8VtY/DHY5P4e+BmCe17dk/3wucPOVIfkrYkSS/a6NCH+g1o6asPqmQ7D vgxQR0JgiLJMwyqNlFjP9RB468SvZ69+4HFLd0f3Q+DBZDC4cJlNPDHofj7Uf/K6xQzVFIitLjk ziUM6tHUqKxzfCvSHhErdT9QJ0cEAopt13Zi666K2VH0Vo86F0qSNOKX/75Qx1XYTaIUXvG1cG6 vcJmqucwCfIjba7k1CtqcFqpGlLn3zHiEKjpjseLxYlieedGtBh3XcCyPx9C7rvSp7xIpTnQQZH cQTczvaZKYkK/yfQOjUWu4sSqLtNHzld9DvujmWG0e5fRiJw/xd+EmqUoMnpDbvJAwHqRXZLqxa eppf//tC3DVTim130sXNip4GtnJ6SaaPSkKH0DOzTVe6BsqjYlxxn+kmuTi63+/keeGPlFeV2rh BeRlO4FVjBaA24vyY3Lw7MG0WWU9omT1cD4UhyiiLYMfHHEju2G2jtnSbVX+cnfEDD8tjYZeFBh u12lx4bwcVXeagXcW2j5Yw7urbZ8cMneugtK7FwqiaAdw80+h49A+YqGUBl92CF/TH0WA2ZSfSp gMM7UOxYtnlhVPH258CMWOw9QmVL0J91hxah X-Received: by 2002:a05:6000:2881:b0:4a7:1fca:e52e with SMTP id ffacd0b85a97d-4b80908279fmr48564889f8f.50.1796294348125; Thu, 03 Dec 2026 02:39:08 -0800 (PST) Received: from foxbook (bfj60.neoplus.adsl.tpnet.pl. [83.28.47.60]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4cd29a369c1sm8992564f8f.57.2026.12.03.02.39.07 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 03 Dec 2026 02:39:07 -0800 (PST) Date: Thu, 3 Dec 2026 11:39:10 +0100 From: Michal Pecio To: Riley Wagner Cc: mathias.nyman@intel.com, linux-usb@vger.kernel.org, gregkh@linuxfoundation.org, stable@vger.kernel.org, "Mario Limonciello (AMD)" , Shyam Sundar S K Subject: Re: [PATCH] usb: xhci: pci: do not perform Soft Retry on AMD 500 series chipset host Message-ID: <20261203113910.158311b0.michal.pecio@gmail.com> In-Reply-To: <20261120121357.1e1a0ce4.michal.pecio@gmail.com> References: <20261117193300.25897-1-riwiwa00@gmail.com> <20261120121357.1e1a0ce4.michal.pecio@gmail.com> X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit A bit late, but an update from me: On Fri, 20 Nov 2026 12:13:57 +0100, Michal Pecio wrote: > What if it's not connected to the root hub? Is this important? It is, of course, important for full-speed, because Soft Retries are not performed behind TTs. But at high-speed, hubs make no difference. > IIRC that's the same HW bug which broke some high-speed Realtek WiFi > dongle and caused Soft Retry to be disabled in multiple variants of > Promontory chipsets. I actually obtained that WiFi dongle (long after > the fact) and reproduced the issue - it happens when a device fails > the first URB and it gets retried. Most HCs handle this normally, but > Promontory generates no transfer events and later fails Stop Endpoint > with Context State Error and the endpoint is "halted". It's Ralink, not Realtek, for example RT5370. > And I think I have seen similar issues on other ASMedia HCs in case of > disconnection and repeated retries and endpoint resets. OTOH, in other > cases this controllers perform retries correctly. Affects all three Gen-2 and Gen-2x2 HCs I tried, but not the Gen-1 ASM1042. Newer Gen-2x2 AMD chipsets are likely affected too, I guess. But the problem is something else than just "the first URB on the endpoint". I have a reproducible case (full-speed bulk, no TT) where multiple URBs complete and then Soft Retry produces no event. The bug must be something else, maybe "no event if the retry fails". That would be hard to deal with. I have no better solution for now. > > diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c > > --- a/drivers/usb/host/xhci-pci.c > > +++ b/drivers/usb/host/xhci-pci.c > > @@ -88,6 +88,7 @@ > > #define PCI_DEVICE_ID_AMD_PROMONTORYA_3 0x43ba > > #define PCI_DEVICE_ID_AMD_PROMONTORYA_2 0x43bb > > #define PCI_DEVICE_ID_AMD_PROMONTORYA_1 0x43bc > > +#define PCI_DEVICE_ID_AMD_500_SERIES_XHCI 0x43ee > > I think "PROMONTORY_19" or "PROM19" would be better for consistency > with other entries (see also: commit 9e896b4a48c4). > > And isn't 1022:43ec another PROM19 ID? > Does anyone know if 400-series or PROM21 have the same bug? It's likely that lots of chipsets are affected, so IMO it does make sense to add more PROM19 IDs or at least use a naming pattern which readily extends to more IDs in the future. Or match all by (vendor_id == AMD && subvendor == ASMEDIA), because that seems to be a pattern with those chipsets. > Adding some AMD people... Still interested to hear any thoughts or suggestions. Regards, Michal