Jump to content

ath10k on clearfog - bug


oli

Recommended Posts

i had contact with some devs regarding this problem:

 

[root@alarm alarm]# rmmod ath10k_pci 

[root@alarm alarm]# modprobe ath10k_pci
[  597.613290] ath10k_pci 0000:02:00.0: Refused to change power state, currently in D3
[  597.651254] ath10k_pci 0000:02:00.0: failed to wake up device : -110
[  597.657727] ath10k_pci: probe of 0000:02:00.0 failed with error -110
 

 

Compex cards (wle600 and wle900) do not work on kernel 4.4.x without changes. The answer i got is:

 

Hi,


On 21 October 2016 at 18:25, Oliver Z wrote:

> The problem is gone with kernel 4.7.3 on armbian - both compex cards work

> (wle600, wle900),

Interesting to know this issue isn't present in 4.7 - I also
encountered it in 4.4 with LEDE.

> unfortunately that kernel does not support sfp (seems like

> its kind of proprietary drivers from clearfog).

They aren't really proprietary, they are proper patches that were
submitted as RFC once, so it shouldn't be much effort to port them to
e.g. 4.7. Anyways ...

> So its a driver issue but i

> have no clue who to contact or where to file a bug report. The only

> available kernel which supports sfp (from solidrun, vendor of the clearfog

> board) is 4.4.23


> I am wondering if i could simply checkout the 4.4.x sources, merge the

> atheros drivers in it and try to rebuild the kernel?

the issue seems to be that MSI interrupts do not work on 4.4 (at least
with ath10k, didn't have any other drivers that support it to test).
Your options are either to disable support for them in the kernel
config, or pass irq_mode=1 to ath10k_pci on probe to force legacy
interrupts; it should work then properly.


Regards
Jonas

 

Maybe someone could fix that? Would be really nice! I have no idea how to do that with the irq_mode 

Link to comment
Share on other sites

Yes, it should be.

 

All upstream fixes are in Armbian nighty kernel build in less then 24h but you need to switch to DEV kernel + dtb in beta repository - details.

 

BTW: I only have ath9 cards around and they used to had problems too. I have to check if this is also resolved ...

Link to comment
Share on other sites

Are you trying to install a mpcie raid card? For me, this looks like a bug. I would try it with solidrun's support. They fixed a bug for wifi pcie cards with state-switches (d2 did not got wake up or so...) 

Link to comment
Share on other sites

Are you trying to install a mpcie raid card?

No, I tried a wireless card (BCM94312, don't have logs for it, but error messages about of_irq_parse_pci() and stuff were similar), and Igor tried some wireless cards too AFAIK. For me this card works on mainline (next branch), and mainline kernel works well enough in general (apart from some NetworkManager / SFP related bug, but I didn't have time to investigate this properly).

 

Edit: After checking kernel sources it looks like of_irq_parse_pci() stuff is not an actual error, I'll have to investigate PCIe issues further.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines