ATH10K Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Bisson <bisson.gary@gmail.com>
To: Kalle Valo <kvalo@kernel.org>
Cc: "Lukas F. Hartmann" <lukas@mntre.com>,
	ath10k@lists.infradead.org, gary.bisson@boundarydevices.com
Subject: Re: Problems with QCA9377 SDIO on NXP i.MX8MPlus SOM
Date: Tue, 13 Jun 2023 10:26:06 +0200	[thread overview]
Message-ID: <ZIgoHqP8gk5wdP8A@p1g2> (raw)
In-Reply-To: <87mt13eqit.fsf@kernel.org>

Hi Lukas & Kalle,

On Tue, Jun 13, 2023 at 11:05:14AM +0300, Kalle Valo wrote:
> 
> EXTERNAL EMAIL: Be careful with attachments and links.
> 
> "Lukas F. Hartmann" <lukas@mntre.com> writes:
> 
> > I'm trying to get the QCA9377 SDIO module on Boundary Devices'
> > i.MX8MPlus SOM working with the ath10k mainline driver (from Linux git
> > tip). Currently it can scan and see some APs and authenticate, but not
> > associate (timeout). Several months ago I thought this was an SDIO
> > signalling issue with the SoC, but I'm not sure anymore, because I fixed
> > up the qcacld driver for the current Linux kernel and it works fine on
> > the same system (i.e. I can rmmod ath10k_sdio and insmod wlan.ko and it
> > works).
> >
> > I wonder if it is some kind of firmware/driver mismatch. I pasted the
> > relevant dmesg output after my signature below.
> >
> > This is after I tried to build my own board-2.bin including bdwlan30.bin
> > from qcacld-2.0-CNSS.LEA.NRT_3.0 (source:
> > https://github.com/8devices/qcacld-2.0/tree/CNSS.LEA.NRT_3.0/firmware_bin/sdio).
> > It gets picked up but doesn't seem to make a difference. I also tried
> > assembling my own firmware-5-sdio.bin from qwlan30.bin and otp30.bin but
> > this triggers a firmware crash (with register dump) when loading
> > ath10k_sdio.ko.

As far as I know, the ath10k driver only supports (deprecated) LEH
firmware [1]. That is information I got a long time ago and I can't seem
to find the email back. But basically what I was told is that the LEH &
LEA firmwares had different frames format to exchange data between the
host and the chip, therefore drivers & firmware have to match.
And at that time I was told that ath10k only supported the LEH firmware
for SDIO, which is why we haven't invested much time on it as LEH
firmware is 1) old/deprecated as qcom hasn't updated it for 6 years now
and 2) it contains bugs affecting the performance in our case (diversity
not working etc).

Since I don't have the insight info about the LEA vs. LEH firmware
behavior I'm afraid I can't help much but at least I would say that
trying LEA firmware on ath10k driver is expected to fail (timeout).

Maybe Kalle have more info on the matter and maybe the above doesn't
apply any more and ath10k has evolved to support LEA firmware.

> > The qcacld driver works with that firmware, though.
> >
> > Any pointers on how to debug this are most appreciated.
> 
> Trying significantly older ath10k from an older kernel is something to
> try in case there are recent regressions in ath10k.
> 
> I don't have an ath10k SDIO device myself so I don't know the state of
> SDIO support in ath10k. Does anyone else from the list know?

FYI we have a branch in our repo with the firmware that worked on ath10k
at some point [2].

Regards,
Gary

[1] https://github.com/boundarydevices/qca-firmware/tree/bd-sdmac-qcacld
[2] https://github.com/boundarydevices/qca-firmware/tree/bd-sdmac-ath10k

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

  reply	other threads:[~2023-06-13  8:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-12 19:59 Problems with QCA9377 SDIO on NXP i.MX8MPlus SOM Lukas F. Hartmann
2023-06-13  8:05 ` Kalle Valo
2023-06-13  8:26   ` Gary Bisson [this message]
2023-06-13 15:35     ` Lukas F. Hartmann
2023-09-04 14:28       ` Bastian Krause
2023-09-05  5:58         ` w.wadepohl

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=ZIgoHqP8gk5wdP8A@p1g2 \
    --to=bisson.gary@gmail.com \
    --cc=ath10k@lists.infradead.org \
    --cc=gary.bisson@boundarydevices.com \
    --cc=kvalo@kernel.org \
    --cc=lukas@mntre.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