]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Initial psr_version with correct setting
authorTom Chung <chiahsuan.chung@amd.com>
Mon, 13 Jan 2025 06:22:31 +0000 (14:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:02:59 +0000 (21:02 -0500)
[Why & How]
The initial setting for psr_version is not correct while
create a virtual link.

The default psr_version should be DC_PSR_VERSION_UNSUPPORTED.

Reviewed-by: Roman Li <roman.li@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Zaeem Mohamed <zaeem.mohamed@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/core/dc.c

index ba3a34fad26a68f976ab10c463b870ece2ee3cdb..f08d3d4673729bda5cee12d731ac7483a8362ea7 100644 (file)
@@ -276,6 +276,7 @@ static bool create_links(
                link->link_id.type = OBJECT_TYPE_CONNECTOR;
                link->link_id.id = CONNECTOR_ID_VIRTUAL;
                link->link_id.enum_id = ENUM_ID_1;
+               link->psr_settings.psr_version = DC_PSR_VERSION_UNSUPPORTED;
                link->link_enc = kzalloc(sizeof(*link->link_enc), GFP_KERNEL);
 
                if (!link->link_enc) {