[PATCH] drm/amdgpu/atom: fix ps allocation size for EnableDispPowerGating

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Acked-by: Chunming Zhou <david1.zhou at amd.com>

On 2017å¹´06æ??20æ?¥ 00:58, Alex Deucher wrote:
> Ping?
>
> On Thu, Jun 15, 2017 at 11:17 AM, Alex Deucher <alexdeucher at gmail.com> wrote:
>> We were using the wrong structure which lead to an overflow
>> on some boards.
>>
>> bug: https://bugs.freedesktop.org/show_bug.cgi?id=101387
>> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
>> Cc: stable at vger.kernel.org
>> ---
>>   drivers/gpu/drm/amd/amdgpu/atombios_crtc.c | 4 ++--
>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/atombios_crtc.c b/drivers/gpu/drm/amd/amdgpu/atombios_crtc.c
>> index 8c9bc75..8a0818b 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/atombios_crtc.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/atombios_crtc.c
>> @@ -165,7 +165,7 @@ void amdgpu_atombios_crtc_powergate(struct drm_crtc *crtc, int state)
>>          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));
>>
>> @@ -178,7 +178,7 @@ void amdgpu_atombios_crtc_powergate(struct drm_crtc *crtc, int state)
>>   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));
>>
>> --
>> 2.5.5
>>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux