drm/amd/display: Add use_max_lsw parameter
authorOleh Kuzhylnyi <okuzhyln@amd.com>
Tue, 25 Nov 2025 14:34:37 +0000 (15:34 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Dec 2025 18:25:17 +0000 (13:25 -0500)
[WHY&HOW]
Add use_max_lsw parameter to make prefetch for linear surfaces similar to
tiled.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Oleh Kuzhylnyi <okuzhyln@amd.com>
Signed-off-by: Chenyu Chen <chen-yu.chen@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/inc/dml_top_display_cfg_types.h
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_shared_types.h

index 35aa954..b44762e 100644 (file)
@@ -407,6 +407,7 @@ struct dml2_plane_parameters {
                unsigned int hostvm_min_page_size_kbytes;
 
                enum dml2_svp_mode_override legacy_svp_config; //TODO remove in favor of svp_config
+               bool use_max_lsw;
 
                struct {
                        // HW specific overrides, there's almost no reason to mess with these
index 1087a8c..953f40f 100644 (file)
@@ -1950,6 +1950,7 @@ struct dml2_core_calcs_CalculatePrefetchSchedule_params {
        double Ttrip;
        double Turg;
        bool setup_for_tdlut;
+       bool use_max_lsw;
        unsigned int tdlut_pte_bytes_per_frame;
        unsigned int tdlut_bytes_per_frame;
        double tdlut_opt_time;