Re: [RFC PATCH RESEND] drm/amd/display: Add back missing backlight level rounding

2019-10-17 Thread Li, Sun peng (Leo)
Thanks for the detailed notes! See reply inline. On 2019-10-15 4:03 p.m., Lukáš Krejčí wrote: > [Why] > Having the rounding of the backlight value restored to the way it was > seemingly gets rid of backlight flickering on certain Stoney Ridge > laptops. > > [How] > Rescale the backlight level bet

[RFC PATCH RESEND] drm/amd/display: Add back missing backlight level rounding

2019-10-15 Thread Lukáš Krejčí
[Why] Having the rounding of the backlight value restored to the way it was seemingly gets rid of backlight flickering on certain Stoney Ridge laptops. [How] Rescale the backlight level between min and max input signal value and round it to a number between 0x0 and 0xFF. Then, use the rounding mod