Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/acpi An ACPI MCFG allocation with start bus number =...



details:   https://anonhg.NetBSD.org/src/rev/5aaa24a91ec3
branches:  trunk
changeset: 837782:5aaa24a91ec3
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Dec 20 19:16:17 2018 +0000

description:
An ACPI MCFG allocation with start bus number = end bus number is valid,
so do not skip it. An entry like this defines MCFG space for a single bus.

diffstat:

 sys/dev/acpi/acpi_mcfg.c |  13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)

diffs (34 lines):

diff -r 5f12a17cee01 -r 5aaa24a91ec3 sys/dev/acpi/acpi_mcfg.c
--- a/sys/dev/acpi/acpi_mcfg.c  Thu Dec 20 15:19:31 2018 +0000
+++ b/sys/dev/acpi/acpi_mcfg.c  Thu Dec 20 19:16:17 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi_mcfg.c,v 1.15 2018/12/08 15:02:06 jmcneill Exp $  */
+/*     $NetBSD: acpi_mcfg.c,v 1.16 2018/12/20 19:16:17 jmcneill Exp $  */
 
 /*-
  * Copyright (C) 2015 NONAKA Kimihiro <nonaka%NetBSD.org@localhost>
@@ -28,7 +28,7 @@
 #include "opt_pci.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_mcfg.c,v 1.15 2018/12/08 15:02:06 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_mcfg.c,v 1.16 2018/12/20 19:16:17 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -350,15 +350,6 @@
                 * Some (broken?) BIOSen have an MCFG table for an empty
                 * bus range.  Ignore those tables.
                 */
-               if (ama->StartBusNumber == ama->EndBusNumber) {
-                       aprint_debug_dev(acpi_sc->sc_dev,
-                           "MCFG: segment %d, bus %d-%d, address 0x%016" PRIx64
-                           ": ignore (bus %d == %d)\n", ama->PciSegment,
-                           ama->StartBusNumber, ama->EndBusNumber,
-                           ama->Address, ama->StartBusNumber,
-                           ama->EndBusNumber);
-                       goto next;
-               }
                if (ama->StartBusNumber > ama->EndBusNumber) {
                        aprint_debug_dev(acpi_sc->sc_dev,
                            "MCFG: segment %d, bus %d-%d, address 0x%016" PRIx64



Home | Main Index | Thread Index | Old Index