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 acpipchb: Add a kernel cmdline option to s...
details: https://anonhg.NetBSD.org/src/rev/8958c6e2fe08
branches: trunk
changeset: 368929:8958c6e2fe08
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Aug 13 16:44:11 2022 +0000
description:
acpipchb: Add a kernel cmdline option to skip PCI resource assignment.
Passing "nopciconf" to the kernel will force acpipchb to skip PCI
resource assignment.
diffstat:
sys/arch/arm/acpi/acpipchb.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (43 lines):
diff -r 97f60624d910 -r 8958c6e2fe08 sys/arch/arm/acpi/acpipchb.c
--- a/sys/arch/arm/acpi/acpipchb.c Sat Aug 13 16:01:34 2022 +0000
+++ b/sys/arch/arm/acpi/acpipchb.c Sat Aug 13 16:44:11 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpipchb.c,v 1.28 2021/08/10 15:31:38 jmcneill Exp $ */
+/* $NetBSD: acpipchb.c,v 1.29 2022/08/13 16:44:11 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.28 2021/08/10 15:31:38 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpipchb.c,v 1.29 2022/08/13 16:44:11 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -44,6 +44,7 @@
#include <sys/cpu.h>
#include <arm/cpufunc.h>
+#include <arm/bootconfig.h>
#include <dev/pci/pcireg.h>
#include <dev/pci/pcivar.h>
@@ -190,11 +191,15 @@
struct acpi_pci_context *ap = md_pc->pc_conf_v;
struct pciconf_resources *pcires;
ACPI_STATUS rv;
- int error;
+ int error, val;
if (!acpi_pci_ignore_boot_config(sc->sc_handle)) {
return;
}
+ if (get_bootconf_option(boot_args, "nopciconf",
+ BOOTOPT_TYPE_BOOLEAN, &val) && val) {
+ return;
+ }
if ((ap->ap_flags & ACPI_PCI_FLAG_NO_MCFG) != 0) {
pcires = pciconf_resource_init();
Home |
Main Index |
Thread Index |
Old Index