]> 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)
commitd3bff0ff7107ef4d99432571c2d4539f91a34525
tree3beb32e5319354aa53f5786ad71a8db25d9c01b5
parent3a9c100741a8ee1353686b8172d6cb0429df00a6
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: 16ccce222456 ("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