From: Johan Hovold <johan@kernel.org>
To: Zijun Hu <quic_zijuhu@quicinc.com>
Cc: Marcel Holtmann <marcel@holtmann.org>,
Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
Bjorn Andersson <andersson@kernel.org>,
Steev Klimaszewski <steev@kali.org>,
Paul Menzel <pmenzel@molgen.mpg.de>,
Zijun Hu <zijun_hu@icloud.com>,
linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org,
Luiz Augusto von Dentz <luiz.von.dentz@intel.com>,
Bjorn Andersson <bjorande@quicinc.com>,
"Aiqun Yu (Maria)" <quic_aiquny@quicinc.com>,
Cheng Jiang <quic_chejiang@quicinc.com>,
Jens Glathe <jens.glathe@oldschoolsolutions.biz>,
stable@vger.kernel.org, Johan Hovold <johan+linaro@kernel.org>
Subject: Re: [PATCH v2] Bluetooth: qca: Support downloading board ID specific NVM for WCN6855
Date: Mon, 18 Nov 2024 13:43:27 +0100 [thread overview]
Message-ID: <Zzs2b6y-DPY3v8ty@hovoldconsulting.com> (raw)
In-Reply-To: <20241116-x13s_wcn6855_fix-v2-1-c08c298d5fbf@quicinc.com>
On Sat, Nov 16, 2024 at 07:49:23AM -0800, Zijun Hu wrote:
> For WCN6855, board ID specific NVM needs to be downloaded once board ID
> is available, but the default NVM is always downloaded currently, and
> the wrong NVM causes poor RF performance which effects user experience.
>
> Fix by downloading board ID specific NVM if board ID is available.
>
> Cc: Bjorn Andersson <bjorande@quicinc.com>
> Cc: Aiqun Yu (Maria) <quic_aiquny@quicinc.com>
> Cc: Cheng Jiang <quic_chejiang@quicinc.com>
> Cc: Johan Hovold <johan@kernel.org>
> Cc: Jens Glathe <jens.glathe@oldschoolsolutions.biz>
> Cc: Steev Klimaszewski <steev@kali.org>
> Cc: Paul Menzel <pmenzel@molgen.mpg.de>
Nit: These Cc tags should typically not be here in the commit message,
and should at least not be needed for people who git-send-email will
already include because of Tested-by and Reviewed-by tags.
If they help with your workflow then perhaps you can just put them below
the cut-off (---) line.
> Fixes: 095327fede00 ("Bluetooth: hci_qca: Add support for QTI Bluetooth chip wcn6855")
> Cc: stable@vger.kernel.org # 6.4
> Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
When making non-trivial changes, like the addition of the fallback NVM
feature in v2, you should probably have dropped any previous Reviewed-by
tags.
The fallback handling looks good to me though (and also works as
expected).
> Tested-by: Johan Hovold <johan+linaro@kernel.org>
> Tested-by: Steev Klimaszewski <steev@kali.org>
> Tested-by: Jens Glathe <jens.glathe@oldschoolsolutions.biz>
> Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
> Changes in v2:
> - Correct subject and commit message
> - Temporarily add nvm fallback logic to speed up backport.
> — Add fix/stable tags as suggested by Luiz and Johan
> - Link to v1: https://lore.kernel.org/r/20241113-x13s_wcn6855_fix-v1-1-15af0aa2549c@quicinc.com
> +download_nvm:
> err = qca_download_firmware(hdev, &config, soc_type, rom_ver);
> if (err < 0) {
> bt_dev_err(hdev, "QCA Failed to download NVM (%d)", err);
> + if (err == -ENOENT && boardid != 0 &&
> + soc_type == QCA_WCN6855) {
> + boardid = 0;
> + qca_get_hsp_nvm_name_generic(&config, ver,
> + rom_ver, boardid);
> + bt_dev_warn(hdev, "QCA fallback to default NVM");
> + goto download_nvm;
> + }
> return err;
If you think it's ok for people to continue using the wrong (default)
NVM file for a while still until their distros ship the board-specific
ones, then this looks good to me and should ease the transition:
[ 6.125626] Bluetooth: hci0: QCA Downloading qca/hpnv21g.b8c
[ 6.126730] bluetooth hci0: Direct firmware load for qca/hpnv21g.b8c failed with error -2
[ 6.126826] Bluetooth: hci0: QCA Failed to request file: qca/hpnv21g.b8c (-2)
[ 6.126894] Bluetooth: hci0: QCA Failed to download NVM (-2)
[ 6.126951] Bluetooth: hci0: QCA fallback to default NVM
[ 6.127003] Bluetooth: hci0: QCA Downloading qca/hpnv21g.bin
[ 6.309322] Bluetooth: hci0: QCA setup on UART is completed
Johan
next prev parent reply other threads:[~2024-11-18 12:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-16 15:49 Zijun Hu
2024-11-18 12:43 ` Johan Hovold [this message]
2024-11-19 2:13 ` quic_zijuhu
2024-11-19 7:10 ` Johan Hovold
2024-12-04 4:50 ` quic_zijuhu
2024-12-13 9:22 ` Johan Hovold
2025-01-13 9:24 ` Johan Hovold
2025-01-13 12:37 ` Zijun Hu
2025-01-13 13:55 ` Luiz Augusto von Dentz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Zzs2b6y-DPY3v8ty@hovoldconsulting.com \
--to=johan@kernel.org \
--cc=andersson@kernel.org \
--cc=bjorande@quicinc.com \
--cc=jens.glathe@oldschoolsolutions.biz \
--cc=johan+linaro@kernel.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=luiz.von.dentz@intel.com \
--cc=marcel@holtmann.org \
--cc=pmenzel@molgen.mpg.de \
--cc=quic_aiquny@quicinc.com \
--cc=quic_chejiang@quicinc.com \
--cc=quic_zijuhu@quicinc.com \
--cc=stable@vger.kernel.org \
--cc=steev@kali.org \
--cc=zijun_hu@icloud.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®