From: hollis@austin.ibm.com
To: Gabriel Paubert <paubert@iram.es>
Cc: linuxppc-dev@lists.linuxppc.org, davidm@amberdata.demon.co.uk,
Sven.Dickert@planb.de
Subject: Re: RFC: i8259.c cleanup
Date: Wed, 7 Nov 2001 11:06:30 -0600 [thread overview]
Message-ID: <20011107110630.G9471@austin.ibm.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0111071013050.19315-100000@gra-lx1.iram.es>
On Wed, Nov 07, 2001 at 10:38:27AM +0100, Gabriel Paubert wrote:
>
> The question is why the polling code did not work, subtle timing problems
> or is the code plain wrong ? I suspect that some 8259 accesses were not
> serialized well enough.
I laid out what I saw in
http://lists.linuxppc.org/linuxppc-workstation/200109/msg00030.html . I could
be wrong, but our code doesn't seem to match the datasheet very well.
I think fixing what we have is the least intrusive, but I tried and failed, so
it was nice to write code that actually worked. :) I guess the PCI intack
stuff is too varied to be useful though...
Would you say poking the 8259 directly is more "right" than using 0xbffffff0
(or equivalent)?
> > The patch also cleans up some whitespace (parts of i8259.c were apparently
> > copied and pasted from one xterm to another), adds a few comments, and adds
> > resource_request's for both 8259's.
>
> Good, but you should add resource request for the edge/level control
> register while you are at it (0x4d0/4d1). And you should not require
> 32 bytes for the 8259. On my boards, the super I/O control port is
> 0x2e-ox2f.
That's what I forgot... that code requests directly from ioport_resource,
which is what gets us into trouble on vgacon. We should use request_region
instead of request_resource. Unfortunately vgacon is initialized before the
VMM, and since request_region calls kmalloc we die very early. :/ I didn't
check to see if that's a problem here.
The problem with using request_resource(&ioport_resource) in vgacon is that
our PHB's initialize later, try to reserve their own IO regions (eg
0x0->0xffffffff), and fail because vgacon already took 0x3c0 or so.
-Hollis
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2001-11-07 17:06 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-06 23:15 RFC: i8259.c cleanup hollis
2001-11-07 6:37 ` Dan Malek
2001-11-07 9:31 ` Geert Uytterhoeven
2001-11-07 9:40 ` Gabriel Paubert
2001-11-07 9:38 ` Gabriel Paubert
2001-11-07 17:06 ` hollis [this message]
2001-11-07 17:17 ` Geert Uytterhoeven
2001-11-07 21:17 ` Gabriel Paubert
2001-11-07 22:01 ` hollis
2001-11-07 20:46 ` Val Henson
-- strict thread matches above, loose matches on Subject: below --
2001-11-07 4:43 Michael Sokolov
2001-11-07 6:31 ` Dag Nygren
2001-11-07 7:00 ` Dan Malek
2001-11-07 7:09 ` Dag Nygren
2001-11-07 6:38 ` Dan Malek
2001-11-07 20:31 Michael Sokolov
2001-11-07 21:13 Michael Sokolov
2001-11-07 21:22 ` Geert Uytterhoeven
2001-11-07 21:22 Michael Sokolov
2001-11-07 21:26 ` Geert Uytterhoeven
2001-11-07 22:43 Michael Sokolov
2001-11-07 22:55 Michael Sokolov
2001-11-07 23:00 Michael Sokolov
2001-11-07 23:04 Michael Sokolov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011107110630.G9471@austin.ibm.com \
--to=hollis@austin.ibm.com \
--cc=Sven.Dickert@planb.de \
--cc=davidm@amberdata.demon.co.uk \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=paubert@iram.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.