Skip to contentSkip to conversation

card probing

parisc-linux Matthew Wilcox 2 participants 2 messages Oct 27, 2001

lore
Share & tools
lore
#0 lore raw

I'm not sure how to solve this problem. Suggestions appreciated.

If you compile a kernel with the hp100 driver in it, it will attempt to detect ISA cards by probing. This works fine when there's an EISA adapter in the machine as it simply returns -1 when there are no cards present. With no EISA adapter in the machine, the ioport probes are routed to Dino instead. When you attempt to read from a nonexistent io port through Dino, it causes an HPMC.

This is something which could well cause problems for releasing a distro as probing for ISA cards in a machine without an EISA adapter will lock the machine.

Some ways of solving it:
* change dino_in* to check whether the address is configured. This could be slow.
* on pre-SuckyIO machines, reserve HBA 0 for EISA.
* Fix SuckyIO so that it doesn't assume it's on PCI bus 0 and always reserve HBA 0 for EISA.
* Don't compile drivers which probe for ISA addresses or fix them to not probe unless there's an EISA adapter. Lots of work, won't catch everything, dubious what strategy would be acceptable upstream.
* Write an HPMC handler that recovers from Dino going fatal.
* Turn on Less-than-fatal mode in Dino and handle resetting it... don't know how well this would work.

I don't know what Elroy does on reads of unassigned addresses. This will probably affect the decision of how to fix this since we want to ship a 32-bit kernel that can boot on everything from a 720 to a J7000.

Signature · 1 line
Revolutions do not require corporate support.
#1 lore raw
Quoted 3 lines · Matthew Wilcox

I don't know what Elroy does on reads of unassigned addresses. This will probably affect the decision of how to fix this since we want to ship a 32-bit kernel that can boot on everything from a 720 to a J7000.

C3000 HPMC's. I just commited -pa72 in order to test this. I built HP100 as a module w/o CONFIG_EISA defined. "modeprobe hp100" results in an HPMC.

Off hand, I don't have any good ideas on fixing the problem. I'll think about it some more.

grant