From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 6128 invoked from network); 29 Feb 2000 19:59:11 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 29 Feb 2000 19:59:11 -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 OAA22224 for ; Tue, 29 Feb 2000 14:59:10 -0500 Received: by mailext12.compaq.com (Postfix, from userid 12345) id 4D5EA57985; Tue, 29 Feb 2000 13:59:10 -0600 (CST) Received: from mailint12.im.hou.compaq.com (mailint12.compaq.com [207.18.199.190]) by mailext12.compaq.com (Postfix) with ESMTP id 4AEDA54603 for ; Tue, 29 Feb 2000 13:59:10 -0600 (CST) Received: by mailint12.im.hou.compaq.com (Postfix, from userid 12345) id 9BFFF4FB0B; Tue, 29 Feb 2000 13:59:03 -0600 (CST) Received: from pdgsrv.mro.dec.com (pdgsrv.mro.dec.com [16.34.112.86]) by mailint12.im.hou.compaq.com (Postfix) with ESMTP id 5A1504C901 for ; Tue, 29 Feb 2000 13:59:03 -0600 (CST) Received: from linux04.mro.dec.com by pdgsrv.mro.dec.com; (8.8.8/1.1.8.2/13Dec96-1209PM) id OAA27486; Tue, 29 Feb 2000 14:59:09 -0500 (EST) From: Received: from linux04.mro.dec.com (localhost.localdomain [127.0.0.1]) by linux04.mro.dec.com (8.9.3/8.9.3) with ESMTP id OAA00949 for ; Tue, 29 Feb 2000 14:59:17 -0500 Message-Id: <200002291959.OAA00949@linux04.mro.dec.com> X-Mailer: exmh version 2.0.3 X-Exmh-Isig-CompType: repl X-Exmh-Isig-Folder: axp-list To: axp-list@redhat.com Subject: Re: srm / ide In-reply-to: Your message of Tue, 29 Feb 2000 09:19:14 -0800. <20000229091914.B24211@twiddle.net> Mime-Version: 1.0 Content-Type: text/plain Date: Tue, 29 Feb 2000 14:59:17 -0500 Sender: Jay.Estabrook@compaq.com >>> Richard Henderson said: > > > 2. handling pre-fetch code as produced by CCC > > The kernel itself will handle this. Added quite some time ago. For those interested in the details: 1. Richard's patches are in both 2.2.14 and 2.3.48 and later (and almost certainly in some earlier versions as well) arch/alpha/mm/fault.c, so using any of those with CCC-generated "pre-fetch" instructions should just work, albeit with a performance hit on those machines without OSF (SRM) PALcode. The appropriate PALcode for handling pre-fetch is present in EV5 and EV6 OSF PALcode, and most likely in at least some of the EV4s as well. 2. the pre-fetch code is all about attempting to pre-load a TLB entry before it actually is needed, so that when it *is* needed, it'll just be there. About the slickest code-path in the PALcode is the TLB miss code; the pre-fetch instruction allows that code to know it's doing a pre-fetch and to (potentially) bail-out of the full processing if it looks like it would take too long (as in actually having to walk page tables, for example). And by bail-out I mean dismissing the TLB miss without delivering it to the kernel as a page fault, which is what would happen without the knowledgable PALcode, and where the performance hit is incurred. --Jay++ ----------------------------------------------------------------------------- Jay A Estabrook Alpha Engineering - LINUX Project Compaq Computer Corp. - MRO1-2/K20 (508) 467-2080 200 Forest Street, Marlboro, MA 01752 Jay.Estabrook@compaq.com -----------------------------------------------------------------------------