Mailing List Archive

Problems resuming from hibernation with Radeon 6700XT card
Hello to everyone,
recently I changed my video card, switching from a Radeon 580RX to a Radeon
6700XT. The new card works very well except resuming from hibernation. With
the old card, I had a monolithic kernel, with all required driver and the
corresponding firmware built in. I tried the same approach with the kernel for
the new card, but I found out that the system hung when resuming from
hibernation. This happens for all kernel versions I tried, from 5.18.14 to
5.18.16.

The only solution I could find was to build the radeon driver as a module. To
avoid having to build an initramfs, I followed the advice given in the Gentoo
Radeon page [1], built another framebuffer in the kernel and let udev load the
driver and the corresponding firmware later in the initialization process.

I'm not completely happy with this situation, however: from a practical point
of view, the only issue is that, before udev loads the radeon driver, the
terminal has a wrong resolution (maybe that can be configured somehow: I didn't
try). Since it's just for a couple of seconds, it's not a problem. Still, I
don't like to be forced to use a module when it shouldn't be necessary and I'd
prefer to go back to my old monolithic setup.

I tried searching Google for information about this issue, but I couldn't find
anything. Does anyone know whether this is possible? Has anyone succeeded in
building the radeon driver and firmware in the kernel and having hibernation
working correctly? If so, is there some trick to use?

I attach the .config file for the monolithic, not working kernel:
can anyone suggest what I could change to make it work? I also attach the
output of dmesg with the monolithic kernel and the one with radeon built as a
module. In both cases, I started the system, hibernated it and resumed it.

Thanks in advance

Stefano

[1] https://wiki.gentoo.org/wiki/AMDGPU#Kernel