From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bmailout1.hostsharing.net (bmailout1.hostsharing.net [83.223.95.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2D83E2E628 for ; Tue, 17 Dec 2024 09:53:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=83.223.95.100 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734429203; cv=none; b=KvpCqxda57Do+6UYeu1rVGR4ZAl0v/5d2Z0BQ1e3K9uaNWOGuRJwa/7W0gnHjyAclU7q1FpIBaOgY9ZyORI6hTTw8XyoGiBWC0T6CPs9uNoChIb354qubGEfmR8HpHesrfqSmKKKIMCos0JZo3W3EQWUVKSRm8B5QfkQMpRBwPs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734429203; c=relaxed/simple; bh=7KylKo8v3z+EVMe+D3jJUU6Hh3fDEHV0tToSx+JuCGY=; h=Message-Id:From:Date:Subject:MIME-Version:Content-Type:To:Cc; b=scu6RldA7Pa9Ye6erGrZSQ0tyFWEIyrqD0G52TH/h3mOyPZMxyunEFKKkH+eWQAG8cGvx/E5qzQcAE4JO1N3ndKT9VYaQUbpwfV/4vxCB2Ii3yTKqQ1F8Lfe3egzlPs6lOPwbAhHpqoxvdGI/EMF6s3knPib7rdD0ycmYoskDGk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de; spf=pass smtp.mailfrom=wunner.de; arc=none smtp.client-ip=83.223.95.100 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wunner.de Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.hostsharing.net", Issuer "RapidSSL TLS RSA CA G1" (verified OK)) by bmailout1.hostsharing.net (Postfix) with ESMTPS id 43DBA30001EA0; Tue, 17 Dec 2024 10:53:10 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 2113A603AC3; Tue, 17 Dec 2024 10:53:10 +0100 (CET) Message-Id: From: Lukas Wunner Date: Tue, 17 Dec 2024 10:51:00 +0100 Subject: [PATCH for-linus v3 0/2] Fix bwctrl boot hang Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Niklas Schnelle , Ilpo Jarvinen , Jonathan Cameron , Mika Westerberg , "Maciej W. Rozycki" , Mario Limonciello In response to v2, Ilpo gave a heads-up that the first patch in the series was problematic: A zero Max Link Speed is common in particular on Root Complex Integrated Endpoints, so there's no reason to emit a warning or assume 2.5 GT/s. In the interest of resolving the regression before the holidays, I'm respinning already after two days and I'm reverting back to my original proposal to use 0 as lowest bit in the GENMASK() macro. I've amended the commit message with an explanation to address Ilpo's concern that the 0 may cause confusion because Supported Link Speeds ends at bit 1. So patch [1/2] in this series is identical to what's already queued up on pci.git/for-linus, save for the extended commit message. And patch [2/2] is unchanged vis-à-vis v2. Link to v2: https://lore.kernel.org/all/cover.1734257330.git.lukas@wunner.de/ Lukas Wunner (2): PCI: Honor Max Link Speed when determining supported speeds PCI/bwctrl: Enable only if more than one speed is supported drivers/pci/pci.c | 6 ++++-- drivers/pci/pcie/portdrv.c | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) -- 2.43.0