linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonas Diemer <diemer@gmx.de>
To: Linux Kermel ML <linux-kernel@vger.kernel.org>
Subject: VIA 686 timer bugfix incomplete
Date: Wed, 7 Nov 2001 12:50:12 +0100	[thread overview]
Message-ID: <20011107125012.6b1fbdc3.diemer@gmx.de> (raw)

HI!

I noticed with great happiness that the via timer bugfix had made it into linus'
version of the kernel as of 2.4.10.

but it seems that the patch was incomplete: The bug is still triggered on my
computer using 2.4.14, but the bugfix seems to work whith -ac kernels.
 

now I diffed the ac-version of that file whith the current version of linus'
kernel:

# diff -u arch/i386/kernel/time.c ../linux-2.4.10-ac12/arch/i386/kernel/time.c 


--- arch/i386/kernel/time.c     Wed Oct 24 17:16:13 2001
+++ ../linux-2.4.10-ac12/arch/i386/kernel/time.c        Sun Oct 14 16:23:52 2001
@@ -501,6 +501,24 @@
 
                count = inb_p(0x40);    /* read the latched count */
                count |= inb(0x40) << 8;
+
+
+                /* VIA686a test code... reset the latch if count > max */
+                if (count > LATCH) {
+                        static int last_whine;
+                        outb_p(0x34, 0x43);   
+                        outb_p(LATCH & 0xff, 0x40);
+                        outb(LATCH >> 8, 0x40);
+                        count = LATCH - 1;
+                        if(time_after(jiffies, last_whine))
+                        {
+                                printk(KERN_WARNING "probable hardware bug:
clock timer configuration lost - probably a VIA686a motherboard.\n");
+                                printk(KERN_WARNING "probable hardware bug:
restoring chip configuration.\n");
+                                last_whine = jiffies + HZ;
+                        }                       
+                }                               
+
+
                spin_unlock(&i8253_lock);
 
                count = ((LATCH-1) - count) * TICK_SIZE;


you can see what's missing to actually work around the via timer bug. I hope
this will go into 2.4.15.

regards

PS: CC me in your answers, I am not subscribed to the list

             reply	other threads:[~2001-11-07 11:50 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-07 11:50 Jonas Diemer [this message]
2001-11-07 12:15 ` VIA 686 timer bugfix incomplete Alan Cox
2001-11-07 19:25   ` Vojtech Pavlik
2001-11-07 19:29   ` Steve Underwood
2001-11-08 20:11     ` Vojtech Pavlik
2001-11-09  2:57       ` Steve Underwood
2001-11-07 19:48   ` Jonas Diemer
2001-11-07 20:14     ` Vojtech Pavlik
2001-11-07 22:32       ` Neale Banks
2001-11-08  8:02         ` Vojtech Pavlik
2001-11-08  9:21         ` Jonas Diemer
2001-11-08 20:08           ` Vojtech Pavlik
     [not found]             ` <20011108221751.5273484e.diemer@gmx.de>
2001-11-08 21:22               ` Vojtech Pavlik
2001-11-08 21:30             ` george anzinger
2001-11-08 23:30               ` Alan Cox
2001-11-09  8:34                 ` Vojtech Pavlik
2001-11-09 17:21                 ` george anzinger
2001-11-09 19:19 Grover, Andrew

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=20011107125012.6b1fbdc3.diemer@gmx.de \
    --to=diemer@gmx.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;
as well as URLs for NNTP newsgroup(s).