]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:13:27 +0000 (11:13 +0200)
[ Upstream commit d8c782cac5007e68e7484d420168f12d3490def6 ]

[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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/core/dc.c

index 167f9d99a5408e63ad70509c7f7d765aecc0843f..0ce0ad7f983963be9f96649a30f73af9a23128a8 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) {