View Issue Details

IDProjectCategoryView StatusLast Update
0001446channel: elrepo/el9--elrepo--request-for-enhancement--public2024-04-22 11:01
Reporterjcpunk Assigned Totqhoang  
PrioritylowSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
Summary0001446: Request for driver - rtw88
DescriptionCan the rtw88 kmod be packaged up for the EL9 kernel?
Additional Informationhttps://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/net/wireless/realtek/rtw88?h=v6.8.7
TagsNo tags attached.

Activities

toracat

2024-04-19 12:45

administrator   ~0009687

Acknowledged.

pperry

2024-04-19 19:12

administrator   ~0009688

I was surprised to see this request as I thought rtw88 is already in the RHEL9 kernel:

[phil@Build64R9 boot]$ cat config-5.14.0-362.24.1.el9_3.x86_64 | grep RTW88
CONFIG_RTW88=m
CONFIG_RTW88_CORE=m
CONFIG_RTW88_PCI=m
CONFIG_RTW88_8822B=m
CONFIG_RTW88_8822C=m
CONFIG_RTW88_8723D=m
CONFIG_RTW88_8821C=m
CONFIG_RTW88_8822BE=m
# CONFIG_RTW88_8822BS is not set
# CONFIG_RTW88_8822BU is not set
CONFIG_RTW88_8822CE=m
# CONFIG_RTW88_8822CS is not set
# CONFIG_RTW88_8822CU is not set
CONFIG_RTW88_8723DE=m
# CONFIG_RTW88_8723DU is not set
CONFIG_RTW88_8821CE=m
# CONFIG_RTW88_8821CS is not set
# CONFIG_RTW88_8821CU is not set
# CONFIG_RTW88_DEBUG is not set
# CONFIG_RTW88_DEBUGFS is not set

Maybe you have one of the chipsets that is not enabled? Please can you post the device ID pairing?

jcpunk

2024-04-19 19:51

reporter   ~0009689

My fedora box reports this from lsusb:


Bus 001 Device 010: ID 0bda:b812 Realtek Semiconductor Corp. RTL88x2bu [AC1200 Techkey]
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.10
  bDeviceClass 0 [unknown]
  bDeviceSubClass 0 [unknown]
  bDeviceProtocol 0
  bMaxPacketSize0 64
  idVendor 0x0bda Realtek Semiconductor Corp.
  idProduct 0xb812 RTL88x2bu [AC1200 Techkey]
  bcdDevice 2.10
  iManufacturer 1 Realtek
  iProduct 2 802.11ac NIC
  iSerial 3 123456
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 0x0035
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0x80
      (Bus Powered)
    MaxPower 500mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 5
      bInterfaceClass 255 Vendor Specific Class
      bInterfaceSubClass 255 Vendor Specific Subclass
      bInterfaceProtocol 255 Vendor Specific Protocol
      iInterface 2 802.11ac NIC
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x84 EP 4 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x05 EP 5 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x06 EP 6 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x87 EP 7 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0040 1x 64 bytes
        bInterval 3
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x08 EP 8 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 0
Binary Object Store Descriptor:
  bLength 5
  bDescriptorType 15
  wTotalLength 0x0016
  bNumDeviceCaps 2
  USB 2.0 Extension Device Capability:
    bLength 7
    bDescriptorType 16
    bDevCapabilityType 2
    bmAttributes 0x00000002
      HIRD Link Power Management (LPM) Supported
  SuperSpeed USB Device Capability:
    bLength 10
    bDescriptorType 16
    bDevCapabilityType 3
    bmAttributes 0x00
    wSpeedsSupported 0x0006
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
    bFunctionalitySupport 1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat 10 micro seconds
    bU2DevExitLat 1023 micro seconds
can't get debug descriptor: Resource temporarily unavailable
Device Status: 0x0000
  (Bus Powered)

toracat

2024-04-19 20:50

administrator   ~0009690

0bda:b812 is disabled:

# CONFIG_RTW88_8822BU is not set

pperry

2024-04-20 06:39

administrator   ~0009691

Acknowledged.

It would appear RH only enabled ePCI devices, not USB or SDIO (I did not even know wireless SDIO devices were a thing!)

Definitely worth enabling the USB devices:

 # CONFIG_RTW88_8822BU is not set
# CONFIG_RTW88_8822CU is not set
# CONFIG_RTW88_8723DU is not set
# CONFIG_RTW88_8821CU is not set

Not sure about the SDIO devices? What do others think - I don't imagine there is much call for them?

To the Makefile, add:

ccflags-y += -DCONFIG_RTW88_USB -DCONFIG_RTW88_8822BU -DCONFIG_RTW88_8822CU -DCONFIG_RTW88_8723DU -DCONFIG_RTW88_8821CU

tqhoang

2024-04-20 07:47

developer   ~0009692

I don't think SDIO devices are needed. I assume they would probably be used on embedded boards.

I made a package called "rtw88_usb-kmod" in git that has the four drivers and the common USB module. We should have it in testing soon.

tqhoang

2024-04-21 10:43

developer   ~0009694

We have pushed the following packages to our "elrepo-testing" repo mirrors and should be available shortly.

Please provide feedback.

For 9.3 GA kernel:
kmod-rtw88_usb-0.0-1.el9_3.elrepo.x86_64.rpm
kmod-rtw88_usb-0.0-1.el9_3.elrepo.src.rpm

For 9.3 errata kernels (kernel-4.18.0-513.18.1.el8_9.x86_64 and later):
kmod-rtw88_usb-0.0-3.el9_3.elrepo.x86_64.rpm
kmod-rtw88_usb-0.0-3.el9_3.elrepo.src.rpm

jcpunk

2024-04-22 09:28

reporter   ~0009695

Works perfectly for me!

Thanks!

tqhoang

2024-04-22 11:01

developer   ~0009696

Thank you for the feedback. We will move the existing packages to the main repo shortly.

I'm closing this issue as fixed, but please open a new ticket if you have any other issues.

Issue History

Date Modified Username Field Change
2024-04-19 10:45 jcpunk New Issue
2024-04-19 10:45 jcpunk Status new => assigned
2024-04-19 10:45 jcpunk Assigned To => toracat
2024-04-19 12:45 toracat Status assigned => acknowledged
2024-04-19 12:45 toracat Note Added: 0009687
2024-04-19 14:07 tqhoang Assigned To toracat => tqhoang
2024-04-19 19:12 pperry Note Added: 0009688
2024-04-19 19:51 jcpunk Note Added: 0009689
2024-04-19 20:50 toracat Note Added: 0009690
2024-04-20 06:39 pperry Note Added: 0009691
2024-04-20 07:47 tqhoang Note Added: 0009692
2024-04-20 14:24 toracat Status acknowledged => feedback
2024-04-21 10:43 tqhoang Note Added: 0009694
2024-04-21 10:43 tqhoang Note View State: 0009692: private
2024-04-21 10:44 tqhoang Note View State: 0009692: public
2024-04-22 09:28 jcpunk Note Added: 0009695
2024-04-22 09:28 jcpunk Status feedback => assigned
2024-04-22 11:01 tqhoang Note Added: 0009696
2024-04-22 11:01 tqhoang Status assigned => closed
2024-04-22 11:01 tqhoang Resolution open => fixed