2021-07-04 14:43:21

by Doug Brewer

[permalink] [raw]
Subject: rtw89: product id 0xa85a support on Linux?

Hello,

The HP Laptop 15s-eq2028ur have a Realtek 802.11ax device. lspci -n shows

01:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:
a85a]

I tried pkshih's rtw89 patchsets [1] and added PID to rtw89_pci_id_table.
Scanning works but cannot connect to access points.
dmesg shows like (hiding MAC address):

rtw89_pci 0000:01:00.0: Firmware version 0.13.8.0, cmd version 0, type 1
rtw89_pci 0000:01:00.0: Firmware version 0.13.8.0, cmd version 0, type 3
rtw89_pci 0000:01:00.0: chip rfe_type is 1
wlan0: authenticate with xx:xx:xx:xx:xx:xx
wlan0: send auth to xx:xx:xx:xx:xx:xx (try 1/3)
wlan0: authenticated
wlan0: associate with xx:xx:xx:xx:xx:xx (try 1/3)
wlan0: RX AssocResp from xx:xx:xx:xx:xx:xx (capab=0x411 status=0 aid=1)
wlan0: associated
rtw89_pci 0000:01:00.0: c2h reg timeout
rtw89_pci 0000:01:00.0: FW does not process h2c registers
rtw89_pci 0000:01:00.0: timed out to flush queues

rtw89 will be the driver to support this wifi model? Thanks.

[1] https://www.spinics.net/lists/linux-wireless/msg212019.html

BR,
Doug.


2021-07-05 01:44:18

by Ping-Ke Shih

[permalink] [raw]
Subject: RE: rtw89: product id 0xa85a support on Linux?


> -----Original Message-----
> From: Doug Brewer [mailto:[email protected]]
> Sent: Sunday, July 04, 2021 10:35 PM
> To: [email protected]
> Subject: rtw89: product id 0xa85a support on Linux?
>
> Hello,
>
> The HP Laptop 15s-eq2028ur have a Realtek 802.11ax device. lspci -n shows
>
> 01:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:
> a85a]
>
> I tried pkshih's rtw89 patchsets [1] and added PID to rtw89_pci_id_table.
> Scanning works but cannot connect to access points.
> dmesg shows like (hiding MAC address):
>
> rtw89_pci 0000:01:00.0: Firmware version 0.13.8.0, cmd version 0, type 1
> rtw89_pci 0000:01:00.0: Firmware version 0.13.8.0, cmd version 0, type 3
> rtw89_pci 0000:01:00.0: chip rfe_type is 1
> wlan0: authenticate with xx:xx:xx:xx:xx:xx
> wlan0: send auth to xx:xx:xx:xx:xx:xx (try 1/3)
> wlan0: authenticated
> wlan0: associate with xx:xx:xx:xx:xx:xx (try 1/3)
> wlan0: RX AssocResp from xx:xx:xx:xx:xx:xx (capab=0x411 status=0 aid=1)
> wlan0: associated
> rtw89_pci 0000:01:00.0: c2h reg timeout
> rtw89_pci 0000:01:00.0: FW does not process h2c registers
> rtw89_pci 0000:01:00.0: timed out to flush queues
>
> rtw89 will be the driver to support this wifi model? Thanks.
>

The ID 0xa85a is a variant of 8852AE, and rtw89 will support it later.
I'll provide you a patch when I have a draft implementation.

--
Ping-Ke

2021-07-06 03:11:21

by Ping-Ke Shih

[permalink] [raw]
Subject: Re: rtw89: product id 0xa85a support on Linux?

On Tue, 2021-07-06 at 08:56 +0800, Doug Brewer wrote:
> On Mon, Jul 5, 2021 at 9:42 AM Pkshih <[email protected]> wrote:
> > > -----Original Message-----
> > > From: Doug Brewer [mailto:[email protected]]
> > > Sent: Sunday, July 04, 2021 10:35 PM
> > > To: [email protected]
> > > Subject: rtw89: product id 0xa85a support on Linux?
> > >
> > > Hello,
> > >
> > > The HP Laptop 15s-eq2028ur have a Realtek 802.11ax device. lspci
> > -n shows
> > >
> > > 01:00.0 Network controller [0280]: Realtek Semiconductor Co.,
> > Ltd. Device [10ec:
> > > a85a]
> > >
> > > I tried pkshih's rtw89 patchsets [1] and added PID to
> > rtw89_pci_id_table.
> > > Scanning works but cannot connect to access points.
> > > dmesg shows like (hiding MAC address):
> > >
> > > rtw89_pci 0000:01:00.0: Firmware version 0.13.8.0, cmd version 0,
> > type 1
> > > rtw89_pci 0000:01:00.0: Firmware version 0.13.8.0, cmd version 0,
> > type 3
> > > rtw89_pci 0000:01:00.0: chip rfe_type is 1
> > > wlan0: authenticate with xx:xx:xx:xx:xx:xx
> > > wlan0: send auth to xx:xx:xx:xx:xx:xx (try 1/3)
> > > wlan0: authenticated
> > > wlan0: associate with xx:xx:xx:xx:xx:xx (try 1/3)
> > > wlan0: RX AssocResp from xx:xx:xx:xx:xx:xx (capab=0x411 status=0
> > aid=1)
> > > wlan0: associated
> > > rtw89_pci 0000:01:00.0: c2h reg timeout
> > > rtw89_pci 0000:01:00.0: FW does not process h2c registers
> > > rtw89_pci 0000:01:00.0: timed out to flush queues
> > >
> > > rtw89 will be the driver to support this wifi model? Thanks.
> > >
> >
> > The ID 0xa85a is a variant of 8852AE, and rtw89 will support it
> > later.
> > I'll provide you a patch when I have a draft implementation.
>
> Thanks! I'm happy to test your patch.
>

