Patch "drm/radeon: disable runtime pm in certain cases" has been added to the 4.8-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
drm/radeon: disable runtime pm in certain cases
to the 4.8-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
drm-radeon-disable-runtime-pm-in-certain-cases.patch
and it can be found in the queue-4.8 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
066f1f0b4719eb4573ef09bfc63c2bbb6f7676caMon Sep 17 00:00:00 2001
From: Alex Deucher <[email protected]>
Date: Mon, 31 Oct 2016 10:41:49 -0400
Subject: drm/radeon: disable runtime pm in certain cases
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From: Alex Deucher <[email protected]>
commit 066f1f0b4719eb4573ef09bfc63c2bbb6f7676ca upstream.
If the platform does not support hybrid graphics or ATPX dGPU power control.
--- drivers/gpu/drm/radeon/radeon_device.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)
drivers/gpu/drm/radeon/radeon_device.c +13 -0
@@ -104,6 +104,14 @@ static const char radeon_family_name[][1 "LAST", }; +#if defined(CONFIG_VGA_SWITCHEROO ) +bool radeon_has_atpx_dgpu_power_cntl (void ); +bool radeon_is_atpx_hybrid (void ); +#else +static inline bool radeon_has_atpx_dgpu_power_cntl (void ) {return false; } +static inline bool radeon_is_atpx_hybrid (void ) {return false; } +#endif +#define RADEON_PX_QUIRK_DISABLE_PX (1 << 0)#define RADEON_PX_QUIRK_LONG_WAKEUP (1 << 1)
@@ -160,6 +168,11 @@ static void radeon_device_handle_px_quirif (rdev->px_quirk_flags &RADEON_PX_QUIRK_DISABLE_PX ) rdev->flags &= ~RADEON_IS_PX ; + +/* disable PX is the system doesn't support dGPU power control or hybrid gfx */ +if (!radeon_is_atpx_hybrid () && + !radeon_has_atpx_dgpu_power_cntl ()) + rdev->flags &= ~RADEON_IS_PX ; }/**
Patches currently in stable-queue which might be from [email protected] are
queue-4.8/drm-radeon-disable-runtime-pm-in-certain-cases.patch queue-4.8/drm-amdgpu-fix-crash-in-acp_hw_fini.patch queue-4.8/drm-amdgpu-disable-runtime-pm-in-certain-cases.patch