From: Yinghai Lu <yhlu.kernel@gmail.com>
To: Jesse Barnes <jbarnes@virtuousgeek.org>,
Len Brown <lenb@kernel.org>, Ingo Molnar <mingo@elte.hu>,
Thomas Gleixner <tglx@linutronix.de>,
"H. Peter Anvin" <hpa@zytor.com>,
Andrew
Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org,
linux-acpi@vger.kernel.org, Yinghai Lu <yhlu.kernel@gmail.com>
Subject: [PATCH 7/7] x86: print out irq nr for msi/ht
Date: Wed, 24 Sep 2008 19:04:37 -0700 [thread overview]
Message-ID: <1222308277-10984-7-git-send-email-yhlu.kernel@gmail.com> (raw)
In-Reply-To: <1222308277-10984-1-git-send-email-yhlu.kernel@gmail.com>
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
---
arch/x86/kernel/hpet.c | 3 +++
arch/x86/kernel/io_apic.c | 7 +++++++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c
index 422c577..686505a 100644
--- a/arch/x86/kernel/hpet.c
+++ b/arch/x86/kernel/hpet.c
@@ -467,6 +467,9 @@ static int hpet_setup_irq(struct hpet_dev *dev)
irq_set_affinity(dev->irq, cpumask_of_cpu(dev->cpu));
enable_irq(dev->irq);
+ printk(KERN_DEBUG "hpet: %s is using irq %#x aka %d for MSI\n",
+ dev->name, irq, irq);
+
return 0;
}
diff --git a/arch/x86/kernel/io_apic.c b/arch/x86/kernel/io_apic.c
index 4cc9cb6..dc82397 100644
--- a/arch/x86/kernel/io_apic.c
+++ b/arch/x86/kernel/io_apic.c
@@ -3355,6 +3355,9 @@ static int setup_msi_irq(struct pci_dev *dev, struct msi_desc *desc, int irq)
#endif
set_irq_chip_and_handler_name(irq, &msi_chip, handle_edge_irq, "edge");
+ printk(KERN_DEBUG "PCI: %s is using irq %#x aka %d for MSI/MSI-X\n",
+ pci_name(dev), irq, irq);
+
return 0;
}
@@ -3587,6 +3590,7 @@ int arch_setup_hpet_msi(unsigned int irq)
hpet_msi_write(irq, &msg);
set_irq_chip_and_handler_name(irq, &hpet_msi_type, handle_edge_irq,
"edge");
+
return 0;
}
#endif
@@ -3683,6 +3687,9 @@ int arch_setup_ht_irq(unsigned int irq, struct pci_dev *dev)
set_irq_chip_and_handler_name(irq, &ht_irq_chip,
handle_edge_irq, "edge");
+
+ printk(KERN_DEBUG "PCI: %s is using irq %#x aka %d for HT\n",
+ pci_name(dev), irq, irq);
}
return err;
}
--
1.5.6
WARNING: multiple messages have this Message-ID (diff)
From: Yinghai Lu <yhlu.kernel@gmail.com>
To: Jesse Barnes <jbarnes@virtuousgeek.org>,
Len Brown <lenb@kernel.org>, Ingo Molnar <mingo@elte.hu>,
Thomas Gleixner <tglx@linutronix.de>,
"H. Peter Anvin" <hpa@zytor.com>,
Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org,
linux-acpi@vger.kernel.org, Yinghai Lu <yhlu.kernel@gmail.com>
Subject: [PATCH 7/7] x86: print out irq nr for msi/ht
Date: Wed, 24 Sep 2008 19:04:37 -0700 [thread overview]
Message-ID: <1222308277-10984-7-git-send-email-yhlu.kernel@gmail.com> (raw)
In-Reply-To: <1222308277-10984-1-git-send-email-yhlu.kernel@gmail.com>
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
---
arch/x86/kernel/hpet.c | 3 +++
arch/x86/kernel/io_apic.c | 7 +++++++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c
index 422c577..686505a 100644
--- a/arch/x86/kernel/hpet.c
+++ b/arch/x86/kernel/hpet.c
@@ -467,6 +467,9 @@ static int hpet_setup_irq(struct hpet_dev *dev)
irq_set_affinity(dev->irq, cpumask_of_cpu(dev->cpu));
enable_irq(dev->irq);
+ printk(KERN_DEBUG "hpet: %s is using irq %#x aka %d for MSI\n",
+ dev->name, irq, irq);
+
return 0;
}
diff --git a/arch/x86/kernel/io_apic.c b/arch/x86/kernel/io_apic.c
index 4cc9cb6..dc82397 100644
--- a/arch/x86/kernel/io_apic.c
+++ b/arch/x86/kernel/io_apic.c
@@ -3355,6 +3355,9 @@ static int setup_msi_irq(struct pci_dev *dev, struct msi_desc *desc, int irq)
#endif
set_irq_chip_and_handler_name(irq, &msi_chip, handle_edge_irq, "edge");
+ printk(KERN_DEBUG "PCI: %s is using irq %#x aka %d for MSI/MSI-X\n",
+ pci_name(dev), irq, irq);
+
return 0;
}
@@ -3587,6 +3590,7 @@ int arch_setup_hpet_msi(unsigned int irq)
hpet_msi_write(irq, &msg);
set_irq_chip_and_handler_name(irq, &hpet_msi_type, handle_edge_irq,
"edge");
+
return 0;
}
#endif
@@ -3683,6 +3687,9 @@ int arch_setup_ht_irq(unsigned int irq, struct pci_dev *dev)
set_irq_chip_and_handler_name(irq, &ht_irq_chip,
handle_edge_irq, "edge");
+
+ printk(KERN_DEBUG "PCI: %s is using irq %#x aka %d for HT\n",
+ pci_name(dev), irq, irq);
}
return err;
}
--
1.5.6
next prev parent reply other threads:[~2008-09-25 2:04 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-25 2:04 [PATCH 1/7] acpi: don't load acpi_cpufreq if acpi=off Yinghai Lu
2008-09-25 2:04 ` Yinghai Lu
2008-09-25 2:04 ` [PATCH 2/7] acpi: remove have_arch_parse_srat in acpi.h Yinghai Lu
2008-09-25 2:04 ` Yinghai Lu
2008-09-25 15:01 ` Bjorn Helgaas
2008-09-25 17:10 ` Yinghai Lu
2008-09-25 2:04 ` [PATCH 3/7] pci: using %pF in quirks.c Yinghai Lu
2008-09-25 2:04 ` Yinghai Lu
2008-09-25 14:52 ` Jesse Barnes
2008-09-25 14:56 ` Bjorn Helgaas
2008-09-25 16:20 ` Jesse Barnes
2008-09-25 2:04 ` [PATCH 4/7] mm: print out meminit for memmap Yinghai Lu
2008-09-25 2:04 ` Yinghai Lu
2008-09-25 8:35 ` Ingo Molnar
2008-09-25 2:04 ` [PATCH 5/7] x86: fix typo in irq_desc array Yinghai Lu
2008-09-25 2:04 ` Yinghai Lu
2008-09-25 8:36 ` Ingo Molnar
2008-09-25 2:04 ` [PATCH 6/7] x86: irq no should not use hex in /proc/interrupts Yinghai Lu
2008-09-25 2:04 ` Yinghai Lu
2008-09-25 8:39 ` Ingo Molnar
2008-09-25 2:04 ` Yinghai Lu [this message]
2008-09-25 2:04 ` [PATCH 7/7] x86: print out irq nr for msi/ht Yinghai Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1222308277-10984-7-git-send-email-yhlu.kernel@gmail.com \
--to=yhlu.kernel@gmail.com \
--cc=hpa@zytor.com \
--cc=jbarnes@virtuousgeek.org \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.