-
- Downloads
drm/amd: Add Suspend/Hibernate notification callback support
As part of the suspend sequence VRAM needs to be evicted on dGPUs. In order to make suspend/resume more reliable we moved this into the pmops prepare() callback so that the suspend sequence would fail but the system could remain operational under high memory usage suspend. Another class of issues exist though where due to memory fragementation there isn't a large enough contiguous space and swap isn't accessible. Add support for a suspend/hibernate notification callback that could evict VRAM before tasks are frozen. This should allow paging out to swap if necessary. Link: https://github.com/ROCm/ROCK-Kernel-Driver/issues/174 Link: drm/amd#3476 Closes: drm/amd#2362 Closes: drm/amd#3781 Reviewed-by:Lijo Lazar <lijo.lazar@amd.com> Link: https://lore.kernel.org/r/20241128032656.2090059-2-superm1@kernel.org Signed-off-by:
Mario Limonciello <mario.limonciello@amd.com> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com>
- drivers/gpu/drm/amd/amdgpu/amdgpu.h 1 addition, 0 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu.h
- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 45 additions, 1 deletiondrivers/gpu/drm/amd/amdgpu/amdgpu_device.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c 0 additions, 1 deletiondrivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
-
mentioned in issue drm/amd#2599
-
First let me express my gratitude for putting in all this work to finally get to the bottom of this issue and solve it. Thank you!
Now I have a question: Do you see any chance for this to be backported as far as Linux-6.1-LTS? I have a couple of systems here, that are suffering from this problem, which I must keep on 6.1-LTS for a couple of reasons, some of them nontechnical. If not, how far back do you wager this will be backported?