From: Kalle Valo <kvalo@codeaurora.org>
To: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Amit Pundir <amit.pundir@linaro.org>,
Rob Herring <robh@kernel.org>,
Jeffrey Hugo <jeffrey.l.hugo@gmail.com>,
netdev@vger.kernel.org, linux-wireless@vger.kernel.org,
lkml <linux-kernel@vger.kernel.org>,
ath10k <ath10k@lists.infradead.org>,
Konrad Dybcio <konradybcio@gmail.com>,
dt <devicetree@vger.kernel.org>,
John Stultz <john.stultz@linaro.org>,
Jakub Kicinski <kuba@kernel.org>,
Sumit Semwal <sumit.semwal@linaro.org>,
David S Miller <davem@davemloft.net>
Subject: Re: [PATCH] ath10k: Introduce a devicetree quirk to skip host cap QMI requests
Date: Tue, 09 Feb 2021 10:10:44 +0200 [thread overview]
Message-ID: <87blctveyj.fsf@codeaurora.org> (raw)
In-Reply-To: <YCF5ZC/WMRefTRcQ@builder.lan> (Bjorn Andersson's message of "Mon, 8 Feb 2021 11:48:20 -0600")
Bjorn Andersson <bjorn.andersson@linaro.org> writes:
> On Mon 08 Feb 11:21 CST 2021, Kalle Valo wrote:
>
>> Amit Pundir <amit.pundir@linaro.org> writes:
>>
>> > Hi Kalle,
>> >
>> > On Mon, 7 Dec 2020 at 22:25, Kalle Valo <kvalo@codeaurora.org> wrote:
>> >>
>> >> This is firmware version specific, right? There's also enum
>> >> ath10k_fw_features which is embedded within firmware-N.bin, we could add
>> >> a new flag there. But that means that a correct firmware-N.bin is needed
>> >> for each firmware version, not sure if that would work out. Just
>> >> throwing out ideas here.
>> >
>> > Apologies for this late reply. I was out for a while.
>>
>> No worries.
>>
>> > If by that (the firmware version) you mean "QC_IMAGE_VERSION_STRING",
>> > then that may be a bit tricky. Pocophone F1 use the same firmware
>> > family version (WLAN.HL.2.0.XXX), used by Dragonboard 845c (which has
>> > Wi-Fi working upstream).
>>
>> I'm meaning the ath10k firmware meta data we have in firmware-N.bin
>> (N=2,3,4...) file. A quick summary:
>>
>> Every ath10k firmware release should have firmware-N.bin. The file is
>> created with this tool:
>>
>> https://github.com/qca/qca-swiss-army-knife/blob/master/tools/scripts/ath10k/ath10k-fwencoder
>>
>> firmware-N.bin contains various metadata, one of those being firmware
>> feature flags:
>>
>> enum ath10k_fw_features {
>> /* wmi_mgmt_rx_hdr contains extra RSSI information */
>> ATH10K_FW_FEATURE_EXT_WMI_MGMT_RX = 0,
>>
>> /* Firmware from 10X branch. Deprecated, don't use in new code. */
>> ATH10K_FW_FEATURE_WMI_10X = 1,
>>
>> [...]
>>
>> So what you could is add a new flag enum ath10k_fw_features, create a
>> new firmware-N.bin for your device and enable the flag on the firmware
>> releases for your device only.
>>
>> I don't know if this is usable, but one solution which came to my mind.
>
> It sounds quite reasonable to pass this using firmawre-N.bin instead of
> DT, however that would imply that we need to find firmware-N.bin in the
> device-specific directory, where we keep the wlanmdsp.mbn as well - and
> not under /lib/firmware/ath10k
>
> For other devices (e.g. ADSP, modem or wlanmdsp.mbn) we're putting these
> in e.g. /lib/firmware/qcom/LENOVO/81JL/ and specifies the location using
> a firmware-name property in DT.
Ah, I didn't realise that.
Actually I would like to have ath10k in control[1] of QMI/rproc firmware
loading as the firmware releases have different constraints, like the
issue we are now discussing. Ideally firmware-N.bin would contain all
firmware files, for example wlanmdsp.mbn, and from the meta data
ath10k/ath11k would know what version of the firmware interface should
be used.
I remember we discussed this briefly a year or two ago and there was no
easy solution, but I really wish we could find one. More these kind of
firmware interface incompatibilities will most likely pop up, also in
ath11k, so it would be great to find a clean and easily maneagable
solution.
[1] With control I mean that ath10k/ath11k can choose which firmware
should be loaded
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
WARNING: multiple messages have this Message-ID (diff)
From: Kalle Valo <kvalo@codeaurora.org>
To: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Amit Pundir <amit.pundir@linaro.org>,
Rob Herring <robh@kernel.org>,
Jeffrey Hugo <jeffrey.l.hugo@gmail.com>,
netdev@vger.kernel.org, linux-wireless@vger.kernel.org,
lkml <linux-kernel@vger.kernel.org>,
ath10k <ath10k@lists.infradead.org>,
Konrad Dybcio <konradybcio@gmail.com>,
dt <devicetree@vger.kernel.org>,
David S Miller <davem@davemloft.net>,
John Stultz <john.stultz@linaro.org>,
Jakub Kicinski <kuba@kernel.org>,
Sumit Semwal <sumit.semwal@linaro.org>
Subject: Re: [PATCH] ath10k: Introduce a devicetree quirk to skip host cap QMI requests
Date: Tue, 09 Feb 2021 10:10:44 +0200 [thread overview]
Message-ID: <87blctveyj.fsf@codeaurora.org> (raw)
In-Reply-To: <YCF5ZC/WMRefTRcQ@builder.lan> (Bjorn Andersson's message of "Mon, 8 Feb 2021 11:48:20 -0600")
Bjorn Andersson <bjorn.andersson@linaro.org> writes:
> On Mon 08 Feb 11:21 CST 2021, Kalle Valo wrote:
>
>> Amit Pundir <amit.pundir@linaro.org> writes:
>>
>> > Hi Kalle,
>> >
>> > On Mon, 7 Dec 2020 at 22:25, Kalle Valo <kvalo@codeaurora.org> wrote:
>> >>
>> >> This is firmware version specific, right? There's also enum
>> >> ath10k_fw_features which is embedded within firmware-N.bin, we could add
>> >> a new flag there. But that means that a correct firmware-N.bin is needed
>> >> for each firmware version, not sure if that would work out. Just
>> >> throwing out ideas here.
>> >
>> > Apologies for this late reply. I was out for a while.
>>
>> No worries.
>>
>> > If by that (the firmware version) you mean "QC_IMAGE_VERSION_STRING",
>> > then that may be a bit tricky. Pocophone F1 use the same firmware
>> > family version (WLAN.HL.2.0.XXX), used by Dragonboard 845c (which has
>> > Wi-Fi working upstream).
>>
>> I'm meaning the ath10k firmware meta data we have in firmware-N.bin
>> (N=2,3,4...) file. A quick summary:
>>
>> Every ath10k firmware release should have firmware-N.bin. The file is
>> created with this tool:
>>
>> https://github.com/qca/qca-swiss-army-knife/blob/master/tools/scripts/ath10k/ath10k-fwencoder
>>
>> firmware-N.bin contains various metadata, one of those being firmware
>> feature flags:
>>
>> enum ath10k_fw_features {
>> /* wmi_mgmt_rx_hdr contains extra RSSI information */
>> ATH10K_FW_FEATURE_EXT_WMI_MGMT_RX = 0,
>>
>> /* Firmware from 10X branch. Deprecated, don't use in new code. */
>> ATH10K_FW_FEATURE_WMI_10X = 1,
>>
>> [...]
>>
>> So what you could is add a new flag enum ath10k_fw_features, create a
>> new firmware-N.bin for your device and enable the flag on the firmware
>> releases for your device only.
>>
>> I don't know if this is usable, but one solution which came to my mind.
>
> It sounds quite reasonable to pass this using firmawre-N.bin instead of
> DT, however that would imply that we need to find firmware-N.bin in the
> device-specific directory, where we keep the wlanmdsp.mbn as well - and
> not under /lib/firmware/ath10k
>
> For other devices (e.g. ADSP, modem or wlanmdsp.mbn) we're putting these
> in e.g. /lib/firmware/qcom/LENOVO/81JL/ and specifies the location using
> a firmware-name property in DT.
Ah, I didn't realise that.
Actually I would like to have ath10k in control[1] of QMI/rproc firmware
loading as the firmware releases have different constraints, like the
issue we are now discussing. Ideally firmware-N.bin would contain all
firmware files, for example wlanmdsp.mbn, and from the meta data
ath10k/ath11k would know what version of the firmware interface should
be used.
I remember we discussed this briefly a year or two ago and there was no
easy solution, but I really wish we could find one. More these kind of
firmware interface incompatibilities will most likely pop up, also in
ath11k, so it would be great to find a clean and easily maneagable
solution.
[1] With control I mean that ath10k/ath11k can choose which firmware
should be loaded
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
next prev parent reply other threads:[~2021-02-09 8:11 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-25 18:29 [PATCH] ath10k: Introduce a devicetree quirk to skip host cap QMI requests Amit Pundir
2020-09-25 18:29 ` Amit Pundir
2020-09-26 0:00 ` Bjorn Andersson
2020-09-26 0:00 ` Bjorn Andersson
2020-09-29 19:08 ` Rob Herring
2020-09-29 19:08 ` Rob Herring
2020-09-30 11:09 ` Amit Pundir
2020-09-30 11:09 ` Amit Pundir
2020-10-29 13:40 ` Bjorn Andersson
2020-10-29 13:40 ` Bjorn Andersson
2020-11-03 7:48 ` Amit Pundir
2020-11-03 7:48 ` Amit Pundir
2020-11-24 17:51 ` Bjorn Andersson
2020-11-24 17:51 ` Bjorn Andersson
2020-12-07 16:55 ` Kalle Valo
2020-12-07 16:55 ` Kalle Valo
2021-02-02 11:11 ` Amit Pundir
2021-02-02 11:11 ` Amit Pundir
2021-02-08 17:21 ` Kalle Valo
2021-02-08 17:21 ` Kalle Valo
2021-02-08 17:48 ` Bjorn Andersson
2021-02-08 17:48 ` Bjorn Andersson
2021-02-09 8:10 ` Kalle Valo [this message]
2021-02-09 8:10 ` Kalle Valo
2021-05-20 11:47 ` Amit Pundir
2021-05-20 11:47 ` Amit Pundir
2025-03-04 18:43 ` David Heidelberg
2025-11-25 6:59 ` Paul Sajna
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=87blctveyj.fsf@codeaurora.org \
--to=kvalo@codeaurora.org \
--cc=amit.pundir@linaro.org \
--cc=ath10k@lists.infradead.org \
--cc=bjorn.andersson@linaro.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=jeffrey.l.hugo@gmail.com \
--cc=john.stultz@linaro.org \
--cc=konradybcio@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sumit.semwal@linaro.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.