From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 12071 invoked from network); 19 Aug 1999 18:45:46 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 19 Aug 1999 18:45:45 -0000 Received: from neptune.phys.ufl.edu (neptune-gw.phys.ufl.edu [128.227.64.7]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id OAA20669 for ; Thu, 19 Aug 1999 14:45:45 -0400 Received: from hee.phys.ufl.edu (hee.phys.ufl.edu [128.227.89.254]) by neptune.phys.ufl.edu (8.8.8/8.8.8) with ESMTP id OAA02750 for ; Thu, 19 Aug 1999 14:45:43 -0400 (EDT) Message-Id: <199908191845.OAA02750@neptune.phys.ufl.edu> To: axp-list@redhat.com Subject: Re: tbia() on DEC 3000 question In-Reply-To: Your message of "Wed, 18 Aug 1999 16:49:32 PDT." <19990818164932.C15520@twiddle.net> Date: Thu, 19 Aug 1999 14:45:43 -0400 From: Craig P Prescott Hello, Richard; *Thank you* for your explicit explanation of what happens in paging_init()! This is very useful to me, as I am clearly lacking much knowledge of how everything works. On Wed, 18 Aug 1999 16:49:32 -0700, Richard Henderson wrote: > On Wed, Aug 18, 1999 at 05:36:45AM -0400, Craig P Prescott wrote: > > I'm sure I'm doing something silly... > > I don't think you are. This _should_ just all work. Since it Ummm... I'm note sure how to break it to you... > > I had sprinkled some srm_printk (is this ok to do??) calls around (I am > > working from a serial console), and just prior to paging_init() > > Yes. You can't call srm_printk after that tbia above. 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"); (*embarrassment*). Initially, I had srm_printk's everywhere, in order to get some feedback prior to console_init. But now, after removing all the srm_printk() calls after that tbia(), no more DBLE MCHK. THe boot attempt now hangs - and whenever I hit the halt button, no matter how long I wait, I get ?01 EXT HALT PC= FFFFFC00.00318FCC PSL= 00000000.00000007 Now, I look into System.map fffffc0000318f60 T time_init fffffc00003193e0 T do_gettimeofday so I am sitting someplace in time_init! Ok - I am back at it. So just to make sure - there is no way to get feedback from the kernel between the tbia() in paging_init() and console_init()? If so, I guess I just try to get past various hangs and machine checks as they come up by checking System.map to see where the problems were. Is there a better way? > How much documentation are you working with here? Or are you > just winging it? I know NetBSD works on the 3000; you might > compare our vm startup code with theirs. here's most of the docs I have * 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... * Turbochannel Hardware Specification * Turbochannel Firmware Specification * Turbochannel System Parameters * Turbochannel Interface ASIC Functional Specification * PMAG-BA Turbochannel Color Framebuffer Functional Specification * PMAD-AA Turbochannel Ethernet Module Functional Specification * PMAZ-AA Turbochannel SCSI Module Functional Specification as well as the docs for the Zilog serial communications port, the NCR 53c94 SCSI controller, the AMD 7990 Lance ethernet, and the AMD 79C30A for the ISDN. I also have some docs on the more recent Alpha hardware to help see how the already-working code works... I read through a bunch of it, and it is just *a lot*... The DEC 3000 300/400/500/600/700/800/900 AXP Models System Programmer's Manual (that's a mounthful) seems choked with information - I'm sure I'll be relying on it soon. I've browsed a bit through the NetBSD alpha sources - funny, should have done that sooner, though I probably would've made the same mistake anyway (they have a comment near their tbia call which says "NO OUTPUT ALLOWED UNTIL FURTHER NOTICE"). I am sure their sources will be *very* useful, too, and not just for the vm code. Of course, if anyone has docs which may be useful and I've not listed, I'd love to hear about them. So far, though, I haven't done too much. I've added "pelican" and "flamingo" machine vectors, made the makefile and config.in mods, etc., and imported some of the turbochannel stuff from the Decstation port. A lot of stuff is just dummied out in what I have done, 'cuz I'm not sure what to put there yet (PCI stuff, for example). Many Thanks, Craig