Skip to contentSkip to conversation

R5000 support (specifically two-way set-associative cache...)

DISCUSSION Kevin D. Kissell 1 participant 1 message Jul 1, 2000 MIPS

lore
Share & tools
lore
#0 lore raw

In any case, note that the cache descriptor structures defined by MIPS Technologies for the Linux 2.2 kernels (coming one of these days to 2.3) allow for the cache geometry to be fully described and specified, either as a simple table copy based on the PrID, or as a combination of table data and dynamic probing.

Kevin K.

-----Original Message-----
From: Jun Sun <[email protected]>
To: Dominic Sweetman <[email protected]>
Cc: [email protected] <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Date: Saturday, July 01, 2000 3:29 AM
Subject: Re: R5000 support (specifically two-way set-associative cache...)

Quoted 31 lines
Quoted 15 lines

Fundamentally:

o "index" operations just go first through one set, then the other. So long as initialisation routines are applied to each possible index in turn, both sets get initialised.

o "hit" operations "just work".

So long as initialisation is done carefully (basic rule: perform one stage to the whole cache before going on to the next), run-time cache maintenance can and should be done with "hit" instructions, and you don't need to worry whether the CPU is direct mapped, 2- or 4-way set associative.

Quoted 5 lines

(it's all explained in my book, "See MIPS Run", of course...)

Even with the Vr5432 you only have to know the difference when first setting up the CPU.

Not exactly - the current Linux/MIPS implementation uese index operations to flush cache.
As a result flush_all_cache() does not really flush all cache.

Quoted 2 lines

Dominic Sweetman
Algorithmics Ltd

Jun

Quoted 1 line

[email protected]