[PATCH] XXX: hack: use atpx rather than HG for runpm v2

Alex Deucher alexdeucher at gmail.com
Wed Aug 21 22:20:33 UTC 2019


force power control even if ATPX claims to not support it.

Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c
index c13c51af0b68..1816f8189e87 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c
@@ -210,8 +210,8 @@ static int amdgpu_atpx_validate(struct amdgpu_atpx *atpx)
 		 * Disable legacy PM methods only when pcie port PM is usable,
 		 * otherwise the device might fail to power off or power on.
 		 */
-		atpx->functions.power_cntl = !amdgpu_atpx_priv.bridge_pm_usable;
-		atpx->is_hybrid = true;
+		atpx->functions.power_cntl = true;//!amdgpu_atpx_priv.bridge_pm_usable;
+//		atpx->is_hybrid = true;
 	}
 
 	atpx->dgpu_req_power_for_displays = false;
-- 
2.13.6



More information about the amd-gfx mailing list