Subject: Re: pata_sl82c105 can not reserve IO region

From: Alan <[email-masked]>
Date: Thu, 30 Nov 2006 17:10:49 +0000

On Thu, 30 Nov 2006 17:52:02 +0100 (MET)
Olaf Hering <[email-masked]> wrote:

> 
> pata_sl82c105 can be used on the ppc64 POWER4 system p610, p615 and p630
> for the onboard IDE CD drive. It could be also used for ppc32 Motorola
> PowerStack PReP systems.
> 
> Unfortunately, it doesnt work for me on the p630:
> 
> PCI: Enabling device: (0000:00:03.1), cmd 141
> PCI: Unable to reserve I/O region #6:10@0 for device 0000:00:03.1
> pata_sl82c105: probe of 0000:00:03.1 failed with error -16
> 
> Any idea how to fix it properly?

That looks like a compiler bug.

I/O region #6.

pci_request_regions() and pci_request_selcted_regions() end up in a loop
calling pci_request_region with the values 0 to 5. Never 6.

Can you instrument that code a bit and see wtf is going on first of all.

Alan