]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Do not evict VRAM on APUs with disabled HIBERNATE
authorPaul Menzel <pmenzel@molgen.mpg.de>
Wed, 25 Jul 2018 10:54:19 +0000 (12:54 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:11:03 +0000 (11:11 -0500)
commit8d96a00a1c20a078431eace9bad36bae9db9d363
tree52f2aa946d7e9b545ee7f723ed7aedcf1896ab54
parent7cdcf3a7ebd49bc58f4a021b2a8feeb8e83d6a58
drm/amdgpu: Do not evict VRAM on APUs with disabled HIBERNATE

Improve commit c263b9ba (drm/radeon/kms: make hibernate work on IGPs) to
only migrate VRAM objects if the Linux kernel is actually built with
support for hibernation (suspend to disk).

The better solution is to get the information, if this is suspend or
hibernate, from `amdgpu_device_suspend()`, but that’s more involved, so
apply the simple solution first.

Link: https://bugs.freedesktop.org/show_bug.cgi?id=107277
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c