Message-Id: <20010402002232.Postino-025103@smtp01.highway.ne.jp> Date: Mon, 2 Apr 2001 00:22:32 +0900 To: Benjamin Herrenschmidt Cc: paulus@samba.org, cort@fsmlabs.com, From: Kaoru Fukui Subject: Re: Fwd: CPU features In-Reply-To: <20010401150348.13545@smtp.wanadoo.fr> References: <20010401213009.Postino-020381@smtp01.highway.ne.jp> <20010401150348.13545@smtp.wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-linuxppc-dev@lists.linuxppc.org List-Id: From: Benjamin Herrenschmidt To: Kaoru Fukui Subject: Re: Fwd: CPU features Date: Sun, 1 Apr 2001 17:03:48 +0200 > >I tried your tree as SMP-kernel which has also spin_lock problem. > >All recent kernel sources have spin_lock problem. > > > BTW, Can you email paulus (paulus@samba.org) and cort (cort@fsmlabs.com) > about this spinlock problem ? > Hi Thanks your great kernel works. Recently kernel source has spin_lock problem. I needed the patch for kernel-2.4.3.pre8-SMP on Dual G4. Kernel Guys, Please look the patch or Please Look this problem. Kaoru -------- this patch is needed for SMP kernel-2.4.3.pre8 --------- diff -urN base/arch/ppc/mm/init.c fixed/arch/ppc/mm/init.c --- base/arch/ppc/mm/init.c Thu Mar 29 06:02:35 2001 +++ fixed/arch/ppc/mm/init.c Fri Mar 30 05:51:16 2001 @@ -437,12 +437,15 @@ /* * Should check if it is a candidate for a BAT mapping */ - +#ifndef CONFIG_SMP spin_lock(&init_mm.page_table_lock); +#endif err = 0; for (i = 0; i < size && err == 0; i += PAGE_SIZE) err = map_page(v+i, p+i, flags); +#ifndef CONFIG_SMP spin_unlock(&init_mm.page_table_lock); +#endif if (err) { if (mem_init_done) vfree((void *)v); diff -urN base/mm/memory.c fixed/mm/memory.c --- base/mm/memory.c Thu Mar 29 09:22:35 2001 +++ fixed/mm/memory.c Fri Mar 30 05:52:17 2001 @@ -1320,9 +1320,13 @@ /* "fast" allocation can happen without dropping the lock.. */ new = pte_alloc_one_fast(address); if (!new) { +#ifndef CONFIG_SMP spin_unlock(&mm->page_table_lock); +#endif new = pte_alloc_one(address); +#ifndef CONFIG_SMP spin_lock(&mm->page_table_lock); +#endif if (!new) return NULL; ---------- END ------------- > > This is booing message when kernel-2.4.3pre8-SMP. > > > > > > TCP: Hash tables configured (established 8192 bind 8192) > > ip_conntrack(2048 buckets,16384 max) > > _spin_lock(c02cc470) CPU# 1 NIP c0033404 holder: cpu 1 pc C002B384 > > _spin_lock(c02ce740) CPU# 0 NIP c0015890 holder: cpu 1 pc C0015890 > Can you look at your system.map for that kernel and tell me what is at > addresses: > This is getton data from system.map > c00153b0 T schedule_tail > > c0015a4c T __wake_up > > c002b28c T pte_alloc > > c002b3d8 T make_pages_present > > c02cc42c D init_mm > > c02cc4d0 D init_task_union > > c02ce738 d null_pci_ops > > c02ce750 D kernel_flag > ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/