Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: <Jay.Estabrook@compaq.com>
To: axp-list@redhat.com
Subject: Re: srm / ide
Date: Tue, 29 Feb 2000 14:59:17 -0500	[thread overview]
Message-ID: <200002291959.OAA00949@linux04.mro.dec.com> (raw)
In-Reply-To: Your message of Tue, 29 Feb 2000 09:19:14 -0800. <20000229091914.B24211@twiddle.net>


>>> 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
-----------------------------------------------------------------------------



  reply	other threads:[~2000-02-29 19:59 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-29 14:32 srm / ide Jemiolo, John
2000-02-29 14:48 ` Pre-fetch ? [Was: Re: srm / ide] Andrei A. Dergatchev
2000-02-29 15:45   ` Jay.Estabrook
2000-02-29 16:54     ` Michal Jaegermann
2000-02-29 17:21     ` Richard Henderson
2000-02-29 17:19 ` srm / ide Richard Henderson
2000-02-29 19:59   ` Jay.Estabrook [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-02-29 14:19 Larry Sendlosky
2000-02-29 13:31 Jemiolo, John
2000-02-29 13:41 ` Andrei A. Dergatchev
2000-02-29 14:01 ` Rich Payne
2000-02-27 21:55 Bibek Sahu
2000-02-27 22:06 ` Rich Payne
2000-02-29 12:43   ` Jean-Baptiste Vignaud
2000-02-29 12:54     ` Andrei A. Dergatchev
2000-02-29 13:03       ` Jean-Baptiste Vignaud
2000-02-29 13:19         ` Andrei A. Dergatchev
2000-02-29 16:46           ` Michal Jaegermann
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox