]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: restore original stable pstate on ctx fini
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Jul 2022 15:10:15 +0000 (11:10 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 Jul 2022 20:42:33 +0000 (16:42 -0400)
commit6554ca9a0081388a9cadc41065dcba5db141e761
tree3beb32e5319354aa53f5786ad71a8db25d9c01b5
parente6453a3f67580c9e3c112fe52746579d5f479735
drm/amdgpu: restore original stable pstate on ctx fini

Save the original stable pstate on ctx init and restore
it on ctx fini so that we restore a manually selected
stable pstate on ctx exit.

v2: fix init order (Alex)
v3: don't add new variable to ctx struct (Evan)

Fixes: c00e285a087a ("drm/amdgpu/ctx: only reset stable pstate if the user changed it (v2)")
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c