ath11k - pci - backports/.config issue

Janusz Dziedzic janusz.dziedzic at gmail.com
Fri Oct 22 00:19:58 PDT 2021


czw., 21 paź 2021 o 23:00 Robert Marko <robimarko at gmail.com> napisał(a):
>
> On Thu, 21 Oct 2021 at 22:54, Hauke Mehrtens <hauke at hauke-m.de> wrote:
> >
> > On 10/21/21 6:52 PM, Robert Marko wrote:
> > > On Thu, 21 Oct 2021 at 18:30, Janusz Dziedzic <janusz.dziedzic at gmail.com> wrote:
> > >>
> > >> czw., 21 paź 2021 o 17:54 Robert Marko <robimarko at gmail.com> napisał(a):
> > >>>
> > >>> For PCI/USB bus level support there are per target feature flags that are set and then you can check if those are set so that you cant even select usb wlan driver if the target doesnt even have usb support enabled.
> > >>>
> > >> OK I see. Seems I can select all required kernel parts except:
> > >> QCOM_QMI_HELPERS - which is slected when ath11k/mac80211 - and we get
> > >> this from backports :)
> > >>
> > >> ATH11K [=n] && NETDEVICES [=y] && WLAN [=y] && WLAN_VENDOR_ATH [=y] &&
> > >> MAC80211 [=n] && HAS_DMA [=y] && CRYPTO_MICHAEL_MIC [=y]
> > >>
> > >> Seems kernel patch required to choose it manaully.
> > >
> > > Yes, I had to add text to the tristate as otherwise its hidden.
> > >
> > > Regards,
> > > Robert
> >
> > You can create kmod packages for the kernel modules build by MHI_BUS,
> > QRTR, QCOM_QMI_HELPERS and whatever you need. Then the ath11k package in
> > OpenWrt selects them and it should build on all targets.
>
> Yeah, that is my plan to package it in a target agnostic way.
> Just lacking the time to do it.
> >
> > We already added a title text to other configuration symbols, see
> > target/linux/generic/hack-5.10/251-kconfig.patch
> >
> > The hard part is known which patches to backport in addition. ;-)
>
> I have identified a couple that are must have, but I am sure more will pop up.
>

Finally added all packages to kernel and build correctly. Also load correctly:

[  162.361441] ath11k_pci 0000:01:00.0: assign IRQ: got 0
[  162.366922] ath11k_pci 0000:01:00.0: BAR 0: assigned [mem
0x20000000-0x20ffffff 64bit]
[  162.380001] ath11k_pci 0000:01:00.0: enabling device (0000 -> 0002)
[  162.386358] ath11k_pci 0000:01:00.0: enabling bus mastering
[  162.392043] ath11k_pci 0000:01:00.0: failed to get 32 MSI vectors,
only -28 available
[  162.399927] ath11k_pci 0000:01:00.0: failed to enable msi: -28
[  162.405778] ath11k_pci 0000:01:00.0: disabling bus mastering
[  162.411481] ath11k_pci: probe of 0000:01:00.0 failed with error -28

Seems other ath11k patch will be required, while MSI failed to get 32 vectors

> Regards,
> Robert
> >
> > Hauke




--
Janusz Dziedzic



More information about the openwrt-devel mailing list