From: Vojtech Pavlik <vojtech@suse.cz>
To: Alan Cox <laughing@shared-source.org>, linux-kernel@vger.kernel.org
Subject: Re: Linux 2.4.13-ac4
Date: Mon, 29 Oct 2001 08:47:36 +0100 [thread overview]
Message-ID: <20011029084736.A3152@suse.cz> (raw)
In-Reply-To: <20011028204003.A1640@lightning.swansea.linux.org.uk>
In-Reply-To: <20011028204003.A1640@lightning.swansea.linux.org.uk>; from laughing@shared-source.org on Sun, Oct 28, 2001 at 08:40:03PM +0000
On Sun, Oct 28, 2001 at 08:40:03PM +0000, Alan Cox wrote:
> o Handle chipsets that dont get 8254 latches (Roberto Biancardi)
> right and trigger the VIA warning in error
This looks good. I've done some investigation myself, and it looks like
on non-VIA chipsets that trigger the problem sometimes the two counter
bytes read from the 8254 get swapped. I've got some indirect evidence
that this also could happen with the original i8254.
This is a problem per se, because it also does nasty things to the
system clock then. And this is not always detected by the
if (count > LATCH) {}
test. I'd see two solutions for this:
1) Have a better heuristic about what the value read should be and
discard it if it doesn't look good, re-reading, and if it still doesn't
look good, re-programming the chip.
2) Always read the chip at least two times.
By the way, if we made the 8254 accesses (spinlock?) protected (which
should be done anyway, right now definitely more than one CPU can access
the registers at once), I think we could remove the outb(0, 0x43);,
saving some cycles.
--
Vojtech Pavlik
SuSE Labs
next prev parent reply other threads:[~2001-10-29 7:47 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-28 20:40 Linux 2.4.13-ac4 Alan Cox
2001-10-29 7:47 ` Vojtech Pavlik [this message]
2001-10-29 10:56 ` Alan Cox
2001-10-29 16:38 ` Vojtech Pavlik
2001-10-29 17:14 ` Henning P. Schmiedehausen
2001-10-29 17:28 ` Maciej W. Rozycki
2001-10-29 17:48 ` Vojtech Pavlik
2001-10-29 16:07 ` Maciej W. Rozycki
2001-10-29 16:19 ` Alan Cox
2001-10-29 20:03 ` Vojtech Pavlik
2001-10-30 11:23 ` Maciej W. Rozycki
2001-10-30 4:09 ` George Garvey
2001-10-30 4:24 ` Mike Fedyk
[not found] <E15yFhL-0003ED-00@the-village.bc.nu>
2001-10-29 17:11 ` Maciej W. Rozycki
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=20011029084736.A3152@suse.cz \
--to=vojtech@suse.cz \
--cc=laughing@shared-source.org \
--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