]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "drm/radeon: disable runtime pm on PX laptops without dGPU power control"
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 18 Apr 2016 15:19:19 +0000 (11:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 Apr 2016 15:23:10 +0000 (11:23 -0400)
commitd9e90d5f9d5df1610ac973ecbfc7720d5b85ec3a
tree0b538d503ae3675bb742c2f84d7fac80df3d2bce
parentadf0331d395896b6ab218b856abab895e46b66d2
Revert "drm/radeon: disable runtime pm on PX laptops without dGPU power control"

This reverts commit c657785d513ddd663c6381b253fba577be33bc23.

ATPX is the ACPI method for controlling AMD PowerXpress laptops.
There are flags to indicate which methods are supported.  If
the dGPU power down flag is not supported, the driver needs to
implement the dGPU power down manually.  We had previously
always forced the driver to assume the ATPX dGPU power down
was present, but this causes problems on boards where it is
not, leading to GPU hangs when attempting to power down the
dGPU.  Manual dGPU power down is not currently supported in
the Linux driver.  Some laptops indicate that the ATPX
dGPU power down method is not present, but it actually
apparently is.  I'm not sure if this is a bios bug and it should
be set or if there is a reason it was unset and the method should
not be used.  This is not an issue on other OSes since both the
ATPX and the manual driver power down methods are supported.

This is apparently fairly widespread, so just revert for now.

bugs:
https://bugzilla.kernel.org/show_bug.cgi?id=115321
https://bugzilla.kernel.org/show_bug.cgi?id=116581
https://bugzilla.kernel.org/show_bug.cgi?id=116251

Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/radeon_atpx_handler.c
drivers/gpu/drm/radeon/radeon_device.c