]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/radeon: fix check for port PM availability
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 28 Nov 2016 22:23:40 +0000 (17:23 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Dec 2016 06:16:19 +0000 (07:16 +0100)
commitf67b89acdfa14ce83c8101e52f239b31910e8d83
tree28ed4a94d081c34a6a5caad2e163cc1af3a05872
parent835bb5cd36539d8a5f44a49d32f5e835c6c3f03b
drm/radeon: fix check for port PM availability

commit bcfdd5d5105087e6f33dfeb08a1ca6b2c0287b61 upstream.

The ATPX method does not always exist on the dGPU, it may be located at
the iGPU. The parent device of the iGPU is the root port for which
bridge_d3 is false. This accidentally enables the legacy PM method which
conflicts with port PM and prevented the dGPU from powering on.

Ported from amdgpu commit:
drm/amdgpu: fix check for port PM availability
from Peter Wu.

Fixes: d3ac31f3b4bf9fad (drm/radeon: fix power state when port pm is unavailable (v2))
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Peter Wu <peter@lekensteyn.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_atpx_handler.c