artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e01f7d
)
drm/amdgpu: explicitly check for s0ix when evicting resources
author
jsg
<jsg@openbsd.org>
Fri, 13 May 2022 03:24:22 +0000
(
03:24
+0000)
committer
jsg
<jsg@openbsd.org>
Fri, 13 May 2022 03:24:22 +0000
(
03:24
+0000)
From Mario Limonciello
22b80bff17261427a5e152e537c3ec76fb356aec
in linux 5.15.y/5.15.39
e53d9665ab003df0ece8f869fcd3c2bbbecf7190
in mainline linux
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
b/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
index
1d85450
..
735a632
100644
(file)
--- a/
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
+++ b/
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
@@
-4027,8
+4027,8
@@
void amdgpu_device_fini_sw(struct amdgpu_device *adev)
*/
static void amdgpu_device_evict_resources(struct amdgpu_device *adev)
{
- /* No need to evict vram on APUs for suspend to ram */
- if (
adev->in_s3
&& (adev->flags & AMD_IS_APU))
+ /* No need to evict vram on APUs for suspend to ram
or s2idle
*/
+ if (
(adev->in_s3 || adev->in_s0ix)
&& (adev->flags & AMD_IS_APU))
return;
if (amdgpu_ttm_evict_resources(adev, TTM_PL_VRAM))