Received: by 2002:a05:7412:d024:b0:f9:90c9:de9f with SMTP id bd36csp106407rdb; Wed, 20 Dec 2023 07:26:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IGzAGpNc9ljTgSQeyUVA6I3VywaX6hmRmdzP5vp6AZw0sz3j3BaV1iYnUKHTZ4gjf+yUwDF X-Received: by 2002:a05:6e02:16c8:b0:35f:ba43:258d with SMTP id 8-20020a056e0216c800b0035fba43258dmr5724780ilx.35.1703085995023; Wed, 20 Dec 2023 07:26:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703085994; cv=none; d=google.com; s=arc-20160816; b=Xr12COPOVVsb8wQ9yAPI7iXdLxpE3rypZRdvvD90Z04eqx5l33WrNg743PPbtKR7bZ X26o4s45xpWyrAJZ+cxJjasDkL82Ccb4jn2cvL2S6cpDB234A7kytlJUsT7NRTas3Pqs dOqjBe9pNGGrUByCiyHnrfS+EqKEPR/m9GMoJXqhlPLFs3QyDpKNEgMQCLuA6+nqRvv+ Dc1BlW5dQRbrycUxtcQMIHVoVb+ijAKqsnwF6D5Un0BoESk//v54DooNHH9M/ZjQHvSI zr8dstIYHavILT43NmTYIpCZN4P7juAbbJk7RKWuUWLatnrrX4JpDiAxyYPGKP6fHM7W /V4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=OEipMX9+RGlNqeYObAaMXD2YSbazIyFF/g9TIoQ9xgk=; fh=GoEXbXFpu2bM2RTqyGgIljD+Mgxh2H8mJj7kObhUzZU=; b=fDoqoEDcRdKi4r1m1W1UqVzpVKw72duOuw3337msZklm9VBUpgBW07kxa881k3KFwJ 6hNSJkPPcY7yGc12UVllyTfeDNNADY3Q6+Se7ZyZ6KmMfp7vLBS+DG4tBGH7VmtKokQ5 C43s0y4V2kfv49EbqvRS3y3qZw0Nx3VZZ2nhtRDWDVxf96IrqR1T020BDhDn0cO+t2Uh 3vTwZj4LaNDr/jJUp6Kgx6X64EaW6ix3xv6OXZoz0Hj7iUmwUVcxZr9Dh2Z8KwZ8JuXM 5Elh49F0jrvwX1CiETMFvdkQPZD3bVCzGhI1byKFvfbXk+C4ahDif7Vz0FcLdlZH12RJ yEUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tuxedocomputers.com header.s=default header.b=uoYpqJL8; spf=pass (google.com: domain of linux-kernel+bounces-7152-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7152-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tuxedocomputers.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 17-20020a631651000000b005c668a5a90esi20909627pgw.596.2023.12.20.07.26.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 07:26:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7152-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxedocomputers.com header.s=default header.b=uoYpqJL8; spf=pass (google.com: domain of linux-kernel+bounces-7152-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7152-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tuxedocomputers.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 97B19285A07 for ; Wed, 20 Dec 2023 15:26:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 21E7548780; Wed, 20 Dec 2023 15:23:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=tuxedocomputers.com header.i=@tuxedocomputers.com header.b="uoYpqJL8" X-Original-To: linux-kernel@vger.kernel.org Received: from mail.tuxedocomputers.com (mail.tuxedocomputers.com [157.90.84.7]) (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 3334148782; Wed, 20 Dec 2023 15:23:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tuxedocomputers.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxedocomputers.com Received: from [192.168.42.20] (p5de453e7.dip0.t-ipconnect.de [93.228.83.231]) (Authenticated sender: wse@tuxedocomputers.com) by mail.tuxedocomputers.com (Postfix) with ESMTPSA id DB9A02FC005B; Wed, 20 Dec 2023 16:23:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxedocomputers.com; s=default; t=1703085796; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OEipMX9+RGlNqeYObAaMXD2YSbazIyFF/g9TIoQ9xgk=; b=uoYpqJL8QO9uj31jBnDN/1X231o2GaoVOYIAbukLKqLkp3LtfCfK7LdpMQe2xP6CU8Ylsa urXyAJ9MyaZH6DrQWo5Twoh4vUU84ts87/ucgg0iv1y4A8FAlt5numOLIbFJND/qi2CNOe Osrw42rk4C2z4a7pqU9d+hMYZBC6ml0= Authentication-Results: mail.tuxedocomputers.com; auth=pass smtp.auth=wse@tuxedocomputers.com smtp.mailfrom=wse@tuxedocomputers.com Message-ID: <2e00a0dc-5911-44ee-8c50-a8482eb44197@tuxedocomputers.com> Date: Wed, 20 Dec 2023 16:23:15 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] thunderbolt: Reduce retry timeout to speed up boot for some devices To: Andreas Noever , Michael Jamet , Mika Westerberg , Yehezkel Bernat Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231220150956.230227-1-wse@tuxedocomputers.com> Content-Language: en-US From: Werner Sembach In-Reply-To: <20231220150956.230227-1-wse@tuxedocomputers.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Am 20.12.23 um 16:09 schrieb Werner Sembach: > This is a followup to "thunderbolt: Workaround an IOMMU fault on certain > systems with Intel Maple Ridge". > > It seems like the timeout can be reduced to 250ms. This reduces the overall > delay caused by the retires to ~1s. This is about the time other things > being initialized in parallel need anyway*, so like this the effective boot > time is no longer compromised. > > *I only had a single device available for my measurements: A Clevo X170KM-G > desktop replacement notebook. > > Signed-off-by: Werner Sembach I wonder if this could also land in stable? Or would it be to risky? > --- > drivers/thunderbolt/icm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/thunderbolt/icm.c b/drivers/thunderbolt/icm.c > index d8b9c734abd36..56790d50f9e32 100644 > --- a/drivers/thunderbolt/icm.c > +++ b/drivers/thunderbolt/icm.c > @@ -1020,7 +1020,7 @@ icm_tr_driver_ready(struct tb *tb, enum tb_security_level *security_level, > > memset(&reply, 0, sizeof(reply)); > ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), > - 1, 10, 2000); > + 1, 10, 250); > if (ret) > return ret; >