[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Hwclock failure on a Sable



Loic Prylli wrote:
<SNIP>
> Even if we end up using a user-space solution for hwclock, the kenel
> problems need to be fix a tsome point. A good start seems to be the
> solution of Nikita:
> ftp://genie.ucd.ie:/pub/alpha/patches-2.2.x/rtclight.diff
> 
> A small explanation of the problem: on probably a lot of Alpha, the
> RTC is actually used to generate the timer interrupt and some code
> seems to be buggy with that, particularly:
> in linux/arch/alpha/kernel/irq.h:
> 
> #define RTC_IRQ    8
> #ifdef CONFIG_RTC
> #define TIMER_IRQ  0                     /* timer is the pit */
> #else
> #define TIMER_IRQ  RTC_IRQ               /* timer is the rtc */
> #endif
> 
> whereas the irq code in arch/alpha/kernel/irq.c is calling:
>         case 1:
>                 __save_and_cli(flags);
>                 handle_irq(RTC_IRQ, -1, &regs);
>                 __restore_flags(flags);
> 
> These two things does not seems to be consistent.

But strangely enough the stock Slink kernel (2.0.36) _WORKS_ !
<2.0.36>
init_timers: setting RTC_FREQ to 1024/sec
Command line: ro root=/dev/sda1 bootdevice=sda1
bootfile=vmlinux-2.0.36.gz
t2_init: HBASE was 0x2000
T2_init: HAE1 was 0x0
T2_init: HAE2 was 0x0
T2_init: HAE3 was 0x0
T2_init: HAE4 was 0x3
T2_init: nr_processors 0x4
T2_init: processor_size 0x280
T2_init: processor_offset 0x180
T2_init: CPU 0x0: flags 0x1ed type 0x200000006
T2_init: CPU 0x1: flags 0x0 type 0x0
T2_init: CPU 0x2: flags 0x0 type 0x0
T2_init: CPU 0x3: flags 0x0 type 0x0
Probing PCI hardware.
common_fixup: bus 0 slot 0x1 SRM IRQ 0x1 changed to 0x21
common_fixup: bus 0 slot 0x0 SRM IRQ 0x2 changed to 0x20
Alpha PCI BIOS32 revision 0.03
</2.0.36>

This is my current running kernel:
<2.2.2-ac7>
Linux version 2.2.2-ac7 (root@host) (gcc version egcs-2.91.60 Debian 2.1
(egcs-1.1.1 release)) #2 Tue Mar 9 09:25:57 MYT 1999
Booting on Sable using machine vector Sable
Command line: root=/dev/sda1 bootdevice=scd0
bootfile=vmlinux-2.2.2-ac7.gz
t2_init: HBASE was 0x2000
Setting RTC_FREQ to 1024 Hz (25)
Turning on RTC interrupts.
</2.2.2-ac7>


Seems to me like a lot of things are missing!!
The reason of why I'm doing this is that I may be able to get my hands
on a second processor board (EV4 275MHz), therefore I'll need RTC for
SMP operations. Any ideas?


> 
> Loic
> 
> --
> To UNSUBSCRIBE, email to debian-alpha-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

-- 
Wai-Sun "squidster" Chia
Internet Solution Architect
Network & System Intergration Services
MSA


Reply to: