Using generic fbdev helpers breaks hibernation
Thomas Zimmermann
tzimmermann at suse.de
Tue Jun 21 10:25:48 UTC 2022
Hi
Am 21.06.22 um 00:02 schrieb Alex Deucher:
> Maybe someone more familiar with the generic drm fbdev helpers can
> help me understand why they don't work with hibernation, at least with
> AMD GPUs. We converted amdgpu to use the generic helpers instead of
> rolling our own in this patch[1], but it seems to have broken
> hibernation[2]. amdgpu has always set mode_config.prefer_shadow = 1,
> but that seems to be the cause of the hibernation breakage with the
> generic helpers. I've been staring at the code for a while now but I
> can't see why this fails. Any pointers?
I don't the actual reason, but when I tried to convert radeon to generic
fbdev emulation, I had to modify the fbdev code a bit. I don't see how
this would apply to amdgpu, but you can find the patchset attached. See
patches 1 and 2.
Best regards
Thomas
>
> Thanks,
>
> Alex
>
> [1] - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=087451f372bf76d971184caa258807b7c35aac8f
> [2] - https://bugzilla.kernel.org/show_bug.cgi?id=216119
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Ivo Totev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-drm-fb-helper-Set-framebuffer-for-vga-switcheroo-cli.patch
Type: text/x-patch
Size: 5911 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20220621/5320c443/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-drm-fb-helper-Add-hint-to-enable-VT-switching-during.patch
Type: text/x-patch
Size: 2855 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20220621/5320c443/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-drm-radeon-Replace-framebuffer-console-with-generic-.patch
Type: text/x-patch
Size: 13255 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20220621/5320c443/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20220621/5320c443/attachment-0001.sig>
More information about the amd-gfx
mailing list