Re: [PATCH] drm/amdgpu: Remove duplicated power source update

2018-08-23 Thread Deucher, Alexander
In that case, Reviewed-by: Alex Deucher From: amd-gfx on behalf of Zhu, Rex Sent: Thursday, August 23, 2018 8:41:28 AM To: Alex Deucher Cc: Wu, Hersen; amd-gfx list Subject: RE: [PATCH] drm/amdgpu: Remove duplicated power source update Hi Alex, We get

RE: [PATCH] drm/amdgpu: Remove duplicated power source update

2018-08-23 Thread Zhu, Rex
Hi Alex, We get initial state in amdgpu_device_init. Best Regards Rex > -Original Message- > From: Alex Deucher > Sent: Thursday, August 23, 2018 8:37 PM > To: Zhu, Rex > Cc: amd-gfx list ; Wu, Hersen > > Subject: Re: [PATCH] drm/amdgpu: Remove duplicate

Re: [PATCH] drm/amdgpu: Remove duplicated power source update

2018-08-23 Thread Alex Deucher
On Thu, Aug 23, 2018 at 2:40 AM Rex Zhu wrote: > > when ac/dc switch, driver will be notified by acpi event. > then the power source will be updated. so don't need to > get power source when set power state. Don't we need this to get the initial state? Maybe we should move this to one of the ini

[PATCH] drm/amdgpu: Remove duplicated power source update

2018-08-22 Thread Rex Zhu
when ac/dc switch, driver will be notified by acpi event. then the power source will be updated. so don't need to get power source when set power state. Signed-off-by: Rex Zhu --- drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/gpu/drm/am