Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4059883iob; Sun, 8 May 2022 01:56:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyj3DiPm7jalF5gSwBMkUMEYL3ik0S9JT6d4J6Q/T3Os8FYcGkVr9OX75Q0Ya2aHLWPqn+w X-Received: by 2002:a17:90b:3649:b0:1db:a201:5373 with SMTP id nh9-20020a17090b364900b001dba2015373mr12594536pjb.175.1652000202836; Sun, 08 May 2022 01:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652000202; cv=none; d=google.com; s=arc-20160816; b=oK6Zt5/6loalg28jPtAz5Gk2okBrx1btqDeOIMks7YCyNJNCbPvJlFy/UcvXmvOc3G lBRWt+NheQCyiKs8IFHszuS/jaW+6aV+2Fl6eeVLPDp62PeaAZGGWUprhmnd1yB7Exlg 4FHrv1gACRBV7jf6e+FpVpDLhdUu0uL7BfFoKlXvq0wAdFLGolZP/2jKFLtbXhDnl5e6 En8/dFxl9N4RIXB1gDCynpLlh9IActpDGiTcbyX7dqMtgKy4NuPZOFTkLJCE3+5n03lh 6FEcqaPFLPTz+nlOhQ25QB6UQwNceKjuU5xkwLCFJxr/Np1SsjYMTRCEVZGvbZ/9s7U9 Imnw== 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=zXBMLz8cC3i/NHC4q9NpP8nEKT9hdLa2WHovfJjo8I8=; b=dAgsKELKW+ELmCr26NbGADfHRD2lD8Lp/yQhzG6gbZIxTYF4YUFZvESZ0aktrDGoZ7 XO5aED9o89UZkfL3lbotkd69FO3dFZiit+5zIDDPqP4GkRoQlN7oTSU2JFscK8xx+n0x WyUHSnj9BkHQKPd1M9cnW//N+LHRuWmopS6t3DOmAARiZ97Ap1/Gxxro6onPGhgrdXNC pJlSwLGszt6fja/WCVAvi6m+0NdyIVjbeu/090ToUWbNrWuoUV7RV363j5dXzug/dFZb j1TeLCtR9TQjX0VT+qTo6Cl9+Mt8Qis23ECcZj5zVvUmKaCegSPxtAQ3m8TeonnOn2RF IZCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0m1vj5hb; 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 gb23-20020a17090b061700b001c38029e0easi15415418pjb.53.2022.05.08.01.56.29; Sun, 08 May 2022 01:56:42 -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=0m1vj5hb; 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 S1349399AbiEDRAl (ORCPT + 99 others); Wed, 4 May 2022 13:00:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353948AbiEDQyk (ORCPT ); Wed, 4 May 2022 12:54:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6FD349904; Wed, 4 May 2022 09:49:44 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 34748617A5; Wed, 4 May 2022 16:49:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81362C385A5; Wed, 4 May 2022 16:49:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651682983; bh=k1rHxpQm2S8mpKlnDFvQd5CLu7baZrkGv8q8lii6SQc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0m1vj5hbi5ViNYOBR4qnc8uX8AykAsu2mn7g8kU1OrlteXFObaEcoWrO2cWoykF7e cpvIE5LBRRFhXaumOedZ3mLefNq08nWSJDL3ByKss2PP/df8Ieas5vW8HbQP8uK2KB 7rX84UWg4kZke2tZRQ3B24Z5ZyadrFsmofFG8t4w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mathias Nyman Subject: [PATCH 5.10 012/129] xhci: increase usb U3 -> U0 link resume timeout from 100ms to 500ms Date: Wed, 4 May 2022 18:43:24 +0200 Message-Id: <20220504153022.295406273@linuxfoundation.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220504153021.299025455@linuxfoundation.org> References: <20220504153021.299025455@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 @@ -1348,7 +1348,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);