Re: [PATCH v2 3/5] PM: hibernate: shrink shmem pages after dev_pm_ops.prepare()

2025-07-07 Thread Rafael J. Wysocki
On Fri, Jul 4, 2025 at 12:14 PM Samuel Zhang wrote: > > When hibernate with data center dGPUs, huge number of VRAM data will be > moved to shmem during dev_pm_ops.prepare(). These shmem pages take a lot > of system memory so that there's no enough free memory for creating the > hibernation image.

[PATCH v2 3/5] PM: hibernate: shrink shmem pages after dev_pm_ops.prepare()

2025-07-04 Thread Samuel Zhang
When hibernate with data center dGPUs, huge number of VRAM data will be moved to shmem during dev_pm_ops.prepare(). These shmem pages take a lot of system memory so that there's no enough free memory for creating the hibernation image. This will cause hibernation fail and abort. After dev_pm_ops.p