Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 Print detail about misconfigured APIC ID.



details:   https://anonhg.NetBSD.org/src/rev/b1b373115e9b
branches:  trunk
changeset: 371754:b1b373115e9b
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Oct 06 06:42:46 2022 +0000

description:
Print detail about misconfigured APIC ID.

diffstat:

 sys/arch/x86/x86/ioapic.c |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (40 lines):

diff -r 0cd151155609 -r b1b373115e9b sys/arch/x86/x86/ioapic.c
--- a/sys/arch/x86/x86/ioapic.c Thu Oct 06 06:05:31 2022 +0000
+++ b/sys/arch/x86/x86/ioapic.c Thu Oct 06 06:42:46 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ioapic.c,v 1.65 2021/10/07 12:52:27 msaitoh Exp $      */
+/*     $NetBSD: ioapic.c,v 1.66 2022/10/06 06:42:46 msaitoh Exp $      */
 
 /*-
  * Copyright (c) 2000, 2009 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ioapic.c,v 1.65 2021/10/07 12:52:27 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ioapic.c,v 1.66 2022/10/06 06:42:46 msaitoh Exp $");
 
 #include "opt_ddb.h"
 
@@ -374,8 +374,9 @@
         * mapping later ...
         */
        if (apic_id != sc->sc_pic.pic_apicid) {
-               aprint_debug_dev(sc->sc_dev, "misconfigured as apic %d\n",
-                                apic_id);
+               aprint_debug_dev(sc->sc_dev,
+                   "apid is misconfigured (%d != %d)\n",
+                   apic_id, sc->sc_pic.pic_apicid);
 
                ioapic_write(sc, IOAPIC_ID,
                    (ioapic_read(sc, IOAPIC_ID) & ~IOAPIC_ID_MASK)
@@ -386,7 +387,8 @@
 
                if (apic_id != sc->sc_pic.pic_apicid)
                        aprint_error_dev(sc->sc_dev,
-                           "can't remap to apid %d\n", sc->sc_pic.pic_apicid);
+                           "can't remap apid from %d to %d\n",
+                           apic_id, sc->sc_pic.pic_apicid);
                else
                        aprint_debug_dev(sc->sc_dev, "remapped to apic %d\n",
                            sc->sc_pic.pic_apicid);



Home | Main Index | Thread Index | Old Index