ia64/linux-2.6.18-xen.hg

changeset 656:c47b7e47ab19

linux: print at least a message if MSI-X restore failed

I'm not sure how to properly recover from that condition, but at least
don't let it happen silently.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Sep 04 11:30:39 2008 +0100 (2008-09-04)
parents 8925ce755252
children 7ec0d9030d8a
files drivers/pci/msi-xen.c
line diff
     1.1 --- a/drivers/pci/msi-xen.c	Thu Sep 04 11:30:12 2008 +0100
     1.2 +++ b/drivers/pci/msi-xen.c	Thu Sep 04 11:30:39 2008 +0100
     1.3 @@ -372,9 +372,15 @@ void pci_restore_msix_state(struct pci_d
     1.4  
     1.5  	spin_lock_irqsave(&msi_dev_entry->pirq_list_lock, flags);
     1.6  	list_for_each_entry_safe(pirq_entry, tmp,
     1.7 -				 &msi_dev_entry->pirq_list_head, list)
     1.8 -		msi_map_pirq_to_vector(dev, pirq_entry->pirq,
     1.9 -				       pirq_entry->entry_nr, table_base);
    1.10 +				 &msi_dev_entry->pirq_list_head, list) {
    1.11 +		int rc = msi_map_pirq_to_vector(dev, pirq_entry->pirq,
    1.12 +						pirq_entry->entry_nr, table_base);
    1.13 +		if (rc < 0)
    1.14 +			printk(KERN_WARNING
    1.15 +			       "%s: re-mapping irq #%d (pirq%d) failed: %d\n",
    1.16 +			       pci_name(dev), pirq_entry->entry_nr,
    1.17 +			       pirq_entry->pirq, rc);
    1.18 +	}
    1.19  	spin_unlock_irqrestore(&msi_dev_entry->pirq_list_lock, flags);
    1.20  
    1.21  	enable_msi_mode(dev, pos, PCI_CAP_ID_MSIX);