From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: xen-devel@lists.xensource.com, linux-kernel@vger.kernel.org,
Jeremy Fitzhardinge <jeremy@goop.org>,
stefano.stabellini@eu.citrix.com, Ian.Campbell@citrix.com
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Subject: [PATCH 2/8] xen/pci: Update comments and fix empty spaces.
Date: Wed, 15 Jun 2011 15:19:41 -0400 [thread overview]
Message-ID: <1308165587-24902-3-git-send-email-konrad.wilk@oracle.com> (raw)
In-Reply-To: <1308165587-24902-1-git-send-email-konrad.wilk@oracle.com>
The comment at the beginning of the file does not
make any sense anymore - update it.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
---
arch/x86/pci/xen.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c
index a2a8e2e..f44446b 100644
--- a/arch/x86/pci/xen.c
+++ b/arch/x86/pci/xen.c
@@ -1,8 +1,13 @@
/*
- * Xen PCI Frontend Stub - puts some "dummy" functions in to the Linux
- * x86 PCI core to support the Xen PCI Frontend
+ * Xen PCI - handle PCI (INTx) and MSI infrastructure calls for PV, HVM and
+ * initial domain support. We also handle the DSDT _PRT callbacks for GSI's
+ * used in HVM and initial domain mode (PV does not parse ACPI, so it has no
+ * concept of GSIs). Under PV we hook under the pnbbios API for IRQs and
+ * 0xcf8 PCI configuration read/write.
*
* Author: Ryan Wilson <hap9@epoch.ncsc.mil>
+ * Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
+ * Stefano Stabellini <stefano.stabellini@eu.citrix.com>
*/
#include <linux/module.h>
#include <linux/init.h>
@@ -19,7 +24,6 @@
#include <xen/events.h>
#include <asm/xen/pci.h>
-
static int xen_pcifront_enable_irq(struct pci_dev *dev)
{
int rc;
@@ -182,9 +186,6 @@ static int acpi_register_gsi_xen(struct device *dev, u32 gsi,
struct xen_pci_frontend_ops *xen_pci_frontend;
EXPORT_SYMBOL_GPL(xen_pci_frontend);
-/*
- * For MSI interrupts we have to use drivers/xen/event.s functions to
- * allocate an irq_desc and setup the right */
static int xen_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
{
int irq, ret, i;
@@ -360,7 +361,6 @@ static void xen_teardown_msi_irq(unsigned int irq)
#endif
-
int __init pci_xen_init(void)
{
if (!xen_pv_domain() || xen_initial_domain())
@@ -424,7 +424,7 @@ static __init void xen_setup_acpi_sci(void)
}
trigger = trigger ? ACPI_LEVEL_SENSITIVE : ACPI_EDGE_SENSITIVE;
polarity = polarity ? ACPI_ACTIVE_LOW : ACPI_ACTIVE_HIGH;
-
+
printk(KERN_INFO "xen: sci override: global_irq=%d trigger=%d "
"polarity=%d\n", gsi, trigger, polarity);
--
1.7.4.1
next prev parent reply other threads:[~2011-06-15 19:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-15 19:19 [PATCH] cleanup in Xen PCI (arch/x86/pci/xen.c) code for 3.1 Konrad Rzeszutek Wilk
2011-06-15 19:19 ` [PATCH 1/8] xen/pci: Shuffle code around Konrad Rzeszutek Wilk
2011-06-15 19:19 ` Konrad Rzeszutek Wilk [this message]
2011-06-15 19:19 ` [PATCH 3/8] xen/pci: Provide #ifdef CONFIG_ACPI to easy code squashing Konrad Rzeszutek Wilk
2011-06-15 19:19 ` [PATCH 4/8] xen/pci: In xen_register_pirq bind the GSI to the IRQ after the hypercall Konrad Rzeszutek Wilk
2011-06-15 19:19 ` [PATCH 5/8] xen/pci: Use the xen_register_pirq from both HVM and initial domain case Konrad Rzeszutek Wilk
2011-06-15 19:19 ` [PATCH 6/8] xen/pci: Squash pci_xen_initial_domain and xen_setup_pirqs together Konrad Rzeszutek Wilk
2011-06-15 19:19 ` [PATCH 7/8] xen/pci: Move the allocation of IRQs when there is no IOAPIC to the end Konrad Rzeszutek Wilk
2011-06-15 19:19 ` [PATCH 8/8] xen/pci: Remove unnecessary #ifdef CONFIG_ACPI Konrad Rzeszutek Wilk
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=1308165587-24902-3-git-send-email-konrad.wilk@oracle.com \
--to=konrad.wilk@oracle.com \
--cc=Ian.Campbell@citrix.com \
--cc=jeremy@goop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®