[PATCH] ath10k: Add interrupt summary based CE processing

Doug Anderson dianders at chromium.org
Wed Aug 26 10:54:17 EDT 2020


On Wed, Aug 26, 2020 at 7:44 AM Kalle Valo <kvalo at codeaurora.org> wrote:
> (Guys, PLEASE edit your quotes. These long emails my use of patchwork
> horrible.)
> "Rakesh Pillai" <pillair at codeaurora.org> writes:
> >> -----Original Message-----
> >> From: Peter Oh <peter.oh at eero.com>
> >> Sent: Tuesday, July 21, 2020 7:03 AM
> >> To: Kalle Valo <kvalo at codeaurora.org>
> >> Cc: Brian Norris <briannorris at chromium.org>; Doug Anderson
> >> <dianders at chromium.org>; linux-wireless <linux-
> >> wireless at vger.kernel.org>; Rakesh Pillai <pillair at codeaurora.org>; ath10k
> >> <ath10k at lists.infradead.org>; LKML <linux-kernel at vger.kernel.org>
> >> Subject: Re: [PATCH] ath10k: Add interrupt summary based CE processing
> >>
> >> I'll take my word back.
> >> It's not this patch problem, but by others.
> >> I have 2 extra patches before the 3 patches so my system looks like
> >>
> >> backports from ath.git 5.6-rc1 + linux kernel 4.4 (similar to OpenWrt)
> >> On top of the working system, I cherry-picked these 5.
> >>
> >> #1.
> >> ath10k: Avoid override CE5 configuration for QCA99X0 chipsets
> >> ath.git commit 521fc37be3d879561ca5ab42d64719cf94116af0
> >> #2.
> >> ath10k: Fix NULL pointer dereference in AHB device probe
> >> wireless-drivers.git commit 1cfd3426ef989b83fa6176490a38777057e57f6c
> >> #3.
> >> ath10k: Add interrupt summary based CE processing
> >> https://patchwork.kernel.org/patch/11628299/
> >
> > This patch is applicable only for snoc target WCN3990, since there is
> > a check for per_ce_irq. For PCI targets, per_ce_irq is false, and
> > hence follows a different path.
> This information should be in the commit log. But I have a patch in the
> pending branch which removes per_ce_irq:
> [v2,2/2] ath10k: Get rid of "per_ce_irq" hw param
> https://patchwork.kernel.org/patch/11654621/
> So how will multilple hardware support work then?

In theory my patches and Rakesh's patches could be squashed.  His
patch made things marginally better but still didn't really address
the root cause.  When addressing the root cause, I ended up deleting
most of the code that he introduced.  I think it'd be fine to just
apply all 3 patches (Rakesh's plus my 2) and the end result will be
good, but if desired either Rakesh or I could post a squashed series.

> In theory I like the patch but there's no information in the patch if
> this works or breaks other hardware, especially QCA9884 or QCA6174 PCI
> devices. I really need some kind of assurance that this works with all
> ath10k devices, not just WCN3990 which you are working on.
> I have written about this in the wiki:
> https://wireless.wiki.kernel.org/en/users/drivers/ath10k/submittingpatches#hardware_families

The end result is that it should only affect "wcn3990-wifi", which is
what this was tested on.  Specifically you can see that "snoc.c" only
includes one compatible string: "qcom,wcn3990-wifi".  You can also see
that the only place that has "per_ce_irq" set to true is


More information about the ath10k mailing list