Before trying new patch, please upgrade your firmware to v0.13.24.0
that you can download it via my github:

https://github.com/pkshih/linux-firmware/blob/a5b79c4790da3eb3690e23554225ef8db464f2c6/rtw89/rtw8852a_fw.bin

Then, check kernel log to confirm the version like dmesg you mentioned.


The path of the attachment patch isn't full path, so please apply
it with specified path drivers/net/wireless/realtek/rtw89/


--
Ping-Ke


Attachments:
20210706_00_0xa85a.patch (8.80 kB)
20210706_00_0xa85a.patch

2021-07-06 16:23:16

by Larry Finger

[permalink] [raw]
Subject: Re: rtw89: product id 0xa85a support on Linux?

On 7/5/21 10:10 PM, Pkshih wrote:
>
> Before trying new patch, please upgrade your firmware to v0.13.24.0
> that you can download it via my github:
>
> https://github.com/pkshih/linux-firmware/blob/a5b79c4790da3eb3690e23554225ef8db464f2c6/rtw89/rtw8852a_fw.bin
>
> Then, check kernel log to confirm the version like dmesg you mentioned.
>
>
> The path of the attachment patch isn't full path, so please apply
> it with specified path drivers/net/wireless/realtek/rtw89/

I have applied the patch and new firmware to https://github.com/lwfinger/rtw89.git.

Larry

2021-07-08 05:25:08

by Doug Brewer

[permalink] [raw]
Subject: Re: rtw89: product id 0xa85a support on Linux?

On Tue, Jul 06, 2021 at 03:10:34AM +0000, Pkshih wrote:
> On Tue, 2021-07-06 at 08:56 +0800, Doug Brewer wrote:
> > On Mon, Jul 5, 2021 at 9:42 AM Pkshih <[email protected]> wrote:
> > > > -----Original Message-----
> > > > From: Doug Brewer [mailto:[email protected]]
> > > > Sent: Sunday, July 04, 2021 10:35 PM
> > > > To: [email protected]
> > > > Subject: rtw89: product id 0xa85a support on Linux?
> > > >
> > > > Hello,
> > > >
> > > > The HP Laptop 15s-eq2028ur have a Realtek 802.11ax device. lspci
> > > -n shows
> > > >
> > > > 01:00.0 Network controller [0280]: Realtek Semiconductor Co.,
> > > Ltd. Device [10ec:
> > > > a85a]
> > > >
> > > > I tried pkshih's rtw89 patchsets [1] and added PID to
> > > rtw89_pci_id_table.
> > > > Scanning works but cannot connect to access points.
> > > > dmesg shows like (hiding MAC address):
> > > >
> > > > rtw89_pci 0000:01:00.0: Firmware version 0.13.8.0, cmd version 0,
> > > type 1
> > > > rtw89_pci 0000:01:00.0: Firmware version 0.13.8.0, cmd version 0,
> > > type 3
> > > > rtw89_pci 0000:01:00.0: chip rfe_type is 1
> > > > wlan0: authenticate with xx:xx:xx:xx:xx:xx
> > > > wlan0: send auth to xx:xx:xx:xx:xx:xx (try 1/3)
> > > > wlan0: authenticated
> > > > wlan0: associate with xx:xx:xx:xx:xx:xx (try 1/3)
> > > > wlan0: RX AssocResp from xx:xx:xx:xx:xx:xx (capab=0x411 status=0
> > > aid=1)
> > > > wlan0: associated
> > > > rtw89_pci 0000:01:00.0: c2h reg timeout
> > > > rtw89_pci 0000:01:00.0: FW does not process h2c registers
> > > > rtw89_pci 0000:01:00.0: timed out to flush queues
> > > >
> > > > rtw89 will be the driver to support this wifi model? Thanks.
> > > >
> > >
> > > The ID 0xa85a is a variant of 8852AE, and rtw89 will support it
> > > later.
> > > I'll provide you a patch when I have a draft implementation.
> >
> > Thanks! I'm happy to test your patch.
> >
>
> Before trying new patch, please upgrade your firmware to v0.13.24.0
> that you can download it via my github:
>
> https://github.com/pkshih/linux-firmware/blob/a5b79c4790da3eb3690e23554225ef8db464f2c6/rtw89/rtw8852a_fw.bin
>
> Then, check kernel log to confirm the version like dmesg you mentioned.
>
>
> The path of the attachment patch isn't full path, so please apply
> it with specified path drivers/net/wireless/realtek/rtw89/
>
>
> --
> Ping-Ke

I tested this out and I can confirm it works. Thanks Ping-Ke!