Message ID | 20240212165043.26961-5-johan+linaro@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-62015-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp40925dyb; Mon, 12 Feb 2024 08:55:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IGETKNqtglOmlSiG1FDLnkUcv2YX0bzq9CXRkaRcJmL2NiXL5aDD9Bf53p3+FFiEb/rremU X-Received: by 2002:a17:907:1002:b0:a3b:d939:ee95 with SMTP id ox2-20020a170907100200b00a3bd939ee95mr5701403ejb.35.1707756935926; Mon, 12 Feb 2024 08:55:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707756935; cv=pass; d=google.com; s=arc-20160816; b=q1U9dCsuEWPW2K+DgfUT/v4J/xrcXv7vbbQESPHF1L4VLMBqbpF6eY507+zGKyKXBJ qskw/ObvER3wymmiVHMielWTAzNKCH17C9VWHfAPrJtpPejdImUIILPkrZXqJYxPAlwn e3XIDusO2OhX+PcEtPNgA+HcdrkXpqP+pZtW5XZInAYyw0eRw8oDXvWL7HirKiLZsnOf mnN6/Ocmh90IFBFmMMaJfo5IQkKqkUSpBa8n8Za8GIOGUCdSbxkZCrVCNiXUheIMlrIZ UbgpvITW6octnU94ebVIkOjNlic3ADfLyWIA7G4B+piiduglh3MwDHwgJj2MG8JjrOpE +qFA== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=5Y9xYGH4UaX8P0Crg1QmewG6HHwwTlPSP4taCXlWraM=; fh=fXIcScT2GejxAc64ipCLcsxl5QYLD/9OD8/Hf5R+DnU=; b=QTHvaIALyI57gK7xPqUGyJ0W/RzYdI9Y7KL5tltX2zvNVNx3n4NP0H56MEuzVeQpCg Kxl4ZaAz9pkExhrIr3B3SIAHxABEV4enwMZ2Yw9oxcFLnhXNukMKK+Iye1KoOJav5uLu D02zmoRJUxQzKxqa9X4SNCAZ3pVi1Jh/c4Hk3Un6uLHUVYHru/VyTeFYfmEqj7IFmygF 0Fhmh/Bf+2i66KhSWWx3DpDfGVw1TGAL7Qawy/mmsv4LDDJN7BeYz9XqeYPv9r3u19Kb JuVOLpEM/SrBmC1mg6QwpJCs7euuN+HmsZ8nOwYNOzqRLXCesUxauDrzbfQwp/bP7W8S ECxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DHZlh1Vz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62015-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62015-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCUzyNTOypNmcVDzGgOOm4s6ceXRjrEOUYbyhsN3zpvVnyuahlJ4cvASvG/A8UosfRFRud6Ii4AphIfTWEtpY9PzFJco8g== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gf20-20020a170906e21400b00a3c8bfd61b4si341112ejb.912.2024.02.12.08.55.35 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 08:55:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62015-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DHZlh1Vz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62015-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62015-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8911A1F2420F for <ouuuleilei@gmail.com>; Mon, 12 Feb 2024 16:55:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2213740C04; Mon, 12 Feb 2024 16:53:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DHZlh1Vz" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 28B103D3A8; Mon, 12 Feb 2024 16:53:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707756819; cv=none; b=DSPDbv/osGyaFEtXwpl8mm5Do7eKkksxaEnBbx8MY7tcR4QTkIDfi/Ubu/PRkUr2/nBAsP/bwpgDHwp+tHKLBobsoQ6aU7KbOULwtt12s2MpuZxiPCATRLLODPvkoUIYfT/6A0k30UFDtYkJYNXEgTd45PVUocTjjiDYveRv4MM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707756819; c=relaxed/simple; bh=52V8VIBZ6Aa9byRanT+AhHOKtM3PttwSwaL5Jh235Ts=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IQVsSAFQo+ur65RE7ayKQAv5tS5/P4OeQAOTjtJ0Eszh2bknkLAN1sGkO6L8qxMv+Fus7S5OdoxwyXw/Lc5zvDKYsZkhSADpnBVe4shr4wYezMGYf3yZo20fMx6zbtRpIl0kryADaIvLWpHUfao3Sm86vByXRwfBj0sqdtkmyUs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DHZlh1Vz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F34EC433F1; Mon, 12 Feb 2024 16:53:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707756818; bh=52V8VIBZ6Aa9byRanT+AhHOKtM3PttwSwaL5Jh235Ts=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DHZlh1VzVUm+VRt1myKtgo3wHiiHaxhk32t7JnMbWdCainbIcl+pQsRJnMuI4rSiU OAZh0osLEpPBdP4csdJyFjT4niZARt5zCXz4l+q1tIftgTFGKWyJtNjTW7/Kxz0CIk I2/Cz5aB7KQcawEUxbePuzGOe2lvXMpasBQNGaQUh+IFDTPzIXIbtJcUIxIPRcNZqm RzLANQTh45BhFaw/H/jb8WclJionZ9njZI9BEt1535qFQA8qm6FeqSYOPmvLFDxTHZ uqNHthowf632JN0sLPmY1j7wcxEIa79XKBJ26fRK7As0ed5vlhQ4xtbFEVEfrCoxWb nrbivMPGoCqww== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from <johan+linaro@kernel.org>) id 1rZZZ2-000000007N5-2R4q; Mon, 12 Feb 2024 17:53:52 +0100 From: Johan Hovold <johan+linaro@kernel.org> To: Bjorn Andersson <andersson@kernel.org>, Bjorn Helgaas <bhelgaas@google.com> Cc: Konrad Dybcio <konrad.dybcio@linaro.org>, Lorenzo Pieralisi <lpieralisi@kernel.org>, =?utf-8?q?Krzysztof_Wilczy=C5=84?= =?utf-8?q?ski?= <kw@linux.com>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold <johan+linaro@kernel.org> Subject: [PATCH 04/10] arm64: dts: qcom: sc8280xp-crd: limit pcie4 link speed Date: Mon, 12 Feb 2024 17:50:37 +0100 Message-ID: <20240212165043.26961-5-johan+linaro@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240212165043.26961-1-johan+linaro@kernel.org> References: <20240212165043.26961-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790712936807236984 X-GMAIL-MSGID: 1790712936807236984 |
Series |
arm64: dts: qcom: sc8280xp: enable GICv3 ITS for PCIe
|
|
Commit Message
Johan Hovold
Feb. 12, 2024, 4:50 p.m. UTC
Limit the WiFi PCIe link speed to Gen2 speed (500 GB/s), which is the
speed that Windows uses.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 2 ++
1 file changed, 2 insertions(+)
Comments
On 12.02.2024 17:50, Johan Hovold wrote: > Limit the WiFi PCIe link speed to Gen2 speed (500 GB/s), which is the MB/s > speed that Windows uses. > > Signed-off-by: Johan Hovold <johan+linaro@kernel.org> > --- Hm.. I'dve assumed it ships with a WLAN card that supports moving more bandwidth.. Is it always at gen2? Konrad
On Thu, Feb 15, 2024 at 09:47:01PM +0100, Konrad Dybcio wrote: > On 12.02.2024 17:50, Johan Hovold wrote: > > Limit the WiFi PCIe link speed to Gen2 speed (500 GB/s), which is the > > MB/s Indeed, thanks for spotting that. > > speed that Windows uses. > > > > Signed-off-by: Johan Hovold <johan+linaro@kernel.org> > > --- > > Hm.. I'dve assumed it ships with a WLAN card that supports moving > more bandwidth.. Is it always at gen2? I don't know how the Windows driver works, but the UEFI firmware has brought the link up at Gen2 and that's also what Windows reported when I checked. But I was not actually using the wifi when I did so. But yes, it seems we may be limiting the theoretical maximum data rate for the wifi this way. As this appears to fix wifi startup issue reported by one user, and allows us to enable ITS and AER reporting, perhaps that's acceptable until the Linux driver can manage to scale the link speed (or we figure out a more elaborate way of restarting the link at boot). The PCIe link errors could also indicate that the wifi can not be run any faster than this on these machines even if my guess is something is wrong with ASPM implementation. Hopefully Qualcomm will be able to shed some light on that. Johan
On Fri, Feb 16, 2024 at 08:12:46AM +0100, Johan Hovold wrote: > On Thu, Feb 15, 2024 at 09:47:01PM +0100, Konrad Dybcio wrote: > > On 12.02.2024 17:50, Johan Hovold wrote: > > > Limit the WiFi PCIe link speed to Gen2 speed (500 GB/s), which is the > > > > MB/s > > Indeed, thanks for spotting that. > > > > speed that Windows uses. > > Hm.. I'dve assumed it ships with a WLAN card that supports moving > > more bandwidth.. Is it always at gen2? > But yes, it seems we may be limiting the theoretical maximum data rate > for the wifi this way. It looks like the peak wifi speed for these chips is 3.6 Gbps, and it may be lower for the X13s (and in practice). So 500 MB/s should be more than enough. https://www.qualcomm.com/products/technology/wi-fi/fastconnect/fastconnect-6900 Johan
diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts index f34c572253f5..8c1fccf8847a 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts @@ -563,6 +563,8 @@ &pcie3a_phy { }; &pcie4 { + max-link-speed = <2>; + perst-gpios = <&tlmm 141 GPIO_ACTIVE_LOW>; wake-gpios = <&tlmm 139 GPIO_ACTIVE_LOW>;