Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2850453iob; Fri, 6 May 2022 11:44:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx57AYRMOF//2k14O3Ihffq1H8qRfWHog2EWkPOc2aXNsPAwcUnlEl94m4Kezq5LR0Zql1A X-Received: by 2002:a17:90b:1b44:b0:1dc:315f:4510 with SMTP id nv4-20020a17090b1b4400b001dc315f4510mr13937268pjb.28.1651862642180; Fri, 06 May 2022 11:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651862642; cv=none; d=google.com; s=arc-20160816; b=QlqKxXhEc/u6a17rDhUQkAvvt4umL3SJCWCIgbFSJ8Z+T44QXTUsS+IDKNsBbBjvCC ngTf/R2+Tms39yvRZhPaIgg4IvFxT/F0tNUJyuWlkl8KUwTEoRdGShqBTG69nuSBV4PA VF+cE32P+GZXsJcHbt+H7atbQtTGOmW9micifIaR9P/5LyVfiTag+HuEgzZhVx48/5tY vhHdRh0Ft3w7sgvZlpdS7D5adq9J5sZbs+TNDXYL6J1uZvR09cTIax6TK4wQg5ja1MqA iMS6GQDfnUZtcOEx+w/ymkiM9cq444cMDfwPOwkJ2aev8hE/5Qwn48mFFXrUpkYIO3+X Ot+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1v8g8Cw4y+teYfT5DhFMYAmzEulAMqZ7vd++Kt9e3UI=; b=iSsIh6EsPGPSiq309yyCv2xJgxJY7IOREmHnS9GbGq3Y1qrhxJtdjm7IDZZJk7Djf9 hy9pUpE1fxdW7f9mM5fFIjM3muhWroORPLMIW5reS9qQTeizA2KW1ntW98+CjzAe3YME eOOsa8cudXc5IV0XX966C6qlRZ+tOijePrdXuCmF1tZnojMHf7HNUOCxY9EM6KR/Kxd1 qUt12TALHra7XC4i21FpotwFGoecReI4/bjnY4cgcl/A7FLHGIAWIp+jXdlYsmRYFlo1 fgcukcYw6Nn0jAfaniQNhhe9uXWIo23kFBLK5Ol7trFhiuhpg09o/Y0CwJElaW0wiTUL w+ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TXENfEro; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r5-20020a63b105000000b003aba3e87b30si5495197pgf.155.2022.05.06.11.43.45; Fri, 06 May 2022 11:44:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TXENfEro; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359427AbiEDRkE (ORCPT + 99 others); Wed, 4 May 2022 13:40:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356797AbiEDRJo (ORCPT ); Wed, 4 May 2022 13:09:44 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDB9A1A807; Wed, 4 May 2022 09:55:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 72F09B8278E; Wed, 4 May 2022 16:55:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 226D5C385AA; Wed, 4 May 2022 16:55:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651683337; bh=MdhV4vMP/Ag3QWOmc6UiTASLX41bGZ/YGwSwW6Adsdc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TXENfEro0bMF1nIpFtjGlDsPPGeniyrtQJN7guV8JCA2Loh9Rr7pbvBFuPkE5UU9P S731tJDALYB0Av8YhUhGhEwvbzgzgnQwio79ZqRIC24NtQgdrsE59o6AttPb8wrczl U6Zv47k5P4Ooq/enitEzfNx3row9SrnFiLxV4wIk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mathias Nyman Subject: [PATCH 5.17 012/225] xhci: increase usb U3 -> U0 link resume timeout from 100ms to 500ms Date: Wed, 4 May 2022 18:44:10 +0200 Message-Id: <20220504153111.358907655@linuxfoundation.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220504153110.096069935@linuxfoundation.org> References: <20220504153110.096069935@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mathias Nyman commit 33597f0c48be0836854d43c577e35c8f8a765a7d upstream. The first U3 wake signal by the host may be lost if the USB 3 connection is tunneled over USB4, with a runtime suspended USB4 host, and firmware implemented connection manager. Specs state the host must wait 100ms (tU3WakeupRetryDelay) before resending a U3 wake signal if device doesn't respond, leading to U3 -> U0 link transition times around 270ms in the tunneled case. Fixes: 0200b9f790b0 ("xhci: Wait until link state trainsits to U0 after setting USB_SS_PORT_LS_U0") Cc: stable@vger.kernel.org Signed-off-by: Mathias Nyman Link: https://lore.kernel.org/r/20220408134823.2527272-4-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- drivers/usb/host/xhci-hub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/usb/host/xhci-hub.c +++ b/drivers/usb/host/xhci-hub.c @@ -1434,7 +1434,7 @@ int xhci_hub_control(struct usb_hcd *hcd } spin_unlock_irqrestore(&xhci->lock, flags); if (!wait_for_completion_timeout(&bus_state->u3exit_done[wIndex], - msecs_to_jiffies(100))) + msecs_to_jiffies(500))) xhci_dbg(xhci, "missing U0 port change event for port %d-%d\n", hcd->self.busnum, wIndex + 1); spin_lock_irqsave(&xhci->lock, flags);