From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost.localdomain (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 2363B3EACF for ; Tue, 5 Mar 2002 21:03:09 -0500 (EST) Received: from lacrosse.corp.redhat.com (IDENT:root@lacrosse.corp.redhat.com [172.16.52.154]) by localhost.localdomain (8.11.6/8.11.6) with ESMTP id g26238q01023 for ; Tue, 5 Mar 2002 21:03:08 -0500 Received: (from mail@localhost) by lacrosse.corp.redhat.com (8.11.6/8.9.3) id g26238u06745 for axp-list@listman.redhat.com; Tue, 5 Mar 2002 21:03:08 -0500 Received: from localhost.localdomain (int-mx1.corp.redhat.com [172.16.52.254]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id g26238G06741 for ; Tue, 5 Mar 2002 21:03:08 -0500 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by localhost.localdomain (8.11.6/8.11.6) with SMTP id g26238q01019 for ; Tue, 5 Mar 2002 21:03:08 -0500 Received: from gatekeeper.api-networks.com (barracuda.apinetworks.com [192.233.60.7]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g26229q16080 for ; Tue, 5 Mar 2002 21:02:09 -0500 Received: from barracuda.alpha-processor.com by gatekeeper.api-networks.com via smtpd (for mx1.redhat.com [66.187.233.31]) with SMTP; 6 Mar 2002 01:53:29 UT Received: from gatekeeper.api-networks.com (gatekeeper-internal.api-networks.com [192.233.60.22]) by barracuda.alpha-processor.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id GC84RS7H; Tue, 5 Mar 2002 20:58:03 -0500 From: "Peter Petrakis" To: Cc: Received: from pool-141-154-183-142.wma.east.verizon.net ([141.154.183.142]) by gatekeeper.api-networks.com via smtpd (for barracuda.alpha-processor.com [192.233.60.7]) with SMTP; 6 Mar 2002 01:53:13 UT Subject: RE: MILO vs Kernel in ROM; WAS Laundry List Date: Tue, 5 Mar 2002 20:57:22 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: I've implied a couple definitions that may be confusing some folks. DBLX is a firmware that is designed to a) manage flash b) linux bootloader c) recover mechinism BIOS in the Alpha world can be broken down into a few parts. a) SROM, left untouched unless you are nuts. b) firmware (aka SRM, ARC, MILO, & DBM) c) the bios emulator capibilities exercised in b). I'm concerned with b and c. Not a, well not right now anyways :-). > It's not as tricky as it seems to do a double kernel boot, though. Eric > and I talked about doing it, but just lacked the time to implement it > (there were some fundamental problems to solve, but given time, I'm sure > those could be ironed out). The advantages in a DBLX situation were > immense, especially since we could store a very small "static" kernel (one > that didn't change in configuration) in flash and use it to boot the final > kernel thereby saving quite a bit of flash. The only real stumbling block > that we had to hurdle was the requirements that API set out for DBLX > (initrd, mostly, which seemed to always grow to fill the flash that we > would be saving). If the initrd requirement was gone, I don't see many > other obstacles to prevent a "kernel booting a kernel" situation. Yes I remember those requirements. They where quite expansive although if it where finished to the extent it was planned it would be quite impressive and very powerful. My understanding and perspective at the time was that the 2 kernel monty had some fundamental issues that where "tricky". I suppose it has been a long time since I last used it, August. > Actually, I speak too loosely there, it should end up being more of a > stripped-down kernel that functions as an enhanced bootloader that, in > turn, boots another kernel. That's what you mean when you said "static". > If the LinuxBIOS guys are expecting a firmware-less Alpha to properly set > up PCI (especially PCI-PCI bridges on some boards) and interrupt routing, > they've got another thing coming :-P Their DS10's work. I don't know what they did to the kernel to get there but it works and they have a cluster of them running. It's actually at the top of their list. > Also, correct me if I'm not remembering correctly, but doesn't the current > kernel code rely on some things being already working? I know that's the > case with the SRM-boot path, but am unsure about the MILO path since I > never had to work on those bits. If that's the case, though, there will > have to be more code added to the kernel (maybe alot more) to initialize > each board type to something better than the "power-on" or > "reset" states. That could probably will cost them in compiled kernel > size (this is really a problem for older boards, if memory serves me > correctly, since newer boards seemed to use more and more x86-market > parts). I think you're right. About the only thing that mentions milo is under arch/alpha/kernel . voodoo@deadite:/usr/src/linux/arch/alpha/kernel$ grep -l -i milo * process.c setup.c sys_ruffian.c sys_sio.c sys_sx164.c traps.c If you look at ruffian you find that it's implying that the previous firmware did most of the setup for it. So yeah MILO will probably need to fill out to 'turn on' the boards. We might as well follow the SRM spec to avoid code duplication in the kernel although we could probably setup the PCI layer better than SRM :-). > Those patches weren't problems in the BIOS, though. Those patches covered > problems in drivers that assumed entirely too much and never took the > safer way out (which would've been to reinitialize the device in > question). Generic PCI code seemed pretty thorough in that regard, > though, so only a handful of drivers would've required modification (in my > experience, vendor-written drivers suffered from these problems quite a > bit since they knew the operation of their boards a bit too well on > x86...drivers written by third-parties usually erred on the safe side and > were ok with DBLX). I was referring to my revised BIOS definition subsection B. DBLX did 'not' go out of it's way to initialize the PCI config space on the bus or assign IRQs for that matter and when it did it was 'only' under it test mode. I suspect if that was implemented those patches would have been unnecesarry. Though you know better than I do ;-). > Pete's absolutely correct about flash usage with DBLX. Being the "let's > wing it because I know how to reflash this beast" kinda guy that I was > then, I tended to only use about 70% of flash, and that's with a full > monolithic kernel :-) Since DBLX was designed with clusters in mind, > though, safety from trying to boot a bad kernel was a huge consideration > for API. Well it only took 2-3 mins to XMODEM over a full kernel or SRM at 115200 baud. For the rest of us it had to work and when it didnt DBLX had policy that would let you recover 'without' physicaly touching the machine. > The MILO thing that Pete and I talked about the other day actually sounds > interesting, although I'm not convinced anymore that flashing a kernel is > such a good idea (too easy to really hose flash and make a system > virtually unbootable for anyone who doesn't have the proper cabling and > SROM knowledge). Also, given what I've seen of people's nearly religious > habit of upgrading to the latest kernel with every released revision, I'm > really leaning towards the thinking of being able to flash a kernel as a > bad thing and more prone to problems than anything else. Agreed. > I love Alphas for that very reason. SROM, while being cryptic, does > relieve the requirements on firmware quite a bit. Nothing some good docs can't fix. Cryptic part. SROM is what gave Alpha the freedom to support atleast 4 completely different OS; VMS,DU,NT,LINUX, and what ever those Netapps run but their firmware is OpenBoot. Yes, Just like SPARC. > I think it would be more practical if flash was a socketed part, but even sockets cost $$$. Take a look at a UX board. There is no socketed SROM like all other Alphas, nor an obvious SROM port. > still, it requires hardware that most people don't have. I feel their > pain, though, WRT to bringing up dual CPU support on x86...PC BIOS > normally do quite a bit WRT getting the system properly running enough to > load the bootloader and kernel. Without BIOS, they must be facing quite a > bit of work trying to replace that functionality. Considering their perspective and the support they have it's going to be a some time before that becomes a reputable alternative to PC BIOS. > True. There is much that can be done with MILO and, after hearing Pete > describe what he had in mind, it sounds like a worthwhile project. Groovy... >:-> "Now, Who's with me?!!!!" .... "I'll stand by ye " "You can count on my steel " "A sword by your side! " "I'm with you!!! I'll bid my bow to your will sir!" "HAIL! HAIL! HAIL! HAIL!" If I'm the only one laughing, it's not funny. ;-) Peter -- www.linuxalpha.org www.alphadriven.org Peter Petrakis Warrior/Engineer voodoo@alphadriven.org " Who the hell are you!? Name's Ash Housewares..."