From: "H. Peter Anvin" <hpa@zytor.com>
To: linux-kernel@vger.kernel.org
Subject: Re: setup.S: A20 enable sequence (once again)
Date: 6 Nov 2000 11:10:32 -0800 [thread overview]
Message-ID: <8u6vn8$70i$1@cesium.transmeta.com> (raw)
In-Reply-To: <00110618083400.11022@rob>
Followup to: <00110618083400.11022@rob>
By author: Robert Kaiser <rob@sysgo.de>
In newsgroup: linux.dev.kernel
>
> Hi all,
>
> a while ago, I posted a request here to add the "fast A20" enable
> sequence to setup.S in order to enable booting Linux on boards that
> don't have a keyboard controller. I was happy to see that this has
> been added into 2.4.0-test10 already. However, on some embedded
> boards, booting 2.4.0-test10 does work, but it takes several minutes
> which the board spends in complete silence (it took me almost a day
> to realize that I only had to wait long enough for the system to
> boot ...)
>
> The reason for this is that the A20 enable sequence in setup.S is still
> accessing the (in my case not existing) keyboard controller. It times out
> eventually, but the timeout takes *very* long, especially on a slowish
> embedded 386EX@25MHz.
>
> The attached patch fixes this by doing "fast A20" enable first and
> then checking if A20 already is enabled. If it is, the keyboard
> controller sequence is skipped. This works for me, so, could people
> please have a look at this.
>
This doesn't really work. Neither the fast A20 gate nor the KBC is
guaranteed to have immediate effect (on most systems they won't.)
What's worse, once you have done an "out" to the KBC you need to
finish the sequence. I need to think about this for a bit.
(Arguably, what you're doing is running on completely nonstandard
hardware, which may need a CONFIG_ option. However, if we can avoid
it I guess it's better.)
-hpa
--
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2000-11-06 19:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-06 16:50 setup.S: A20 enable sequence (once again) Robert Kaiser
2000-11-06 19:10 ` H. Peter Anvin [this message]
2000-11-06 21:30 ` Alan Cox
2000-11-06 22:06 ` H. Peter Anvin
2000-11-06 19:56 ` H. Peter Anvin
-- strict thread matches above, loose matches on Subject: below --
2000-11-06 19:29 Robert Kaiser
2000-11-06 20:16 ` H. Peter Anvin
[not found] <200011062003.VAA11818@rob.devdep.sysgo.de>
2000-11-06 20:20 ` Robert Kaiser
2000-11-06 20:43 ` H. Peter Anvin
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='8u6vn8$70i$1@cesium.transmeta.com' \
--to=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox