From: Matthias Andree <matthias.andree@stud.uni-dortmund.de>
To: Linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: Linux 2.2.18: /proc/apm slows system time (was: Linux 2.2.19pre3)
Date: Sat, 30 Dec 2000 13:39:10 +0100 [thread overview]
Message-ID: <20001230133910.A5341@emma1.emma.line.org> (raw)
In-Reply-To: <20001228112305.A2571@emma1.emma.line.org> <E14Bc2d-0003e0-00@the-village.bc.nu> <20001228145337.A2887@emma1.emma.line.org> <20001229134252.L22081@arthur.ubicom.tudelft.nl>
In-Reply-To: <20001229134252.L22081@arthur.ubicom.tudelft.nl>; from J.A.K.Mouw@ITS.TUDelft.NL on Fri, Dec 29, 2000 at 13:42:52 +0100
On Fri, 29 Dec 2000, Erik Mouw wrote:
> On Thu, Dec 28, 2000 at 02:53:37PM +0100, Matthias Andree wrote:
> However, reading from /proc/apm also triggers other weird problems:
>
> - Received characters dropped on serial line. I thought my serial port
> was broken, because a 16550 is supposed to have a receive buffer.
I don't know that the Linux driver sets the IRQ trigger to (you can have
the 16550 request interrupts after its 16-byte FIFO has 1, 4, 8 or 14
bytes ready for reading), but if it's set to 14 (to reduce the IRQ
frequency), you don't have much time at 115200 Bit/s, you have 1 Byte
every 87 ms then (it has 10 bit usually, 1 start + 1 stop bit), and
reading from /proc/apm stops my system clock for approx. 80 ... 90 ms -
then you still have IRQs with higher precedence and whooops, your buffer
overruns. Setting the trigger lower would help, but I never looked how
this will happen.
(I never run into this problem myself since I have 16750s here which
have at least 8 Bytes left when triggering, they have 64 Byte FIFO.)
> I got the same problems with my previous notebook (Asus P6300, PII 266,
> 112MB, Intel BX/ZX chipset). It might be a BIOS problem, because both
> notebooks use a Phoenix BIOS. OTOH, I can create the same problems with
> USB on my desktop (Asus P5A motherboard, K6 333, 160MB, Ali 1541
> chipset, Award BIOS) when I run the GNOME battery_applet. So is this an
> Asus problem, or a general APM problem?
My problem shows up on a Gigabyte board with AMIBIOS, so it's certainly
not a Phoenix or Asus specific problem.
However, reading from /proc/apm triggers BIOS calls which involve
certain action, maybe switching to Real Mode and other things, and I
suspect that either IRQs are still disabled while the BIOS is called or
the BIOS plays bad games which Linux would have to compensate for. :-/
HTH,
Matthias
-
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-12-30 13:09 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-22 0:52 Linux 2.2.19pre3 Alan Cox
2000-12-22 3:40 ` Mitch Adair
2000-12-22 15:32 ` Petri Kaukasoina
2000-12-22 15:53 ` Richard B. Johnson
2000-12-22 16:02 ` Chad Schwartz
2000-12-22 16:23 ` Alan Cox
2000-12-22 16:25 ` Chad Schwartz
2000-12-22 16:43 ` Richard B. Johnson
2000-12-22 17:54 ` Miquel van Smoorenburg
2000-12-22 18:13 ` Richard B. Johnson
2000-12-22 16:21 ` Alan Cox
2000-12-22 19:33 ` Petri Kaukasoina
2000-12-22 19:56 ` Andrea Arcangeli
2000-12-23 12:05 ` Willy Tarreau
2000-12-28 1:18 ` Matthias Andree
2000-12-28 2:37 ` Alan Cox
2000-12-28 10:23 ` Matthias Andree
2000-12-28 12:20 ` Alan Cox
2000-12-28 13:53 ` Linux 2.2.18: /proc/apm slows system time (was: Linux 2.2.19pre3) Matthias Andree
2000-12-28 14:14 ` Matthias Andree
2000-12-29 12:42 ` Erik Mouw
2000-12-30 12:39 ` Matthias Andree [this message]
2000-12-30 17:01 ` Alan Cox
2000-12-30 17:38 ` Erik Mouw
2000-12-30 17:50 ` Alan Cox
2000-12-30 17:39 ` Matthias Andree
2000-12-31 10:34 ` Matthias Andree
2000-12-31 11:28 ` Chris Wedgwood
2000-12-31 13:32 ` Alan Cox
2001-01-02 13:52 ` [PATCH] CMOS locking for 2.4 (was: /proc/apm slows system time) Paul Gortmaker
2000-12-31 13:37 ` Linux 2.2.18: /proc/apm slows system time (was: Linux 2.2.19pre3) Alan Cox
2000-12-31 15:50 ` Erik Mouw
2000-12-31 16:13 ` Alan Cox
2001-01-02 16:32 ` Matthias Andree
2001-01-02 17:31 ` Alan Cox
2001-01-03 22:02 ` Matthias Andree
2000-12-28 11:14 ` Linux 2.2.19pre3 Guest section DW
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=20001230133910.A5341@emma1.emma.line.org \
--to=matthias.andree@stud.uni-dortmund.de \
--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
all inboxes | Powered by JetHome®