From owner-freebsd-arch@FreeBSD.ORG Wed Mar 12 22:23:12 2008 Return-Path: Delivered-To: arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B143A1065673 for ; Wed, 12 Mar 2008 22:23:12 +0000 (UTC) (envelope-from jroberson@chesapeake.net) Received: from webaccess-cl.virtdom.com (webaccess-cl.virtdom.com [216.240.101.25]) by mx1.freebsd.org (Postfix) with ESMTP id 7EB7A8FC14 for ; Wed, 12 Mar 2008 22:23:12 +0000 (UTC) (envelope-from jroberson@chesapeake.net) Received: from [192.168.1.107] (cpe-24-94-75-93.hawaii.res.rr.com [24.94.75.93]) (authenticated bits=0) by webaccess-cl.virtdom.com (8.13.6/8.13.6) with ESMTP id m2CMN5VK077024; Wed, 12 Mar 2008 18:23:11 -0400 (EDT) (envelope-from jroberson@chesapeake.net) Date: Wed, 12 Mar 2008 12:24:07 -1000 (HST) From: Jeff Roberson X-X-Sender: jroberson@desktop To: Gary Jennejohn In-Reply-To: <20080312110229.5aeefc1f@peedub.jennejohn.org> Message-ID: <20080312122300.Y1091@desktop> References: <20080310161115.X1091@desktop> <47D758AC.2020605@freebsd.org> <20080312110229.5aeefc1f@peedub.jennejohn.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: arch@FreeBSD.org Subject: Re: amd64 cpu_switch in C. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Mar 2008 22:23:12 -0000 On Wed, 12 Mar 2008, Gary Jennejohn wrote: > On Wed, 12 Mar 2008 12:14:36 +0800 > David Xu wrote: > >> Jeff Roberson wrote: >>> http://people.freebsd.org/~jeff/amd64.diff >> >> This is a good idea. In fact, according to calling conversion, some >> registers are not needed to be saved across function call, e.g on >> i386, eax, edx, and ecx. :-) but gdb may need them to dig out >> stack variable's value. >> > > I applied this patch yesterday on an AMD64 X2 box and got this panic > today after I started X: > > Unread portion of the kernel message buffer: > panic: smp_tlb_shootdown: interrupts disabled > cpuid = 0 > Uptime: 47s > Physical memory: 3062 MB > Dumping 169 MB: 154 138 122 106 90 74 58 42 26 10 > > That's all the useful information which I have because the back trace > is corrupted. > > BTW I'm using SCHED_ULE. > > Maybe I shouldn't have tried this patch yet since it doesn't seem to be SMP > ready. Thanks for testing. I just ran into that panic myself. I don't think it's a SMP problem. In general things on arch@ are sometimes more experimental than things we mail to to current@ asking for people to test. Thanks, Jeff > > --- > Gary Jennejohn >