Skip to contentSkip to conversation

SMP on virtually indexed/tagged cache

DISCUSSION Konrad Eisele 2 participants 4 messages Apr 12, 2005 – Apr 13, 2005

lore
Share & tools
lore
#0 lore raw

I trying to get sparc32-smp run on a Leon3 sparc, it uses a virtually indexed/tagged cache. Is it possible to run smp on such a processor? Can cache coherence be maintained my the linux kernel only and is there a architecture that does that?
Maybe I have to add a vhdl hardware mechanism to Leon3, but it would be easier if it could be done in software. -- Thanks Konrad

#1 lore raw
Quoted 3 lines · On Tue, 12 Apr 2005 14:50:54 +0200 "Konrad Eisele" <[email protected]> wrote:

I trying to get sparc32-smp run on a Leon3 sparc, it uses a virtually indexed/tagged cache. Is it possible to run smp on such a processor?

Yes, it's just painful. Model your cache flushing on the sun4c code.

#2 lore raw
In reply to Konrad Eisele

"David S. Miller" <[email protected]> schrieb am 12.04.05 21:28:47:

Quoted 11 lines
Quoted 3 lines · On Tue, 12 Apr 2005 14:50:54 +0200 "Konrad Eisele" <[email protected]> wrote:

I trying to get sparc32-smp run on a Leon3 sparc, it uses a virtually indexed/tagged cache. Is it possible to run smp on such a processor?

Yes, it's just painful. Model your cache flushing on the sun4c code.
-

It's difficult to understand how smp works when cache coherency isn't done by hardware.
Have all the the kernel structures to be in nocache memory? Or does the kernel issue a flush to all processors when modifying them. On a Leon I can use a special asi to force a dcache miss, so spinlocks I can make work, but how are all the other data structures synchronized? By issuing a flush on every unlock? I'm not so familiar with sun4c and what kind of architecture that was. Does it run with SMP and which are the smp sources for sun4c?, I only find ones for 4d and 4m. There are so many machine variants and for none I can find out what kind of cache it runs with.

-- Konrad

Quoted 3 lines

To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
In reply to Konrad Eisele
Quoted 9 lines · On Wed, 13 Apr 2005 11:26:33 +0200 "Konrad Eisele" <[email protected]> wrote:

"David S. Miller" <[email protected]> schrieb am 12.04.05 21:28:47:

Quoted 8 lines
Quoted 3 lines · On Tue, 12 Apr 2005 14:50:54 +0200 "Konrad Eisele" <[email protected]> wrote:

I trying to get sparc32-smp run on a Leon3 sparc, it uses a virtually indexed/tagged cache. Is it possible to run smp on such a processor?

Quoted 6 lines
Quoted 3 lines

Yes, it's just painful. Model your cache flushing on the sun4c code.
-

It's difficult to understand how smp works when cache coherency isn't done by hardware.

Oh nevermind, yes that is next to impossible. If the cpus aren't doing any cache coherency protocol on the system bus, you're basically out of luck.

I forgot that physical indexing was necessary for a cache coherency protocol since the system bus works with physical addresses.