Message ID | 20230320104658.22186-4-johan+linaro@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1144184wrt; Mon, 20 Mar 2023 03:57:13 -0700 (PDT) X-Google-Smtp-Source: AK7set/HYYdyV5/zvS5RE4bvxc9u5NACRjZWdFuwNlxvlG6SK/LCzt/PiZlB7Ez0Tv0wIvN4JHNy X-Received: by 2002:a17:90b:3e8d:b0:236:99c4:6096 with SMTP id rj13-20020a17090b3e8d00b0023699c46096mr18540674pjb.35.1679309833386; Mon, 20 Mar 2023 03:57:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679309833; cv=none; d=google.com; s=arc-20160816; b=FR52VtWARnfcgd0TVOwnDgn/B+cbbGSsR5RJFNZq9vRkh0a4s3yP3xkNQfty50TOKx ZxK49zx7TarbeixaIG46zObEC0ur9HweW1xGAz8D3zho9jy+PS0r+mSoVqYB7BoPIXXl pkbHg8ATQ4L4l1x1sutDQVvC2EGZQ26xN86CMpofjEM6sGYC8u7lj4EzCNI6hj1Er/h+ Cmr9TuQlIeNHUUp0KzvaH/2hCtIOKpGdJZb0PxxXYkRzrAY+8TuAxQXk+OxEszauto0w 9Z/6rLqyIDJPbQBql7NN215Vn6jP5+3rXyoQHDemDIr+Hq4gBUNbqX8JwZ6zyUIeSM1D ih5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BDGRGyeAJ43a9woU2SlZNVERr4vu+JQNlHP8vS6ptr0=; b=Ps6rT8IapesNF8MT5kp9TPF38fh15iWKUBebYQM3C+xxk6+laS+86p8lZugShN1H+5 k1r1IYvPXHzArAjsLgPjQGiyT/giVuwAGUJJlVlKDDXGcIaCS4Xt1EH5QhbnYIhysPcT CiDwgi17aE4m4WTfsY6m8X8O2WRhkuxFiGqsHRJas4bkK26wZY74lONvBiRYS5uXZmh+ dM2UF0YwwlzZktuS0jp/WfQeGIU3oBtOOIyS9a94r5Yr7V3EFIyN0HwcSOQVdAskmgOq nbfir5e7MIJc/jdB2zpF8wScT188lWYXCbCTw7ON+XrA6hRTLICv39Ko8gVMDOn4S7F6 NT+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pqE6oFvt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r6-20020a17090a690600b0023672f9f970si15844412pjj.5.2023.03.20.03.56.58; Mon, 20 Mar 2023 03:57:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pqE6oFvt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231173AbjCTKwS (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Mon, 20 Mar 2023 06:52:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230380AbjCTKvp (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 20 Mar 2023 06:51:45 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A52BCC0D; Mon, 20 Mar 2023 03:49:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A13C8B80E14; Mon, 20 Mar 2023 10:48:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C708C4339C; Mon, 20 Mar 2023 10:48:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679309288; bh=TfrBhlCQseTHJXPXBcl5b1+T9R2FW/TX2/AG/Cm/hAI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pqE6oFvtG38Ej2exQfy3v9PMKXNQxEZwOkXCAJOdemspvQMF9HFIp256o9KXfF3P0 abIoAZ0SKfffD1SBmE1YAO7QlhNQKXums8AWIb18qYG2VayVQ4zMDbBU+g2UFSJajY aQ/TVoRMv0kUhBc1GxenY2/d1gLzioMBAsqmfU0NJ9WWARtXKh8cCzFN0zkdW07CCq TvtIOHIk+Xirc6vRzhQP1m6a4e8jIHcyTyw6G244Bu4JchIVjcbuh6ewVUrldOBsQZ Xw9N24MDdQNJS0AMZTGV5Oq5OqVfqtCI+EBU5So14sCQp0ckMeKeDcMD2xL60jqJD9 aauetD5xC9FRw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from <johan+linaro@kernel.org>) id 1peD4z-0005nZ-8T; Mon, 20 Mar 2023 11:49:29 +0100 From: Johan Hovold <johan+linaro@kernel.org> To: Kalle Valo <kvalo@kernel.org>, Bjorn Andersson <andersson@kernel.org> Cc: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Andy Gross <agross@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold <johan+linaro@kernel.org> Subject: [PATCH 3/3] arm64: dts: qcom: sc8280xp-crd: add wifi calibration variant Date: Mon, 20 Mar 2023 11:46:58 +0100 Message-Id: <20230320104658.22186-4-johan+linaro@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230320104658.22186-1-johan+linaro@kernel.org> References: <20230320104658.22186-1-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760883987712465512?= X-GMAIL-MSGID: =?utf-8?q?1760883987712465512?= |
Series |
arm64: dts: qcom: sc8280xp-x13s: add wifi calibration variant
|
|
Commit Message
Johan Hovold
March 20, 2023, 10:46 a.m. UTC
Describe the bus topology for PCIe domain 6 and add the ath11k
calibration variant so that the board file (calibration data) can be
loaded.
Link: https://bugzilla.kernel.org/show_bug.cgi?id=216036
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
Comments
On 20.03.2023 11:46, Johan Hovold wrote: > Describe the bus topology for PCIe domain 6 and add the ath11k > calibration variant so that the board file (calibration data) can be > loaded. > > Link: https://bugzilla.kernel.org/show_bug.cgi?id=216036 > Signed-off-by: Johan Hovold <johan+linaro@kernel.org> > --- > arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts > index 90a5df9c7a24..5dfda12f669b 100644 > --- a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts Was mixing > +++ b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts this /\ [...] and this \/ > + qcom,ath11k-calibration-variant = "LE_X13S"; Intentional? Especially given Kalle's comment on bugzilla? Konrad > + }; > + }; > }; > > &pcie4_phy {
On Mon, Mar 20, 2023 at 11:50:30AM +0100, Konrad Dybcio wrote: > > > On 20.03.2023 11:46, Johan Hovold wrote: > > Describe the bus topology for PCIe domain 6 and add the ath11k > > calibration variant so that the board file (calibration data) can be > > loaded. > > > > Link: https://bugzilla.kernel.org/show_bug.cgi?id=216036 > > Signed-off-by: Johan Hovold <johan+linaro@kernel.org> > > --- > > arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 17 +++++++++++++++++ > > 1 file changed, 17 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts > > index 90a5df9c7a24..5dfda12f669b 100644 > > --- a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts > > > Was mixing > > +++ b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts > > this /\ > > [...] > > and this \/ > > + qcom,ath11k-calibration-variant = "LE_X13S"; > Intentional? Especially given Kalle's comment on bugzilla? Yes, it is intentional. The corresponding calibration data allows the wifi to be used on the CRD. I measure 150 MBits/s which may a bit lower than expected, but it's better than having no wifi at all. Johan
On 20.03.2023 11:55, Johan Hovold wrote: > On Mon, Mar 20, 2023 at 11:50:30AM +0100, Konrad Dybcio wrote: >> >> >> On 20.03.2023 11:46, Johan Hovold wrote: >>> Describe the bus topology for PCIe domain 6 and add the ath11k >>> calibration variant so that the board file (calibration data) can be >>> loaded. >>> >>> Link: https://bugzilla.kernel.org/show_bug.cgi?id=216036 >>> Signed-off-by: Johan Hovold <johan+linaro@kernel.org> >>> --- >>> arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 17 +++++++++++++++++ >>> 1 file changed, 17 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts >>> index 90a5df9c7a24..5dfda12f669b 100644 >>> --- a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts >> >> >> Was mixing >>> +++ b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts >> >> this /\ >> >> [...] >> >> and this \/ >>> + qcom,ath11k-calibration-variant = "LE_X13S"; >> Intentional? Especially given Kalle's comment on bugzilla? > > Yes, it is intentional. The corresponding calibration data allows the > wifi to be used on the CRD. I measure 150 MBits/s which may a bit lower > than expected, but it's better than having no wifi at all. OK, sounds great! Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Konrad > > Johan
On Mon, Mar 20, 2023 at 11:55:48AM +0100, Johan Hovold wrote: > On Mon, Mar 20, 2023 at 11:50:30AM +0100, Konrad Dybcio wrote: > > > > > > On 20.03.2023 11:46, Johan Hovold wrote: > > > Describe the bus topology for PCIe domain 6 and add the ath11k > > > calibration variant so that the board file (calibration data) can be > > > loaded. > > > > > > Link: https://bugzilla.kernel.org/show_bug.cgi?id=216036 > > > Signed-off-by: Johan Hovold <johan+linaro@kernel.org> > > > --- > > > arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 17 +++++++++++++++++ > > > 1 file changed, 17 insertions(+) > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts > > > index 90a5df9c7a24..5dfda12f669b 100644 > > > --- a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts > > > > > > Was mixing > > > +++ b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts > > > > this /\ > > > > [...] > > > > and this \/ > > > + qcom,ath11k-calibration-variant = "LE_X13S"; > > Intentional? Especially given Kalle's comment on bugzilla? > > Yes, it is intentional. The corresponding calibration data allows the > wifi to be used on the CRD. I measure 150 MBits/s which may a bit lower > than expected, but it's better than having no wifi at all. I was going back and forth about mentioning this in the commit message and we could off on this one until someone confirms that the corresponding calibration data can (or should) be used for the X13s. Note that there is no other match for 'bus=pci,vendor=17cb,device=1103,subsystem-vendor=17cb,subsystem-device=0108,qmi-chip-id=2,qmi-board-id=140' in the new board-2.bin. Johan
Johan Hovold <johan@kernel.org> writes: > On Mon, Mar 20, 2023 at 11:55:48AM +0100, Johan Hovold wrote: > >> On Mon, Mar 20, 2023 at 11:50:30AM +0100, Konrad Dybcio wrote: >> > >> > >> > On 20.03.2023 11:46, Johan Hovold wrote: >> > > Describe the bus topology for PCIe domain 6 and add the ath11k >> > > calibration variant so that the board file (calibration data) can be >> > > loaded. >> > > >> > > Link: https://bugzilla.kernel.org/show_bug.cgi?id=216036 >> > > Signed-off-by: Johan Hovold <johan+linaro@kernel.org> >> > > --- >> > > arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 17 +++++++++++++++++ >> > > 1 file changed, 17 insertions(+) >> > > >> > > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts >> > > b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts >> > > index 90a5df9c7a24..5dfda12f669b 100644 >> > > --- a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts >> > >> > >> > Was mixing >> > > +++ b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts >> > >> > this /\ >> > >> > [...] >> > >> > and this \/ >> > > + qcom,ath11k-calibration-variant = "LE_X13S"; >> > Intentional? Especially given Kalle's comment on bugzilla? >> >> Yes, it is intentional. The corresponding calibration data allows the >> wifi to be used on the CRD. I measure 150 MBits/s which may a bit lower >> than expected, but it's better than having no wifi at all. > > I was going back and forth about mentioning this in the commit message > and we could off on this one until someone confirms that the > corresponding calibration data can (or should) be used for the X13s. > > Note that there is no other match for > > 'bus=pci,vendor=17cb,device=1103,subsystem-vendor=17cb,subsystem-device=0108,qmi-chip-id=2,qmi-board-id=140' > > in the new board-2.bin. If the device in question is something else than Lenovo X13s, I would prefer that the variant is not set. Just in case we need different board files for different models. It's easy to add aliases to board-2.bin. I need to check internally what board file should be used for this CRD. If the speed is only 150 Mbit/s I suspect it needs a different board file.
On Mon, Mar 20, 2023 at 02:18:31PM +0200, Kalle Valo wrote: > Johan Hovold <johan@kernel.org> writes: > >> > > + qcom,ath11k-calibration-variant = "LE_X13S"; > >> > Intentional? Especially given Kalle's comment on bugzilla? > >> > >> Yes, it is intentional. The corresponding calibration data allows the > >> wifi to be used on the CRD. I measure 150 MBits/s which may a bit lower > >> than expected, but it's better than having no wifi at all. > > > > I was going back and forth about mentioning this in the commit message > > and we could off on this one until someone confirms that the > > corresponding calibration data can (or should) be used for the X13s. Hopefully clear from context, but that was supposed to say "CRD" and not "X13s"... > > Note that there is no other match for > > > > 'bus=pci,vendor=17cb,device=1103,subsystem-vendor=17cb,subsystem-device=0108,qmi-chip-id=2,qmi-board-id=140' > > > > in the new board-2.bin. > > If the device in question is something else than Lenovo X13s, I would > prefer that the variant is not set. Just in case we need different board > files for different models. It's easy to add aliases to board-2.bin. The sc8280xp CRD is the Qualcomm "compute" reference design for this platform and is very similar to the X13s but they are not identical. For ath11k and wcn6855, the CRD I have reports a chip_id of 2 and "hw2.0", while the X13s reports chip_id 18 and "hw2.1". The new board-2.bin notably adds two entries that match these chip_ids but with the variant specified as "LE_X13S" for both. > I need to check internally what board file should be used for this CRD. > If the speed is only 150 Mbit/s I suspect it needs a different board > file. Sounds good. Let's drop this one for now then. Johan
diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts index 90a5df9c7a24..5dfda12f669b 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts @@ -579,6 +579,23 @@ &pcie4 { pinctrl-0 = <&pcie4_default>; status = "okay"; + + pcie@0 { + device_type = "pci"; + reg = <0x0 0x0 0x0 0x0 0x0>; + #address-cells = <3>; + #size-cells = <2>; + ranges; + + bus-range = <0x01 0xff>; + + wifi@0 { + compatible = "pci17cb,1103"; + reg = <0x10000 0x0 0x0 0x0 0x0>; + + qcom,ath11k-calibration-variant = "LE_X13S"; + }; + }; }; &pcie4_phy {