diff options
author | Dave Airlie <airlied@redhat.com> | 2018-11-02 05:56:24 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2018-11-02 05:56:28 +0300 |
commit | 43e0f873b2f2226f454930172f8090819d380f5a (patch) | |
tree | 4eed99a486aa1ef6c7f30aafbeca29443c3a91d8 /drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | |
parent | 52b50ae1af8a9672792c55b23471a3488dec7229 (diff) | |
parent | 9d064be1e6a195eaaa3762af5c7c6cd3f66aa6cc (diff) | |
download | linux-43e0f873b2f2226f454930172f8090819d380f5a.tar.xz |
Merge branch 'drm-next-4.20' of git://people.freedesktop.org/~agd5f/linux into drm-next
- Fix flickering at low backlight levels on some systems
- Fix some overclocking regressions
- Vega20 updates for
- GPU recovery fixes
- Disable gfxoff on RV as some sbios/fw combinations are not stable yet
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Alex Deucher <alexdeucher@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181101151939.2828-1-alexander.deucher@amd.com
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c')
-rw-r--r-- | drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index e224f23e2215..b0df6dc9a775 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -1524,6 +1524,13 @@ static int amdgpu_dm_backlight_update_status(struct backlight_device *bd) { struct amdgpu_display_manager *dm = bl_get_data(bd); + /* + * PWM interperts 0 as 100% rather than 0% because of HW + * limitation for level 0.So limiting minimum brightness level + * to 1. + */ + if (bd->props.brightness < 1) + return 1; if (dc_link_set_backlight_level(dm->backlight_link, bd->props.brightness, 0, 0)) return 0; |