2019-06-08 12:29:31

by g.schlmm

[permalink] [raw]
Subject: rtw88: M.2 RTL8822BE not working - rfe 3 isn't supported

my RTL8822BE M.2 card is not working with linux 5.2rc3

the staging r8822be driver in linux 5.1 was working for this card

from dmesg:
> [ 8.001186] rtw_pci 0000:04:00.0: rfe 3 isn't supported
> [ 8.003870] rtw_pci 0000:04:00.0: failed to setup chip efuse info
> [ 8.006405] rtw_pci 0000:04:00.0: failed to setup chip information

lspci:
> 04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter
> Subsystem: Lenovo RTL8822BE 802.11a/b/g/n/ac WiFi adapter
> Flags: fast devsel, IRQ 19
> I/O ports at c000 [size=256]
> Memory at 81200000 (64-bit, non-prefetchable) [size=64K]
> Capabilities: [40] Power Management version 3
> Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
> Capabilities: [70] Express Endpoint, MSI 00
> Capabilities: [100] Advanced Error Reporting
> Capabilities: [148] Device Serial Number 00-e0-4c-ff-fe-b8-22-01
> Capabilities: [158] Latency Tolerance Reporting
> Capabilities: [160] L1 PM Substates
> Kernel modules: rtwpci


2019-06-12 09:25:45

by Stanislaw Gruszka

[permalink] [raw]
Subject: Re: rtw88: M.2 RTL8822BE not working - rfe 3 isn't supported

Cc Tony

On Sat, Jun 08, 2019 at 02:26:51PM +0200, g.schlmm wrote:
> my RTL8822BE M.2 card is not working with linux 5.2rc3
>
> the staging r8822be driver in linux 5.1 was working for this card
>
> from dmesg:
> > [ 8.001186] rtw_pci 0000:04:00.0: rfe 3 isn't supported
> > [ 8.003870] rtw_pci 0000:04:00.0: failed to setup chip efuse info
> > [ 8.006405] rtw_pci 0000:04:00.0: failed to setup chip information
>
> lspci:
> > 04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter
> > Subsystem: Lenovo RTL8822BE 802.11a/b/g/n/ac WiFi adapter
> > Flags: fast devsel, IRQ 19
> > I/O ports at c000 [size=256]
> > Memory at 81200000 (64-bit, non-prefetchable) [size=64K]
> > Capabilities: [40] Power Management version 3
> > Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
> > Capabilities: [70] Express Endpoint, MSI 00
> > Capabilities: [100] Advanced Error Reporting
> > Capabilities: [148] Device Serial Number 00-e0-4c-ff-fe-b8-22-01
> > Capabilities: [158] Latency Tolerance Reporting
> > Capabilities: [160] L1 PM Substates
> > Kernel modules: rtwpci

2019-06-14 08:25:45

by Tony Chuang

[permalink] [raw]
Subject: RE: rtw88: M.2 RTL8822BE not working - rfe 3 isn't supported

> Subject: Re: rtw88: M.2 RTL8822BE not working - rfe 3 isn't supported
>
> Cc Tony
>
> On Sat, Jun 08, 2019 at 02:26:51PM +0200, g.schlmm wrote:
> > my RTL8822BE M.2 card is not working with linux 5.2rc3
> >
> > the staging r8822be driver in linux 5.1 was working for this card
> >
> > from dmesg:
> > > [ 8.001186] rtw_pci 0000:04:00.0: rfe 3 isn't supported
> > > [ 8.003870] rtw_pci 0000:04:00.0: failed to setup chip efuse info
> > > [ 8.006405] rtw_pci 0000:04:00.0: failed to setup chip information
> >
> > lspci:
> > > 04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd.
> RTL8822BE 802.11a/b/g/n/ac WiFi adapter
> > > Subsystem: Lenovo RTL8822BE 802.11a/b/g/n/ac WiFi adapter
> > > Flags: fast devsel, IRQ 19
> > > I/O ports at c000 [size=256]
> > > Memory at 81200000 (64-bit, non-prefetchable) [size=64K]
> > > Capabilities: [40] Power Management version 3
> > > Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
> > > Capabilities: [70] Express Endpoint, MSI 00
> > > Capabilities: [100] Advanced Error Reporting
> > > Capabilities: [148] Device Serial Number
> 00-e0-4c-ff-fe-b8-22-01
> > > Capabilities: [158] Latency Tolerance Reporting
> > > Capabilities: [160] L1 PM Substates
> > > Kernel modules: rtwpci
>

