From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 31509 invoked from network); 19 Aug 1999 23:03:27 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 19 Aug 1999 23:03:27 -0000 Received: from piglet.twiddle.net (root@piglet.twiddle.net [207.104.6.26]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id TAA08463 for ; Thu, 19 Aug 1999 19:03:27 -0400 Received: (from rth@localhost) by piglet.twiddle.net (8.8.7/8.8.7) id QAA10822 for axp-list@redhat.com; Thu, 19 Aug 1999 16:02:55 -0700 Date: Thu, 19 Aug 1999 16:02:55 -0700 From: Richard Henderson To: axp-list@redhat.com Subject: Re: tbia() on DEC 3000 question Message-ID: <19990819160255.A10250@twiddle.net> References: <19990818164932.C15520@twiddle.net> <199908191845.OAA02750@neptune.phys.ufl.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i In-Reply-To: <199908191845.OAA02750@neptune.phys.ufl.edu>; from Craig P Prescott on Thu, Aug 19, 1999 at 02:45:43PM -0400 On Thu, Aug 19, 1999 at 02:45:43PM -0400, Craig P Prescott wrote: > Ermm... This has been the problem the whole time. I had done this: > > srm_printk("Going to tbia()...\n"); > tbia(); > ... > srm_printk("returning from paging_init().\n"); Oh dear. Yes, that would be a problem. > ... so I am sitting someplace in time_init! Ok - I am back at it. I've seen stuff like this on other machines. There is a loop therein where we're not believing the machine's cycle count that we got from the console, so we count how many cycles between ticks of the rtc. Except for reasons unexplainable the rtc isn't ticking, so we sit in the tight polling loop forever. I've never figured that one out. Nor similar problems in which the rtc ticks much faster than realtime. Note that this is _not_ any of the interval timers on the rtc that I'm polling -- it's the time-of-year clock that I'm waiting to advance to the next second. Which makes things doubly confusing. A quick way around this is to add `cycle=250000000' (250Mhz) or whatever is appropriate to the command line args. That'll skip the polling loop. > So just to make sure - there is no way to get feedback from the kernel > between the tbia() in paging_init() and console_init()? See ftp://ftp.twiddle.net/pub/rth/d-sercon. It's an old patch, so it probably won't apply without help, but it's object is to get output to the serial console immediately after setup_arch (which is before paging_init, btw). > * Alpha Architecture Reference Manual (1st edition) > * DEC 3000 300/400/500/600/700/800/900 AXP Models System Programmer's Manual > * David Rusling's "The Linux Kernel" > * All the Turbochannel docs I could find... Ok, you look fairly well set up then. r~