Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp174688lqo; Tue, 7 May 2024 16:41:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWN1P5s82iZguH1Kh2K6JIGCq6QZCkn/OvW20uLyAlgijyzR+MIdFF6p5yBEC3lheCOCUtvm+g2qn+MYj/qqC7xrwOKudixchN1HMT+EA== X-Google-Smtp-Source: AGHT+IH4hUzevhCqz/SSUX7Op7eQMetSG4/1lM2rJhDVozbHYHbSniWDQY0zVfZj1Gni2NVIS1Z7 X-Received: by 2002:a05:620a:147c:b0:792:6e88:2800 with SMTP id af79cd13be357-792b27459e9mr140300985a.57.1715125308232; Tue, 07 May 2024 16:41:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715125308; cv=pass; d=google.com; s=arc-20160816; b=W67iIKavO7ugcvW/PqYvqUEXcqDO/ie/fJiRhfCvjoQHUJ0+w18dGNyM+v3RUnvXPH GWlRegfnPjPLXQXQcmlbkMMaVeRdbeGVxASP9BFIT46RGyiLlhCx1B7XevWAvZQAf/CD fzWU2drcdG58qkuEjrQJNZfuPOyyqg4GH8sqeP2gMICYZz26Qv9IiskSbuhsrnqcbcLd a8PHvxBJNkEOwg8/H+QFz2MC/S2FdSZkxAt0nlxsHpyUrxmAGaU6SgUXo7WM4WSmfY/6 pGN1Tybk+CACmR9ctoARbHmnzaIPJKzkCt0TJrPFqhe11+UEN2a8NUhicQOEMyO3OUuI F+JQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=5K+gBQijqcjOsns+NL+PJOd9DRkMI21sLf8DHHzVY8Y=; fh=kXY6mkds6fGSCVtmzrR7Qr8V9o5LJXKW07+Hw1AZTdY=; b=ZpxDoBpRVwZZr2hVgc9SEe08gkMctGRTClM2kJEzUd0mDOjqoW8A7wSxJ+pidr/IKI fDlyExAD0t92Hv2/Zj99GLlZI0uYzhng0OB3vDeHWoFoPYUIcFp7BnLT5Cf8ZMN8U++M 2OOr9aJuh//HI3bnUHM9EDboqnRB+cTTsHxCXtVZHiX6IfrM2gFXYUSwHnZ+zdrZRb42 1nG+XhFTMz9iGr6k8onthHjoyhOnfgfMTCzXR1o5WzQVoPv2COF3p1Wde71SySTvGNHY EPQVZwMV8xB1A5hAtDDHEkgX41dpC0BYvLF3rgZvhlX5aXBlKFmvwZo1JGtntJZbGKqn XwEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fIh1xjhF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172425-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172425-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d10-20020a05620a240a00b0078ecdb3c832si13774989qkn.781.2024.05.07.16.41.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 16:41:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172425-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fIh1xjhF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172425-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172425-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id EF8E11C22B26 for ; Tue, 7 May 2024 23:41:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB961137925; Tue, 7 May 2024 23:11:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fIh1xjhF" 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 0FB9913791F; Tue, 7 May 2024 23:11:36 +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=1715123496; cv=none; b=WqHUFoIrC8wV9o3jRP5AaKhbhKyVf+Xfxe6VVmQuCMtTbs6bd/EbCCfHFEN/s205d7mzx12g+fM6R8C8gLgKL7q7DZmkeylVkfhhxB/JPQ+zCtHKl4Vzm0YhVFZvsbPGdVIf6MIznKWg5xmK0Wz5FObD8w5Kf5unI/clJWlT/48= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715123496; c=relaxed/simple; bh=3mbKwu6yhW+loSsWzZ+Y9ZwzY22b25iDBTwGIjMHOlM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GSKZLnedLnQh6Tt4Deyv/eRcsl4BecqjBEAsoBWwPr8FpRk7xiLU5LJ2v2AU55ypKvqJxnUHOXNzPVcpiPYhF6PDXGXFnahml15SZSrCwbrfgBThp8VeJqtB4S0g6RmIp/frun4EA2vIe4Z740w2zCsjNrhcgCcKFOuzMOV0uYM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fIh1xjhF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B40C1C2BBFC; Tue, 7 May 2024 23:11:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715123495; bh=3mbKwu6yhW+loSsWzZ+Y9ZwzY22b25iDBTwGIjMHOlM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fIh1xjhF21ZTrJvIZcfG1sYyxo+rCCB7qo5qSU6+ai8o6G/Ob0WNiTZhAf/Dl44id EdBG2IAkig9jNZ7s7h0E6TCDI0j7wqtzouh3PQPjCWwU/30JhCXklD+mUAJXhxvrRX nph7819jwqBZ/zUb8UMTXuKcNl2WjK3/2u1un8FKQuMMrtPXJTTjGWq5EdaQ7KvAuI 4k4nQJ/vCZnx55RUDrZt3RMQYBCH4pwzHxkxEB7DD+7wy9Av/ZL0Nz6ltFGrzQgzud Y3IifJ+tra6RsuIf8YcLybmmYENEsk56HQC1kMjfeP/hQ1awdcwSkMagrQ81FMqMzj Yzt4DPsNnBuPQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Gabe Teeger , Nicholas Kazlauskas , Aurabindo Pillai , Daniel Wheeler , Alex Deucher , Sasha Levin , harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, wayne.lin@amd.com, alvin.lee2@amd.com, sohaib.nadeem@amd.com, charlene.liu@amd.com, sunran001@208suo.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 6.6 30/43] drm/amd/display: Atom Integrated System Info v2_2 for DCN35 Date: Tue, 7 May 2024 19:09:51 -0400 Message-ID: <20240507231033.393285-30-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240507231033.393285-1-sashal@kernel.org> References: <20240507231033.393285-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.6.30 Content-Transfer-Encoding: 8bit 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 4c3c4c8de1cfc..93720cf069d7c 100644 --- a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c +++ b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c @@ -2961,6 +2961,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