Permalink
Browse files

mptable: Verbose debug logging about "fixed interrupt routing"

  • Loading branch information...
1 parent 7eb6fb7 commit 40fd5939534c6fdeb26f1e510afeb5e7a9976795 Sepherosa Ziehau committed Mar 21, 2011
Showing with 12 additions and 8 deletions.
  1. +6 −4 sys/platform/pc32/i386/mp_machdep.c
  2. +6 −4 sys/platform/pc64/x86_64/mp_machdep.c
View
10 sys/platform/pc32/i386/mp_machdep.c
@@ -3728,10 +3728,10 @@ mptable_pci_int_dump(void)
const struct mptable_pci_int *pci_int;
TAILQ_FOREACH(pci_int, &mptable_pci_int_list, mpci_link) {
- kprintf("MPTABLE: %d:%d:%d -> IOAPIC %d.%d\n",
+ kprintf("MPTABLE: %d:%d.%c -> IOAPIC %d.%d\n",
pci_int->mpci_bus,
pci_int->mpci_dev,
- pci_int->mpci_pin,
+ pci_int->mpci_pin + 'a',
pci_int->mpci_ioapic_idx,
pci_int->mpci_ioapic_pin);
}
@@ -3764,8 +3764,10 @@ mptable_pci_int_route(int bus, int dev, int pin, int intline)
}
if (irq < 0) {
- if (bootverbose)
- kprintf("MPTABLE: fixed interrupt routing\n");
+ if (bootverbose) {
+ kprintf("MPTABLE: fixed interrupt routing "
+ "for %d:%d.%c\n", bus, dev, pin + 'a');
+ }
irq = ioapic_abi_find_irq(intline,
INTR_TRIGGER_LEVEL, INTR_POLARITY_LOW);
View
10 sys/platform/pc64/x86_64/mp_machdep.c
@@ -3723,10 +3723,10 @@ mptable_pci_int_dump(void)
const struct mptable_pci_int *pci_int;
TAILQ_FOREACH(pci_int, &mptable_pci_int_list, mpci_link) {
- kprintf("MPTABLE: %d:%d:%d -> IOAPIC %d.%d\n",
+ kprintf("MPTABLE: %d:%d.%c -> IOAPIC %d.%d\n",
pci_int->mpci_bus,
pci_int->mpci_dev,
- pci_int->mpci_pin,
+ pci_int->mpci_pin + 'a',
pci_int->mpci_ioapic_idx,
pci_int->mpci_ioapic_pin);
}
@@ -3759,8 +3759,10 @@ mptable_pci_int_route(int bus, int dev, int pin, int intline)
}
if (irq < 0) {
- if (bootverbose)
- kprintf("MPTABLE: fixed interrupt routing\n");
+ if (bootverbose) {
+ kprintf("MPTABLE: fixed interrupt routing "
+ "for %d:%d.%c\n", bus, dev, pin + 'a');
+ }
irq = ioapic_abi_find_irq(intline,
INTR_TRIGGER_LEVEL, INTR_POLARITY_LOW);

0 comments on commit 40fd593

Please sign in to comment.