apei(4), acpihed(4): Enable in x86 GENERIC. Let's just see how this works out in practice. Might need to reduce the overhead of each GHES on machines with thousands of them, but we'll see. PR kern/58046diff -r1.610 -r1.611 src/sys/arch/amd64/conf/GENERIC
(riastradh)
--- src/sys/arch/amd64/conf/GENERIC 2024/04/02 22:56:50 1.610
+++ src/sys/arch/amd64/conf/GENERIC 2024/04/21 14:11:12 1.611
@@ -1,38 +1,38 @@ | @@ -1,38 +1,38 @@ | |||
1 | # $NetBSD: GENERIC,v 1.610 2024/04/02 22:56:50 charlotte Exp $ | 1 | # $NetBSD: GENERIC,v 1.611 2024/04/21 14:11:12 riastradh Exp $ | |
2 | # | 2 | # | |
3 | # GENERIC machine description file | 3 | # GENERIC machine description file | |
4 | # | 4 | # | |
5 | # This machine description file is used to generate the default NetBSD | 5 | # This machine description file is used to generate the default NetBSD | |
6 | # kernel. The generic kernel does not include all options, subsystems | 6 | # kernel. The generic kernel does not include all options, subsystems | |
7 | # and device drivers, but should be useful for most applications. | 7 | # and device drivers, but should be useful for most applications. | |
8 | # | 8 | # | |
9 | # The machine description file can be customised for your specific | 9 | # The machine description file can be customised for your specific | |
10 | # machine to reduce the kernel size and improve its performance. | 10 | # machine to reduce the kernel size and improve its performance. | |
11 | # | 11 | # | |
12 | # For further information on compiling NetBSD kernels, see the config(8) | 12 | # For further information on compiling NetBSD kernels, see the config(8) | |
13 | # man page. | 13 | # man page. | |
14 | # | 14 | # | |
15 | # For further information on hardware support for this architecture, see | 15 | # For further information on hardware support for this architecture, see | |
16 | # the intro(4) man page. For further information about kernel options | 16 | # the intro(4) man page. For further information about kernel options | |
17 | # for this architecture, see the options(4) man page. For an explanation | 17 | # for this architecture, see the options(4) man page. For an explanation | |
18 | # of each device driver in this file see the section 4 man page for the | 18 | # of each device driver in this file see the section 4 man page for the | |
19 | # device. | 19 | # device. | |
20 | 20 | |||
21 | include "arch/amd64/conf/std.amd64" | 21 | include "arch/amd64/conf/std.amd64" | |
22 | 22 | |||
23 | options INCLUDE_CONFIG_FILE # embed config file in kernel binary | 23 | options INCLUDE_CONFIG_FILE # embed config file in kernel binary | |
24 | 24 | |||
25 | #ident "GENERIC-$Revision: 1.610 $" | 25 | #ident "GENERIC-$Revision: 1.611 $" | |
26 | 26 | |||
27 | maxusers 64 # estimated number of users | 27 | maxusers 64 # estimated number of users | |
28 | 28 | |||
29 | # delay between "rebooting ..." message and hardware reset, in milliseconds | 29 | # delay between "rebooting ..." message and hardware reset, in milliseconds | |
30 | #options CPURESET_DELAY=2000 | 30 | #options CPURESET_DELAY=2000 | |
31 | 31 | |||
32 | # This option allows you to force a serial console at the specified | 32 | # This option allows you to force a serial console at the specified | |
33 | # I/O address. see console(4) for details. | 33 | # I/O address. see console(4) for details. | |
34 | #options CONSDEVNAME="\"com\"",CONADDR=0x2f8,CONSPEED=57600 | 34 | #options CONSDEVNAME="\"com\"",CONADDR=0x2f8,CONSPEED=57600 | |
35 | # you don't want the option below ON iff you are using the | 35 | # you don't want the option below ON iff you are using the | |
36 | # serial console option of the new boot strap code. | 36 | # serial console option of the new boot strap code. | |
37 | #options CONS_OVERRIDE # Always use above! independent of boot info | 37 | #options CONS_OVERRIDE # Always use above! independent of boot info | |
38 | 38 | |||
@@ -323,34 +323,36 @@ options MPBIOS_SCANPCI # MPBIOS config | @@ -323,34 +323,36 @@ options MPBIOS_SCANPCI # MPBIOS config | |||
323 | #options PCI_BUS_FIXUP # fixup PCI bus numbering | 323 | #options PCI_BUS_FIXUP # fixup PCI bus numbering | |
324 | #options PCI_ADDR_FIXUP # fixup PCI I/O addresses | 324 | #options PCI_ADDR_FIXUP # fixup PCI I/O addresses | |
325 | #options ACPI_ACTIVATE_DEV # If set, activate inactive devices | 325 | #options ACPI_ACTIVATE_DEV # If set, activate inactive devices | |
326 | options VGA_POST # in-kernel support for VGA POST | 326 | options VGA_POST # in-kernel support for VGA POST | |
327 | 327 | |||
328 | # ACPI devices | 328 | # ACPI devices | |
329 | acpiacad* at acpi? # ACPI AC Adapter | 329 | acpiacad* at acpi? # ACPI AC Adapter | |
330 | acpibat* at acpi? # ACPI Battery | 330 | acpibat* at acpi? # ACPI Battery | |
331 | acpibut* at acpi? # ACPI Button | 331 | acpibut* at acpi? # ACPI Button | |
332 | acpidalb* at acpi? # ACPI Direct Application Launch Button | 332 | acpidalb* at acpi? # ACPI Direct Application Launch Button | |
333 | acpiec* at acpi? # ACPI Embedded Controller (late) | 333 | acpiec* at acpi? # ACPI Embedded Controller (late) | |
334 | acpiecdt* at acpi? # ACPI Embedded Controller (early) | 334 | acpiecdt* at acpi? # ACPI Embedded Controller (early) | |
335 | acpifan* at acpi? # ACPI Fan | 335 | acpifan* at acpi? # ACPI Fan | |
336 | acpihed* at acpi? # ACPI Hardware Error Device | |||
336 | acpilid* at acpi? # ACPI Lid Switch | 337 | acpilid* at acpi? # ACPI Lid Switch | |
337 | #acpipmtr* at acpi? # ACPI Power Meter (experimental) | 338 | #acpipmtr* at acpi? # ACPI Power Meter (experimental) | |
338 | #acpismbus* at acpi? # ACPI SMBus CMI (experimental) | 339 | #acpismbus* at acpi? # ACPI SMBus CMI (experimental) | |
339 | acpitz* at acpi? # ACPI Thermal Zone | 340 | acpitz* at acpi? # ACPI Thermal Zone | |
340 | acpivga* at acpi? # ACPI Display Adapter | 341 | acpivga* at acpi? # ACPI Display Adapter | |
341 | acpiout* at acpivga? # ACPI Display Output Device | 342 | acpiout* at acpivga? # ACPI Display Output Device | |
342 | acpiwdrt* at acpi? # ACPI Watchdog Resource Table | 343 | acpiwdrt* at acpi? # ACPI Watchdog Resource Table | |
343 | acpiwmi* at acpi? # ACPI WMI Mapper | 344 | acpiwmi* at acpi? # ACPI WMI Mapper | |
345 | apei* at apeibus? # ACPI Platform Error Interfaces | |||
344 | 346 | |||
345 | # Mainboard devices | 347 | # Mainboard devices | |
346 | aibs* at acpi? # ASUSTeK AI Booster hardware monitor | 348 | aibs* at acpi? # ASUSTeK AI Booster hardware monitor | |
347 | asus* at acpi? # ASUS hotkeys | 349 | asus* at acpi? # ASUS hotkeys | |
348 | attimer* at acpi? # AT Timer | 350 | attimer* at acpi? # AT Timer | |
349 | com0 at acpi? # Serial communications interface | 351 | com0 at acpi? # Serial communications interface | |
350 | com1 at acpi? # Serial communications interface | 352 | com1 at acpi? # Serial communications interface | |
351 | com* at acpi? # Serial communications interface | 353 | com* at acpi? # Serial communications interface | |
352 | fdc* at acpi? # Floppy disk controller | 354 | fdc* at acpi? # Floppy disk controller | |
353 | fd* at fdc? drive ? # the drives themselves | 355 | fd* at fdc? drive ? # the drives themselves | |
354 | fujbp* at acpi? # Fujitsu Brightness & Pointer | 356 | fujbp* at acpi? # Fujitsu Brightness & Pointer | |
355 | fujhk* at acpi? # Fujitsu Hotkeys | 357 | fujhk* at acpi? # Fujitsu Hotkeys | |
356 | #hpacel* at acpi? # HP 3D DriveGuard accelerometer | 358 | #hpacel* at acpi? # HP 3D DriveGuard accelerometer |
--- src/sys/arch/i386/conf/GENERIC 2024/04/02 22:56:50 1.1254
+++ src/sys/arch/i386/conf/GENERIC 2024/04/21 14:11:12 1.1255
@@ -1,38 +1,38 @@ | @@ -1,38 +1,38 @@ | |||
1 | # $NetBSD: GENERIC,v 1.1254 2024/04/02 22:56:50 charlotte Exp $ | 1 | # $NetBSD: GENERIC,v 1.1255 2024/04/21 14:11:12 riastradh Exp $ | |
2 | # | 2 | # | |
3 | # GENERIC machine description file | 3 | # GENERIC machine description file | |
4 | # | 4 | # | |
5 | # This machine description file is used to generate the default NetBSD | 5 | # This machine description file is used to generate the default NetBSD | |
6 | # kernel. The generic kernel does not include all options, subsystems | 6 | # kernel. The generic kernel does not include all options, subsystems | |
7 | # and device drivers, but should be useful for most applications. | 7 | # and device drivers, but should be useful for most applications. | |
8 | # | 8 | # | |
9 | # The machine description file can be customised for your specific | 9 | # The machine description file can be customised for your specific | |
10 | # machine to reduce the kernel size and improve its performance. | 10 | # machine to reduce the kernel size and improve its performance. | |
11 | # | 11 | # | |
12 | # For further information on compiling NetBSD kernels, see the config(8) | 12 | # For further information on compiling NetBSD kernels, see the config(8) | |
13 | # man page. | 13 | # man page. | |
14 | # | 14 | # | |
15 | # For further information on hardware support for this architecture, see | 15 | # For further information on hardware support for this architecture, see | |
16 | # the intro(4) man page. For further information about kernel options | 16 | # the intro(4) man page. For further information about kernel options | |
17 | # for this architecture, see the options(4) man page. For an explanation | 17 | # for this architecture, see the options(4) man page. For an explanation | |
18 | # of each device driver in this file see the section 4 man page for the | 18 | # of each device driver in this file see the section 4 man page for the | |
19 | # device. | 19 | # device. | |
20 | 20 | |||
21 | include "arch/i386/conf/std.i386" | 21 | include "arch/i386/conf/std.i386" | |
22 | 22 | |||
23 | options INCLUDE_CONFIG_FILE # embed config file in kernel binary | 23 | options INCLUDE_CONFIG_FILE # embed config file in kernel binary | |
24 | 24 | |||
25 | #ident "GENERIC-$Revision: 1.1254 $" | 25 | #ident "GENERIC-$Revision: 1.1255 $" | |
26 | 26 | |||
27 | maxusers 64 # estimated number of users | 27 | maxusers 64 # estimated number of users | |
28 | 28 | |||
29 | # CPU-related options. | 29 | # CPU-related options. | |
30 | options USER_LDT # user-settable LDT; used by WINE | 30 | options USER_LDT # user-settable LDT; used by WINE | |
31 | #options PAE # PAE mode (36 bits physical addressing) | 31 | #options PAE # PAE mode (36 bits physical addressing) | |
32 | makeoptions SPECTRE_V2_GCC_MITIGATION=1 # GCC Spectre variant 2 | 32 | makeoptions SPECTRE_V2_GCC_MITIGATION=1 # GCC Spectre variant 2 | |
33 | # migitation | 33 | # migitation | |
34 | options SPECTRE_V2_GCC_MITIGATION | 34 | options SPECTRE_V2_GCC_MITIGATION | |
35 | 35 | |||
36 | # CPU features | 36 | # CPU features | |
37 | acpicpu* at cpu? # ACPI CPU (including frequency scaling) | 37 | acpicpu* at cpu? # ACPI CPU (including frequency scaling) | |
38 | coretemp* at cpu? # Intel on-die thermal sensor | 38 | coretemp* at cpu? # Intel on-die thermal sensor | |
@@ -307,34 +307,36 @@ acpi0 at mainbus0 | @@ -307,34 +307,36 @@ acpi0 at mainbus0 | |||
307 | 307 | |||
308 | #options ACPI_ACTIVATE_DEV # If set, activate inactive devices | 308 | #options ACPI_ACTIVATE_DEV # If set, activate inactive devices | |
309 | options VGA_POST # in-kernel support for VGA POST | 309 | options VGA_POST # in-kernel support for VGA POST | |
310 | 310 | |||
311 | # ACPI devices | 311 | # ACPI devices | |
312 | apm* at acpi? # ACPI apm emulation | 312 | apm* at acpi? # ACPI apm emulation | |
313 | acpiacad* at acpi? # ACPI AC Adapter | 313 | acpiacad* at acpi? # ACPI AC Adapter | |
314 | acpibat* at acpi? # ACPI Battery | 314 | acpibat* at acpi? # ACPI Battery | |
315 | acpibut* at acpi? # ACPI Button | 315 | acpibut* at acpi? # ACPI Button | |
316 | acpidalb* at acpi? # ACPI Direct Application Launch Button | 316 | acpidalb* at acpi? # ACPI Direct Application Launch Button | |
317 | acpiec* at acpi? # ACPI Embedded Controller (late) | 317 | acpiec* at acpi? # ACPI Embedded Controller (late) | |
318 | acpiecdt* at acpi? # ACPI Embedded Controller (early) | 318 | acpiecdt* at acpi? # ACPI Embedded Controller (early) | |
319 | acpifan* at acpi? # ACPI Fan | 319 | acpifan* at acpi? # ACPI Fan | |
320 | acpihed* at acpi? # ACPI Hardware Error Device | |||
320 | acpilid* at acpi? # ACPI Lid Switch | 321 | acpilid* at acpi? # ACPI Lid Switch | |
321 | #acpipmtr* at acpi? # ACPI Power Meter (experimental) | 322 | #acpipmtr* at acpi? # ACPI Power Meter (experimental) | |
322 | #acpismbus* at acpi? # ACPI SMBus CMI (experimental) | 323 | #acpismbus* at acpi? # ACPI SMBus CMI (experimental) | |
323 | acpitz* at acpi? # ACPI Thermal Zone | 324 | acpitz* at acpi? # ACPI Thermal Zone | |
324 | acpivga* at acpi? # ACPI Display Adapter | 325 | acpivga* at acpi? # ACPI Display Adapter | |
325 | acpiout* at acpivga? # ACPI Display Output Device | 326 | acpiout* at acpivga? # ACPI Display Output Device | |
326 | acpiwdrt* at acpi? # ACPI Watchdog Resource Table | 327 | acpiwdrt* at acpi? # ACPI Watchdog Resource Table | |
327 | acpiwmi* at acpi? # ACPI WMI Mapper | 328 | acpiwmi* at acpi? # ACPI WMI Mapper | |
329 | apei* at apeibus? # ACPI Platform Error Interfaces | |||
328 | 330 | |||
329 | # Mainboard devices | 331 | # Mainboard devices | |
330 | aibs* at acpi? # ASUSTeK AI Booster hardware monitor | 332 | aibs* at acpi? # ASUSTeK AI Booster hardware monitor | |
331 | asus* at acpi? # ASUS hotkeys | 333 | asus* at acpi? # ASUS hotkeys | |
332 | attimer* at acpi? # AT Timer | 334 | attimer* at acpi? # AT Timer | |
333 | #com* at acpi? # Serial communications interface | 335 | #com* at acpi? # Serial communications interface | |
334 | #fdc* at acpi? # Floppy disk controller | 336 | #fdc* at acpi? # Floppy disk controller | |
335 | fujbp* at acpi? # Fujitsu Brightness & Pointer | 337 | fujbp* at acpi? # Fujitsu Brightness & Pointer | |
336 | fujhk* at acpi? # Fujitsu Hotkeys | 338 | fujhk* at acpi? # Fujitsu Hotkeys | |
337 | #hpacel* at acpi? # HP 3D DriveGuard accelerometer | 339 | #hpacel* at acpi? # HP 3D DriveGuard accelerometer | |
338 | #hpqlb* at acpi? # HP Quick Launch Buttons | 340 | #hpqlb* at acpi? # HP Quick Launch Buttons | |
339 | hpet* at acpihpetbus? # High Precision Event Timer (table) | 341 | hpet* at acpihpetbus? # High Precision Event Timer (table) | |
340 | hpet* at acpinodebus? # High Precision Event Timer (device) | 342 | hpet* at acpinodebus? # High Precision Event Timer (device) |