* reporting 2.2 kernel bugs
@ 1999-01-05 10:39 Tom Holroyd
0 siblings, 0 replies; 15+ messages in thread
From: Tom Holroyd @ 1999-01-05 10:39 UTC (permalink / raw)
To: axp-list
Is this a good place to report problems with 2.2 kernels that just
happen to be running on an alpha? Or is it better to (cross)post
to some kernel list (and what would that be)?
Dr. Tom Holroyd
I would dance and be merry,
Life would be a ding-a-derry,
If I only had a brain.
-- The Scarecrow
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: reporting 2.2 kernel bugs
[not found] <Pine.LNX.3.96.990105193430.535A-100000@bhalpha1.nibh.go.jp >
@ 1999-01-05 15:24 ` Frank C. Brants
1999-01-05 16:32 ` Jochen Kuepper
1999-01-05 19:23 ` Stephen Williams
0 siblings, 2 replies; 15+ messages in thread
From: Frank C. Brants @ 1999-01-05 15:24 UTC (permalink / raw)
To: axp-list
At 04:39 AM 1/5/99 , you wrote:
Just my H.O., but I wouldn't mind reading how the adventuresome are doing
with the new kernels on their Alphas.
>Is this a good place to report problems with 2.2 kernels that just
>happen to be running on an alpha? Or is it better to (cross)post
>to some kernel list (and what would that be)?
>
>Dr. Tom Holroyd
>I would dance and be merry,
>Life would be a ding-a-derry,
>If I only had a brain.
> -- The Scarecrow
>
>--
>To unsubscribe: send e-mail to axp-list-request@redhat.com with
>'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
Frank C. Brants
Netopia, Inc.
Systems Engineer
franko -at- netopia.com
Fax 972-855-6610
Office / Cell 214-769-0354
Text Page http://primeco.textmsg.com/
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: reporting 2.2 kernel bugs
1999-01-05 15:24 ` reporting 2.2 kernel bugs Frank C. Brants
@ 1999-01-05 16:32 ` Jochen Kuepper
1999-01-06 5:31 ` Richard Henderson
1999-01-05 19:23 ` Stephen Williams
1 sibling, 1 reply; 15+ messages in thread
From: Jochen Kuepper @ 1999-01-05 16:32 UTC (permalink / raw)
To: axp-list, Frank C. Brants
On Die, 05 Jan 1999 Frank C. Brants wrote:
>Just my H.O., but I wouldn't mind reading how the adventuresome are doing
>with the new kernels on their Alphas.
Well, heres my version.
I tried several of them. linux-2.2.0-pre1 didn't compile at all, after the ac
patche it compiled ok.
pre4 compiles without and with ac-patch.
Right now I am running linux-2.2.0-pre4-ac1 for two days (almost), only one
problem - same with all the kernels I tried:
the clock frequency is said to be bogus (by the kernel) and is estimated -
wrong, of course :-)
I am running rdate every hour :-(
Greetings,
Jochen
-----------------------------------------------------------------------
Jochen K"upper
Heinrich-Heine-Universit"at D"usseldorf jochen@uni-duesseldorf.de
Institut f"ur Physikalische Chemie I
Universit"atsstr. 1, Geb 26.43 Raum 02.29 phone ++49-211-8113681
40225 D"usseldorf fax ++49-211-8115195
Germany http://www-public.rz.uni-duesseldorf.de/~jochen
-----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: reporting 2.2 kernel bugs
1999-01-05 15:24 ` reporting 2.2 kernel bugs Frank C. Brants
1999-01-05 16:32 ` Jochen Kuepper
@ 1999-01-05 19:23 ` Stephen Williams
1999-01-05 19:40 ` B. James Phillippe
1 sibling, 1 reply; 15+ messages in thread
From: Stephen Williams @ 1999-01-05 19:23 UTC (permalink / raw)
To: axp-list
fcbrants@onramp.net said:
> Just my H.O., but I wouldn't mind reading how the adventuresome are
> doing with the new kernels on their Alphas.
icarus.com % uname -a
Linux icarus.com 2.2.0-pre4 #3 Mon Jan 4 19:38:55 PST 1999 alpha unknown
icarus.com % uptime
11:20am up 15:00, 1 user, load average: 0.00, 0.03, 0.00
Linux 2.1 has been a bit rocky, and 2.2.0-pre4 doesn't compile without
some patches. But here I am.
I get deadlocks of unknown sort when I ran the 2.2.0-pre2 kernel, and
a previous iteration of this would hang on boot. However, this go-round
I have eliminated all modules and this monolithic kernel seems to be
doing a bit better. I'm not sure yet if the hanging is gone, it usually
takes a day or so.
However, it is true that the 2.1.102 kernel I have been using also does
not use any modules, and it's been working fine. fingers crossed.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: reporting 2.2 kernel bugs
1999-01-05 19:23 ` Stephen Williams
@ 1999-01-05 19:40 ` B. James Phillippe
0 siblings, 0 replies; 15+ messages in thread
From: B. James Phillippe @ 1999-01-05 19:40 UTC (permalink / raw)
To: axp-list
On Tue, 5 Jan 1999, Stephen Williams wrote:
> fcbrants@onramp.net said:
> > Just my H.O., but I wouldn't mind reading how the adventuresome are
> > doing with the new kernels on their Alphas.
>
> icarus.com % uname -a
> Linux icarus.com 2.2.0-pre4 #3 Mon Jan 4 19:38:55 PST 1999 alpha unknown
> icarus.com % uptime
> 11:20am up 15:00, 1 user, load average: 0.00, 0.03, 0.00
>
> Linux 2.1 has been a bit rocky, and 2.2.0-pre4 doesn't compile without
> some patches. But here I am.
I've had mixed luck. 2.1.131 and lower panicked for me until I found that
there was a one-line bug in the ppp.c driver causing the problem (and
possibly other memory corruption not caught by skput). That patch is in as
of 2.1.132. 2.1.132 also has the VESA screenblanking patch I did for the
TGA framebuffer (for the one or two people on Earth who care about the TGA
:)
I haven't messed with the 2.2.0-pre's yet.
cheers,
-bp
--
B. James Phillippe . bryan@terran.org
Linux Engineer/Admin . http://www.terran.org/~bryan
Member since 1.1.59 . finger:bryan@earth.terran.org
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: reporting 2.2 kernel bugs
1999-01-05 16:32 ` Jochen Kuepper
@ 1999-01-06 5:31 ` Richard Henderson
1999-01-06 9:18 ` Jochen Kuepper
` (2 more replies)
0 siblings, 3 replies; 15+ messages in thread
From: Richard Henderson @ 1999-01-06 5:31 UTC (permalink / raw)
To: axp-list
On Sat, Feb 12, 2135 at 11:17:22PM +0100, Jochen Kuepper wrote:
> the clock frequency is said to be bogus (by the kernel) and is estimated -
> wrong, of course :-)
How far off?
I know there is a problem in there somewhere -- I can reproduce it
moderately consistently on my eb164 -- but I've been unable to find
out what in the world is wrong.
r~
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: reporting 2.2 kernel bugs
1999-01-06 5:31 ` Richard Henderson
@ 1999-01-06 9:18 ` Jochen Kuepper
1999-01-07 20:19 ` Willem Boschman
1999-01-07 20:19 ` Willem Boschman
1999-01-08 14:12 ` time.c +... patch Jochen Kuepper
1999-01-10 1:59 ` reporting 2.2 kernel bugs Quant-X Alpha Linux Support
2 siblings, 2 replies; 15+ messages in thread
From: Jochen Kuepper @ 1999-01-06 9:18 UTC (permalink / raw)
To: Richard Henderson, Richard Henderson, axp-list
Hi Richard,
On Mit, 06 Jan 1999 Richard Henderson wrote:
>On Sat, Feb 12, 2135 at 11:17:22PM +0100, Jochen Kuepper wrote:
>> the clock frequency is said to be bogus (by the kernel) and is estimated -
>> wrong, of course :-)
>
>How far off?
>
>I know there is a problem in there somewhere -- I can reproduce it
>moderately consistently on my eb164 -- but I've been unable to find
>out what in the world is wrong.
Well it's random. The system is an AlphaStation 500/266.
Right now the estimate is at 253547715 Hz - not to bad. Other values from
scanning old messages quickly:
266...... Hz <- should be
Logged values:
129531101 Hz
22393683 Hz <- pretty bad, eh :-(
249682531 Hz
Usually I just reboot ( ctrl-alt-del ) right after I see the estimate isn't
close to 266 MHz and at some point it gets close and I let it run.
Btw: I do not remeber seeing anything higher than 266 MHz !
If you want me to test anything, please let me know.
Greetings,
Jochen
-----------------------------------------------------------------------
Jochen K"upper
Heinrich-Heine-Universit"at D"usseldorf jochen@uni-duesseldorf.de
Institut f"ur Physikalische Chemie I
Universit"atsstr. 1, Geb 26.43 Raum 02.29 phone ++49-211-8113681
40225 D"usseldorf fax ++49-211-8115195
Germany http://www-public.rz.uni-duesseldorf.de/~jochen
-----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: reporting 2.2 kernel bugs
1999-01-06 9:18 ` Jochen Kuepper
@ 1999-01-07 20:19 ` Willem Boschman
1999-01-07 20:19 ` Willem Boschman
1 sibling, 0 replies; 15+ messages in thread
From: Willem Boschman @ 1999-01-07 20:19 UTC (permalink / raw)
To: axp-list; +Cc: jochen, rth
[-- Attachment #1: Attachment information. --]
[-- Type: text/plain, Size: 476 bytes --]
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.
---- File information -----------
File: alpha-patch-2.2.0
Date: 7 Jan 1999, 20:54
Size: 5664 bytes.
Type: Unknown
[-- Attachment #2: alpha-patch-2.2.0 --]
[-- Type: Application/Octet-stream, Size: 5664 bytes --]
--- linux-2.1.110/arch/alpha/kernel/time.c Tue Dec 29 12:08:51 1998
+++ linux/arch/alpha/kernel/time.c Tue Dec 29 14:03:17 1998
@@ -25,7 +25,7 @@
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/delay.h>
-#include <linux/ioport.h>
+/* #include <linux/ioport.h> */
#include <asm/uaccess.h>
#include <asm/io.h>
@@ -37,6 +37,8 @@
#include "proto.h"
#include "irq.h"
+extern struct hwrpb_struct *hwrpb;
+
static int set_rtc_mmss(unsigned long);
@@ -153,91 +155,6 @@
)*60 + sec; /* finally seconds */
}
-/*
- * Initialize Programmable Interval Timers with standard values. Some
- * drivers depend on them being initialized (e.g., joystick driver).
- */
-
-/* It is (normally) only counter 0 that presents config problems, so
- provide this support function to do the rest of the job. */
-
-void inline
-init_pit_rest(void)
-{
-#if 0
- /* Leave refresh timer alone---nobody should depend on a
- particular value anyway. */
- outb(0x54, 0x43); /* counter 1: refresh timer */
- outb(0x18, 0x41);
-#endif
-
- outb(0xb6, 0x43); /* counter 2: speaker */
- outb(0x31, 0x42);
- outb(0x13, 0x42);
-}
-
-#ifdef CONFIG_RTC
-static inline void
-rtc_init_pit (void)
-{
- unsigned char control;
-
- /* Setup interval timer if /dev/rtc is being used */
- outb(0x34, 0x43); /* binary, mode 2, LSB/MSB, ch 0 */
- outb(LATCH & 0xff, 0x40); /* LSB */
- outb(LATCH >> 8, 0x40); /* MSB */
- request_region(0x40, 0x20, "timer"); /* reserve pit */
-
- /* Turn off RTC interrupts before /dev/rtc is initialized */
- control = CMOS_READ(RTC_CONTROL);
- control &= ~(RTC_PIE | RTC_AIE | RTC_UIE);
- CMOS_WRITE(control, RTC_CONTROL);
- CMOS_READ(RTC_INTR_FLAGS);
-
- init_pit_rest();
-}
-#endif
-
-void
-generic_init_pit (void)
-{
- unsigned char x;
-
- /* Reset periodic interrupt frequency. */
- x = CMOS_READ(RTC_FREQ_SELECT) & 0x3f;
- if (x != 0x26 && x != 0x19 && x != 0x06) {
- printk("Setting RTC_FREQ to 1024 Hz (%x)\n", x);
- CMOS_WRITE(0x26, RTC_FREQ_SELECT);
- }
-
- /* Turn on periodic interrupts. */
- x = CMOS_READ(RTC_CONTROL);
- if (!(x & RTC_PIE)) {
- printk("Turning on RTC interrupts.\n");
- x |= RTC_PIE;
- x &= ~(RTC_AIE | RTC_UIE);
- CMOS_WRITE(x, RTC_CONTROL);
- }
- CMOS_READ(RTC_INTR_FLAGS);
-
- request_region(RTC_PORT(0), 0x10, "timer"); /* reserve rtc */
-
- /* Turn off the PIT. */
- outb(0x36, 0x43); /* counter 0: system timer */
- outb(0x00, 0x40);
- outb(0x00, 0x40);
-
- init_pit_rest();
-}
-
-/* This probably isn't Right, but it is what the old code did. */
-#if defined(CONFIG_RTC)
-# define init_pit rtc_init_pit
-#else
-# define init_pit alpha_mv.init_pit
-#endif
-
-
void
time_init(void)
{
@@ -246,7 +163,7 @@
unsigned long cycle_freq;
/* Initialize the timers. */
- init_pit();
+ /* init_pit(); */
/*
* The Linux interpretation of the CMOS clock register contents:
--- linux-2.1.110/arch/alpha/kernel/setup.c Sun Dec 6 12:37:48 1998
+++ linux/arch/alpha/kernel/setup.c Sun Dec 6 12:38:46 1998
@@ -20,6 +20,7 @@
#include <linux/tty.h>
#include <linux/delay.h>
#include <linux/config.h> /* CONFIG_ALPHA_LCA etc */
+#include <linux/ioport.h>
#include <linux/mc146818rtc.h>
#include <linux/console.h>
#include <linux/errno.h>
@@ -90,6 +91,90 @@
orig_video_points: 16
};
+
+/*
+ * Initialize Programmable Interval Timers with standard values. Some
+ * drivers depend on them being initialized (e.g., joystick driver).
+ */
+
+/* It is (normally) only counter 0 that presents config problems, so
+ provide this support function to do the rest of the job. */
+
+void inline
+init_pit_rest(void)
+{
+ unsigned char x;
+
+#if 0
+ /* Leave refresh timer alone---nobody should depend on a
+ particular value anyway. */
+ outb(0x54, 0x43); /* counter 1: refresh timer */
+ outb(0x18, 0x41);
+#endif
+
+ outb(0xb6, 0x43); /* counter 2: speaker */
+ outb(0x31, 0x42);
+ outb(0x13, 0x42);
+
+ /* Reset periodic interrupt frequency. */
+ x = CMOS_READ(RTC_FREQ_SELECT) & 0x3f;
+ if (x != 0x26 && x != 0x19 && x != 0x06) {
+ printk("Setting RTC_FREQ to 1024 Hz (%x)\n", x);
+ CMOS_WRITE(0x26, RTC_FREQ_SELECT);
+ }
+
+ /* Turn on periodic interrupts. */
+ x = CMOS_READ(RTC_CONTROL);
+ if (!(x & RTC_PIE)) {
+ printk("Turning on RTC interrupts.\n");
+ x |= RTC_PIE;
+ x &= ~(RTC_AIE | RTC_UIE);
+ CMOS_WRITE(x, RTC_CONTROL);
+ }
+ CMOS_READ(RTC_INTR_FLAGS);
+}
+
+#ifdef CONFIG_RTC
+static inline void
+rtc_init_pit (void)
+{
+ unsigned char control;
+
+ /* Setup interval timer if /dev/rtc is being used */
+ outb(0x34, 0x43); /* binary, mode 2, LSB/MSB, ch 0 */
+ outb(LATCH & 0xff, 0x40); /* LSB */
+ outb(LATCH >> 8, 0x40); /* MSB */
+ request_region(0x40, 0x20, "timer"); /* reserve pit */
+
+ /* Turn off RTC interrupts before /dev/rtc is initialized */
+ control = CMOS_READ(RTC_CONTROL);
+ control &= ~(RTC_PIE | RTC_AIE | RTC_UIE);
+ CMOS_WRITE(control, RTC_CONTROL);
+ CMOS_READ(RTC_INTR_FLAGS);
+
+ init_pit_rest();
+}
+#endif
+
+void
+generic_init_pit (void)
+{
+ outb(0x36, 0x43); /* counter 0: system timer */
+ outb(0x00, 0x40);
+ outb(0x00, 0x40);
+ request_region(RTC_PORT(0), 0x10, "timer"); /* reserve rtc */
+
+ init_pit_rest();
+}
+
+/* This probably isn't Right, but it is what the old code did. */
+#if defined(CONFIG_RTC)
+# define init_pit rtc_init_pit
+#else
+# define init_pit alpha_mv.init_pit
+#endif
+
+
/*
* Declare all of the machine vectors.
*/
@@ -274,6 +359,9 @@
DMA windows and the like. */
if (alpha_mv.init_arch)
alpha_mv.init_arch(memory_start_p, memory_end_p);
+
+ /* Initialize the timers. */
+ init_pit();
/*
* Give us a default console. TGA users will see nothing until
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: reporting 2.2 kernel bugs
1999-01-06 9:18 ` Jochen Kuepper
1999-01-07 20:19 ` Willem Boschman
@ 1999-01-07 20:19 ` Willem Boschman
1999-01-07 20:22 ` Richard Henderson
1 sibling, 1 reply; 15+ messages in thread
From: Willem Boschman @ 1999-01-07 20:19 UTC (permalink / raw)
To: axp-list; +Cc: jochen, rth
> Hi Richard,
>
> On Mit, 06 Jan 1999 Richard Henderson wrote:
> >On Sat, Feb 12, 2135 at 11:17:22PM +0100, Jochen Kuepper wrote:
> >> the clock frequency is said to be bogus (by the kernel) and is estimated -
> >> wrong, of course :-)
> >
> >How far off?
> >
> >I know there is a problem in there somewhere -- I can reproduce it
> >moderately consistently on my eb164 -- but I've been unable to find
> >out what in the world is wrong.
>
> Well it's random. The system is an AlphaStation 500/266.
> Right now the estimate is at 253547715 Hz - not to bad. Other values from
> scanning old messages quickly:
>
> 266...... Hz <- should be
>
> Logged values:
>
> 129531101 Hz
> 22393683 Hz <- pretty bad, eh :-(
> 249682531 Hz
>
i did had the same problems on an XL300. cause where the
changes in arch/alpha/kernel/time.c in 2.1.121 i've reversed those
and the problem went away. here is the patch against 2.2.0p5.
-willem
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: reporting 2.2 kernel bugs
1999-01-07 20:19 ` Willem Boschman
@ 1999-01-07 20:22 ` Richard Henderson
[not found] ` <199901080616.HAA26171@mycroft.r5c.nl>
0 siblings, 1 reply; 15+ messages in thread
From: Richard Henderson @ 1999-01-07 20:22 UTC (permalink / raw)
To: wiz, axp-list; +Cc: jochen, rth
On Thu, Jan 07, 1999 at 09:19:13PM +0100, Willem Boschman wrote:
> i did had the same problems on an XL300. cause where the
> changes in arch/alpha/kernel/time.c in 2.1.121 i've reversed those
> and the problem went away. here is the patch against 2.2.0p5.
I'm baffled. That patch doesn't change the code at all,
merely moves it from one file to another and changes its
invocation point.
r~
^ permalink raw reply [flat|nested] 15+ messages in thread
* alpha timer patch [Re: reporting 2.2 kernel bugs]
[not found] ` <199901080616.HAA26171@mycroft.r5c.nl>
@ 1999-01-08 6:54 ` Richard Henderson
1999-01-08 6:54 ` Richard Henderson
1999-01-08 20:56 ` Willem Boschman
0 siblings, 2 replies; 15+ messages in thread
From: Richard Henderson @ 1999-01-08 6:54 UTC (permalink / raw)
To: wiz; +Cc: axp-list, linux-kernel
On Fri, Jan 08, 1999 at 07:13:48AM +0100, Willem Boschman wrote:
> I don't have any explainations for you but i do know it works. Have
> been using this since 2.1.125 every normal kernel gets the clock
> wrong while with patch its fine.I did think mayby its an error in egcs
> (1.0.3 or 1.1a ?) which does't occur if you move the code so i tried
> gcc-2.8.1 and now egcs-1.1.1. No change.
I have trouble beliveing in compiler bugs in this case
because in either case the compiled code should be the
same, isolated as it is in its own function.
I am willing to believe in mysterious interactions with
the rest of the boot process. To that end, would the
several folks that have been having Alpha timer problems
try out the following patch?
r~
diff -rup 2.2.0-pre5/arch/alpha/kernel/irq.c 2.2.0-pre5-axp/arch/alpha/kernel/irq.c
--- 2.2.0-pre5/arch/alpha/kernel/irq.c Thu Jan 7 15:51:29 1999
+++ 2.2.0-pre5-axp/arch/alpha/kernel/irq.c Thu Jan 7 22:06:16 1999
@@ -314,14 +314,14 @@ free_irq(unsigned int irq, void *dev_id)
int get_irq_list(char *buf)
{
- int i, j;
+ int i;
struct irqaction * action;
char *p = buf;
#ifdef __SMP__
p += sprintf(p, " ");
- for (j = 0; j < smp_num_cpus; j++)
- p += sprintf(p, "CPU%d ", j);
+ for (i = 0; j < smp_num_cpus; i++)
+ p += sprintf(p, "CPU%d ", i);
*p++ = '\n';
#endif
diff -rup 2.2.0-pre5/arch/alpha/kernel/proto.h 2.2.0-pre5-axp/arch/alpha/kernel/proto.h
--- 2.2.0-pre5/arch/alpha/kernel/proto.h Mon Oct 12 11:40:12 1998
+++ 2.2.0-pre5-axp/arch/alpha/kernel/proto.h Thu Jan 7 22:53:10 1999
@@ -129,8 +129,6 @@ extern void tsunami_init_arch(unsigned l
extern void tsunami_machine_check(u64, u64, struct pt_regs *);
/* setup.c */
-extern void init_pit_rest(void);
-extern void generic_init_pit (void);
extern unsigned long srm_hae;
/* smp.c */
@@ -143,6 +141,8 @@ extern void reset_for_srm(void);
/* time.c */
extern void timer_interrupt(int irq, void *dev, struct pt_regs * regs);
+extern void rtc_init_pit(void);
+extern void generic_init_pit(void);
extern unsigned long est_cycle_freq;
/* smc37c93x.c */
diff -rup 2.2.0-pre5/arch/alpha/kernel/setup.c 2.2.0-pre5-axp/arch/alpha/kernel/setup.c
--- 2.2.0-pre5/arch/alpha/kernel/setup.c Mon Dec 28 16:15:31 1998
+++ 2.2.0-pre5-axp/arch/alpha/kernel/setup.c Thu Jan 7 22:03:01 1999
@@ -275,6 +275,16 @@ setup_arch(char **cmdline_p, unsigned lo
if (alpha_mv.init_arch)
alpha_mv.init_arch(memory_start_p, memory_end_p);
+ /* Initialize the timers. */
+ /* ??? There is some circumstantial evidence that this needs
+ to be done now rather than later in time_init, which would
+ be more natural. Someone please explain or refute. */
+#if defined(CONFIG_RTC)
+ rtc_init_pit();
+#else
+ alpha_mv.init_pit();
+#endif
+
/*
* Give us a default console. TGA users will see nothing until
* chr_dev_init is called, rather late in the boot sequence.
diff -rup 2.2.0-pre5/arch/alpha/kernel/sys_ruffian.c 2.2.0-pre5-axp/arch/alpha/kernel/sys_ruffian.c
--- 2.2.0-pre5/arch/alpha/kernel/sys_ruffian.c Mon Dec 28 16:16:03 1998
+++ 2.2.0-pre5-axp/arch/alpha/kernel/sys_ruffian.c Thu Jan 7 22:52:40 1999
@@ -82,7 +82,7 @@ ruffian_device_interrupt(unsigned long v
* then all the PCI slots/INTXs (12-31)
* flash(5) :DWH:
*/
- pld &= 0x00000000ffffff9fUL; /* was ffff7f */
+ pld &= 0x00000000ffffff9fUL; /* was ffff7f */
/*
* Now for every possible bit set, work through them and call
@@ -118,12 +118,12 @@ ruffian_device_interrupt(unsigned long v
} else {
handle_irq(j, j, regs);
}
- } else { /* if not an ISA int */
+ } else { /* if not an ISA int */
handle_irq(16 + i, 16 + i, regs);
}
- *(vulp)PYXIS_INT_REQ = 1UL << i; mb();
- *(vulp)PYXIS_INT_REQ; /* read to force the write */
+ *(vulp)PYXIS_INT_REQ = 1UL << i; mb();
+ *(vulp)PYXIS_INT_REQ; /* read to force the write */
}
}
@@ -222,7 +222,7 @@ ruffian_init_arch(unsigned long *mem_sta
pyxis_enable_errors();
if (!pyxis_srm_window_setup()) {
- printk("ruffian_init_arch: Skipping window register rewrites."
+ printk("ruffian_init_arch: Skipping window register rewrites."
"\n... Trust DeskStation firmware!\n");
}
pyxis_finish_init_arch();
@@ -233,7 +233,10 @@ ruffian_init_pit (void)
{
/* Ruffian depends on the system timer established in MILO! */
request_region(0x70, 0x10, "timer");
- init_pit_rest();
+
+ outb(0xb6, 0x43); /* pit counter 2: speaker */
+ outb(0x31, 0x42);
+ outb(0x13, 0x42);
}
static void
diff -rup 2.2.0-pre5/arch/alpha/kernel/time.c 2.2.0-pre5-axp/arch/alpha/kernel/time.c
--- 2.2.0-pre5/arch/alpha/kernel/time.c Mon Dec 28 16:16:03 1998
+++ 2.2.0-pre5-axp/arch/alpha/kernel/time.c Thu Jan 7 22:23:29 1999
@@ -158,43 +158,28 @@ static inline unsigned long mktime(unsig
* drivers depend on them being initialized (e.g., joystick driver).
*/
-/* It is (normally) only counter 0 that presents config problems, so
- provide this support function to do the rest of the job. */
-
-void inline
-init_pit_rest(void)
-{
-#if 0
- /* Leave refresh timer alone---nobody should depend on a
- particular value anyway. */
- outb(0x54, 0x43); /* counter 1: refresh timer */
- outb(0x18, 0x41);
-#endif
-
- outb(0xb6, 0x43); /* counter 2: speaker */
- outb(0x31, 0x42);
- outb(0x13, 0x42);
-}
-
#ifdef CONFIG_RTC
-static inline void
+void
rtc_init_pit (void)
{
unsigned char control;
- /* Setup interval timer if /dev/rtc is being used */
+ /* Turn off RTC interrupts before /dev/rtc is initialized */
+ control = CMOS_READ(RTC_CONTROL);
+ control &= ~(RTC_PIE | RTC_AIE | RTC_UIE);
+ CMOS_WRITE(control, RTC_CONTROL);
+ (void) CMOS_READ(RTC_INTR_FLAGS);
+
+ request_region(0x40, 0x20, "timer"); /* reserve pit */
+
+ /* Setup interval timer. */
outb(0x34, 0x43); /* binary, mode 2, LSB/MSB, ch 0 */
outb(LATCH & 0xff, 0x40); /* LSB */
outb(LATCH >> 8, 0x40); /* MSB */
- request_region(0x40, 0x20, "timer"); /* reserve pit */
- /* Turn off RTC interrupts before /dev/rtc is initialized */
- control = CMOS_READ(RTC_CONTROL);
- control &= ~(RTC_PIE | RTC_AIE | RTC_UIE);
- CMOS_WRITE(control, RTC_CONTROL);
- CMOS_READ(RTC_INTR_FLAGS);
-
- init_pit_rest();
+ outb(0xb6, 0x43); /* pit counter 2: speaker */
+ outb(0x31, 0x42);
+ outb(0x13, 0x42);
}
#endif
@@ -203,7 +188,7 @@ generic_init_pit (void)
{
unsigned char x;
- /* Reset periodic interrupt frequency. */
+ /* Reset periodic interrupt frequency. */
x = CMOS_READ(RTC_FREQ_SELECT) & 0x3f;
if (x != 0x26 && x != 0x19 && x != 0x06) {
printk("Setting RTC_FREQ to 1024 Hz (%x)\n", x);
@@ -218,36 +203,26 @@ generic_init_pit (void)
x &= ~(RTC_AIE | RTC_UIE);
CMOS_WRITE(x, RTC_CONTROL);
}
- CMOS_READ(RTC_INTR_FLAGS);
+ (void) CMOS_READ(RTC_INTR_FLAGS);
request_region(RTC_PORT(0), 0x10, "timer"); /* reserve rtc */
- /* Turn off the PIT. */
- outb(0x36, 0x43); /* counter 0: system timer */
+ outb(0x36, 0x43); /* pit counter 0: system timer */
outb(0x00, 0x40);
outb(0x00, 0x40);
- init_pit_rest();
+ outb(0xb6, 0x43); /* pit counter 2: speaker */
+ outb(0x31, 0x42);
+ outb(0x13, 0x42);
}
-/* This probably isn't Right, but it is what the old code did. */
-#if defined(CONFIG_RTC)
-# define init_pit rtc_init_pit
-#else
-# define init_pit alpha_mv.init_pit
-#endif
-
-
void
time_init(void)
{
- void (*irq_handler)(int, void *, struct pt_regs *);
+ void (*irq_handler)(int, void *, struct pt_regs *);
unsigned int year, mon, day, hour, min, sec, cc1, cc2;
unsigned long cycle_freq;
- /* Initialize the timers. */
- init_pit();
-
/*
* The Linux interpretation of the CMOS clock register contents:
* When the Update-In-Progress (UIP) flag goes from 1 to 0, the
@@ -322,8 +297,8 @@ time_init(void)
state.partial_tick = 0L;
/* setup timer */
- irq_handler = timer_interrupt;
- if (request_irq(TIMER_IRQ, irq_handler, 0, "timer", NULL))
+ irq_handler = timer_interrupt;
+ if (request_irq(TIMER_IRQ, irq_handler, 0, "timer", NULL))
panic("Could not allocate timer IRQ!");
}
^ permalink raw reply [flat|nested] 15+ messages in thread
* alpha timer patch [Re: reporting 2.2 kernel bugs]
1999-01-08 6:54 ` alpha timer patch [Re: reporting 2.2 kernel bugs] Richard Henderson
@ 1999-01-08 6:54 ` Richard Henderson
1999-01-08 20:56 ` Willem Boschman
1 sibling, 0 replies; 15+ messages in thread
From: Richard Henderson @ 1999-01-08 6:54 UTC (permalink / raw)
To: wiz; +Cc: axp-list, linux-kernel
On Fri, Jan 08, 1999 at 07:13:48AM +0100, Willem Boschman wrote:
> I don't have any explainations for you but i do know it works. Have
> been using this since 2.1.125 every normal kernel gets the clock
> wrong while with patch its fine.I did think mayby its an error in egcs
> (1.0.3 or 1.1a ?) which does't occur if you move the code so i tried
> gcc-2.8.1 and now egcs-1.1.1. No change.
I have trouble beliveing in compiler bugs in this case
because in either case the compiled code should be the
same, isolated as it is in its own function.
I am willing to believe in mysterious interactions with
the rest of the boot process. To that end, would the
several folks that have been having Alpha timer problems
try out the following patch?
r~
diff -rup 2.2.0-pre5/arch/alpha/kernel/irq.c 2.2.0-pre5-axp/arch/alpha/kernel/irq.c
--- 2.2.0-pre5/arch/alpha/kernel/irq.c Thu Jan 7 15:51:29 1999
+++ 2.2.0-pre5-axp/arch/alpha/kernel/irq.c Thu Jan 7 22:06:16 1999
@@ -314,14 +314,14 @@ free_irq(unsigned int irq, void *dev_id)
int get_irq_list(char *buf)
{
- int i, j;
+ int i;
struct irqaction * action;
char *p = buf;
#ifdef __SMP__
p += sprintf(p, " ");
- for (j = 0; j < smp_num_cpus; j++)
- p += sprintf(p, "CPU%d ", j);
+ for (i = 0; j < smp_num_cpus; i++)
+ p += sprintf(p, "CPU%d ", i);
*p++ = '\n';
#endif
diff -rup 2.2.0-pre5/arch/alpha/kernel/proto.h 2.2.0-pre5-axp/arch/alpha/kernel/proto.h
--- 2.2.0-pre5/arch/alpha/kernel/proto.h Mon Oct 12 11:40:12 1998
+++ 2.2.0-pre5-axp/arch/alpha/kernel/proto.h Thu Jan 7 22:53:10 1999
@@ -129,8 +129,6 @@ extern void tsunami_init_arch(unsigned l
extern void tsunami_machine_check(u64, u64, struct pt_regs *);
/* setup.c */
-extern void init_pit_rest(void);
-extern void generic_init_pit (void);
extern unsigned long srm_hae;
/* smp.c */
@@ -143,6 +141,8 @@ extern void reset_for_srm(void);
/* time.c */
extern void timer_interrupt(int irq, void *dev, struct pt_regs * regs);
+extern void rtc_init_pit(void);
+extern void generic_init_pit(void);
extern unsigned long est_cycle_freq;
/* smc37c93x.c */
diff -rup 2.2.0-pre5/arch/alpha/kernel/setup.c 2.2.0-pre5-axp/arch/alpha/kernel/setup.c
--- 2.2.0-pre5/arch/alpha/kernel/setup.c Mon Dec 28 16:15:31 1998
+++ 2.2.0-pre5-axp/arch/alpha/kernel/setup.c Thu Jan 7 22:03:01 1999
@@ -275,6 +275,16 @@ setup_arch(char **cmdline_p, unsigned lo
if (alpha_mv.init_arch)
alpha_mv.init_arch(memory_start_p, memory_end_p);
+ /* Initialize the timers. */
+ /* ??? There is some circumstantial evidence that this needs
+ to be done now rather than later in time_init, which would
+ be more natural. Someone please explain or refute. */
+#if defined(CONFIG_RTC)
+ rtc_init_pit();
+#else
+ alpha_mv.init_pit();
+#endif
+
/*
* Give us a default console. TGA users will see nothing until
* chr_dev_init is called, rather late in the boot sequence.
diff -rup 2.2.0-pre5/arch/alpha/kernel/sys_ruffian.c 2.2.0-pre5-axp/arch/alpha/kernel/sys_ruffian.c
--- 2.2.0-pre5/arch/alpha/kernel/sys_ruffian.c Mon Dec 28 16:16:03 1998
+++ 2.2.0-pre5-axp/arch/alpha/kernel/sys_ruffian.c Thu Jan 7 22:52:40 1999
@@ -82,7 +82,7 @@ ruffian_device_interrupt(unsigned long v
* then all the PCI slots/INTXs (12-31)
* flash(5) :DWH:
*/
- pld &= 0x00000000ffffff9fUL; /* was ffff7f */
+ pld &= 0x00000000ffffff9fUL; /* was ffff7f */
/*
* Now for every possible bit set, work through them and call
@@ -118,12 +118,12 @@ ruffian_device_interrupt(unsigned long v
} else {
handle_irq(j, j, regs);
}
- } else { /* if not an ISA int */
+ } else { /* if not an ISA int */
handle_irq(16 + i, 16 + i, regs);
}
- *(vulp)PYXIS_INT_REQ = 1UL << i; mb();
- *(vulp)PYXIS_INT_REQ; /* read to force the write */
+ *(vulp)PYXIS_INT_REQ = 1UL << i; mb();
+ *(vulp)PYXIS_INT_REQ; /* read to force the write */
}
}
@@ -222,7 +222,7 @@ ruffian_init_arch(unsigned long *mem_sta
pyxis_enable_errors();
if (!pyxis_srm_window_setup()) {
- printk("ruffian_init_arch: Skipping window register rewrites."
+ printk("ruffian_init_arch: Skipping window register rewrites."
"\n... Trust DeskStation firmware!\n");
}
pyxis_finish_init_arch();
@@ -233,7 +233,10 @@ ruffian_init_pit (void)
{
/* Ruffian depends on the system timer established in MILO! */
request_region(0x70, 0x10, "timer");
- init_pit_rest();
+
+ outb(0xb6, 0x43); /* pit counter 2: speaker */
+ outb(0x31, 0x42);
+ outb(0x13, 0x42);
}
static void
diff -rup 2.2.0-pre5/arch/alpha/kernel/time.c 2.2.0-pre5-axp/arch/alpha/kernel/time.c
--- 2.2.0-pre5/arch/alpha/kernel/time.c Mon Dec 28 16:16:03 1998
+++ 2.2.0-pre5-axp/arch/alpha/kernel/time.c Thu Jan 7 22:23:29 1999
@@ -158,43 +158,28 @@ static inline unsigned long mktime(unsig
* drivers depend on them being initialized (e.g., joystick driver).
*/
-/* It is (normally) only counter 0 that presents config problems, so
- provide this support function to do the rest of the job. */
-
-void inline
-init_pit_rest(void)
-{
-#if 0
- /* Leave refresh timer alone---nobody should depend on a
- particular value anyway. */
- outb(0x54, 0x43); /* counter 1: refresh timer */
- outb(0x18, 0x41);
-#endif
-
- outb(0xb6, 0x43); /* counter 2: speaker */
- outb(0x31, 0x42);
- outb(0x13, 0x42);
-}
-
#ifdef CONFIG_RTC
-static inline void
+void
rtc_init_pit (void)
{
unsigned char control;
- /* Setup interval timer if /dev/rtc is being used */
+ /* Turn off RTC interrupts before /dev/rtc is initialized */
+ control = CMOS_READ(RTC_CONTROL);
+ control &= ~(RTC_PIE | RTC_AIE | RTC_UIE);
+ CMOS_WRITE(control, RTC_CONTROL);
+ (void) CMOS_READ(RTC_INTR_FLAGS);
+
+ request_region(0x40, 0x20, "timer"); /* reserve pit */
+
+ /* Setup interval timer. */
outb(0x34, 0x43); /* binary, mode 2, LSB/MSB, ch 0 */
outb(LATCH & 0xff, 0x40); /* LSB */
outb(LATCH >> 8, 0x40); /* MSB */
- request_region(0x40, 0x20, "timer"); /* reserve pit */
- /* Turn off RTC interrupts before /dev/rtc is initialized */
- control = CMOS_READ(RTC_CONTROL);
- control &= ~(RTC_PIE | RTC_AIE | RTC_UIE);
- CMOS_WRITE(control, RTC_CONTROL);
- CMOS_READ(RTC_INTR_FLAGS);
-
- init_pit_rest();
+ outb(0xb6, 0x43); /* pit counter 2: speaker */
+ outb(0x31, 0x42);
+ outb(0x13, 0x42);
}
#endif
@@ -203,7 +188,7 @@ generic_init_pit (void)
{
unsigned char x;
- /* Reset periodic interrupt frequency. */
+ /* Reset periodic interrupt frequency. */
x = CMOS_READ(RTC_FREQ_SELECT) & 0x3f;
if (x != 0x26 && x != 0x19 && x != 0x06) {
printk("Setting RTC_FREQ to 1024 Hz (%x)\n", x);
@@ -218,36 +203,26 @@ generic_init_pit (void)
x &= ~(RTC_AIE | RTC_UIE);
CMOS_WRITE(x, RTC_CONTROL);
}
- CMOS_READ(RTC_INTR_FLAGS);
+ (void) CMOS_READ(RTC_INTR_FLAGS);
request_region(RTC_PORT(0), 0x10, "timer"); /* reserve rtc */
- /* Turn off the PIT. */
- outb(0x36, 0x43); /* counter 0: system timer */
+ outb(0x36, 0x43); /* pit counter 0: system timer */
outb(0x00, 0x40);
outb(0x00, 0x40);
- init_pit_rest();
+ outb(0xb6, 0x43); /* pit counter 2: speaker */
+ outb(0x31, 0x42);
+ outb(0x13, 0x42);
}
-/* This probably isn't Right, but it is what the old code did. */
-#if defined(CONFIG_RTC)
-# define init_pit rtc_init_pit
-#else
-# define init_pit alpha_mv.init_pit
-#endif
-
-
void
time_init(void)
{
- void (*irq_handler)(int, void *, struct pt_regs *);
+ void (*irq_handler)(int, void *, struct pt_regs *);
unsigned int year, mon, day, hour, min, sec, cc1, cc2;
unsigned long cycle_freq;
- /* Initialize the timers. */
- init_pit();
-
/*
* The Linux interpretation of the CMOS clock register contents:
* When the Update-In-Progress (UIP) flag goes from 1 to 0, the
@@ -322,8 +297,8 @@ time_init(void)
state.partial_tick = 0L;
/* setup timer */
- irq_handler = timer_interrupt;
- if (request_irq(TIMER_IRQ, irq_handler, 0, "timer", NULL))
+ irq_handler = timer_interrupt;
+ if (request_irq(TIMER_IRQ, irq_handler, 0, "timer", NULL))
panic("Could not allocate timer IRQ!");
}
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
--Boundary-=_nWlrBbmQBhCDarzOwKkYHIDdqSCD--
^ permalink raw reply [flat|nested] 15+ messages in thread
* time.c +... patch
1999-01-06 5:31 ` Richard Henderson
1999-01-06 9:18 ` Jochen Kuepper
@ 1999-01-08 14:12 ` Jochen Kuepper
1999-01-10 1:59 ` reporting 2.2 kernel bugs Quant-X Alpha Linux Support
2 siblings, 0 replies; 15+ messages in thread
From: Jochen Kuepper @ 1999-01-08 14:12 UTC (permalink / raw)
To: Richard Henderson; +Cc: Linux/AXP
Richard, All,
yes this patch (RTH's) works for me - at least the single time I tried it.
I applied it, recompiled the kernel, rebooted twice - worked both times.
It still gives me the message, but the estimate is ok:
HWRPB cycle frequency bogus. Estimating... 266695392 Hz
Thanks Willem Boschman !
Greetings,
Jochen
-----------------------------------------------------------------------
Jochen K"upper
Heinrich-Heine-Universit"at D"usseldorf jochen@uni-duesseldorf.de
Institut f"ur Physikalische Chemie I
Universit"atsstr. 1, Geb 26.43 Raum 02.29 phone ++49-211-8113681
40225 D"usseldorf fax ++49-211-8115195
Germany http://www-public.rz.uni-duesseldorf.de/~jochen
-----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: alpha timer patch [Re: reporting 2.2 kernel bugs]
1999-01-08 6:54 ` alpha timer patch [Re: reporting 2.2 kernel bugs] Richard Henderson
1999-01-08 6:54 ` Richard Henderson
@ 1999-01-08 20:56 ` Willem Boschman
1 sibling, 0 replies; 15+ messages in thread
From: Willem Boschman @ 1999-01-08 20:56 UTC (permalink / raw)
To: rth; +Cc: axp-list, linux-kernel
> On Fri, Jan 08, 1999 at 07:13:48AM +0100, Willem Boschman wrote:
> > I don't have any explainations for you but i do know it works. Have
> > been using this since 2.1.125 every normal kernel gets the clock
> > wrong while with patch its fine.I did think mayby its an error in egcs
> > (1.0.3 or 1.1a ?) which does't occur if you move the code so i tried
> > gcc-2.8.1 and now egcs-1.1.1. No change.
>
> I have trouble beliveing in compiler bugs in this case
> because in either case the compiled code should be the
> same, isolated as it is in its own function.
>
> I am willing to believe in mysterious interactions with
> the rest of the boot process. To that end, would the
> several folks that have been having Alpha timer problems
> try out the following patch?
>
Works for me, timer problem gone. This is with CONFIG_RTC=n.
kernel with rtc is compiling at this moment but i don't expect it to
behave different.
thanks
-willem
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: reporting 2.2 kernel bugs
1999-01-06 5:31 ` Richard Henderson
1999-01-06 9:18 ` Jochen Kuepper
1999-01-08 14:12 ` time.c +... patch Jochen Kuepper
@ 1999-01-10 1:59 ` Quant-X Alpha Linux Support
2 siblings, 0 replies; 15+ messages in thread
From: Quant-X Alpha Linux Support @ 1999-01-10 1:59 UTC (permalink / raw)
To: Richard Henderson; +Cc: axp-list
Hi Richard !
On Tue, Jan 05, 1999 at 09:31:28PM -0800, Richard Henderson wrote:
> On Sat, Feb 12, 2135 at 11:17:22PM +0100, Jochen Kuepper wrote:
> > the clock frequency is said to be bogus (by the kernel) and is estimated -
> > wrong, of course :-)
>
> How far off?
>
> I know there is a problem in there somewhere -- I can reproduce it
> moderately consistently on my eb164 -- but I've been unable to find
> out what in the world is wrong.
Funny: I've never seen it on our 50 node 667MHz LX-cluster
(brsh -a cat /proc/cpuinfo|grep -i bogo) but I've seen it on two nodes in
our 5 Node 667MHz LX-cluster using the same (generic 2.1.125) kernel.
How far off ? Exact half (333.333...) ... and live at Electronica in Munich
1998 (bWatch was running in our demo-loop).
(Jay: real LX boards, even if it looks like overclocked AlphaBooks
in "suspend on heat" mode ;-])
--
ciao -
Stefan Traby
Quant-X Alpha Linux Support
Quant-X Service & Ph: (+43) 4212 90555-0
Consulting Ges.m.b.H. Fax: (+43) 4212 90555-555
http://www.quant-x.com Email: support@quant-x.com
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~1999-01-10 3:28 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <Pine.LNX.3.96.990105193430.535A-100000@bhalpha1.nibh.go.jp >
1999-01-05 15:24 ` reporting 2.2 kernel bugs Frank C. Brants
1999-01-05 16:32 ` Jochen Kuepper
1999-01-06 5:31 ` Richard Henderson
1999-01-06 9:18 ` Jochen Kuepper
1999-01-07 20:19 ` Willem Boschman
1999-01-07 20:19 ` Willem Boschman
1999-01-07 20:22 ` Richard Henderson
[not found] ` <199901080616.HAA26171@mycroft.r5c.nl>
1999-01-08 6:54 ` alpha timer patch [Re: reporting 2.2 kernel bugs] Richard Henderson
1999-01-08 6:54 ` Richard Henderson
1999-01-08 20:56 ` Willem Boschman
1999-01-08 14:12 ` time.c +... patch Jochen Kuepper
1999-01-10 1:59 ` reporting 2.2 kernel bugs Quant-X Alpha Linux Support
1999-01-05 19:23 ` Stephen Williams
1999-01-05 19:40 ` B. James Phillippe
1999-01-05 10:39 Tom Holroyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox