]> www.infradead.org Git - users/hch/configfs.git/commitdiff
drm/amd/display: Set max VTotal cap for dcn401
authorDillon Varone <dillon.varone@amd.com>
Fri, 2 Aug 2024 17:50:10 +0000 (13:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Aug 2024 14:44:57 +0000 (10:44 -0400)
[WHY&HOW]
Set max VTotal cap for dcn401 because VTotal
register is only 16 bits wide on dcn401.

Reviewed-by: Chris Park <chris.park@amd.com>
Signed-off-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@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/resource/dcn401/dcn401_resource.c

index ec676d269d33f59a7dcfe31691ecc7e89c0bf2ab..02e63b95c36d396f581c89a85639b068cb3aad56 100644 (file)
@@ -1822,6 +1822,7 @@ static bool dcn401_resource_construct(
        dc->caps.edp_dsc_support = true;
        dc->caps.extended_aux_timeout_support = true;
        dc->caps.dmcub_support = true;
+       dc->caps.max_v_total = (1 << 15) - 1;
 
        if (ASICREV_IS_GC_12_0_1_A0(dc->ctx->asic_id.hw_internal_rev))
                dc->caps.dcc_plane_width_limit = 7680;