RE: [PATCH 2/2] drma/dmgpu: drop redundant cg/pg ungate on runpm enter

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

 



Thanks. Corrected this on code submission.

Regards,
Evan
-----Original Message-----
From: Alex Deucher <alexdeucher@xxxxxxxxx> 
Sent: Friday, April 24, 2020 10:04 PM
To: Quan, Evan <Evan.Quan@xxxxxxx>
Cc: amd-gfx list <amd-gfx@xxxxxxxxxxxxxxxxxxxxx>; Deucher, Alexander <Alexander.Deucher@xxxxxxx>; Kuehling, Felix <Felix.Kuehling@xxxxxxx>; Liang, Prike <Prike.Liang@xxxxxxx>
Subject: Re: [PATCH 2/2] drma/dmgpu: drop redundant cg/pg ungate on runpm enter

On Fri, Apr 24, 2020 at 10:02 AM Alex Deucher <alexdeucher@xxxxxxxxx> wrote:
>
> Also, I just noticed a typo in the patch title:
>
> drma/dmgpu -> drm/admgpu

Can't type.

drma/dmgpu -> drm/amdgpu

Alex

>
> Alex
>
> On Fri, Apr 24, 2020 at 4:06 AM Evan Quan <evan.quan@xxxxxxx> wrote:
> >
> > CG/PG ungate is already performed in ip_suspend_phase1. Otherwise, 
> > the CG/PG ungate will be performed twice. That will cause gfxoff 
> > disablement is performed twice also on runpm enter while gfxoff 
> > enablemnt once on rump exit. That will put gfxoff into disabled 
> > state.
> >
> > Change-Id: I489ca456770d3fe482b685f132400202467f712b
> > Signed-off-by: Evan Quan <evan.quan@xxxxxxx>
> > ---
> >  drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ---
> >  1 file changed, 3 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 
> > b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> > index 08eeb0d2c149..71278942f9f0 100644
> > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> > @@ -3453,9 +3453,6 @@ int amdgpu_device_suspend(struct drm_device *dev, bool fbcon)
> >                 }
> >         }
> >
> > -       amdgpu_device_set_pg_state(adev, AMD_PG_STATE_UNGATE);
> > -       amdgpu_device_set_cg_state(adev, AMD_CG_STATE_UNGATE);
> > -
> >         amdgpu_ras_suspend(adev);
> >
> >         r = amdgpu_device_ip_suspend_phase1(adev);
> > --
> > 2.26.2
> >
> > _______________________________________________
> > amd-gfx mailing list
> > amd-gfx@xxxxxxxxxxxxxxxxxxxxx
> > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fli
> > sts.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=02%7C01%
> > 7Cevan.quan%40amd.com%7Cca47ab8d659f48905ecd08d7e8584fd3%7C3dd8961fe
> > 4884e608e11a82d994e183d%7C0%7C0%7C637233338316990767&amp;sdata=LqQrJ
> > Q3XTLmdCWvCKEpxOXEatrSjoswoQEb%2B7QDahGw%3D&amp;reserved=0
_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
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