diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3826-drm-amd-display-define-parameters-for-abm-2.3.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3826-drm-amd-display-define-parameters-for-abm-2.3.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3826-drm-amd-display-define-parameters-for-abm-2.3.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3826-drm-amd-display-define-parameters-for-abm-2.3.patch new file mode 100644 index 00000000..cff15a46 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3826-drm-amd-display-define-parameters-for-abm-2.3.patch @@ -0,0 +1,54 @@ +From 88bab55da9ecb7c77f35110a623f2c1dcd80b774 Mon Sep 17 00:00:00 2001 +From: Josip Pavic <Josip.Pavic@amd.com> +Date: Fri, 23 Aug 2019 20:54:12 -0400 +Subject: [PATCH 3826/4256] drm/amd/display: define parameters for abm 2.3 + +[Why] +Current configuration 0 is just a placeholder, and final parameters needed. +Also, configuration 1 is expected to emulate ABM 2.1 but is too aggressive. + +[How] +Redefine configuration 0 with the finalized parameters, and increase the +contrast gain of configuration 1 so that it properly emulates ABM 2.1. + +Signed-off-by: Josip Pavic <Josip.Pavic@amd.com> +Reviewed-by: Anthony Koo <Anthony.Koo@amd.com> +Acked-by: Leo Li <sunpeng.li@amd.com> +--- + .../amd/display/modules/power/power_helpers.c | 16 ++++++++-------- + 1 file changed, 8 insertions(+), 8 deletions(-) + +diff --git a/drivers/gpu/drm/amd/display/modules/power/power_helpers.c b/drivers/gpu/drm/amd/display/modules/power/power_helpers.c +index 05e2be856037..cc6b794821d9 100644 +--- a/drivers/gpu/drm/amd/display/modules/power/power_helpers.c ++++ b/drivers/gpu/drm/amd/display/modules/power/power_helpers.c +@@ -80,18 +80,18 @@ struct abm_parameters { + + static const struct abm_parameters abm_settings_config0[abm_defines_max_level] = { + // min_red max_red bright_pos dark_pos brightness_gain contrast deviation min_knee max_knee +- {0xff, 0xbf, 0x20, 0x00, 0xff, 0x99, 0xb3, 0x40, 0xE0}, +- {0xff, 0x85, 0x20, 0x00, 0xff, 0x90, 0xa8, 0x40, 0xE0}, +- {0xff, 0x40, 0x20, 0x00, 0xff, 0x90, 0x68, 0x40, 0xE0}, +- {0x82, 0x4d, 0x20, 0x00, 0x00, 0x90, 0xb3, 0x70, 0x70}, ++ {0xff, 0xbf, 0x20, 0x00, 0xff, 0x99, 0xb3, 0x40, 0xe0}, ++ {0xde, 0x85, 0x20, 0x00, 0xff, 0x90, 0xa8, 0x40, 0xdf}, ++ {0xb0, 0x50, 0x20, 0x00, 0xc0, 0x88, 0x78, 0x70, 0xa0}, ++ {0x82, 0x40, 0x20, 0x00, 0x00, 0xff, 0xb3, 0x70, 0x70}, + }; + + static const struct abm_parameters abm_settings_config1[abm_defines_max_level] = { + // min_red max_red bright_pos dark_pos brightness_gain contrast deviation min_knee max_knee +- {0xf0, 0xd9, 0x20, 0x00, 0x00, 0xa8, 0xb3, 0x70, 0x70}, +- {0xcd, 0xa5, 0x20, 0x00, 0x00, 0xa8, 0xb3, 0x70, 0x70}, +- {0x99, 0x65, 0x20, 0x00, 0x00, 0xa8, 0xb3, 0x70, 0x70}, +- {0x82, 0x4d, 0x20, 0x00, 0x00, 0xa8, 0xb3, 0x70, 0x70}, ++ {0xf0, 0xd9, 0x20, 0x00, 0x00, 0xff, 0xb3, 0x70, 0x70}, ++ {0xcd, 0xa5, 0x20, 0x00, 0x00, 0xff, 0xb3, 0x70, 0x70}, ++ {0x99, 0x65, 0x20, 0x00, 0x00, 0xff, 0xb3, 0x70, 0x70}, ++ {0x82, 0x4d, 0x20, 0x00, 0x00, 0xff, 0xb3, 0x70, 0x70}, + }; + + static const struct abm_parameters * const abm_settings[] = { +-- +2.17.1 + |