From 94bc75d018aabd0756312a998667e61608b3decd Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 25 Aug 2022 23:52:56 +0000 Subject: [PATCH] drm/amd/display: Check correct bounds for stream encoder instances for DCN303 From Aurabindo Pillai 82a27c1855445d48aacc67b0c0640f3dadebe52f in linux 5.15.y/5.15.63 89b008222c2bf21e50219725caed31590edfd9d1 in mainline linux --- sys/dev/pci/drm/amd/display/dc/dcn303/dcn303_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/amd/display/dc/dcn303/dcn303_resource.c b/sys/dev/pci/drm/amd/display/dc/dcn303/dcn303_resource.c index 589ddab61c2..7aad0340f79 100644 --- a/sys/dev/pci/drm/amd/display/dc/dcn303/dcn303_resource.c +++ b/sys/dev/pci/drm/amd/display/dc/dcn303/dcn303_resource.c @@ -500,7 +500,7 @@ static struct stream_encoder *dcn303_stream_encoder_create(enum engine_id eng_id int afmt_inst; /* Mapping of VPG, AFMT, DME register blocks to DIO block instance */ - if (eng_id <= ENGINE_ID_DIGE) { + if (eng_id <= ENGINE_ID_DIGB) { vpg_inst = eng_id; afmt_inst = eng_id; } else -- 2.20.1