Bug 216608

Summary: [Regression] amdgpu: update from 5.10.145 to 5.10.146...149 breaks boot on Ryzen based computers
Product: Drivers Reporter: Nikolai (nickel)
Component: Video(Other)Assignee: drivers_video-other
Status: RESOLVED CODE_FIX    
Severity: high CC: void
Priority: P1    
Hardware: Intel   
OS: Linux   
Kernel Version: 5.10.146 Subsystem:
Regression: No Bisected commit-id:

Description Nikolai 2022-10-19 14:01:40 UTC
Affected platforms: 

AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx 
AMD Ryzen 5 4600H with Radeon Graphics 
AMD Ryzen 5 2400G with Radeon Vega Graphics
AMD Ryzen 3 5300U with Radeon Graphics 
AMD Ryzen 5 5600U with Radeon Graphics
AMD Ryzen 3 2200G with Radeon Vega Graphics 
AMD Ryzen 3 5300U with Radeon Graphics 
AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx 
 
Not affected:
AMD A8-7410 APU with AMD Radeon R5 Graphics 
AMD A12-9720P RADEON R7, 12 COMPUTE CORES 4C+8G

Revert of below patch series fixes the issue:

fda04a0bab7f drm/amd/amdgpu: fixing read wrong pf2vf data in SRIOV
7b0db849ea03 drm/amdgpu: make sure to init common IP before gmc
9d18013dac86 drm/amdgpu: Separate vf2pf work item init from virt data exchange
87a4e51fb8d6 drm/amdgpu: indirect register access for nv12 sriov
9f55f36f749a drm/amdgpu: move nbio sdma_doorbell_range() into sdma code for vega

Initially revealed on OS ALT (Linux distro), but then confirmed on Debian bullseye 5.10.0-19-amd64 ( 5.10.149-1)

On debian the issue is not reproducible until non-free firmware-amd-graphics package is installed (without AMD firmware the issue is not reproducible).
Comment 1 Artem S. Tashkinov 2022-10-19 18:46:59 UTC

Please check for dupes here https://gitlab.freedesktop.org/drm/amd/-/issues

and if there are none, file a new bug report. Thanks
Comment 2 Nikolai 2022-10-21 07:07:29 UTC
(In reply to Artem S. Tashkinov from comment #1)
> 
> Please check for dupes here https://gitlab.freedesktop.org/drm/amd/-/issues
> 
> and if there are none, file a new bug report. Thanks

Thank you for the hint.

Reposted to https://gitlab.freedesktop.org/drm/amd/-/issues/2216

Also here is a Debian track for the same issue:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1022025
Comment 3 A. Kochendoerfer 2023-01-27 07:46:27 UTC
I'm using Void Linux (rolling release) and it seems this bug isn't fixed in 6er mainline. Currently on 6.1.7 my notebook still hang.

Thanks