Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1277713rbb; Mon, 26 Feb 2024 04:43:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV90SJGB3JDVA3LCIaPE93LlHVufXETQar2rrZ3k/2tg0tLix2kPooMn2g9UmzPXfO4TIBAE3KfqreVmevkRz++qfrwUcq+I1MO00p18A== X-Google-Smtp-Source: AGHT+IHeBN9xPZZ1QBFX5NYrGJc4ITcjp2/gsvEpyhjBeDeB4fRK8RLZf6Txd3vHMWqWQH4/1Suk X-Received: by 2002:a17:90a:f284:b0:299:99f4:5911 with SMTP id fs4-20020a17090af28400b0029999f45911mr4793885pjb.29.1708951429488; Mon, 26 Feb 2024 04:43:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708951429; cv=pass; d=google.com; s=arc-20160816; b=boU5u0/G9677imtM/kDtGyKuqMepPNuMAxpvtAmo63U922YDBSVJuCiZHTrIdoaCCZ T+L7GAlFhwrjYx0L4hPJjZpyTP0RALEL7XvWv/gwWens0kcVZLk4rleR6x2I7OOI4Rt4 J+4HKwW6nw4TUjeFh3aeiiNwK8JirIDkyBrVFsPIkx0GVK7OWzEl+pU/sxwxPFhD7x3T aMBZeXY2YqiXe4WPUp4UwZQgRYZ4L2NfWzSbIwrUEAudGF+gOaN+fMxG72kz5DvuR+2v P+YK1Xexqe0+wEIo+HlTst2cgIhKwGlg5tKb7BtaExcG2r174+wPg+TXieS7y8qYMDd1 ljKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=nmiIRs0QViFyQZjpIUcltNiJvT9448FaIvwpXIMbF8k=; fh=BPgN6gbE9X2QqSTW6fh2TNRJyfDDDaZ9pzn/UFyxBj0=; b=e0jitdHVdUlE9iSZaq/75EX1KQBu5tpJqf/HogfWwJ3Wp1MpLLh89K/UjuGRsI9Fsv qFiocGLNazGvoG0m2SJA0zqlcwkzugHhcxECGcOXCvpM/tAZB/kppkggRi1W72Kx7w7R 4lkc65G6iJqWoCybYR3RokZDSgKJ7TL3ZUENGW8IuqEqwf7nGqPT671pYi4GKKCMuHUc Q/4G1wbw/IZTXhV4ya8g1IogIYukt0EBeEbe5pCO6j4sG5O3cU68WrQDO1bKnH1blYyr 02PVTBkBn+1hEuSbPZI9kolsvbfg16/wLSZAfMkrxXAvtK6WfEFlRvzl03IyILwiYGgB pMsw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-81396-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81396-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m21-20020a17090ab79500b002990da768c0si5344386pjr.174.2024.02.26.04.43.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 04:43:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81396-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; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-81396-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81396-linux.lists.archive=gmail.com@vger.kernel.org" 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 32F0028367C for ; Mon, 26 Feb 2024 12:43:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B0077F7E3; Mon, 26 Feb 2024 12:43:43 +0000 (UTC) Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8765D1CF89; Mon, 26 Feb 2024 12:43:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.133.224.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708951422; cv=none; b=uKkcF6WoDCxUdWE81OZf57+wDUylYkvDpaksXhs71QdfJ0mmzuWkOMbMbXRCTHOS1dllta+xQ5zI5RHD1uC5FxNNcM9+1oUp3wOs6KVdEg3X4rx1RBfIaXc6vGNT7MeMO4KfQEqaeW6GE19mRM9TwdHmXrPSD0owzeMAOlrYU1c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708951422; c=relaxed/simple; bh=OmC2KY9S6KztzIeROYHg4vcpqyBH0EE1JKRIeMH7UOM=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=nZFnbxTjCM3D4oxg1UA+uubeAgpnVsB35/pvNRZNIG7jgqRgXbNT42f14wDiLHszNiuBKq9J/XugaaKlPKylPM+1kl63hM9eDRdcIx6cWLRjdsDPrP2FEw+ejacO3rlTl9sEiOJY9AcyNVOVsJszgcFoKCQSdAimQlatCVE9+Cs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk; spf=none smtp.mailfrom=orcam.me.uk; arc=none smtp.client-ip=78.133.224.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=orcam.me.uk Received: by angie.orcam.me.uk (Postfix, from userid 500) id 9C7BC92009C; Mon, 26 Feb 2024 13:43:31 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 96DF992009B; Mon, 26 Feb 2024 12:43:31 +0000 (GMT) Date: Mon, 26 Feb 2024 12:43:31 +0000 (GMT) From: "Maciej W. Rozycki" To: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= cc: Bjorn Helgaas , linux-pci@vger.kernel.org, LKML , Mika Westerberg Subject: Re: [PATCH 1/1] PCI: Cleanup link activation wait logic In-Reply-To: <853a63bd-74cb-e19b-24b7-426a0fdd9003@linux.intel.com> Message-ID: References: <20240202134108.4096-1-ilpo.jarvinen@linux.intel.com> <853a63bd-74cb-e19b-24b7-426a0fdd9003@linux.intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Fri, 16 Feb 2024, Ilpo Järvinen wrote: > > > Yet another thing in this quirk code I don't like is how it can leaves the > > > target speed to 2.5GT/s when the quirk fails to get the link working > > > (which actually does happen in the disconnection cases because DLLLA won't > > > be set so the target speed will not be restored). > > > > I chose to leave the target speed at the most recent setting, because the > > link doesn't work in that case anyway, so I concluded it doesn't matter, > > but reduces messing with the device; technically you should retrain again > > afterwards. I'm not opposed to changing this if you have a use case. > > It remains suboptimally set in a case where something is plugged again > into that port, for Thunderbolt it doesn't matter as the PCIe speed picked > is quite bogus anyway, but disconnect then plug something again is not > limited to Thunderbolt. Sure, my understanding has been all PCIe option devices are supposed to be hot-pluggable, at least these in the regular form factor (which is why PCIe edge connector contacts have varying lengths, unlike conventional PCI). Maciej