]> git.itanic.dy.fi Git - linux-stable/commit
drm/amdgpu: expand runpm parameter
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Jun 2023 16:56:18 +0000 (12:56 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Aug 2023 22:08:29 +0000 (18:08 -0400)
commit4d6fc55ab13c7af4fcdbc8373327504ad7f4c4ef
tree052361f78db5cb8a2ab07a2ec0f2b3a6961c2522
parent47f1724db4fe0085b33cafd68bb8b7267678bb95
drm/amdgpu: expand runpm parameter

Allow the user to specify -2 as auto enabled with displays.

By default we don't enter runtime suspend when there are
displays attached because it does not work well in some
desktop environments due to the driver sending hotplug
events on resume in case any new displays were attached
while the GPU was powered down.  Some users still want
this functionality though, so this lets you enable it.

Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2428
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c