]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: disable runpm if we are the primary adapter
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 23 Dec 2021 03:57:16 +0000 (22:57 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 31 Dec 2021 13:57:45 +0000 (08:57 -0500)
commite904e056c033c2b90502a5c5f82b44511fc77002
tree9ee2245eb26aa273325854ff49a4c16191431221
parent4d58fb9b9e8a865abc2ccb399f99aded863c4997
drm/amdgpu: disable runpm if we are the primary adapter

If we are the primary adapter (i.e., the one used by the firwmare
framebuffer), disable runtime pm.  This fixes a regression caused
by commit 4eb85a222541 which results in the displays waking up
shortly after they go to sleep due to the device coming out of
runtime suspend and sending a hotplug uevent.

v2: squash in reworked fix from Evan

Fixes: 4eb85a222541 ("fbdev/efifb: Release PCI device's runtime PM ref during FB destroy")
Bug: https://bugzilla.kernel.org/show_bug.cgi?id=215203
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1840
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c