From: "Krzysztof Helt" <krzysztof.h1@wp.pl>
To: sparclinux@vger.kernel.org
Subject: Re: [PATCH] sparc32: max_cache_size fallback
Date: Sat, 26 Aug 2006 08:59:23 +0000 [thread overview]
Message-ID: <44f00d6b8b482@wp.pl> (raw)
In-Reply-To: <44de28a4e7531@wp.pl>
Dnia 26-08-2006 o godz. 1:24 David Miller napisa³(a):
> This new fallback is "36 * 1024", ie. 36K? That doesn't make any
> sense. I thought the smallest SM40 cache size was 512K or
something
> like that.
>
According to the documentation I found ("Supersparc II Addendum"
by Sun), the Supersparc processors have 20KB instruction cache
and 16 KB data cache on CPU. The SMX0 modules were modules
without the L2 cache so only cache on CPU is counted.
That max_cache_size counting procedure counts only L2 cache as it
is much bigger than L1. Thus for SMX0 modules it may give 0 (I
have no such SMP machine to test). At least one SMP configuration
was sold with such CPUs - it was called SparcStation 10/402 (it
can be found mentioned on specrate listings).
I peeked into the i386 code and found that for original Pentium
the max_cache_size is set to 16KB. The Pentium has 8KB
instruction cache and 8KB data cache (both L1 as it has no L2 on
he CPU). So I did the same for the Supersparcs.
> If anything it should be a power of two, not some weird number
> like 36K.
I added 20KB and 16Kb and got 36KB total cache size.
Regards,
Krzysztof
----------------------------------------------------
Za³ó¿ konto. Przelewy - 0z³. Darmowe konto oszczêdno¶ciowe - 3,25%!
Sprawd¼ i wygraj Toyotê Aygo! >> Kliknij:
http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fing22.html&sid…4
next prev parent reply other threads:[~2006-08-26 8:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-12 19:14 [PATCH] sparc32: max_cache_size fallback Krzysztof Helt
2006-08-25 23:24 ` David Miller
2006-08-26 8:59 ` Krzysztof Helt [this message]
2006-08-26 23:48 ` David Miller
2006-08-28 18:33 ` Krzysztof Helt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44f00d6b8b482@wp.pl \
--to=krzysztof.h1@wp.pl \
--cc=sparclinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.