Hi,

Please use the attached patch. And RFE type 3 has not been well tested,
I am not sure if the quality is expected. But it should work fine I guess.
If there is any further problems, just tell me, thanks.

Yan-Hsuan


Attachments:
0001-rtw88-8822b-add-RFE-type-3-support.patch (17.36 kB)
0001-rtw88-8822b-add-RFE-type-3-support.patch

2019-06-15 12:53:10

by g.schlmm

[permalink] [raw]
Subject: Re: rtw88: M.2 RTL8822BE not working - rfe 3 isn't supported

On 14.06.19 10:24, Tony Chuang wrote:
>> Subject: Re: rtw88: M.2 RTL8822BE not working - rfe 3 isn't supported
>>
>> Cc Tony
>>
>> On Sat, Jun 08, 2019 at 02:26:51PM +0200, g.schlmm wrote:
>>> my RTL8822BE M.2 card is not working with linux 5.2rc3
>>>
>>> the staging r8822be driver in linux 5.1 was working for this card
>>>
>>> from dmesg:
>>>> [ 8.001186] rtw_pci 0000:04:00.0: rfe 3 isn't supported
>>>> [ 8.003870] rtw_pci 0000:04:00.0: failed to setup chip efuse info
>>>> [ 8.006405] rtw_pci 0000:04:00.0: failed to setup chip information
>>>
>>> lspci:
>>>> 04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd.
>> RTL8822BE 802.11a/b/g/n/ac WiFi adapter
>>>> Subsystem: Lenovo RTL8822BE 802.11a/b/g/n/ac WiFi adapter
>>>> Flags: fast devsel, IRQ 19
>>>> I/O ports at c000 [size=256]
>>>> Memory at 81200000 (64-bit, non-prefetchable) [size=64K]
>>>> Capabilities: [40] Power Management version 3
>>>> Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
>>>> Capabilities: [70] Express Endpoint, MSI 00
>>>> Capabilities: [100] Advanced Error Reporting
>>>> Capabilities: [148] Device Serial Number
>> 00-e0-4c-ff-fe-b8-22-01
>>>> Capabilities: [158] Latency Tolerance Reporting
>>>> Capabilities: [160] L1 PM Substates
>>>> Kernel modules: rtwpci
>>
>
> Hi,
>
> Please use the attached patch. And RFE type 3 has not been well tested,
> I am not sure if the quality is expected. But it should work fine I guess.
> If there is any further problems, just tell me, thanks.
>
> Yan-Hsuan
>

Hello,

Thanks for the patch. i applied it on top of 5.2rc4 and everything is
playing nice so far.

i use the card as a hotspot with hostapd

the download speed changed from ~10Mbit/s (with the 5.1 staging driver)
to ~100Mbit/s

very nice work!

2019-10-14 13:00:25

by g.schlmm

[permalink] [raw]
Subject: Re: rtw88: M.2 RTL8822BE not working - rfe 3 isn't supported

