Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@cs.Helsinki.FI>
Subject: Re: 21164 cache tags
Date: Fri, 2 Aug 1996 10:37:08 +0300 (EET DST)	[thread overview]
Message-ID: <41ef5caa15b42ba91f2afc1b73c140ae.axp-list@archive.invalid> (raw)
In-Reply-To: <199608011643.JAA06906@panda.azstarnet.com>

On Thu, 1 Aug 1996, David Mosberger-Tang wrote:
>   Matti>   Quote from "Alpha Implementations and Architecture":
> 
>   Matti> The data cache (Dcache) is a dual ported, 8KB write thru,
>   Matti> read allocate, direct mapped, virtually indexed, physically
>          ^^^^^^^^^^^^^
>   Matti> tagged cache with 32-byte blocks.  The access time is 2
>   Matti> cycles and the bandwidth is 16 bytes per cycle.

Note that "virtually indexed, physically tagged" really has no meaning
from a software standpoint on the 21164.  That's how it's done in
hardware, but because the L1 cache is direct mapped and <= pagesize,
from a software standpoint the cache can be considered physically
indexed like the other caches (*). 

(*) Direct-mapped, 8kB cache: cache lookup is done using the low 13 bits
of the virtual address (actually, bits 6-12, as address bits 0-5 are the
address within the cache line).  And the virtual->physical translation
doesn't change those bits, so together with the physical tag the cache
can be considered completely physical.  The only thing the "virtual
indexing" means in this context is that the hardware cache lookup on the
chip can happen in parallell with the virtual address translation.. 

> The "read allocate" is a real catch.  Linus's cache flush code does
> indeed flush the second-level cache (and third-level, if present), but
> _not_ the first-level catch.  You have to do reads to flush the
> first-level data-cache.  You can get _very_ odd results,
> otherwise... ;-)

Nope, I did memory copies to flush the cache, so the L1 cache does get
flushed too, by the read side of the memcpy.. 

		Linus

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

  reply	other threads:[~1996-08-02  7:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-01 16:43 21164 cache tags David Mosberger-Tang
1996-08-02  7:37 ` Linus Torvalds [this message]
     [not found] <m0ulzvI-0001vjC@atheist.tamu.edu>
1996-08-01 16:27 ` Matti E Aarnio
1996-08-02  8:58   ` aabbpp
  -- strict thread matches above, loose matches on Subject: below --
1996-08-01 15:44 Richard Henderson
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