Skip to content

Commit

Permalink
mptable: Verbose debug logging about "fixed interrupt routing"
Browse files Browse the repository at this point in the history
  • Loading branch information
Sepherosa Ziehau committed Mar 21, 2011
1 parent 7eb6fb7 commit 40fd593
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions sys/platform/pc32/i386/mp_machdep.c
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
Expand Down
10 changes: 6 additions & 4 deletions sys/platform/pc64/x86_64/mp_machdep.c
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 40fd593

Please sign in to comment.