From owner-freebsd-sparc64@FreeBSD.ORG Sun Feb 5 11:38:45 2006 Return-Path: X-Original-To: freebsd-sparc64@freebsd.org Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFC9416A420 for ; Sun, 5 Feb 2006 11:38:45 +0000 (GMT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (newtrinity.zeist.de [217.24.217.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CB8243D53 for ; Sun, 5 Feb 2006 11:38:44 +0000 (GMT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (localhost [127.0.0.1]) by newtrinity.zeist.de (8.12.11/8.12.11/ZEIST.DE) with ESMTP id k15Bchnw005872; Sun, 5 Feb 2006 12:38:43 +0100 (CET) (envelope-from marius@newtrinity.zeist.de) Received: (from marius@localhost) by newtrinity.zeist.de (8.12.11/8.12.10/Submit) id k15Bccfe005871; Sun, 5 Feb 2006 12:38:38 +0100 (CET) (envelope-from marius) Date: Sun, 5 Feb 2006 12:38:38 +0100 From: Marius Strobl To: Andrew Belashov Message-ID: <20060205123838.A5136@newtrinity.zeist.de> References: <43E3B35B.90409@unixfreak.org> <1138996676.26027.16.camel@lmail.bathnetworks.co.uk> <43E48DC2.3050904@orel.ru> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="zYM0uCDKw75PZbzx" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <43E48DC2.3050904@orel.ru>; from bel@orel.ru on Sat, Feb 04, 2006 at 02:19:30PM +0300 X-AntiVirus-modified: yes X-AntiVirus: checked by AntiVir Milter (version: 1.1.2-1; AVE: 6.33.0.31; VDF: 6.33.0.204; host: newtrinity.zeist.de) Cc: freebsd-sparc64@freebsd.org Subject: Re: some questions X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Feb 2006 11:38:45 -0000 --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Feb 04, 2006 at 02:19:30PM +0300, Andrew Belashov wrote: > > My system have two hacks, related to following problems: > > 1. SMP kernel panic: ipi_send: couldn't send ipi > > (src/sys/sparc64/include/smp.h v1.17 does not resolve problem, > I bump IPI_RETRIES to high value). > Could you please try whether the attached patch fixes this (using the original value for IPI_RETRIES)? Marius -- This mail was scanned by AntiVir Milter. This product is licensed for non-commercial use. See www.antivir.de for details. --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="mp_mackdep.c.diff" Index: mp_machdep.c =================================================================== RCS file: /mnt/futile/usr/data/bsd/cvs/fbsd/src/sys/sparc64/sparc64/mp_machdep.c,v retrieving revision 1.30 diff -u -r1.30 mp_machdep.c --- mp_machdep.c 3 Nov 2005 21:08:20 -0000 1.30 +++ mp_machdep.c 5 Feb 2006 11:04:21 -0000 @@ -87,6 +87,7 @@ #include #include #include +#include static ih_func_t cpu_ipi_ast; static ih_func_t cpu_ipi_stop; @@ -438,6 +439,10 @@ stxa(AA_SDB_INTR_D1, ASI_SDB_INTR_W, d1); stxa(AA_SDB_INTR_D2, ASI_SDB_INTR_W, d2); stxa(AA_INTR_SEND | (mid << 14), ASI_SDB_INTR_W, 0); + if (cpu_impl < CPU_IMPL_ULTRASPARCIII) { + membar(Sync); + (void)ldxa(0x20, ASI_SDB_INTR_R); + } membar(Sync); while (ldxa(0, ASI_INTR_DISPATCH_STATUS) & IDR_BUSY) ; --zYM0uCDKw75PZbzx--