From owner-freebsd-amd64@FreeBSD.ORG Sun Feb 10 07:10:02 2008 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB4B816A417 for ; Sun, 10 Feb 2008 07:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D3B4B13C457 for ; Sun, 10 Feb 2008 07:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1A7A25V074763 for ; Sun, 10 Feb 2008 07:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1A7A2tI074762; Sun, 10 Feb 2008 07:10:02 GMT (envelope-from gnats) Date: Sun, 10 Feb 2008 07:10:02 GMT Message-Id: <200802100710.m1A7A2tI074762@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org From: masatic@mbs.sphere.ne.jp (FUCHIGAMI Masachika) X-Mailman-Approved-At: Sun, 10 Feb 2008 12:15:32 +0000 Cc: Subject: Re: amd64/120202: [panic] kernel panic at start_all_aps, AP not starts X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FUCHIGAMI Masachika List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Feb 2008 07:10:03 -0000 The following reply was made to PR amd64/120202; it has been noted by GNATS. From: masatic@mbs.sphere.ne.jp (FUCHIGAMI Masachika) To: bug-followup@FreeBSD.org Cc: Subject: Re: amd64/120202: [panic] kernel panic at start_all_aps, AP not starts Date: Sun, 10 Feb 2008 16:04:04 +0900 I found following patch works well. IMHO, AP does not accept SIPI because the core shutdowns or send SIPI to itself in BIOS bootup code. So, i modify the code to send SIPI before AP closes its ears. -- *** mp_machdep.c.orig Mon Oct 8 21:51:01 2007 --- mp_machdep.c Fri Feb 8 22:34:41 2008 *************** *** 788,796 **** --- 788,798 ---- lapic_ipi_raw(APIC_DEST_ALLESELF | APIC_TRIGMOD_LEVEL | APIC_LEVEL_DEASSERT | APIC_DESTMODE_PHY | APIC_DELMODE_INIT, 0); /* wait for pending status end */ + #if 0 DELAY(10000); /* wait ~10mS */ + #endif lapic_ipi_wait(-1); /* * next we do a STARTUP IPI: the previous INIT IPI might still be