diff options
author | Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> | 2022-09-08 11:37:58 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-10-06 11:57:51 -0400 |
commit | ab5220bb5a910246c61512a9e29a4e2406cb1ecd (patch) | |
tree | a1ee7642a1fe34df800af8be08750675681daf81 /drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.c | |
parent | c1969fbaa57d88ddef626bb8ae313d38478d8631 (diff) | |
download | linux-stable-ab5220bb5a910246c61512a9e29a4e2406cb1ecd.tar.gz linux-stable-ab5220bb5a910246c61512a9e29a4e2406cb1ecd.tar.bz2 linux-stable-ab5220bb5a910246c61512a9e29a4e2406cb1ecd.zip |
drm/amd/display: fix dcn315 dml detile overestimation
DML does not take the fact that dcn315 does not have enough detile
buffer to max all pipes. This change adds a workaround to apply
the same logic DC does when calculating detile buffer size in DML.
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.c')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.c b/drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.c index f5400eda07a5..4125d3d111d1 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.c +++ b/drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.c @@ -114,6 +114,7 @@ void dml_init_instance(struct display_mode_lib *lib, break; case DML_PROJECT_DCN31: case DML_PROJECT_DCN31_FPGA: + case DML_PROJECT_DCN315: lib->funcs = dml31_funcs; break; case DML_PROJECT_DCN314: |