From owner-freebsd-current@FreeBSD.ORG Sat Jun 13 14:33:05 2015 Return-Path: Delivered-To: current@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D587581C; Sat, 13 Jun 2015 14:33:05 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id AA9065EA; Sat, 13 Jun 2015 14:33:05 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (ppp121-45-248-228.lns20.per4.internode.on.net [121.45.248.228]) (authenticated bits=0) by vps1.elischer.org (8.14.9/8.14.9) with ESMTP id t5DEWnqC079851 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sat, 13 Jun 2015 07:32:52 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <557C3F0C.70900@freebsd.org> Date: Sat, 13 Jun 2015 22:32:44 +0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: "O'Connor, Daniel" CC: Maksim Yevmenkin , Andriy Gapon , "current@freebsd.org" Subject: Re: obtaining a minidump from panic() called from NMI handler References: <557B1905.80307@FreeBSD.org> <557C2D5F.4080005@freebsd.org> <3FCB93E6-40AA-4673-99F1-14CD145FFFAA@dons.net.au> In-Reply-To: <3FCB93E6-40AA-4673-99F1-14CD145FFFAA@dons.net.au> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jun 2015 14:33:05 -0000 On 6/13/15 10:01 PM, O'Connor, Daniel wrote: >> On 13 Jun 2015, at 09:17, Julian Elischer wrote: >> >>>> could it be that more than one CPUs get the NMI at the same time? >>> i guess, its possible. is there an easy way to check for that? >> hard code checks in the code so that all except the first do something different. >> (even only as a debug check).. like write to some location and loop... > How about just something to the effect of.. > if (curcpu != cpu0) > while (1) > ; well, use 'pause' in the loop to save power. or even halt maybe.. (whatever the idle loop uses) and write something to an array ( stopped_by_nmi[curcpu-index] ) on entering the code so the base processor can see what processors entered it. (names not correct) > > -- > Daniel O'Connor > "The nice thing about standards is that there > are so many of them to choose from." > -- Andrew Tanenbaum > GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C > > > >