Re: PReP and generic PCI resource assignment

2 messages, 2 authors, 2001-08-11 · open the first message on its own page

Re: PReP and generic PCI resource assignment

From: Hollis Blanchard <hidden>
Date: 2001-08-10 19:34:23

On Fri, Aug 10, 2001 at 10:38:04AM +0200, Geert Uytterhoeven wrote:
There are (or were, read as in `were the last time I
tried it, a few months ago) still some problems, though. One of them is that
the hardcoded ISA motherboard resources (i8259 and legacy stuff) are
requested before PCI resources are done, and that the PCI bus parent
resources were not requested and thus don't appear in the full resource
tree.
There is still that problem with VGA console, which does a
request_resource(&ioport_resource,...) after the PCI host bridge has been
found, but well before the PCI code has reserved all of *its* resources. So
reserving 0-ffffffff IO fails because VGA already grabbed a tiny chunk at
0x3d0 or so.

Even regardless of order, VGA console is requesting directly from
ioport_resource, which probably should be changed (Paul suggested
request_region instead)...

I didn't see any similar problem with i8259, but I wasn't looking for it
either.

I get a ton of failed request_resources on the boxes I play with the most, but
luckily most things work ok. Except for this video controller, which doesn't
like being moved away from 0x0... :/

-Hollis

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: PReP and generic PCI resource assignment

From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2001-08-11 17:43:20

On Fri, 10 Aug 2001, Hollis Blanchard wrote:
On Fri, Aug 10, 2001 at 10:38:04AM +0200, Geert Uytterhoeven wrote:
quoted
There are (or were, read as in `were the last time I
tried it, a few months ago) still some problems, though. One of them is that
the hardcoded ISA motherboard resources (i8259 and legacy stuff) are
requested before PCI resources are done, and that the PCI bus parent
resources were not requested and thus don't appear in the full resource
tree.
There is still that problem with VGA console, which does a
request_resource(&ioport_resource,...) after the PCI host bridge has been
found, but well before the PCI code has reserved all of *its* resources. So
reserving 0-ffffffff IO fails because VGA already grabbed a tiny chunk at
0x3d0 or so.

Even regardless of order, VGA console is requesting directly from
ioport_resource, which probably should be changed (Paul suggested
request_region instead)...
Yes, using request_region() is the correct fix.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help