Kernel 6.1.0 breaks WiFi

Which Khadas SBC do you use?

Vim3 Pro

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu 22.04 LTS

Which version of system do you use? Khadas official images, self built images, or others?

Khadas official image, installed with OOWOW

Please describe your issue below:

WiFi support on the VIM3 has always been poor. As soon as some larger download is going on, the Kernel load spikes to 4 or even higher and latency of any other traffic (ping, ssh) becomes painfully slooow. But at least, it was working until Linux Kernel 6.0.0.

Now with Kernel 6.1.0, when there is a larger download, the device becomes effectively offline - it doesn’t even respond to a ping anymore. Unfortunately, it also doesn’t seem to recover. However, the device is not crashed - I can still login to the console.

Is this a known problem or am I the first to report it? I couldn’t find related posts in this forum.

Yes there is an regression in upstream kernel aince 6.1

We have reverted the patch which causes this issue.

Here is the patch which we use.

It fixes the sdio dying after few mins of use.

Khadas team will have to add this patch.

Currently the team is on holiday so they should do it after the holidays.

Good luck.

1 Like

Does this also affect the VIM4 or even the Edge2? I’m going to start evaluating these board this week.

Only Amlogic devices which use mainline kernel.
Vim4 and Edge2 is not affected as that dont use Mainline kernel.
Only vim 1 - 3/3l I guess

VIM4 is an Amlogic A311D2, so my educated guess would be yes?! Or are you saying VIM4 doesn’t have mainline Kernel, so it’s not affected?

Yes, since those devices are not on the mainline kernel, they won’t be affected by the issue.

1 Like

How about configure to out-of-band interrupt for wifi ?

I see the amlogic vendor kernel 4.9 use it
and interrupt GPIO is GPIOX_7 defined in dts file

The mainline kernel use “MMC_CAP_SDIO_IRQ”
that’s in-band interrupt for wifi by sdio_data[1] pin

I think the two way interrupt cause wifi performance , I guess …

1 Like