Skip to contentSkip to conversation

Strange, strange occurence

DISCUSSION S C 1 participant 1 message Jul 12, 2004 MIPS

lore
Share & tools
lore

S C

author
#0 lore raw

Hi Kevin and Ralf,

Thanks for your inputs and suggestions! In the case of the Tx49 family, the primary I and D cache lines are both the same size (8 words), so the problem you mention below will not arise.

I didn't think about the meaning of cpu_has_ic_fills_f_dc before writing
my previous mail, and I see now that my intuition (and your explanation helps) was correct.

For the moment, the problem is fixed. But I'm going to try and get to the
bottom of this when I have the time.

Thanks,
-Steve.

Quoted 25 lines

From: "Kevin D. Kissell" <[email protected]>
To: "Kevin D. Kissell" <[email protected]>, "S C" <[email protected]>, "Ralf Baechle" <[email protected]>
CC: <[email protected]>
Subject: Re: Strange, strange occurence
Date: Tue, 13 Jul 2004 00:25:37 +0200

Quoted 1 line

Your intuition is correct, and the code in r4k_tlb_init() does look

scary.

Quoted 1 line

But at least in the linux-mips CVS tree, flush_icache_range() tests to

see

Quoted 2 lines

if "cpu_has_ic_fills_f_dc" (CPU has Icache fills from Dcache, I presume) is set, and if it isn't, it pushes the specified range out of the Dcache

before

Quoted 1 line

flushing the Icache. I would speculate that either your c-r4k.c is out

of

Quoted 2 lines

sync with yout tlb-r4k.c, or you erroneously have cpu_has_ic_fills_f_dc set.

Hmm. On closer examination, there *is* a bug in the current r4k_flush_icache_range(), in that it computes its cache flush loop for the I-cache based on the D-cache line size. Those line sizes are *usually* the same. By any chance are they different for the TX49 family? If the icache line is longer than the dcache line, there should be no functional problem, just some wasted cycles. But if the dcache line were, say, twice the length of the Icache line, only half of the icache lines would be invalidated...

Quoted 4 lines

Regards,

Kevin K.

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar � get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/