Does this 5.19 kernel have the drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c module compiled in it?

Asked by Mélodie

I am meeting with an issue in my home computer (not a laptop) after I changed my dying graphic card for a cheap ol ATI Radeon one that I have been given.

The issue is that I can't launch Evolution anymore, it fails with this message:

```
$ evolution

(evolution:6453): dbind-WARNING **: 14:05:22.412: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
radeon: Failed to get PCI ID, error number -13

(evolution:6453): GLib-CRITICAL **: 14:05:22.908: g_strsplit: assertion 'string != NULL' failed
Erreur de segmentation

```

(Erreur de segmentation is "segfault error")

Because of the radeon part of the message, I have done a research around radeon and this error message, and I found this page:
https://linux-hardware.org/?id=pci:1002-954f-1682-2920

where it shows this:
"
5.16 - 6.3 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c CONFIG_DRM_AMDGPU 1002:* 030000

"

So I wonder if it could help the issue if I upgrade my edition to the next LTS and get another kernel such as one above 5.16 (I didn't find any 5.16 kernel in the list of packages on https://packages.ubuntu.com/)

Tech info:
I am running Ubuntu 20.04 with the kernel 5.4.0-148-generic (amd64)

The Radeon GPU version is "02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV710 [Radeon HD 4350/4550]"

More info about it :
"
$ lspci -vvnn | grep VGA
 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Control: I/O- Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
 BridgeCtl: Parity- SERR+ NoISA- VGA+ VGA16+ MAbort- >Reset- FastB2B-
 Control: I/O- Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
 BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
 BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
 Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
02:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] RV710 [Radeon HD 4350/4550] [1002:954f] (prog-if 00 [VGA controller])
 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
"

My computer is a bit old, but it usually works for what I need to do (current work, no gaming, no advance graphics or video heavy tasks).

Before that, I had a nvidia graphic card (8400gs : they don't last many years either).

The CPU is "AMD Phenom(tm) II X4 965 Processor".

So this is the question : does the 5.19 kernel have the "drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c module" compiled in it? If yes, might it help fix the issue I am meeting with?

(Also not a very large internet connexion here, performing an upgrade will require some time and effort during a week-end until a fiber connexion is made available in our area).

Thanks for your kind help,
Mélodie

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu linux-signed-hwe-5.19 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Franziska Naepelt (fnaepelt) said :
#1

Hi Mélodie, I was checking the sources of the Jammy HWE (5.19) kernel.

So the driver is build:

See respective Makefile: drivers/gpu/drm/amd/amdgpu/Makefile
amdgpu-y := amdgpu_drv.o

Config in:
debian.master/config/amd64/config.common.amd64 as well as
debian.hwe-5.19/config/amd64/config.common.amd64 is:

CONFIG_DRM_AMDGPU=m

Since the config CONFIG_DRM_AMDGPU is set to "m", which means it is compiled as a loadable kernel module, you might want to load it manually.

So yes, 5.19 hwe kernel has drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c module compiled in it.

Sources for hwe-5.19 can be found here: https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy/?h=hwe-5.19-next

Btw.: The configuration was not changed between 5.4 and 5.19, so if a missing module is the issue, I don't think the newer kernel will solve it.

Kind regards,
Franziska

Revision history for this message
Franziska Naepelt (fnaepelt) said (last edit ):
#2

You might want to install linux-modules-extra package to get the loadable kernel modules, amdgpu drivers are in there.

dpkg -c linux-modules-extra-5.4.0-150-generic_5.4.0-150.167_amd64.deb | grep amdgpu
drwxr-xr-x root/root 0 2023-05-15 15:51 ./lib/modules/5.4.0-150-generic/kernel/drivers/gpu/drm/amd/amdgpu/
-rw-r--r-- root/root 7138713 2023-05-15 15:51 ./lib/modules/5.4.0-150-generic/kernel/drivers/gpu/drm/amd/amdgpu/amdgpu.ko

Can you help with this problem?

Provide an answer of your own, or ask Mélodie for more information if necessary.

To post a message you must log in.