Bug 1217499 - Steam Deck usb drd driver isn't loaded
Summary: Steam Deck usb drd driver isn't loaded
Status: RESOLVED INVALID
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Kernel (show other bugs)
Version: Current
Hardware: x86-64 openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: openSUSE Kernel Bugs
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-26 01:15 UTC by ted chang
Modified: 2023-11-26 01:26 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
lspci -vnn (17.02 KB, text/plain)
2023-11-26 01:15 UTC, ted chang
Details
dmesg (105.31 KB, text/plain)
2023-11-26 01:16 UTC, ted chang
Details
zcat /proc/config.gz > config-usb-drd.txt (269.79 KB, text/plain)
2023-11-26 01:18 UTC, ted chang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ted chang 2023-11-26 01:15:16 UTC
Created attachment 870985 [details]
lspci -vnn

Hi,

I just realize the usb drd driver for the steam deck isn't loaded. My deck has drd enabled in the kernel but the driver isn't in lsmod.

lsb_release -a
LSB Version:	n/a
Distributor ID:	openSUSE
Description:	openSUSE Tumbleweed
Release:	20231122
Codename:	n/a


Linux steamdeck.lan 6.6.2-1-default #1 SMP PREEMPT_DYNAMIC Mon Nov 20 11:22:36 UTC 2023 (263a855) x86_64 x86_64 x86_64 GNU/Linux

04:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] VanGogh USB1 [1022:163b] (prog-if 30 [XHCI])
        Subsystem: Valve Software Device [1e44:1776]
        Flags: bus master, fast devsel, latency 0, IRQ 56, IOMMU group 4
        Memory at 80100000 (64-bit, non-prefetchable) [size=1M]
        Capabilities: [48] Vendor Specific Information: Len=08 <?>
        Capabilities: [50] Power Management version 3
        Capabilities: [64] Express Endpoint, MSI 00
        Capabilities: [a0] MSI: Enable- Count=1/8 Maskable- 64bit+
        Capabilities: [c0] MSI-X: Enable+ Count=8 Masked-
        Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci


https://gitlab.freedesktop.org/drm/amd/-/issues/2984


doof@steamdeck:~> sudo modprobe dw3
modprobe: FATAL: Module dw3 not found in directory /usr/lib/modules/6.6.2-1-default
doof@steamdeck:~> sudo modprobe dw3_pci
modprobe: FATAL: Module dw3_pci not found in directory /usr/lib/modules/6.6.2-1-default
Comment 1 ted chang 2023-11-26 01:16:06 UTC
Created attachment 870986 [details]
dmesg
Comment 2 ted chang 2023-11-26 01:18:02 UTC
Created attachment 870987 [details]
zcat /proc/config.gz  > config-usb-drd.txt
Comment 3 ted chang 2023-11-26 01:18:51 UTC
grep USB_DWC3 config-usb-drd.txt 
CONFIG_USB_DWC3=m
CONFIG_USB_DWC3_ULPI=y
# CONFIG_USB_DWC3_HOST is not set
# CONFIG_USB_DWC3_GADGET is not set
CONFIG_USB_DWC3_DUAL_ROLE=y
CONFIG_USB_DWC3_PCI=m
CONFIG_USB_DWC3_HAPS=m
Comment 4 ted chang 2023-11-26 01:22:27 UTC
I spelled the modprobe command wrong

dwc3 and dwc3-pci was loaded
Comment 5 ted chang 2023-11-26 01:25:26 UTC
steamdeck:~> lsmod | grep dwc3
dwc3                  225280  0
roles                  16384  1 dwc3
ulpi                   20480  1 dwc3
dwc3_pci               24576  0
doof@steamdeck:~> lsmod | grep xhci
xhci_plat_hcd          16384  0
xhci_pci               28672  0
xhci_pci_renesas       24576  1 xhci_pci
xhci_hcd              385024  2 xhci_pci,xhci_plat_hcd
usbcore               446464  6 xhci_hcd,usbhid,cdc_acm,btusb,xhci_pci,xhci_plat_hcd

[    0.269431] pci 0000:04:00.3: PCI class overridden (0x0c0330 -> 0x0c03fe) so dwc3 driver can claim this instead of xhci
Comment 6 ted chang 2023-11-26 01:26:16 UTC
04:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] VanGogh USB0 [
1022:163a] (prog-if fe [USB Device])
        Subsystem: Valve Software Device [1e44:1776]
        Flags: bus master, fast devsel, latency 0, IRQ 69, IOMMU group 4
        Memory at 80000000 (64-bit, non-prefetchable) [size=1M]
        Capabilities: <access denied>
        Kernel driver in use: dwc3-pci
        Kernel modules: dwc3_pci

04:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] VanGogh USB1 [1022:163b] (prog-if 30 [XHCI])
        Subsystem: Valve Software Device [1e44:1776]
        Flags: bus master, fast devsel, latency 0, IRQ 58, IOMMU group 4
        Memory at 80100000 (64-bit, non-prefetchable) [size=1M]
        Capabilities: <access denied>
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci



Probably not a bug.

Somehow my dwc3 and dw3-pci kernel module isn't loaded.