Subject: Re: Enabling i/o and mem space on PCI bridges
To: Allen Briggs <briggs@netbsd.org>
From: Jared D. McNeill <jmcneill@invisible.ca>
List: tech-kern
Date: 11/28/2007 09:06:42
On Tue, 27 Nov 2007, Allen Briggs wrote:
> On Tue, Nov 27, 2007 at 08:01:05PM -0500, Jared D. McNeill wrote:
>> For some reason 'pci6' on my Thinkpad has memory space access disabled.
>> This prevents fwohci and cbb from working properly.
>
> Ew...  Bogus BIOS?

Maybe, although I could have sworn that it worked before....

> I.e., set the status bits that are set in CSR (to clear any errors that
> might be set), ignore any command bits that are set in the CSR, and set
> any command bits that are set in sc_flags, but ignore the status bits
> from sc_flags.

Will do, thanks.

> I'd probably also put in a comment that some bridges are not configured
> to enable I/O or memory for some reason.  Have you looked to see how
> other OSes deal with this?  Does the Thinkpad require special windows
> drivers?  Do other bridges do this?

I'm not sure. It was more of a brute force solution to the problem I was 
having :-) I just wanted to make sure that it wasn't a Bad Idea(tm) to do 
what I'm doing here...

Cheers,
Jared