Re: [PATCH 4/5] powerpc/powernv: Patch MSI EOI handler on P8

2013-04-23 Thread Gavin Shan
On Wed, Apr 24, 2013 at 01:21:53AM +1000, Benjamin Herrenschmidt wrote: >On Tue, 2013-04-23 at 19:03 +0800, Gavin Shan wrote: >> >> +static int pnv_pci_ioda_msi_eoi(struct pnv_phb *phb, unsigned int hw_irq) >> +{ >> + u8 p_bit = 1, q_bit = 1; >> + long rc; >> + >> + while (p_bit

Re: [PATCH 4/5] powerpc/powernv: Patch MSI EOI handler on P8

2013-04-23 Thread Benjamin Herrenschmidt
On Tue, 2013-04-23 at 19:03 +0800, Gavin Shan wrote: > > +static int pnv_pci_ioda_msi_eoi(struct pnv_phb *phb, unsigned int hw_irq) > +{ > + u8 p_bit = 1, q_bit = 1; > + long rc; > + > + while (p_bit || q_bit) { > + rc = opal_pci_get_xive_reissue(phb->opal_id, > +