Bug 2224594

Summary: kernel-6.4.4-100.fc37.x86_64 has no output on AMD RX570
Product: [Fedora] Fedora Reporter: Chris Adams <linux>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 37CC: acaringi, adscvr, airlied, alciregi, bskeggs, hdegoede, hpa, jarodwilson, josef, kernel-maint, lgoncalv, linville, masami256, mchehab, neil, ptalbert, steved
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: kernel-6.4.10-100.fc37 kernel-6.4.10-200.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-14 00:45:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Chris Adams 2023-07-21 15:27:24 UTC
When booting kernel-6.4.4-100.fc37.x86_64, after GRUB loads the kernel, the monitor goes to sleep (sees no input from DisplayPort from AMD RX570 card). Previous F37 kernels work.

$ inxi -GxxS
System:
  Host: kosh.cmadams.net Kernel: 6.3.12-100.fc37.x86_64 arch: x86_64 bits: 64
    compiler: gcc v: 2.38-27.fc37 Desktop: MATE v: 1.26.1 wm: marco dm: LightDM
    Distro: Fedora release 37 (Thirty Seven)
Graphics:
  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
    vendor: Sapphire driver: amdgpu v: kernel arch: GCN-4 pcie: speed: 8 GT/s
    lanes: 16 ports: active: DP-3 empty: DP-1, DP-2, DP-4, DVI-D-1, HDMI-A-1,
    HDMI-A-2 bus-ID: 0a:00.0 chip-ID: 1002:67df temp: 50.0 C
  Display: x11 server: X.Org v: 1.20.14 compositor: marco v: 1.26.2 driver:
    X: loaded: amdgpu unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x2160 s-dpi: 96
  Monitor-1: DP-3 mapped: DisplayPort-2 model: Dell U3223QE res: 3840x2160
    dpi: 140 diag: 801mm (31.5")
  API: OpenGL v: 4.6 Mesa 23.0.3 renderer: AMD Radeon RX 570 Series
    (polaris10 LLVM 15.0.7 DRM 3.52 6.3.12-100.fc37.x86_64) direct-render: Yes


Reproducible: Always

Comment 1 Chris Adams 2023-07-26 00:31:44 UTC
Tried kernel-6.4.6-100.fc37.x86_64, same result.

I don't see anything stand out in the kernel log, but Xorg.0.log for the failed kernel has:

[     7.620] (EE) AMDGPU(0): failed to set mode: Invalid argument
[     7.620] (WW) AMDGPU(0): Failed to set mode on CRTC 0
[     7.620] (EE) AMDGPU(0): Failed to enable any CRTC

and doesn't appear to see the monitor at all.

Comment 2 Neil Hanlon 2023-07-27 19:25:21 UTC
I am seeing the same thing on the f38 versions of this kernel (monitors not detected). One monitor is direct-attach HDMI, the other is HDMI via USB-C dock, which appears as DisplayPort.

Rolled back to 6.3 due to BT issues in 6.4.4.

```
System:
  Host: afterman-ascension.potato.shrug.pw Kernel: 6.3.12-200.fc38.x86_64
    arch: x86_64 bits: 64 compiler: gcc v: 2.39-9.fc38 Desktop: KDE Plasma
    v: 5.27.6 tk: Qt v: 6.5.1 wm: awesome dm: SDDM Distro: Fedora release 38
    (Thirty Eight)
Graphics:
  Device-1: AMD Renoir vendor: Lenovo driver: amdgpu v: kernel arch: GCN-5
    pcie: speed: 8 GT/s lanes: 16 ports: active: DP-1,HDMI-A-1,eDP-1 empty: DP-2
    bus-ID: 07:00.0 chip-ID: 1002:1636 temp: 44.0 C
  Device-2: Bison Integrated Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 1-2:2 chip-ID: 5986:2130
  Device-3: Razer USA Kiyo Pro driver: snd-usb-audio,uvcvideo type: USB
    rev: 3.2 speed: 5 Gb/s lanes: 1 bus-ID: 5-1.3.2.1:13 chip-ID: 1532:0e05
  Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 22.1.9 driver: X:
    loaded: amdgpu unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 6800x3440 s-dpi: 96
  Monitor-1: DP-1 mapped: DisplayPort-0 pos: middle-c model: Dell AW3418DW
    res: 3440x1440 dpi: 109 diag: 865mm (34.1")
  Monitor-2: HDMI-A-1 mapped: HDMI-A-0 pos: top-left model: Dell U3421WE
    res: 1440x3440 dpi: 109 diag: 867mm (34.1")
  Monitor-3: eDP-1 mapped: eDP pos: primary,bottom-r
    model: AU Optronics 0x403d res: 1920x1080 dpi: 158 diag: 355mm (14")
  API: OpenGL v: 4.6 Mesa 23.1.4 renderer: AMD Radeon Graphics (renoir LLVM
    16.0.6 DRM 3.52 6.3.12-200.fc38.x86_64) direct-render: Yes

```

Comment 3 Chris Adams 2023-07-29 13:49:26 UTC
Tried kernel-6.4.7-100.fc37.x86_64 from updates-testing, same result. When I remove "rhgb quiet", I do get the start of the kernel in classic text mode, but as soon as it switches to framebuffer console, it loses the monitor.

Is there any other info I can provide to help debug this?

Comment 4 Chris Adams 2023-08-04 19:59:50 UTC
I gave kernel-6.4.8-100.fc37.x86_64 from koji a try, no difference.

Comment 5 Chris Adams 2023-08-09 18:20:32 UTC
This is fixed with https://patchwork.freedesktop.org/patch/550066/ - I tried Fedora 6.4.9 and got no output, and then I rebuilt with this patch added and it worked.

Per https://gitlab.freedesktop.org/drm/amd/-/issues/2763#note_2035638 this will be in 6.5-rc6 and backported to 6.4 after that; can Fedora go ahead and pick it up for Fedora 6.4 kernels in the meantime?

Comment 6 Fedora Update System 2023-08-11 16:57:21 UTC
FEDORA-2023-d9509be489 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-d9509be489

Comment 7 Fedora Update System 2023-08-11 16:57:44 UTC
FEDORA-2023-ee241dcf80 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-ee241dcf80

Comment 8 Fedora Update System 2023-08-12 04:43:18 UTC
FEDORA-2023-ee241dcf80 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-ee241dcf80`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-ee241dcf80

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2023-08-12 05:42:31 UTC
FEDORA-2023-d9509be489 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-d9509be489`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-d9509be489

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2023-08-14 00:45:50 UTC
FEDORA-2023-d9509be489 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2023-08-14 01:33:42 UTC
FEDORA-2023-ee241dcf80 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.