From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 23556 invoked from network); 15 Oct 1999 14:43:31 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 15 Oct 1999 14:43:31 -0000 Received: from mailext12.compaq.com (mailext12.compaq.com [207.18.199.188]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id KAA16954 for ; Fri, 15 Oct 1999 10:43:31 -0400 Received: from mailint02.im.hou.compaq.com (mailint02.compaq.com [207.18.199.35]) by mailext12.compaq.com (Postfix) with ESMTP id 5D1D357A35 for ; Fri, 15 Oct 1999 09:42:07 -0500 (CDT) Received: by mailint02.im.hou.compaq.com (Postfix, from userid 12345) id 21382BC4CC; Fri, 15 Oct 1999 09:43:09 -0500 (CDT) Received: from flume.zk3.dec.com (broflume.zk3.dec.com [16.141.0.42]) by mailint02.im.hou.compaq.com (Postfix) with ESMTP id 3480EB2A4E for ; Fri, 15 Oct 1999 09:43:09 -0500 (CDT) Received: from wavy.zk3.dec.com by flume.zk3.dec.com (8.8.8/1.1.8.2/16Jan95-0946AM) id KAA0000003052; Fri, 15 Oct 1999 10:43:28 -0400 (EDT) Received: from zk3.dec.com by wavy.zk3.dec.com (8.8.8/1.1.20.8/09Sep99-1228PM) id KAA0001116264; Fri, 15 Oct 1999 10:43:28 -0400 (EDT) Sender: frival@wavy.zk3.dec.com Message-ID: <38073C08.ACC8A5FA@zk3.dec.com> Date: Fri, 15 Oct 1999 14:36:56 +0000 From: Peter Rival X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20smp i586) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: PATCH: (on Alpha) emulating missing instructions References: <3.0.6.32.19991015071954.0080b7e0@Losninos.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Well, to answer his question, it's not a PALcode thing - Tru64 emulates the instructions in the same way this patch intends to. Otherwise the simple answer would be "use SRM" as it is always up to the latest firmware/PALcode rev (if you keep up with it). That brings us to something better - with the rumored (I'm not in a position at Compaq to know) demise of AlphaBIOS/ARC, what kind of base does that give MILO to work from? If you're particularly worried, work on getting MILO happy with SRM, and know then that you are working from the latest PALcode. I know it's not that simple, but I'm hoping that you see where I'm going. While I will say that Compaq has done a lot to help make Linux on Alpha work, I will also admit that there is a _lot_ more that we could do. Working through/with issues like this should probably rank high on that list. If you think you know of good things that Compaq can do to make AlphaLinux work better (or in some cases just "work"...but we won't go into that rant...) try to get someone "up the ladder" to send mail to Michael Capellas or Enrico Pesatori or Bill Heill (or all three). Mail directly from customers with an expressed interest in buying Alpha systems if only Compaq did XYZ has a lot more pull than sending it to axp-list and hoping that a developer can manage to get it up the chain without the message getting distorted. Something like "there's this customer that said they might think about buying Alpha systems for Linux if we just do blah" really sounds wimpy. Just like Linux, if we all work together everything gets better. I guess that would be my equivalent of Linus saying "code it up and we'll see". I want things to be where you the customer think they need to be...and it _will_ happen. End of story. (and rant ;) - Pete "Kirk R. Erichsen" wrote: > You better believe we are missing PALcode updates. The PALcode in MILO > dates back to the EB series machines and was part of the EBSDK. The > PALcode was built from examples from the SDK and are fairly close to the > Digital UNIX 3.2 versions. There are a lot of unimplemented functions and > it is quite old. If Compaq is serious about Alpha, we need PALcode > updates, not more kernel hacks. > The fact that Linux works over Alpha at all is in spite of, not because of > support from Compaq. > > --Kirk > > At 12:03 PM 10/15/99 +0200, you wrote: > >Eminently done, but I was really under the impression that these exceptions > >should be handled by the PALcode (since it is really a general Alpha > >problem, not Linux-specific)? Is this not so (i.e. are we missing some > >PALcode update) or is it solved differently in different OSes? > > > >-----Original Message----- > >From: Luke Deller [mailto:luked@cse.unsw.edu.au] > >Sent: Friday, October 15, 1999 11:39 AM > >To: axp-list@redhat.com > >Cc: axp-list@redhat.com; Daniel Paul Potts > >Subject: PATCH: (on Alpha) emulating missing instructions > > > > > >Daniel & I tried to run Loki's new beta version of Civilization Call to > >Power for alpha linux on a multia (ev4 alpha). We got an illegal > >instruction exception. We discovered that it was compiled for ev6, and so > >contained instructions not supported by our CPU. > > > >So we have patched the linux kernel to emulate the instructions we needed. > >These instructions are: > >- byte/word load/store instructions (ldbu,stb,ldwu,stw) > >- some multimedia instructions (minsw, maxsw, minuw, maxuw, minsb, maxsb, > > minub, maxub) > > > >We have tried to make the emulation fairly fast - we have added it as some > >assembly language code to the "illegal instruction exception" kernel entry > >point in arch/alpha/kernel/entry.S:entIF. (Of course it's still faster > >to avoid emulation and use a binary compiled for your generation of alpha > >cpu). > > > >We put an option for enabling it in the "Kernel Hacking" section of the > >configuration. > > > >The patch is applied to kernel version 2.2.11 > >(Loki say not to use 2.2.12 for Civilization CTP) > > > >We only wrote enough emulation code to get CivilizationCTP to run .. in the > >future it would be cool to see emulation of a more complete set of > >instructions in the kernel. > > > >Hope this is useful to somebody, > > > >Luke Deller & Daniel Potts. > > > >-------------------------------------------------------------------------- > > Luke Deller luked@cse.unsw.edu.au > > _--_|\ Computer Engineering student > >/ \ School of Computer Science and Engineering ? ? ? ? > >\_.--._* The University of New South Wales ~~^^~ > > v Sydney, NSW 2052 AUSTRALIA o o > >-------------------------------------------------------ooO--(_)--Ooo------ > > > >-- > >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 > > > > > > -- > 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