cregit-Linux how code gets into the kernel

Release 4.11 drivers/pci/irq.c

Directory: drivers/pci
/*
 * PCI IRQ failure handing code
 *
 * Copyright (c) 2008 James Bottomley <James.Bottomley@HansenPartnership.com>
 */

#include <linux/acpi.h>
#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/pci.h>


static void pci_note_irq_problem(struct pci_dev *pdev, const char *reason) { struct pci_dev *parent = to_pci_dev(pdev->dev.parent); dev_err(&pdev->dev, "Potentially misrouted IRQ (Bridge %s %04x:%04x)\n", dev_name(&parent->dev), parent->vendor, parent->device); dev_err(&pdev->dev, "%s\n", reason); dev_err(&pdev->dev, "Please report to linux-kernel@vger.kernel.org\n"); WARN_ON(1); }

Contributors

PersonTokensPropCommitsCommitProp
James Bottomley7691.57%133.33%
Kay Sievers44.82%133.33%
Joe Perches33.61%133.33%
Total83100.00%3100.00%

/** * pci_lost_interrupt - reports a lost PCI interrupt * @pdev: device whose interrupt is lost * * The primary function of this routine is to report a lost interrupt * in a standard way which users can recognise (instead of blaming the * driver). * * Returns: * a suggestion for fixing it (although the driver is not required to * act on this). */
enum pci_lost_interrupt_reason pci_lost_interrupt(struct pci_dev *pdev) { if (pdev->msi_enabled || pdev->msix_enabled) { enum pci_lost_interrupt_reason ret; if (pdev->msix_enabled) { pci_note_irq_problem(pdev, "MSIX routing failure"); ret = PCI_LOST_IRQ_DISABLE_MSIX; } else { pci_note_irq_problem(pdev, "MSI routing failure"); ret = PCI_LOST_IRQ_DISABLE_MSI; } return ret; } #ifdef CONFIG_ACPI if (!(acpi_disabled || acpi_noirq)) { pci_note_irq_problem(pdev, "Potential ACPI misrouting please reboot with acpi=noirq"); /* currently no way to fix acpi on the fly */ return PCI_LOST_IRQ_DISABLE_ACPI; } #endif pci_note_irq_problem(pdev, "unknown cause (not MSI or ACPI)"); return PCI_LOST_IRQ_NO_INFORMATION; }

Contributors

PersonTokensPropCommitsCommitProp
James Bottomley100100.00%1100.00%
Total100100.00%1100.00%

EXPORT_SYMBOL(pci_lost_interrupt);

Overall Contributors

PersonTokensPropCommitsCommitProp
James Bottomley19494.63%120.00%
Kay Sievers41.95%120.00%
Paul Gortmaker31.46%120.00%
Joe Perches31.46%120.00%
Björn Helgaas10.49%120.00%
Total205100.00%5100.00%
Directory: drivers/pci
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.