Skip to content
Commit 458d876e authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu: Avoid leaking PM domain on driver unbind (v2)



We only support vga_switcheroo and runtime pm on PX/HG systems
so forcing runpm to 1 doesn't do anything useful anyway.

Only call vga_switcheroo_init_domain_pm_ops() for PX/HG so
that the cleanup path is correct as well.  This mirrors what
radeon does as well.

v2: rework the patch originally sent by Lukas (Alex)

Acked-by: default avatarLukas Wunner <lukas@wunner.de>
Reported-by: default avatarLukas Wunner <lukas@wunner.de>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: Lukas Wunner <lukas@wunner.de> (v1)
Cc: stable@vger.kernel.org
parent dead73d7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment