]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: fix power state when port pm is unavailable (v2)
authorPeter Wu <peter@lekensteyn.nl>
Wed, 23 Nov 2016 01:22:25 +0000 (02:22 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Nov 2016 18:57:58 +0000 (13:57 -0500)
commit0e9024b698f76e6ef3fd8686ba13616630bd07a5
tree957cd59342a262732c5ec786c501b0f0edccb26e
parent5e89c3ab37ea8381d70fe043c1df8d4d2280a826
drm/radeon: fix power state when port pm is unavailable (v2)

When PCIe port PM is not enabled (system BIOS is pre-2015 or the
pcie_port_pm=off parameter is set), legacy ATPX PM should still be
marked as supported. Otherwise the GPU can fail to power on after
runtime suspend. This affected a Dell Inspiron 5548.

Ideally the BIOS date in the PCI core is lowered to 2013 (the first year
where hybrid graphics platforms using power resources was introduced),
but that seems more risky at this point and would not solve the
pcie_port_pm=off issue.

v2: agd: fix typo

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98505
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: <stable@vger.kernel.org> # 4.8+
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_atpx_handler.c