Skip to contentSkip to conversation

Patch "drm/amdgpu/atom: fix ps allocation size for EnableDispPowerGating" has been added to the 4.9-stable tree

PATCH [email protected] 1 participant 1 message Jun 26, 2017

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

drm/amdgpu/atom: fix ps allocation size for EnableDispPowerGating

to the 4.9-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-amdgpu-atom-fix-ps-allocation-size-for-enabledisppowergating.patch
and it can be found in the queue-4.9 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 05b4017b37f1fce4b7185f138126dd8decdb381f Mon Sep 17 00:00:00 2001

From: Alex Deucher <[email protected]>
Date: Thu, 15 Jun 2017 10:55:11 -0400
Subject: drm/amdgpu/atom: fix ps allocation size for EnableDispPowerGating
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

From: Alex Deucher <[email protected]>

commit 05b4017b37f1fce4b7185f138126dd8decdb381f upstream.

We were using the wrong structure which lead to an overflow on some boards.

---
 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c +2 -2
@@ -164,7 +164,7 @@ void amdgpu_atombios_crtc_powergate(stru
 	struct drm_device *dev = crtc->dev;
 	struct amdgpu_device *adev = dev->dev_private;
 	int index = GetIndexIntoMasterTable(COMMAND, EnableDispPowerGating);
-	ENABLE_DISP_POWER_GATING_PARAMETERS_V2_1 args;
+	ENABLE_DISP_POWER_GATING_PS_ALLOCATION args;
 
 	memset(&args, 0, sizeof(args));
 
@@ -177,7 +177,7 @@ void amdgpu_atombios_crtc_powergate(stru
 void amdgpu_atombios_crtc_powergate_init(struct amdgpu_device *adev)
 {
 	int index = GetIndexIntoMasterTable(COMMAND, EnableDispPowerGating);
-	ENABLE_DISP_POWER_GATING_PARAMETERS_V2_1 args;
+	ENABLE_DISP_POWER_GATING_PS_ALLOCATION args;
 
 	memset(&args, 0, sizeof(args));
 

Patches currently in stable-queue which might be from [email protected] are

queue-4.9/drm-radeon-add-a-px-quirk-for-another-k53tk-variant.patch queue-4.9/drm-amdgpu-atom-fix-ps-allocation-size-for-enabledisppowergating.patch queue-4.9/drm-amdgpu-adjust-default-display-clock.patch queue-4.9/drm-radeon-add-a-quirk-for-toshiba-satellite-l20-183.patch