All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sparc32: max_cache_size fallback
@ 2006-08-12 19:14 Krzysztof Helt
  2006-08-25 23:24 ` David Miller
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Krzysztof Helt @ 2006-08-12 19:14 UTC (permalink / raw)
  To: sparclinux

[-- Attachment #1: Type: text/plain, Size: 601 bytes --]

From: Krzysztof Helt (krzysztof.h1@wp.pl)

It adds a fallback for CPU cache size detection. According to Sun
documentation, it is possible to have SMP system with SM40 modules.

Signed-off-by: Krzysztof Helt (krzysztof.h1@wp.pl)
---

It is added after sparc64 architecture.

Regards,
Krzysztof

----------------------------------------------------
Pensjonat Albatros? wypoczynek w pięknym zakątku Władysławowa.
O krok od plaży, atrakcyjne ceny, dobrze wyposażone pokoje.
Czegóż chcieć więcej? Zapamiętaj: albatros.gda.pl - Kliknij:
http://klik.wp.pl/?adr=www.albatros.gda.pl&sid=841

[-- Attachment #2: sparc32-max-cache-fix.patch --]
[-- Type: application/octet-stream, Size: 646 bytes --]

diff -urp linux-2.6.17/arch/sparc/kernel/smp.c linux-new/arch/sparc/kernel/smp.c
--- linux-2.6.17/arch/sparc/kernel/smp.c	2006-08-10 08:58:31.000000000 +0200
+++ linux-new/arch/sparc/kernel/smp.c	2006-08-12 19:11:20.000000000 +0200
@@ -79,6 +78,9 @@ void __cpuinit smp_store_cpu_info(int id
 		cache_nlines = 0x8000;
 		cache_nlines = prom_getintdefault(cpu_node, "ecache-nlines", cache_nlines);
 		max_cache_size = cache_line * cache_nlines;
+		/* this is for SM40 SuperSparc modules */
+		if (max_cache_size == 0)
+			max_cache_size = 36 * 1024;
 	}
 	if (cpu_data(id).mid < 0)
 		panic("No MID found for CPU%d at node 0x%08d", id, cpu_node);


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

end of thread, other threads:[~2006-08-28 18:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2006-08-26 23:48 ` David Miller
2006-08-28 18:33 ` Krzysztof Helt

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.