Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/acpi Add "nopcimsi" boot option to force legacy...
details: https://anonhg.NetBSD.org/src/rev/3d94b3fdafbc
branches: trunk
changeset: 368940:3d94b3fdafbc
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Aug 13 20:08:36 2022 +0000
description:
Add "nopcimsi" boot option to force legacy INTx only mode.
diffstat:
sys/arch/arm/acpi/acpipchb.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (37 lines):
diff -r 2f3e895eff0a -r 3d94b3fdafbc sys/arch/arm/acpi/acpipchb.c
--- a/sys/arch/arm/acpi/acpipchb.c Sat Aug 13 20:07:13 2022 +0000
+++ b/sys/arch/arm/acpi/acpipchb.c Sat Aug 13 20:08:36 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpipchb.c,v 1.29 2022/08/13 16:44:11 jmcneill Exp $ */
+/* $NetBSD: acpipchb.c,v 1.30 2022/08/13 20:08:36 jmcneill Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpipchb.c,v 1.29 2022/08/13 16:44:11 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpipchb.c,v 1.30 2022/08/13 20:08:36 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -127,6 +127,7 @@
ACPI_INTEGER seg, nomsi;
ACPI_STATUS rv;
uint16_t bus_start;
+ int val;
sc->sc_dev = self;
sc->sc_memt = aa->aa_memt;
@@ -153,6 +154,10 @@
&nomsi))) {
nomsi = 0;
}
+ if (get_bootconf_option(boot_args, "nopcimsi",
+ BOOTOPT_TYPE_BOOLEAN, &val) && val) {
+ nomsi = 1;
+ }
aprint_naive("\n");
aprint_normal(": PCI Express Host Bridge\n");
Home |
Main Index |
Thread Index |
Old Index