Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* 21164 cache tags
@ 1996-08-01 15:44 Richard Henderson
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Henderson @ 1996-08-01 15:44 UTC (permalink / raw)


Can someone tell me if the 21164 uses virtual or
physical tags in its data caches?  I'm trying to 
design some tests to address Linus' concerns but
realized I don't know how the cache is tagged.

r~

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 21164 cache tags
       [not found] <m0ulzvI-0001vjC@atheist.tamu.edu>
@ 1996-08-01 16:27 ` Matti E Aarnio
  1996-08-02  8:58   ` aabbpp
  0 siblings, 1 reply; 5+ messages in thread
From: Matti E Aarnio @ 1996-08-01 16:27 UTC (permalink / raw)


> Can someone tell me if the 21164 uses virtual or
> physical tags in its data caches?  I'm trying to 
> design some tests to address Linus' concerns but
> realized I don't know how the cache is tagged.

  Quote from "Alpha Implementations and Architecture":

The instruction cache (Icache) is an 8KB direct mapped, virtual cache.

The data cache (Dcache) is a dual ported, 8KB write thru, read allocate,
direct mapped, virtually indexed, physically tagged cache with 32-byte
blocks.  The access time is 2 cycles and the bandwidth is 16 bytes per
cycle.

The on-chip second-level cache (Scache) is a 96KB, 3-way set associative,
physical, write back, write allocate, combined data and instruction 
cache.  It is fully pipelined and supports both 32-byte and 64-byte blocks.
Access time is 8-cycles and bandwidth is 16 bytes per cycle.

	What else you wanted to know ?

> r~

	/Matti Aarnio <mea@utu.fi>

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 21164 cache tags
@ 1996-08-01 16:43 David Mosberger-Tang
  1996-08-02  7:37 ` Linus Torvalds
  0 siblings, 1 reply; 5+ messages in thread
From: David Mosberger-Tang @ 1996-08-01 16:43 UTC (permalink / raw)


>>>>> On Thu, 1 Aug 1996 19:27:55 +0300 (EET DST), Matti E Aarnio <mea@mea.cc.utu.fi> said:

  >> Can someone tell me if the 21164 uses virtual or physical tags in
  >> its data caches?  I'm trying to design some tests to address
  >> Linus' concerns but realized I don't know how the cache is
  >> tagged.

  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.

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... ;-)

	--david

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 21164 cache tags
  1996-08-01 16:43 David Mosberger-Tang
@ 1996-08-02  7:37 ` Linus Torvalds
  0 siblings, 0 replies; 5+ messages in thread
From: Linus Torvalds @ 1996-08-02  7:37 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 21164 cache tags
  1996-08-01 16:27 ` 21164 cache tags Matti E Aarnio
@ 1996-08-02  8:58   ` aabbpp
  0 siblings, 0 replies; 5+ messages in thread
From: aabbpp @ 1996-08-02  8:58 UTC (permalink / raw)


On Thu, 1 Aug 1996, Matti E Aarnio <mea@mea.cc.utu.fi> wrote:
>> Can someone tell me if the 21164 uses virtual or
>> physical tags in its data caches?  I'm trying to 
>> design some tests to address Linus' concerns but
>> realized I don't know how the cache is tagged.
>
>  Quote from "Alpha Implementations and Architecture":
>
>The instruction cache (Icache) is an 8KB direct mapped, virtual cache.
>
>The data cache (Dcache) is a dual ported, 8KB write thru, read allocate,
>direct mapped, virtually indexed, physically tagged cache with 32-byte
>blocks.  The access time is 2 cycles and the bandwidth is 16 bytes per
>cycle.
>
>The on-chip second-level cache (Scache) is a 96KB, 3-way set associative,
>physical, write back, write allocate, combined data and instruction 
>cache.  It is fully pipelined and supports both 32-byte and 64-byte blocks.
>Access time is 8-cycles and bandwidth is 16 bytes per cycle.

The physical address lines (addr_h[39..5]) are partitioned
into an index field (physical cache address-lines (index_h[25..4]) and a tag 
field (tag_data_h[38..20]). The value on index_h[25..4] is identical to the
value on addr_h[25..4].
The tag size required is Bcache_Size/Block_Size.
On the EB164 board only the index_h[22..4] and tag_data_h[29..20] are used,
which means that a maximum of 2**23 = 8MB cache can be used.
The EB164 also include three jumpers J15, J16 and J17, where the index_h[22..20]
can be broken. This gives you the oppertunerty to decrease the cache size from 
8MB to 1MB (if 8MB cache modules are present). 

	Anders Petersen  

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1996-08-02  8:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <m0ulzvI-0001vjC@atheist.tamu.edu>
1996-08-01 16:27 ` 21164 cache tags Matti E Aarnio
1996-08-02  8:58   ` aabbpp
1996-08-01 16:43 David Mosberger-Tang
1996-08-02  7:37 ` Linus Torvalds
  -- strict thread matches above, loose matches on Subject: below --
1996-08-01 15:44 Richard Henderson

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