drm/amd/display: refine the EDID override
authorjinzh <jinzh@github.amd.com>
Thu, 10 Feb 2022 14:50:06 +0000 (22:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 4 Mar 2022 18:03:29 +0000 (13:03 -0500)
[Why]
We already get the SBIOS EDID via ACPI on KMD,
but after that, we just use the monitor EDID to set it HDR caps

[How]
Make the SBIOS EDID override to read_edid()
That can change the read EDID caps from the right EDID

Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: jinzh <jinzh@github.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/dm_helpers.h

index b71b5fb..31109db 100644 (file)
@@ -184,4 +184,7 @@ int dm_helpers_dmub_set_config_sync(struct dc_context *ctx,
                const struct dc_link *link,
                struct set_config_cmd_payload *payload,
                enum set_config_status *operation_result);
+
+enum dc_edid_status dm_helpers_get_sbios_edid(struct dc_link *link, struct dc_edid *edid);
+
 #endif /* __DM_HELPERS__ */