Thread (5 messages) 5 messages, 3 authors, 1999-08-08

Re: Trying a Promise Ultra/66 on powerpc

From: Michel Lanners <hidden>
Date: 1999-08-08 20:00:28

On  29 Jul, this message from Benjamin Herrenschmidt echoed through cyberspace:
On Wed, Jul 28, 1999, Michel Lanners [off-list ref] wrote:
quoted
It seems that OpenFirmware is not doing its job well in initializing all
PCI devices.For the planb driver, which uses an onboard PCI device
(video input) known to OF (i.e Apple device), I need to set
PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER | PCI_COMMAND_INVALIDATE. Or is
it just a problem with IO space enabling, and memory is already
switched on by OF?
OF will not enable memory space if there's no OF boot code on the board.
I beleive it doesn the same with IO space (but I didn't check). The lack
of PCI_COMMAND_INVALIDATE can be considered as an OF bug if the card
already has PCI_COMMAND_MASTER set as a default. I think the kernel
should add this to all devices at fixup time. (It should be harmless for
non-master devices anyway).
Right, according to 'Designing PCI cards and Drivers..', OF never
enables neither memory space, nor IO space, neither ROM. It should,
however, set both PCI_COMMAND_MASTER and PCI_COMMAND_INVALIDATE. I
didn't chek, though...

I'm getting a patch ready that fixes this on the PMac plkatform. Geert,
how about OF in your CHRP box? Does it need the enable fix as well?

Michel

-------------------------------------------------------------------------
Michel Lanners                 |  " Read Philosophy.  Study Art.
23, Rue Paul Henkes            |    Ask Questions.  Make Mistakes.
L-1710 Luxembourg              |
email   mlan@cpu.lu            |
http://www.cpu.lu/~mlan        |                     Learn Always. "


[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help