From: Charlene Liu <[email protected]>

[why]
Previous dcn315 BIOS has known dsc issue, not good for reuse their dsc settings.
this pre-OS dsc issue is fixed in dcn42 bios.
since there is no production bios update for older asic, limit our new code 
instead.

Reviewed-by: Mohit Bawa <[email protected]>
Signed-off-by: Charlene Liu <[email protected]>
Signed-off-by: George Zhang <[email protected]>
---
 drivers/gpu/drm/amd/display/dc/core/dc.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c 
b/drivers/gpu/drm/amd/display/dc/core/dc.c
index 4a1d63e157af..cea39eb70285 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
@@ -1945,6 +1945,13 @@ bool dc_validate_boot_timing(const struct dc *dc,
                struct display_stream_compressor *dsc = NULL;
                struct dcn_dsc_state dsc_state = {0};
 
+               if (dc->ctx->dce_version < DCN_VERSION_4_2) {
+                       /*vbios enabled eDP dsc for one of DCN315  only but it 
has known issue,
+                       since there is no production bios update, block it 
there*/
+                       DC_LOG_DEBUG("boot timing validation failed due to 
unsupported DSC on this ASIC\n");
+                       return false;
+               }
+
                /* Find DSC associated with this timing generator */
                if (tg_inst < (unsigned int)dc->res_pool->res_cap->num_dsc) {
                        dsc = dc->res_pool->dscs[tg_inst];
-- 
2.55.0

Reply via email to