RE: [PATCH] drm/amd/display: correct idle_power_optimizations disablement return value

2022-07-06 Thread Quan, Evan
[AMD Official Use Only - General] > -Original Message- > From: Alex Deucher > Sent: Thursday, July 7, 2022 11:01 AM > To: Quan, Evan > Cc: amd-gfx list ; Deucher, Alexander > ; Pillai, Aurabindo > ; for 3.8 > Subject: Re: [PATCH] drm/amd/display: correct

Re: [PATCH] drm/amd/display: correct idle_power_optimizations disablement return value

2022-07-06 Thread Alex Deucher
On Wed, Jul 6, 2022 at 10:46 PM Evan Quan wrote: > > [Why] > The return value indicates whether the operation(disable/enable) succeeded > or not. The existing logic reports wrong result even if the disablement was > performed successfully. That will make succeeding reenablement abandoned > as

[PATCH] drm/amd/display: correct idle_power_optimizations disablement return value

2022-07-06 Thread Evan Quan
[Why] The return value indicates whether the operation(disable/enable) succeeded or not. The existing logic reports wrong result even if the disablement was performed successfully. That will make succeeding reenablement abandoned as dc->idle_optimizations_allowed is always true. [How] Correct the