]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
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 35aa954248cdc126a9287104d0dffe4b4a2ff16f..b44762e21550f0a3a8519637303afb742c3fa43a 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 1087a8c926ff1f7c04f928b6ffc63627619f0fe2..953f40fde1e153d93cfe42f3506a5db152873ad0 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;