Add bootverbose printfs to indicate which IDT vectors are assigned to MSI

interrupts.
This commit is contained in:
John Baldwin 2007-02-15 22:22:57 +00:00
parent 10bcafe9ab
commit 9be403be00
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166776
2 changed files with 12 additions and 0 deletions

View File

@ -347,6 +347,9 @@ msi_alloc(device_t dev, int count, int maxcount, int *irqs, int *newirq,
msi->msi_intsrc.is_pic = &msi_pic;
msi->msi_dev = dev;
msi->msi_vector = vector + i;
if (bootverbose)
printf("msi: routing MSI IRQ %d to vector %u\n",
msi->msi_irq, msi->msi_vector);
msi->msi_index = i;
msi->msi_first = fsrc;
@ -463,6 +466,9 @@ msix_alloc(device_t dev, int index, int *irq, int *new)
/* Allocate an IDT vector. */
vector = apic_alloc_vector(i);
if (bootverbose)
printf("msi: routing MSI-X IRQ %d to vector %u\n", msi->msi_irq,
vector);
/* Setup source. */
msi->msi_intsrc.is_pic = &msix_pic;

View File

@ -347,6 +347,9 @@ msi_alloc(device_t dev, int count, int maxcount, int *irqs, int *newirq,
msi->msi_intsrc.is_pic = &msi_pic;
msi->msi_dev = dev;
msi->msi_vector = vector + i;
if (bootverbose)
printf("msi: routing MSI IRQ %d to vector %u\n",
msi->msi_irq, msi->msi_vector);
msi->msi_index = i;
msi->msi_first = fsrc;
@ -463,6 +466,9 @@ msix_alloc(device_t dev, int index, int *irq, int *new)
/* Allocate an IDT vector. */
vector = apic_alloc_vector(i);
if (bootverbose)
printf("msi: routing MSI-X IRQ %d to vector %u\n", msi->msi_irq,
vector);
/* Setup source. */
msi->msi_intsrc.is_pic = &msix_pic;