Re: [PATCH] pci: change msi-x vector to 32bit
From: Yinghai Lu
Date: Sat Aug 16 2008 - 02:43:24 EST
On Fri, Aug 15, 2008 at 8:26 PM, H. Peter Anvin <hpa@xxxxxxxxx> wrote:
> The 28 bits aren't enough, are they: we need domain as well (and surely we can have more than 16 domains?)
current code
static unsigned int build_irq_for_pci_dev(struct pci_dev *dev)
{
unsigned int irq;
irq = dev->bus->number;
irq <<= 8;
irq |= dev->devfn;
irq <<= 12;
return irq;
}
int arch_setup_msi_irq(struct pci_dev *dev, struct msi_desc *desc)
{
unsigned int irq;
int ret;
unsigned int irq_want;
irq_want = build_irq_for_pci_dev(dev) + 0x100;
irq = create_irq(irq_want);
domain is not used yet.
need to make vecter_irq to vector_domain_irq
irq_desc(irq) change to domain_irq_desc(domain, irq)
...
YH
YH
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/