Bug 29756

Summary: amdgpu not detecting my video card by kernel-server-5.15.6-2.mga8-1-1.mga8
Product: Mageia Reporter: François Andriot <albator78>
Component: RPM PackagesAssignee: Kernel and Drivers maintainers <kernel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal    
Version: 8   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: kernel-5.15.6-2.mga8.src.rpm CVE:
Status comment:
Attachments: dmes on kernel 5.15.4 (working OK)
dmesg on kernel 5.15.6 (not working)
dmesg on kernel 5.15.6 (manual modprobe)

Description François Andriot 2021-12-11 10:39:45 CET
Description of problem:
Video card is a AMD Radeon R9 280x, 'lspci -nn' says:
05:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Tahiti XT [Radeon HD 7970/8970 OEM / R9 280X] [1002:6798]

Xorg is running fine under kernel-server-5.15.4-1.mga8-1-1.mga8 , but does not detect gpu with kernel-server-5.15.6-2.mga8-1-1.mga8
Xorg is using 'amdgpu' driver.


Version-Release number of selectedccc component (if applicable):
kernel-server-5.15.6-2.mga8-1-1.mga8

How reproducible:
Start computer with old kernel: work fine
Start computer with kernel-server-5.15.6-2.mga8-1-1.mga8: xorg never starts

Extract from Xorg.log (kernel 5.15.16):
[   106.911] (II) AMDGPU: Driver for AMD Radeon:
        All GPUs supported by the amdgpu kernel driver
[   106.911] (WW) Falling back to old probe method for v4l
[   106.911] (II) AMDGPU(0): [KMS] drm report modesetting isn't supported.
[   106.911] (EE) Screen 0 deleted because of no matching config section.
[   106.911] (II) UnloadModule: "amdgpu"
[   106.911] (EE) Device(s) detected, but none match those in the config file.
[   106.911] (EE) 
Fatal server error:
[   106.911] (EE) no screens found(EE) 
[   106.911] (EE) 
Please consult the Mageia support 
         at https://bugs.mageia.org
 for help. 
[   106.911] (EE) Please also check the log file at "/var/log/Xorg.1.log" for additional information.
[   106.911] (EE) 
[   106.913] (EE) Server terminated with error (1). Closing log file.

Extract from Xorg.log (kernel 5.15.4):
[    54.982] (II) AMDGPU: Driver for AMD Radeon:
        All GPUs supported by the amdgpu kernel driver
[    54.982] (WW) Falling back to old probe method for v4l
[    54.982] (II) AMDGPU(0): [KMS] Kernel modesetting enabled.
[    54.986] (II) AMDGPU(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[    54.986] (==) AMDGPU(0): Depth 24, (--) framebuffer bpp 32
[    54.986] (II) AMDGPU(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
[    54.986] (==) AMDGPU(0): Default visual is TrueColor
[    54.986] (==) AMDGPU(0): RGB weight 888
[    54.986] (II) AMDGPU(0): Using 8 bits per RGB (8 bit DAC)
[    54.986] (--) AMDGPU(0): Chipset: "AMD Radeon HD 7900 Series" (ChipID = 0x6798)
Comment 1 Thomas Backlund 2021-12-11 13:25:05 CET
please attach dmesg output from both working 5.15.4-1.mga8 and non-working 5.15.6-2.mga8
Comment 2 Lewis Smith 2021-12-11 20:30:03 CET
Thank you François for the report.

Thanks for jumping in, Thomas. Assigning to 'kernel'.

Assignee: bugsquad => kernel

Comment 3 François Andriot 2021-12-12 09:59:45 CET
Created attachment 13045 [details]
dmes on kernel 5.15.4 (working OK)
Comment 4 François Andriot 2021-12-12 10:00:25 CET
Created attachment 13046 [details]
dmesg on kernel 5.15.6 (not working)
Comment 5 Thomas Backlund 2021-12-12 10:34:49 CET
Thats interesting... amdgpu does not show up at all in 5.15.6 dmesg.

if you boot 5.15.6, switch to console (Ctrl-Alt-F3), log in as root, and try to load it manually with "modprobe amdgpu", does it complain about anything then ?

You might have to check dmesg for any output
Comment 6 François Andriot 2021-12-12 13:43:56 CET
Created attachment 13048 [details]
dmesg on kernel 5.15.6 (manual modprobe)

Thanks for the suggestion.
When loading the amdgpu module with modprobe, the X server immediatly starts, and everything looks fine afterward.
So, it's strange that the module is not loaded automatically at startup with this kernel.
Comment 7 François Andriot 2022-01-23 10:06:41 CET
Finally, my old radeon is working again in kernel-server-5.15.6-2.mga8-1-1.mga8 .
Thanks for the update.

Status: NEW => RESOLVED
Resolution: (none) => FIXED