[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debian-31r0a-hppa-binary-1.iso B2600 Kernel panic: High PrioritMachine Check (HPMC)



On Wed, Jun 29, 2005 at 01:37:58PM -0400, Kyle McMartin wrote:
> > I fear another ISA/x86 behavior where the driver is poking around
> > in random IO space that no one owns.
> 
> You are correct.

Just a guess. :^)

>  A cursory reading of the driver shows that when
> the joystick is at 0x200. Grepping around the kernel shows that a 
> a number of other drivers put their joysticks at 0x200, which leads me 
> to believe that this is a `convention` like the VGA ports.
> 
> I imagine that if the card behaved well, it would declare it's io ports
> in PCI config space?

Just reserving the resource won't prevent the HPMC.

We need a PCI quirk for the card. A BAR-like resource needs to be added
to pci_device.resources and fixed-up by the arch specific code.
In this case, the sound card is NOT on bus 0 (add-in is usually non-zero
bus/slot number) and any hardcoded addresses handed to inb/outb will
end up getting generated on bus 0.  The inb/outb address must get
fixed up by pcibios_bus_fixup().


thanks,
grant



Reply to: