]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd: Invert APU check for amdgpu_device_evict_resources()
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 28 Nov 2024 03:26:55 +0000 (21:26 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Dec 2024 15:26:49 +0000 (10:26 -0500)
commitc2ee5c2f0ea7808f74500ed2eb7a92a87ae8595c
tree9f7e7f953b4654a76874c5f9ed736f7ca23ee4ac
parent86fa54f34991db7b900b779525e129ffaa4a2d34
drm/amd: Invert APU check for amdgpu_device_evict_resources()

Resource eviction isn't needed for s3 or s2idle on APUs, but should
be run for S4. As amdgpu_device_evict_resources() will be called
by prepare notifier adjust logic so that APUs only cover S4.

Suggested-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Link: https://lore.kernel.org/r/20241128032656.2090059-1-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_device.c