On 14.06.19 10:24, Tony Chuang wrote:
>> Subject: Re: rtw88: M.2 RTL8822BE not working - rfe 3 isn't supported
>>
>> Cc Tony
>>
>> On Sat, Jun 08, 2019 at 02:26:51PM +0200, g.schlmm wrote:
>>> my RTL8822BE M.2 card is not working with linux 5.2rc3
>>>
>>> the staging r8822be driver in linux 5.1 was working for this card
>>>
>>> from dmesg:
>>>> [ 8.001186] rtw_pci 0000:04:00.0: rfe 3 isn't supported
>>>> [ 8.003870] rtw_pci 0000:04:00.0: failed to setup chip efuse info
>>>> [ 8.006405] rtw_pci 0000:04:00.0: failed to setup chip information
>>>
>>> lspci:
>>>> 04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd.
>> RTL8822BE 802.11a/b/g/n/ac WiFi adapter
>>>> Subsystem: Lenovo RTL8822BE 802.11a/b/g/n/ac WiFi adapter
>>>> Flags: fast devsel, IRQ 19
>>>> I/O ports at c000 [size=256]
>>>> Memory at 81200000 (64-bit, non-prefetchable) [size=64K]
>>>> Capabilities: [40] Power Management version 3
>>>> Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
>>>> Capabilities: [70] Express Endpoint, MSI 00
>>>> Capabilities: [100] Advanced Error Reporting
>>>> Capabilities: [148] Device Serial Number
>> 00-e0-4c-ff-fe-b8-22-01
>>>> Capabilities: [158] Latency Tolerance Reporting
>>>> Capabilities: [160] L1 PM Substates
>>>> Kernel modules: rtwpci
>>
>
> Hi,
>
> Please use the attached patch. And RFE type 3 has not been well tested,
> I am not sure if the quality is expected. But it should work fine I guess.
> If there is any further problems, just tell me, thanks.
>
> Yan-Hsuan
>

Hi,

the above patch doesnt apply anymore on newer kernel sources.
can we except to see rfe type 3 support in the mainline kernel?
what can i do to help testing, if testing is still needed?

thanx

2019-10-15 05:36:43

by Tony Chuang

[permalink] [raw]
Subject: RE: rtw88: M.2 RTL8822BE not working - rfe 3 isn't supported

> From: g.schlmm
>
> On 14.06.19 10:24, Tony Chuang wrote:
> >> Subject: Re: rtw88: M.2 RTL8822BE not working - rfe 3 isn't supported
> >>
> >> Cc Tony
> >>
> >> On Sat, Jun 08, 2019 at 02:26:51PM +0200, g.schlmm wrote:
> >>> my RTL8822BE M.2 card is not working with linux 5.2rc3
> >>>
> >>> the staging r8822be driver in linux 5.1 was working for this card
> >>>
> >>> from dmesg:
> >>>> [ 8.001186] rtw_pci 0000:04:00.0: rfe 3 isn't supported
> >>>> [ 8.003870] rtw_pci 0000:04:00.0: failed to setup chip efuse info
> >>>> [ 8.006405] rtw_pci 0000:04:00.0: failed to setup chip information
> >>>
> >>> lspci:
> >>>> 04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd.
> >> RTL8822BE 802.11a/b/g/n/ac WiFi adapter
> >>>> Subsystem: Lenovo RTL8822BE 802.11a/b/g/n/ac WiFi
> adapter
> >>>> Flags: fast devsel, IRQ 19
> >>>> I/O ports at c000 [size=256]
> >>>> Memory at 81200000 (64-bit, non-prefetchable) [size=64K]
> >>>> Capabilities: [40] Power Management version 3
> >>>> Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
> >>>> Capabilities: [70] Express Endpoint, MSI 00
> >>>> Capabilities: [100] Advanced Error Reporting
> >>>> Capabilities: [148] Device Serial Number
> >> 00-e0-4c-ff-fe-b8-22-01
> >>>> Capabilities: [158] Latency Tolerance Reporting
> >>>> Capabilities: [160] L1 PM Substates
> >>>> Kernel modules: rtwpci
> >>
> >
> > Hi,
> >
> > Please use the attached patch. And RFE type 3 has not been well tested,
> > I am not sure if the quality is expected. But it should work fine I guess.
> > If there is any further problems, just tell me, thanks.
> >
> > Yan-Hsuan
> >
>
> Hi,
>
> the above patch doesnt apply anymore on newer kernel sources.
> can we except to see rfe type 3 support in the mainline kernel?
> what can i do to help testing, if testing is still needed?
>

That's fine, I'll fix the conflicts and send them to mainline.
Also I will try to fix the array usage of the tables, use struct instead.
That was requested by Brian before.

Yan-Hsuan