2020-05-20 09:48:17

by Mika Penttilä

[permalink] [raw]
Subject: iwlwifi firmware loading problems, rk3399

Hi,

We have custom made, Rockchip rk3399 based board with a standard M.2
socket for wifi/bt card.

We have tried man different cards, like Intel 9260 and Intel AX200, but
are experiencing problems while loading the firmware.

  Failed to load firmware chunk!

etc. I have a little debugged and the problem seems that the interrupts
that acknowledges the load to proceed, is not coming, randomly.
I have tried many firmwares. Do you have any pointers where to look next?

Thanks,
Mika


2020-05-20 12:29:11

by Emmanuel Grumbach

[permalink] [raw]
Subject: Re: iwlwifi firmware loading problems, rk3399

>
> Hi,
>
> We have custom made, Rockchip rk3399 based board with a standard M.2
> socket for wifi/bt card.
>
> We have tried man different cards, like Intel 9260 and Intel AX200, but
> are experiencing problems while loading the firmware.
>
> Failed to load firmware chunk!
>
> etc. I have a little debugged and the problem seems that the interrupts
> that acknowledges the load to proceed, is not coming, randomly.
> I have tried many firmwares. Do you have any pointers where to look next?

I guess you need to debug your board :)
The interrupt is not coming, then.. there isn't much the driver can do.

>
> Thanks,
> Mika
>

2020-05-20 12:35:23

by Mika Penttilä

[permalink] [raw]
Subject: Re: iwlwifi firmware loading problems, rk3399



On 20.5.2020 15.27, Emmanuel Grumbach wrote:
>> Hi,
>>
>> We have custom made, Rockchip rk3399 based board with a standard M.2
>> socket for wifi/bt card.
>>
>> We have tried man different cards, like Intel 9260 and Intel AX200, but
>> are experiencing problems while loading the firmware.
>>
>> Failed to load firmware chunk!
>>
>> etc. I have a little debugged and the problem seems that the interrupts
>> that acknowledges the load to proceed, is not coming, randomly.
>> I have tried many firmwares. Do you have any pointers where to look next?
> I guess you need to debug your board :)
> The interrupt is not coming, then.. there isn't much the driver can do.

Well it does get interrupts, but stops getting them during fw loading at
some point which causes it to fail. I have seen similar posts while
googling and they are happening on x86/ubuntu and popular platforms. So
I'm afraid it is something with iwlwifi or its usage of MSIX or such.
The kernel version is 5.4.

>> Thanks,
>> Mika
>>

2020-05-20 13:02:29

by Emmanuel Grumbach

[permalink] [raw]
Subject: Re: iwlwifi firmware loading problems, rk3399

> > I guess you need to debug your board :)
> > The interrupt is not coming, then.. there isn't much the driver can do.
>
> Well it does get interrupts, but stops getting them during fw loading at
> some point which causes it to fail. I have seen similar posts while
> googling and they are happening on x86/ubuntu and popular platforms. So
> I'm afraid it is something with iwlwifi or its usage of MSIX or such.
> The kernel version is 5.4.

You can try to disable msix.
In iwl_pcie_set_interrupt_capa, just goto enable_msi.