|
@@ -1562,31 +1562,60 @@ __apicdebuginit(void) print_IO_APIC(void)
|
|
|
|
|
|
printk(KERN_DEBUG ".... IRQ redirection table:\n");
|
|
|
|
|
|
- printk(KERN_DEBUG " NR Dst Mask Trig IRR Pol"
|
|
|
- " Stat Dmod Deli Vect:\n");
|
|
|
+ if (intr_remapping_enabled) {
|
|
|
+ printk(KERN_DEBUG " NR Indx Fmt Mask Trig IRR"
|
|
|
+ " Pol Stat Indx2 Zero Vect:\n");
|
|
|
+ } else {
|
|
|
+ printk(KERN_DEBUG " NR Dst Mask Trig IRR Pol"
|
|
|
+ " Stat Dmod Deli Vect:\n");
|
|
|
+ }
|
|
|
|
|
|
for (i = 0; i <= reg_01.bits.entries; i++) {
|
|
|
- struct IO_APIC_route_entry entry;
|
|
|
-
|
|
|
- entry = ioapic_read_entry(apic, i);
|
|
|
-
|
|
|
- printk(KERN_DEBUG " %02x %02X ",
|
|
|
- i,
|
|
|
- entry.dest
|
|
|
- );
|
|
|
+ if (intr_remapping_enabled) {
|
|
|
+ struct IO_APIC_route_entry entry;
|
|
|
+ struct IR_IO_APIC_route_entry *ir_entry;
|
|
|
+
|
|
|
+ entry = ioapic_read_entry(apic, i);
|
|
|
+ ir_entry = (struct IR_IO_APIC_route_entry *) &entry;
|
|
|
+ printk(KERN_DEBUG " %02x %04X ",
|
|
|
+ i,
|
|
|
+ ir_entry->index
|
|
|
+ );
|
|
|
+ printk("%1d %1d %1d %1d %1d "
|
|
|
+ "%1d %1d %X %02X\n",
|
|
|
+ ir_entry->format,
|
|
|
+ ir_entry->mask,
|
|
|
+ ir_entry->trigger,
|
|
|
+ ir_entry->irr,
|
|
|
+ ir_entry->polarity,
|
|
|
+ ir_entry->delivery_status,
|
|
|
+ ir_entry->index2,
|
|
|
+ ir_entry->zero,
|
|
|
+ ir_entry->vector
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ struct IO_APIC_route_entry entry;
|
|
|
|
|
|
- printk("%1d %1d %1d %1d %1d %1d %1d %02X\n",
|
|
|
- entry.mask,
|
|
|
- entry.trigger,
|
|
|
- entry.irr,
|
|
|
- entry.polarity,
|
|
|
- entry.delivery_status,
|
|
|
- entry.dest_mode,
|
|
|
- entry.delivery_mode,
|
|
|
- entry.vector
|
|
|
- );
|
|
|
+ entry = ioapic_read_entry(apic, i);
|
|
|
+ printk(KERN_DEBUG " %02x %02X ",
|
|
|
+ i,
|
|
|
+ entry.dest
|
|
|
+ );
|
|
|
+ printk("%1d %1d %1d %1d %1d "
|
|
|
+ "%1d %1d %02X\n",
|
|
|
+ entry.mask,
|
|
|
+ entry.trigger,
|
|
|
+ entry.irr,
|
|
|
+ entry.polarity,
|
|
|
+ entry.delivery_status,
|
|
|
+ entry.dest_mode,
|
|
|
+ entry.delivery_mode,
|
|
|
+ entry.vector
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
printk(KERN_DEBUG "IRQ to pin mappings:\n");
|
|
|
for_each_active_irq(irq) {
|
|
|
struct irq_pin_list *entry;
|