Patch "drm/amd/display: parse umc_info or vram_info based on ASIC" has been added to the 6.12-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/amd/display: parse umc_info or vram_info based on ASIC

to the 6.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-amd-display-parse-umc_info-or-vram_info-based-on.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 610787a45382064cf689ca9021f9587077535dd2
Author: Aurabindo Pillai <aurabindo.pillai@xxxxxxx>
Date:   Fri Oct 18 10:52:16 2024 -0400

    drm/amd/display: parse umc_info or vram_info based on ASIC
    
    [ Upstream commit 2551b4a321a68134360b860113dd460133e856e5 ]
    
    An upstream bug report suggests that there are production dGPUs that are
    older than DCN401 but still have a umc_info in VBIOS tables with the
    same version as expected for a DCN401 product. Hence, reading this
    tables should be guarded with a version check.
    
    Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3678
    Reviewed-by: Dillon Varone <dillon.varone@xxxxxxx>
    Signed-off-by: Aurabindo Pillai <aurabindo.pillai@xxxxxxx>
    Signed-off-by: Zaeem Mohamed <zaeem.mohamed@xxxxxxx>
    Tested-by: Daniel Wheeler <daniel.wheeler@xxxxxxx>
    Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
index c9a6de110b742..902491669cbc7 100644
--- a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
+++ b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
@@ -3127,7 +3127,9 @@ static enum bp_result bios_parser_get_vram_info(
 	struct atom_data_revision revision;
 
 	// vram info moved to umc_info for DCN4x
-	if (info && DATA_TABLES(umc_info)) {
+	if (dcb->ctx->dce_version >= DCN_VERSION_4_01 &&
+		dcb->ctx->dce_version < DCN_VERSION_MAX &&
+		info && DATA_TABLES(umc_info)) {
 		header = GET_IMAGE(struct atom_common_table_header,
 					DATA_TABLES(umc_info));
 




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux