]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
parisc: Disable HP HSC-PCI Cards to prevent kernel crash
authorHelge Deller <deller@gmx.de>
Thu, 5 Sep 2019 14:44:17 +0000 (16:44 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 10 Dec 2019 18:01:18 +0000 (18:01 +0000)
commitfa781c303883d723d1b8e68b32b73e58b587a4fa
treee548db86f7489cad3f26eb6065c5abfcf768cc18
parent2fa807f509e72c53cf68c732b668695f36c4db8f
parisc: Disable HP HSC-PCI Cards to prevent kernel crash

commit 5fa1659105fac63e0f3c199b476025c2e04111ce upstream.

The HP Dino PCI controller chip can be used in two variants: as on-board
controller (e.g. in B160L), or on an Add-On card ("Card-Mode") to bridge
PCI components to systems without a PCI bus, e.g. to a HSC/GSC bus.  One
such Add-On card is the HP HSC-PCI Card which has one or more DEC Tulip
PCI NIC chips connected to the on-card Dino PCI controller.

Dino in Card-Mode has a big disadvantage: All PCI memory accesses need
to go through the DINO_MEM_DATA register, so Linux drivers will not be
able to use the ioremap() function. Without ioremap() many drivers will
not work, one example is the tulip driver which then simply crashes the
kernel if it tries to access the ports on the HP HSC card.

This patch disables the HP HSC card if it finds one, and as such
fixes the kernel crash on a HP D350/2 machine.

Signed-off-by: Helge Deller <deller@gmx.de>
Noticed-by: Phil Scarr <phil.scarr@pm.me>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/parisc/dino.c