All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vojtech Pavlik <vojtech@suse.cz>
To: "Richard B. Johnson" <root@chaos.analogic.com>
Cc: Yoann Vandoorselaere <yoann@mandrakesoft.com>,
	linux-kernel@vger.kernel.org
Subject: Re: Possible critical VIA vt82c686a chip bug (private question)
Date: Thu, 26 Oct 2000 19:03:09 +0200	[thread overview]
Message-ID: <20001026190309.A372@suse.cz> (raw)
In-Reply-To: <m3d7gnd31m.fsf@test1.mandrakesoft.com> <Pine.LNX.3.95.1001026115039.12337A-100000@chaos.analogic.com>
In-Reply-To: <Pine.LNX.3.95.1001026115039.12337A-100000@chaos.analogic.com>; from root@chaos.analogic.com on Thu, Oct 26, 2000 at 12:04:21PM -0400

On Thu, Oct 26, 2000 at 12:04:21PM -0400, Richard B. Johnson wrote:

> ../drivers/block/ide.c, line 162, on version 2.2.17 does bad things
> to the timer. It writes 0 to the control-word for timer 0. This
> does the following:
> 
> o	Selects timer 0.
> o	Latches the timer.
> o	Selects mode 0.
> o	Programs it to a 16 bit counter.
> 
> The result is a latched (stopped) counter. Bits 5 and 4 should have been
> selected. Then you read bits 0-7 from 0x40, followed by bits 8-15  from
> the same port.
> 
> Also, there is no spin-lock protecting access to these ports. If anybody
> else is mucking with the timer, all bets are off.
 
Well, at least on 2.4.0-test9, the above timing code is #ifed to
DISK_RECOVERY_TIME > 0, which in turn is #defined to 0 in
include/linux/ide.h.

So this is not our problem here. Anyway I guess it's time to hunt for
i8259 accesses in the kernel that lack the necessary spinlock, even when
they're not probably the cause of the problem we see here.

-- 
Vojtech Pavlik
SuSE Labs
-
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/

       reply	other threads:[~2000-10-26 17:03 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m3d7gnd31m.fsf@test1.mandrakesoft.com>
     [not found] ` <Pine.LNX.3.95.1001026115039.12337A-100000@chaos.analogic.com>
2000-10-26 17:03   ` Vojtech Pavlik [this message]
2000-10-26 17:42     ` Possible critical VIA vt82c686a chip bug (private question) Richard B. Johnson
2000-10-26 18:02       ` Vojtech Pavlik
2000-10-26 20:11         ` Yoann Vandoorselaere
2000-10-26 20:16           ` Vojtech Pavlik
2000-10-26 21:05             ` Yoann Vandoorselaere
2000-10-26 21:15               ` Vojtech Pavlik
2000-10-26 21:24                 ` Yoann Vandoorselaere
2000-10-26 21:25                   ` Vojtech Pavlik
2000-10-27 10:02     ` Martin Mares
2000-10-27 10:49       ` Vojtech Pavlik
2000-10-27 10:58         ` Yoann Vandoorselaere
2000-10-27 11:01           ` Vojtech Pavlik
2000-10-27 11:16             ` Yoann Vandoorselaere
2000-10-27 11:15               ` Vojtech Pavlik
     [not found] <20001026173244.B8290@suse.cz>
2000-10-27 12:04 ` bart
2000-10-27 13:41   ` Vojtech Pavlik
2000-10-28  5:39     ` TimO

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=20001026190309.A372@suse.cz \
    --to=vojtech@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=root@chaos.analogic.com \
    --cc=yoann@mandrakesoft.com \
    /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.