Skip to content

Commit 5265278

Browse files
alexdeuchergregkh
authored andcommitted
drm/amdgpu/atom: fix ps allocation size for EnableDispPowerGating
commit 05b4017b37f1fce4b7185f138126dd8decdb381f upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 4f3d0f4 commit 5265278

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/gpu/drm/amd/amdgpu/atombios_crtc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void amdgpu_atombios_crtc_powergate(struct drm_crtc *crtc, int state)
164164
struct drm_device *dev = crtc->dev;
165165
struct amdgpu_device *adev = dev->dev_private;
166166
int index = GetIndexIntoMasterTable(COMMAND, EnableDispPowerGating);
167-
ENABLE_DISP_POWER_GATING_PARAMETERS_V2_1 args;
167+
ENABLE_DISP_POWER_GATING_PS_ALLOCATION args;
168168

169169
memset(&args, 0, sizeof(args));
170170

@@ -177,7 +177,7 @@ void amdgpu_atombios_crtc_powergate(struct drm_crtc *crtc, int state)
177177
void amdgpu_atombios_crtc_powergate_init(struct amdgpu_device *adev)
178178
{
179179
int index = GetIndexIntoMasterTable(COMMAND, EnableDispPowerGating);
180-
ENABLE_DISP_POWER_GATING_PARAMETERS_V2_1 args;
180+
ENABLE_DISP_POWER_GATING_PS_ALLOCATION args;
181181

182182
memset(&args, 0, sizeof(args));
183183

0 commit comments

Comments
 (0)