Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

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

bug: https://bugs.freedesktop.org/show_bug.cgi?id=101387
Acked-by: Chunming Zhou <david1.zhou@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org

+2 -2
+2 -2
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c
··· 165 165 struct drm_device *dev = crtc->dev; 166 166 struct amdgpu_device *adev = dev->dev_private; 167 167 int index = GetIndexIntoMasterTable(COMMAND, EnableDispPowerGating); 168 - ENABLE_DISP_POWER_GATING_PARAMETERS_V2_1 args; 168 + ENABLE_DISP_POWER_GATING_PS_ALLOCATION args; 169 169 170 170 memset(&args, 0, sizeof(args)); 171 171 ··· 178 178 void amdgpu_atombios_crtc_powergate_init(struct amdgpu_device *adev) 179 179 { 180 180 int index = GetIndexIntoMasterTable(COMMAND, EnableDispPowerGating); 181 - ENABLE_DISP_POWER_GATING_PARAMETERS_V2_1 args; 181 + ENABLE_DISP_POWER_GATING_PS_ALLOCATION args; 182 182 183 183 memset(&args, 0, sizeof(args)); 184 184