]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/amdgpu: fix check for port PM availability
authorPeter Wu <peter@lekensteyn.nl>
Sat, 26 Nov 2016 14:05:01 +0000 (15:05 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Nov 2016 14:23:39 +0000 (09:23 -0500)
commit7ac33e47d5769632010e537964c7e45498f8dc26
tree9257fdb265c32ad3a3c54541586efaae0407b1f1
parentb64268d8a3f623c9b88676ad3dfacc95cfcfc62f
drm/amdgpu: fix check for port PM availability

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.

Fixes: 1db4496f167b ("drm/amdgpu: fix power state when port pm is unavailable")
Reported-and-tested-by: Mike Lothian <mike@fireburn.co.uk>
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: <stable@vger.kernel.org> # 4.8+
drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c