projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62b9e9f
)
drm/amdgpu: complete gfxoff allow signal during suspend without delay
author
Harsh Jain
<harsh.jain@amd.com>
Wed, 2 Nov 2022 09:53:08 +0000
(15:23 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 1 Feb 2023 07:27:22 +0000
(08:27 +0100)
commit
4b31b92b143f7d209f3d494c56d4c4673e9fc53d
upstream.
change guarantees that gfxoff is allowed before moving further in
s2idle sequence to add more reliablity about gfxoff in amdgpu IP's
suspend flow
Signed-off-by: Harsh Jain <harsh.jain@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: "Limonciello, Mario" <Mario.Limonciello@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
index e7845df6cad22d7f60036f39448880dc917dd2a9..5e32906f9819a5350e980fd9215a115790078f7c 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
@@
-580,10
+580,14
@@
void amdgpu_gfx_off_ctrl(struct amdgpu_device *adev, bool enable)
if (adev->gfx.gfx_off_req_count == 0 &&
!adev->gfx.gfx_off_state) {
/* If going to s2idle, no need to wait */
- if (adev->in_s0ix)
- delay = GFX_OFF_NO_DELAY;
- schedule_delayed_work(&adev->gfx.gfx_off_delay_work,
+ if (adev->in_s0ix) {
+ if (!amdgpu_dpm_set_powergating_by_smu(adev,
+ AMD_IP_BLOCK_TYPE_GFX, true))
+ adev->gfx.gfx_off_state = true;
+ } else {
+ schedule_delayed_work(&adev->gfx.gfx_off_delay_work,
delay);
+ }
}
} else {
if (adev->gfx.gfx_off_req_count == 0) {