x86/platform changes for v7.1
Subsystems (2)
Linus,
Please pull the latest x86/platform Git tree from:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-platform-2026-04-13
for you to fetch changes up to bc91133e260c8113c1119073c03b93c12aa41738:
#
# MERGE NOTE: This tree updates drivers/firmware/dmi_scan.c and
# include/linux/dmi.h, which commits have been acked
# by DMI code maintainer Jean Delvare.
#
x86/platform changes for v7.1:
- Remove M486/M486SX/ELAN support, first minimal step (Ingo Molnar)
- Print AGESA string from DMI additional information entry (Yazen Ghannam, Mario Limonciello)
- Improve and fix the DMI code (Mario Limonciello):
- Correct an indexing error in <linux/dmi.h>
- Adjust dmi_decode() to use enums <linux/dmi.h>
- Add pr_fmt() for dmi_scan.c to fix & standardize the log prefixes
out-of-topic modifications in x86-platform-2026-04-13:
--------------------------------------------------------
drivers/firmware/dmi_scan.c # bc91133e260c: x86/CPU/AMD: Print AGESA str
# da55ebe166d7: firmware: dmi: Add pr_fmt()
# 28189e95712b: firmware: dmi: Adjust dmi_de include/linux/dmi.h # bc91133e260c: x86/CPU/AMD: Print AGESA str
# c064abc68e00: firmware: dmi: Correct an in
Thanks,
Ingo
------------------>
Ingo Molnar (1):
x86/cpu: Remove M486/M486SX/ELAN support
Mario Limonciello (AMD) (3):
firmware: dmi: Correct an indexing error in dmi.h
firmware: dmi: Adjust dmi_decode() to use enums
firmware: dmi: Add pr_fmt() for dmi_scan.c
Yazen Ghannam (1):
x86/CPU/AMD: Print AGESA string from DMI additional information entry
arch/x86/Kconfig | 10 --------- arch/x86/Kconfig.cpu | 44 +++++++++--------------------------- arch/x86/Makefile_32.cpu | 2 -- arch/x86/include/asm/vermagic.h | 6 ----- arch/x86/kernel/cpu/amd.c | 49 +++++++++++++++++++++++++++++++++++++++++ drivers/firmware/dmi_scan.c | 34 +++++++++++++++------------- include/linux/dmi.h | 23 +++++++++++++++++++ 7 files changed, 101 insertions(+), 67 deletions(-)
arch/x86/Kconfig +0 -10
@@ -446,11 +446,6 @@ config SMP uniprocessor machines. On a uniprocessor machine, the kernel will run faster if you say N here. - Note that if you say Y here and choose architecture "586" or - "Pentium" under "Processor family", the kernel will not work on 486 - architectures. Similarly, multiprocessor kernels for the "PPro" - architecture may not work on all Pentium based boards. - People using multiprocessor machines who say Y here should also say Y to "Enhanced Real Time Clock Support", below. The "Advanced Power Management" code will be disabled if you say Y here.
@@ -2771,11 +2766,6 @@ menuconfig APM manpage ("man 8 hdparm") for that), and it doesn't turn off VESA-compliant "green" monitors. - This driver does not support the TI 4000M TravelMate and the ACER - 486/DX4/75 because they don't have compliant BIOSes. Many "green" - desktop machines also don't have compliant BIOSes, and this driver - may cause those machines to panic during the boot phase. - Generally, if you don't have a battery in your machine, there isn't much point in using this driver and you should say N. If you get random kernel OOPSes or reboots that don't seem to be related to
arch/x86/Kconfig.cpu +10 -34
101 lines not on this page · raw message
arch/x86/Makefile_32.cpu +0 -2
@@ -10,8 +10,6 @@ else align := -falign-functions=0 -falign-jumps=0 -falign-loops=0 endif -cflags-$(CONFIG_M486SX) += -march=i486 -cflags-$(CONFIG_M486) += -march=i486 cflags-$(CONFIG_M586) += -march=i586 cflags-$(CONFIG_M586TSC) += -march=i586 cflags-$(CONFIG_M586MMX) += -march=pentium-mmx
arch/x86/include/asm/vermagic.h +0 -6
@@ -5,10 +5,6 @@#ifdef CONFIG_X86_64 /* X86_64 does not define MODULE_PROC_FAMILY */ -#elif definedCONFIG_M486SX -#define MODULE_PROC_FAMILY "486SX " -#elif definedCONFIG_M486 -#define MODULE_PROC_FAMILY "486 "#elif definedCONFIG_M586 #define MODULE_PROC_FAMILY "586 "#elif definedCONFIG_M586TSC
@@ -31,8 +27,6 @@#define MODULE_PROC_FAMILY "K6 "#elif definedCONFIG_MK7 #define MODULE_PROC_FAMILY "K7 " -#elif definedCONFIG_MELAN -#define MODULE_PROC_FAMILY "ELAN "#elif definedCONFIG_MCRUSOE #define MODULE_PROC_FAMILY "CRUSOE "#elif definedCONFIG_MEFFICEON
arch/x86/kernel/cpu/amd.c +49 -0
58 lines not on this page · raw message
drivers/firmware/dmi_scan.c +19 -15
@@ -1,4 +1,7 @@// SPDX-License-Identifier: GPL-2.0-only + +#define pr_fmt (fmt) "DMI: " fmt +#include <linux/types.h> #include <linux/string.h> #include <linux/init.h>
@@ -44,7 +47,7 @@ static struct dmi_memdev_info {static int dmi_memdev_nr;static int dmi_memdev_populated_nr__initdata ; -static const char *__init dmi_string_nosave (const struct dmi_header *dm,u8 s) +const char *dmi_string_nosave (const struct dmi_header *dm,u8 s) {const u8 *bp = ((u8 *) dm) + dm->length;const u8 *nsp;
@@ -63,6 +66,7 @@ static const char * __init dmi_string_nosave(const struct dmi_header *dm, u8 s)return dmi_empty_string; } +EXPORT_SYMBOL_GPL (dmi_string_nosave);static const char *__init dmi_string (const struct dmi_header *dm,u8 s) {
@@ -484,14 +488,14 @@ static void __init dmi_memdev_walk(void)static void __init dmi_decode (const struct dmi_header *dm,void *dummy) {switch (dm->type) { -case 0 :/* BIOS Information */ +case DMI_ENTRY_BIOS :dmi_save_ident (dm,DMI_BIOS_VENDOR ,4 );dmi_save_ident (dm,DMI_BIOS_VERSION ,5 );dmi_save_ident (dm,DMI_BIOS_DATE ,8 );dmi_save_release (dm,DMI_BIOS_RELEASE ,21 );dmi_save_release (dm,DMI_EC_FIRMWARE_RELEASE ,23 );break ; -case 1 :/* System Information */ +case DMI_ENTRY_SYSTEM :dmi_save_ident (dm,DMI_SYS_VENDOR ,4 );dmi_save_ident (dm,DMI_PRODUCT_NAME ,5 );dmi_save_ident (dm,DMI_PRODUCT_VERSION ,6 );
@@ -500,33 +504,33 @@ static void __init dmi_decode(const struct dmi_header *dm, void *dummy)dmi_save_ident (dm,DMI_PRODUCT_SKU ,25 );dmi_save_ident (dm,DMI_PRODUCT_FAMILY ,26 );break ; -case 2 :/* Base Board Information */ +case DMI_ENTRY_BASEBOARD :dmi_save_ident (dm,DMI_BOARD_VENDOR ,4 );dmi_save_ident (dm,DMI_BOARD_NAME ,5 );dmi_save_ident (dm,DMI_BOARD_VERSION ,6 );dmi_save_ident (dm,DMI_BOARD_SERIAL ,7 );dmi_save_ident (dm,DMI_BOARD_ASSET_TAG ,8 );break ; -case 3 :/* Chassis Information */ +case DMI_ENTRY_CHASSIS :dmi_save_ident (dm,DMI_CHASSIS_VENDOR ,4 );dmi_save_type (dm,DMI_CHASSIS_TYPE ,5 );dmi_save_ident (dm,DMI_CHASSIS_VERSION ,6 );dmi_save_ident (dm,DMI_CHASSIS_SERIAL ,7 );dmi_save_ident (dm,DMI_CHASSIS_ASSET_TAG ,8 );break ; -case 9 :/* System Slots */ +case DMI_ENTRY_SYSTEM_SLOT :dmi_save_system_slot (dm);break ; -case 10 :/* Onboard Devices Information */ +case DMI_ENTRY_ONBOARD_DEVICE :dmi_save_devices (dm);break ; -case 11 :/* OEM Strings */ +case DMI_ENTRY_OEMSTRINGS :dmi_save_oem_strings_devices (dm);break ; -case 38 :/* IPMI Device Information */ +case DMI_ENTRY_IPMI_DEV :dmi_save_ipmi_device (dm);break ; -case 41 :/* Onboard Devices Extended Information */ +case DMI_ENTRY_ONBOARD_DEV_EXT :dmi_save_extended_devices (dm); } }
@@ -634,7 +638,7 @@ static int __init dmi_present(const u8 *buf) dmi_ver >> 16, (dmi_ver >> 8) & 0xFF); }dmi_format_ids (dmi_ids_string,sizeof (dmi_ids_string)); -pr_info ("DMI: %s\n" , dmi_ids_string); +pr_info ("%s\n" , dmi_ids_string);return 0 ; } }
@@ -663,7 +667,7 @@ static int __init dmi_smbios3_present(const u8 *buf) dmi_ver >>16 , (dmi_ver >>8 ) &0xFF , dmi_ver & 0xFF);dmi_format_ids (dmi_ids_string,sizeof (dmi_ids_string)); -pr_info ("DMI: %s\n" , dmi_ids_string); +pr_info ("%s\n" , dmi_ids_string);return 0 ; } }
@@ -758,7 +762,7 @@ static void __init dmi_scan_machine(void)dmi_early_unmap (p,0x10000 ); } error: -pr_info ("DMI not present or invalid.\n" ); +pr_info ("not present or invalid.\n" ); }static __ro_after_init BIN_ATTR_SIMPLE_ADMIN_RO (smbios_entry_point);
@@ -810,7 +814,7 @@ static int __init dmi_init(void)kobject_del (tables_kobj);kobject_put (tables_kobj); err: -pr_err ("dmi: Firmware registration failed.\n" ); +pr_err ("Firmware registration failed.\n" );return ret; }
@@ -831,7 +835,7 @@ void __init dmi_setup(void)return ;dmi_memdev_walk (); -pr_info ("DMI: Memory slots populated: %d/%d\n" , +pr_info ("Memory slots populated: %d/%d\n" , dmi_memdev_populated_nr, dmi_memdev_nr);dump_stack_set_arch_desc ("%s" , dmi_ids_string); }
include/linux/dmi.h +23 -0
@@ -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, };
@@ -86,6 +91,21 @@ struct dmi_device {void *device_data;/* Type specific data */ }; +#define DMI_A_INFO_ENT_MIN_SIZE 0x6 +struct dmi_a_info_entry { +u8 length; +u16 handle; +u8 offset; +u8 str_num; +u8 value[]; +} __packed; + +#define DMI_A_INFO_MIN_SIZE 0xB +struct dmi_a_info { +struct dmi_header header; +u8 count; +} __packed; +#ifdef CONFIG_DMI struct dmi_dev_onboard {
@@ -115,6 +135,7 @@ extern void dmi_memdev_name(u16 handle, const char **bank, const char **device);extern u64 dmi_memdev_size (u16 handle);extern u8 dmi_memdev_type (u16 handle);extern u16 dmi_memdev_handle (int slot); +const char *dmi_string_nosave (const struct dmi_header *dm,u8 s);#else
@@ -148,6 +169,8 @@ static inline u8 dmi_memdev_type(u16 handle) { return 0x0; }static inline u16 dmi_memdev_handle (int slot) {return 0xffff ; }static inline const struct dmi_system_id *dmi_first_match (const struct dmi_system_id *list) {return NULL ; } +static inline const char * +dmi_string_nosave (const struct dmi_header *dm,u8 s) {return "" ; }#endif
The pull request you sent on Mon, 13 Apr 2026 11:12:14 +0200:
The pull request you sent on Mon, 13 Apr 2026 11:12:14 +0200:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.gitx86-platform-2026-04-13
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/0972ba5605a0a0cd8a9e74558b97a9c9626adfb5
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html