AMD756VIPER PCI IRQ Routing Patch (Need Additional Tests)

Jhon H. Caicedo (jhcaiced@osso.org.co)
Tue, 19 Jun 2001 13:30:29 -0500 (COT)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

---1463811832-917376918-992975429=:31330
Content-Type: TEXT/PLAIN; charset=iso-8859-1
Content-Transfer-Encoding: QUOTED-PRINTABLE

Hi,

I have been working on a small patch to add support for AMD756 PCI IRQ
Routing with linux-2.4.5

This has been tested with a Gigabyte 7IXE 7F board and several PCI cards,
including a SMC-Lucent PCI Cardbus Bridge which doesn't get an IRQ
assigned by the BIOS.

If anybody has a board based on this chipset I would appreciate further
testing and advise about the patch.

In this alpha version, I left two printk() lines to get information
about the IRQ settings.

You should get an output like the following:

[root@klingon ~]# dmesg | grep 756
PCI: Using IRQ router AMD756 VIPER [1022/740b] at 00:07.3
AMD756: dev 104c:ac1c, router pirq : 4 get irq : 0
AMD756: dev 104c:ac1c, router pirq : 4 get irq : 0
AMD756: dev 10ec:8029, router pirq : 3 get irq : 10
AMD756: dev 104c:ac1c, router pirq : 4 get irq : 0
AMD756: dev 104c:ac1c, router pirq : 4 SET irq : 5
AMD756: dev 104c:ac1c, router pirq : 4 get irq : 5
AMD756: dev 11fe:0005, router pirq : 1 get irq : 12

Thanks.

diff -u linux-2.4.5/arch/i386/kernel/pci-irq.c \
linux/arch/i386/kernel/pci-irq.c > linux-2.4.5_amd756-pci-routing-alpha1.=
patch

--
Jhon H. Caicedo O. <jhcaiced@osso.org.co>
Observatorio Sismol=F3gico del SurOccidente O.S.S.O
http://www.osso.org.co
Cali - Colombia

---1463811832-917376918-992975429=:31330 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="linux-2.4.5_amd756-pci-routing-alpha1.patch" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.LNX.4.33.0106191330290.31330@earth.cj.osso.org.co> Content-Description: Content-Disposition: attachment; filename="linux-2.4.5_am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m91dGVyLCBzdHJ1Y3QgcGNpX2RldiAqZGV2LCBpbnQgcGlycSwg aW50IGlycSkNCkBAIC00MjYsNiArNDc2LDggQEANCiAJeyAiVkxTSSA4MkM1 MzQiLCBQQ0lfVkVORE9SX0lEX1ZMU0ksIFBDSV9ERVZJQ0VfSURfVkxTSV84 MkM1MzQsIHBpcnFfdmxzaV9nZXQsIHBpcnFfdmxzaV9zZXQgfSwNCiAJeyAi U2VydmVyV29ya3MiLCBQQ0lfVkVORE9SX0lEX1NFUlZFUldPUktTLCBQQ0lf REVWSUNFX0lEX1NFUlZFUldPUktTX09TQjQsDQogCSAgcGlycV9zZXJ2ZXJ3 b3Jrc19nZXQsIHBpcnFfc2VydmVyd29ya3Nfc2V0IH0sDQorCXsgIkFNRDc1 NiBWSVBFUiIsIFBDSV9WRU5ET1JfSURfQU1ELCBQQ0lfREVWSUNFX0lEX0FN RF9WSVBFUl83NDBCLA0KKwkJcGlycV9hbWQ3NTZfZ2V0LCBwaXJxX2FtZDc1 Nl9zZXQgfSwNCiANCiAJeyAiZGVmYXVsdCIsIDAsIDAsIE5VTEwsIE5VTEwg fQ0KIH07DQo= ---1463811832-917376918-992975429=:31330-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/