powerpc: Added PCI MSI support using the HSTA module
The PPC476GTR SoC supports message signalled interrupts (MSI) by writing to special addresses within the High Speed Transfer Assist (HSTA) module. This patch adds support for PCI MSI with a new system device. The DMA window is also updated to allow access to the entire 42-bit address range to allow PCI devices write access to the HSTA module. Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:

committato da
Benjamin Herrenschmidt

parent
2a2c74b2ef
commit
e2c37d9083
@@ -176,8 +176,12 @@ static int __init ppc4xx_parse_dma_ranges(struct pci_controller *hose,
|
||||
return -ENXIO;
|
||||
}
|
||||
|
||||
/* Check that we are fully contained within 32 bits space */
|
||||
if (res->end > 0xffffffff) {
|
||||
/* Check that we are fully contained within 32 bits space if we are not
|
||||
* running on a 460sx or 476fpe which have 64 bit bus addresses.
|
||||
*/
|
||||
if (res->end > 0xffffffff &&
|
||||
!(of_device_is_compatible(hose->dn, "ibm,plb-pciex-460sx")
|
||||
|| of_device_is_compatible(hose->dn, "ibm,plb-pciex-476fpe"))) {
|
||||
printk(KERN_ERR "%s: dma-ranges outside of 32 bits space\n",
|
||||
hose->dn->full_name);
|
||||
return -ENXIO;
|
||||
|
Fai riferimento in un nuovo problema
Block a user