diff options
author | Leo Li <sunpeng.li@amd.com> | 2019-10-21 14:58:47 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-10-25 16:50:10 -0400 |
commit | eaf56410ccb06f4af9475b7018ec46aa022ee99e (patch) | |
tree | 705819a2b47e610e74e11ba63f7a7017dc6110db /drivers/gpu/drm/amd/include/amd_shared.h | |
parent | 9f0256da6ba0fbe05f4e86d5b1153f89b54c5fd4 (diff) | |
download | linux-eaf56410ccb06f4af9475b7018ec46aa022ee99e.tar.gz linux-eaf56410ccb06f4af9475b7018ec46aa022ee99e.tar.bz2 linux-eaf56410ccb06f4af9475b7018ec46aa022ee99e.zip |
drm/amdgpu: Add DC feature mask to disable fractional pwm
[Why]
Some LED panel drivers might not like fractional PWM. In such cases,
backlight flickering may be observed.
[How]
Add a DC feature mask to disable fractional PWM, and associate it with
the preexisting dc_config flag.
The flag is only plumbed through the dmcu firmware, so plumb it through
the driver path as well.
To disable, add the following to the linux cmdline:
amdgpu.dcfeaturemask=0x4
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=204957
Signed-off-by: Leo Li <sunpeng.li@amd.com>
Reviewed-by: Anthony Koo <anthony.koo@amd.com>
Tested-by: Lukáš Krejčí <lskrejci@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/include/amd_shared.h')
-rw-r--r-- | drivers/gpu/drm/amd/include/amd_shared.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/include/amd_shared.h b/drivers/gpu/drm/amd/include/amd_shared.h index 8340ec0ab792..dc7eb28f0296 100644 --- a/drivers/gpu/drm/amd/include/amd_shared.h +++ b/drivers/gpu/drm/amd/include/amd_shared.h @@ -143,6 +143,7 @@ enum PP_FEATURE_MASK { enum DC_FEATURE_MASK { DC_FBC_MASK = 0x1, DC_MULTI_MON_PP_MCLK_SWITCH_MASK = 0x2, + DC_DISABLE_FRACTIONAL_PWM_MASK = 0x4, DC_PSR_MASK = 0x8, }; |