Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3255535pxv; Sun, 27 Jun 2021 23:57:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwk+dCBdIBearOAXSLWbwwyNRhNvomhW2+XoPLI5mKrmyLTRLHkvs8+z+8xN/0PF78BPkO6 X-Received: by 2002:a17:906:dbd8:: with SMTP id yc24mr22897033ejb.55.1624863470056; Sun, 27 Jun 2021 23:57:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624863470; cv=none; d=google.com; s=arc-20160816; b=j1kzqA2kCb2V/2H6wQhvIPUYsZ2pcw1V9XkROkqsxuyG8G6co8dUd0OSM88ff3boXo Zt8kYOOknIwWuRsvlIZiCcVFRQ5UAMNub61Nw/LdRDfNccoGCwAcKq6DVTyR/RsFmhTy OGnQFP4u2zuRDng46l+wbE4U1zJZNTTJgt1WatRbKgIdQ74qmkGr7PFYmXeRe7nMvhMd nhVi3XioJCvYylCMpE+yz9OUGEBZJkYyMf0NlCjPJ8ClrfG2wfGk0cv+gmAlFMrKDL33 8o1d1lNhBN5dNLKknEjyWdNp3VcSHZQmtqE9Dwe78ujQ32cjCNGXSMhhFOJcw35l13Po 4Dcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nWsQBqqVdiYCHyRCHTo47ttaxkJYnaSy9gQqXezcqz4=; b=sYagWILe/H2kvuNWiUHUE4g2ygmPmEQ1ln64tjHenxFqxLPz/H0ErEe24GwHwcAhcb bbnZyc2o+03hx/fw6qI9KgJZ556HeD2FWgmodgvJTqfA/6ySoPm2UGyrn9ApqUp2y9DB Gv4eg2+zweo5PLe7eBvbulrgiWhCnK5QXwFtUxp+fRAQ2DYDQDgpH+GeyFy4v8YjD0Cx ABc+FMSkIVR5+YexMD8ztQutraQN92bD+8w7r+ZwPOf81/PvSb27jipskj1kqlnTAy6G oXp/yXDZ8lfWT05Ay34PnnLaDwpw3AxbhlhZqHgINr4KFKE6Tu1G8wwXU2oqAjIPQc9h Yh6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YRlKkDF0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y4si13101235edi.355.2021.06.27.23.57.26; Sun, 27 Jun 2021 23:57:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YRlKkDF0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S232166AbhF1Gzb (ORCPT + 99 others); Mon, 28 Jun 2021 02:55:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:50052 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229998AbhF1Gza (ORCPT ); Mon, 28 Jun 2021 02:55:30 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A435D619A3; Mon, 28 Jun 2021 06:53:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624863185; bh=G3fzbTwZoVC5otl/ywBvSBZTfbpse+RSsAZqEbAHOOg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YRlKkDF0aaCNiuNNNfNpQNovBX7R+0xJj3sd18dP2Q9GwDNOKvZXDO3rCdQPLVxRr pB9iTTrOXq/OD2tpqHEBl+gtiNO/nlcS6SZlpc4qCNKxB5lHsaJGXz/BkY0G4gAJZL QqBIMOAkzaAtBeUaBd5d45/JWz9Ver9N1vGvrwm8= Date: Mon, 28 Jun 2021 08:53:02 +0200 From: Greg Kroah-Hartman To: Jung Daehwan Cc: Mathias Nyman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: usb: host: Reduce xhci_handshake timeout in xhci_reset Message-ID: References: <1624361096-41282-1-git-send-email-dh10.jung@samsung.com> <20210628022548.GA69289@ubuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210628022548.GA69289@ubuntu> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 28, 2021 at 11:25:48AM +0900, Jung Daehwan wrote: > On Tue, Jun 22, 2021 at 09:56:20PM +0200, Greg Kroah-Hartman wrote: > > On Tue, Jun 22, 2021 at 08:24:56PM +0900, Daehwan Jung wrote: > > > It seems 10 secs timeout is too long in general case. A core would wait for > > > 10 secs without doing other task and it can be happended on every device. > > > > Only if the handshake does not come back sooner, right? > > Yes, right. > > > What is causing your device to timeout here? > > Host Controller doesn't respond handshake. I don't know why and I ask HW team > to debug it. Please work to fix your hardware, that feels like the root of the problem here. If you require the timeout for xhci_reset() to happen, then how do you know that the hardware really did reset properly in the reduced amount of time you just provided? thanks, greg k-h