From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 D5798331220; Wed, 20 May 2026 17:18:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779297487; cv=none; b=fejzEkwREsurFTl8unb890Ie2QmSJ01kuy34RyGbiSdkWOitExnfGL21DwBkw3+Gy1CBGgKDcyyfl892TyZxKmFAVvtwyKxdyGjhraXNCuZl2d2T9cg4s2Tc60RDYbBMhzDooKcW2AReR1MerBChjZGg8w0xe+GHA2+Q7bXbfYE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779297487; c=relaxed/simple; bh=E4oQHJ8blRxpnNVPPUy+JaNs8mRlw+cV9zaWnjnqSVE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=NS3rw+U/Tu7NkGolYU6egLDi+vSMlJVfzbcuc9/llhBEnlX1xRpweHuah8sP+Aq9LwbgaJDmCLpDbcgoe3hu22Gt28EyPE0T83uA1PfNrrdBM+DURrtpbh6sqJNePQaEK9j7y69Rwt9DKshvGldrdTUEk7e1kXEWrAqYMRGwliI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=p15UIawi; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="p15UIawi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 324621F000E9; Wed, 20 May 2026 17:18:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779297486; bh=iq+k4uRN3VfLajU379Fws8Z0p/RuVUaNG5xWbO1aj0Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=p15UIawiWa3tGV4zRnvzD8R4eJy2aoEUXL+vBy4cVTRVQCBrPBFxogqah5TLDvg78 +pvw/0YrfbrmhgK7ppVdLw2k58XwqoG8QYHL6vfw2aDg6kRMyQi8Y+v9BdcUM6KNuv imP6GgrsxgKs8rDHU8tA3d3KWAleL5y/pKBfJWDc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, "Mario Limonciello (AMD)" , "Borislav Petkov (AMD)" , Jean Delvare , Yazen Ghannam , Sasha Levin Subject: [PATCH 6.18 051/957] firmware: dmi: Correct an indexing error in dmi.h Date: Wed, 20 May 2026 18:08:54 +0200 Message-ID: <20260520162135.665468124@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162134.554764788@linuxfoundation.org> References: <20260520162134.554764788@linuxfoundation.org> User-Agent: quilt/0.69 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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mario Limonciello (AMD) [ Upstream commit c064abc68e009d2cc18416e7132d9c25e03125b6 ] The entries later in enum dmi_entry_type don't match the SMBIOS specification¹. The entry for type 33: `64-Bit Memory Error Information` is not present and thus the index for all later entries is incorrect. Add it. Also, add missing entry types 43-46, while at it. ¹ Search for "System Management BIOS (SMBIOS) Reference Specification" [ bp: Drop the flaky SMBIOS spec URL. ] Fixes: 93c890dbe5287 ("firmware: Add DMI entry types to the headers") Signed-off-by: Mario Limonciello (AMD) Signed-off-by: Borislav Petkov (AMD) Reviewed-by: Jean Delvare Reviewed-by: Yazen Ghannam Link: https://patch.msgid.link/20260307141024.819807-2-superm1@kernel.org Signed-off-by: Sasha Levin --- include/linux/dmi.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/dmi.h b/include/linux/dmi.h index 927f8a8b7a1dd..2eedf44e68012 100644 --- a/include/linux/dmi.h +++ b/include/linux/dmi.h @@ -60,6 +60,7 @@ enum dmi_entry_type { DMI_ENTRY_OOB_REMOTE_ACCESS, DMI_ENTRY_BIS_ENTRY, DMI_ENTRY_SYSTEM_BOOT, + DMI_ENTRY_64_MEM_ERROR, DMI_ENTRY_MGMT_DEV, DMI_ENTRY_MGMT_DEV_COMPONENT, DMI_ENTRY_MGMT_DEV_THRES, @@ -69,6 +70,10 @@ enum dmi_entry_type { DMI_ENTRY_ADDITIONAL, DMI_ENTRY_ONBOARD_DEV_EXT, DMI_ENTRY_MGMT_CONTROLLER_HOST, + DMI_ENTRY_TPM_DEVICE, + DMI_ENTRY_PROCESSOR_ADDITIONAL, + DMI_ENTRY_FIRMWARE_INVENTORY, + DMI_ENTRY_STRING_PROPERTY, DMI_ENTRY_INACTIVE = 126, DMI_ENTRY_END_OF_TABLE = 127, }; -- 2.53.0