From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0D0B36D1B4; Tue, 14 May 2024 10:46:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715683599; cv=none; b=He9UYaIJv5SIcGLd5nbO8Ej+vZHkZVOrA4xPAPjCz++bZNjvyeGf7uBWLcOoHB3OivZt8FcCxSnFrqcnnq9cJ2sM/w99rnhLgBUt1zGFcG+4S3e76v7JVdntGosOF+HntiZkdK3XiEc+MtxQBKpVVA92DcjeqQX859xSAYvm7a4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715683599; c=relaxed/simple; bh=vNY0tcemwQha521ETWDiovU/GBBi1CqKpeYx0OVVcck=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=n0GFFnB1t3/tNrxsliSWu/fm7rXzvbC9q9JSzsvlW8FThEM0t4huUlM/uPFcm9ntfKyVk1cfvR+FgOH0KS08RVMXYhFm+NLjdC8QTxFF+c9rDXW8/c8Xo9IqyGDtE7UaywrplwjAo9wSpB8gERxJrnt4Rd8YU5/QawPb9/KvW/0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fpuBqsP9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="fpuBqsP9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DB54C2BD10; Tue, 14 May 2024 10:46:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715683598; bh=vNY0tcemwQha521ETWDiovU/GBBi1CqKpeYx0OVVcck=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fpuBqsP928EckNToUwETyI/9ZkHgcl/NpnQQkhqA9qYyNNssX3GtCPEMEiynn4zGi JXVxbamDLmm6Tdk48W4GaqUfRvrSMcgk0dR7mrymZmjpyHk12tuT7A8cckJACQT0DL df9dHgDlfNmCwr9hj9tKBcLPAQP9+ttItZKrO87Q= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Nicholas Kazlauskas , Aurabindo Pillai , Gabe Teeger , Daniel Wheeler , Alex Deucher , Sasha Levin Subject: [PATCH 6.8 240/336] drm/amd/display: Atom Integrated System Info v2_2 for DCN35 Date: Tue, 14 May 2024 12:17:24 +0200 Message-ID: <20240514101047.675152807@linuxfoundation.org> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240514101038.595152603@linuxfoundation.org> References: <20240514101038.595152603@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.8-stable review patch. If anyone has any objections, please let me know. ------------------ From: Gabe Teeger [ Upstream commit 9a35d205f466501dcfe5625ca313d944d0ac2d60 ] New request from KMD/VBIOS in order to support new UMA carveout model. This fixes a null dereference from accessing Ctx->dc_bios->integrated_info while it was NULL. DAL parses through the BIOS and extracts the necessary integrated_info but was missing a case for the new BIOS version 2.3. Reviewed-by: Nicholas Kazlauskas Acked-by: Aurabindo Pillai Signed-off-by: Gabe Teeger Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c | 1 + 1 file changed, 1 insertion(+) 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 05f392501c0ae..ab31643b10969 100644 --- a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c +++ b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c @@ -2948,6 +2948,7 @@ static enum bp_result construct_integrated_info( result = get_integrated_info_v2_1(bp, info); break; case 2: + case 3: result = get_integrated_info_v2_2(bp, info); break; default: -- 2.43.0