From: Christian Lamparter <chunkeey@googlemail.com>
To: Sven Eckelmann <sven.eckelmann@openmesh.com>
Cc: Adrian Chadd <adrian@freebsd.org>,
"ath10k@lists.infradead.org" <ath10k@lists.infradead.org>,
"Valo, Kalle" <kvalo@qca.qualcomm.com>,
"michal.kazior@tieto.com" <michal.kazior@tieto.com>,
ext.waldemar.rymarkiewicz@tieto.com,
"simon.wunderlich@openmesh.com" <simon.wunderlich@openmesh.com>
Subject: Re: QCA4019: calibration files and board files
Date: Thu, 09 Mar 2017 14:11:04 +0100 [thread overview]
Message-ID: <3868483.qRteKqzzW4@debian64> (raw)
In-Reply-To: <2093425.PaQnjOtWUV@bentobox>
On Thursday, March 9, 2017 1:46:00 PM CET Sven Eckelmann wrote:
> On Donnerstag, 9. März 2017 11:51:13 CET Valo, Kalle wrote:
> [...]
> > I haven't followed the discussion very closely, so I might be way off,
> > but for laptop SMBIOS implementations Waldemar added a variant field to
> > board-2.bin so that we can have multiple images for the same subsystem
> > id. Could it help here also?
> >
> > https://git.kernel.org/cgit/linux/kernel/git/kvalo/ath.git/commit/
> > ?h=ath-next&id=1657b8f84ed9fc1d2a100671f1d42d6286f20073
>
> Thanks for the pointer.
I've added Waldemar.
From what I can tell, adding something like a variant to the bmi-id would
help. I looked at the patch note and it strikes me a bit odd that the
used variant was a non-descriptive "DE_1AB" string? Isn't this bit arbitrary?
What is encoded in these variant strings? Are these variants "unique"?
Who will distribute these special board-2.bin that contain all the
different variants?
Also the patch says that if the variant isn't found, it will fall back to
the default. In case of the Asus RT-AC58U, this will not really work.
From what I can tell, ASUS added a PA chip and 5 dBi Antennas. They had to
redo the calibration and ended up with different values for the PA, AGC,
Edges, Slobes, the lot... However, they kept the the project/customer id.
So the board-2.bin found on codeaurora and in the ath10k-repository will
not work.
>
> I also saw this morning but haven't invested a lot of time when I saw it. But
> let's play around with some ideas around "variant". Maybe someone else has
> some better ideas or comments.
>
> The information about the variant has to come from somewhere. Currently, the
> OTP binary is returning only the bmi-chip-id and bmi-board-id. There doesn't
> seem to be any "project"/"customer" id returned by it (even when it exists in
> the EEPROM). And even when there would be, the already existing devices don't
> seem to have it and i don't know if QCA actually allocates them for customers.
> I would therefore postpone the use of pre-cal data to generate the the variant
> string for now (but I will ask the ODM to get some info from QCA).
>
> Let us see how the SMBIOS does it. dmi_walk is used to go through the entries
> and search for the entry. We don't have this here. So let's check what we have
> with the QCA4019
>
> This looks at least like a doable thing with the device tree. It must be a
> string but this can easily be stored in the device tree itself.
>
> The RT-AC58U could therefore have following entries:
>
> wifi@a000000 {
> status = "okay";
> qcom,ath10k-calibration-variant = "RT-AC58U";
> };
>
> wifi@a800000 {
> status = "okay";
> qcom,ath10k-calibration-variant = "RT-AC58U";
> };
>
> Some code has to be added to ath10k_core_probe_fw. I can prepare this later
> (when I find the time).
>
> The board-2.bin would then require entries for bus=ahb,bmi-chip-id=0,bmi-
> board-id=16,variant=RT-AC58U and bus=ahb,bmi-chip-id=0,bmi-board-
> id=17,variant=RT-AC58U.
This brings up a issue: Who will distribute these board-2.bin?
I would prefer them being added to the codeaurora or the
ath10k-firmware repository. Will this be possible?
Thanks,
Christian
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
next prev parent reply other threads:[~2017-03-09 13:11 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-17 11:54 QCA4019: calibration files and board files Sven Eckelmann
2017-01-23 8:30 ` Sven Eckelmann
2017-01-30 16:36 ` Adrian Chadd
2017-01-31 10:12 ` Sven Eckelmann
2017-03-07 9:54 ` Sven Eckelmann
2017-03-07 16:30 ` Adrian Chadd
2017-03-09 10:59 ` Sven Eckelmann
2017-03-09 11:51 ` Valo, Kalle
2017-03-09 12:46 ` Sven Eckelmann
2017-03-09 12:54 ` Sven Eckelmann
2017-03-09 13:11 ` Christian Lamparter [this message]
2017-03-09 14:18 ` Waldemar Rymarkiewicz
2017-03-09 16:11 ` Adrian Chadd
2017-02-08 11:03 ` Sven Eckelmann
2017-02-09 10:26 ` akolli
2017-02-09 10:44 ` Adrian Chadd
2017-02-28 7:58 ` Sven Eckelmann
2017-03-01 3:22 ` Rajkumar Manoharan
2017-03-01 7:32 ` Sven Eckelmann
2017-03-01 12:51 ` Christian Lamparter
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=3868483.qRteKqzzW4@debian64 \
--to=chunkeey@googlemail.com \
--cc=adrian@freebsd.org \
--cc=ath10k@lists.infradead.org \
--cc=ext.waldemar.rymarkiewicz@tieto.com \
--cc=kvalo@qca.qualcomm.com \
--cc=michal.kazior@tieto.com \
--cc=simon.wunderlich@openmesh.com \
--cc=sven.eckelmann@openmesh.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