From owner-p4-projects@FreeBSD.ORG Thu Aug 3 04:31:37 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 7A44116A4E0; Thu, 3 Aug 2006 04:31:37 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F22A16A4DE for ; Thu, 3 Aug 2006 04:31:37 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18E5043D45 for ; Thu, 3 Aug 2006 04:31:37 +0000 (GMT) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k734Va2S056973 for ; Thu, 3 Aug 2006 04:31:36 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k734Va13056970 for perforce@freebsd.org; Thu, 3 Aug 2006 04:31:36 GMT (envelope-from jb@freebsd.org) Date: Thu, 3 Aug 2006 04:31:36 GMT Message-Id: <200608030431.k734Va13056970@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jb@freebsd.org using -f From: John Birrell To: Perforce Change Reviews Cc: Subject: PERFORCE change 103092 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Aug 2006 04:31:37 -0000 http://perforce.freebsd.org/chv.cgi?CH=103092 Change 103092 by jb@jb_freebsd2 on 2006/08/03 04:31:05 Save a few more registers as part of the debug information. These (finally) give us enough information to understand what is going on when a CPU goes of into the weeds. It is doing it because of a double trap caused by the curthread pointer in the per-cpu structure going bad (for a reason which hasn't been determined yet). Affected files ... .. //depot/projects/dtrace/src/sys/sun4v/sun4v/interrupt.S#5 edit Differences ... ==== //depot/projects/dtrace/src/sys/sun4v/sun4v/interrupt.S#5 (text+ko) ==== @@ -448,6 +448,18 @@ rdpr %tick, %g4 stxa %g4, [PCPU(PAD) + 8]%asi + /* pcpu->pad[3] = %tl */ + rdpr %tl, %g4 + stxa %g4, [PCPU(PAD) + 24]%asi + + /* pcpu->pad[4] = %tpc */ + rdpr %tpc, %g4 + stxa %g4, [PCPU(PAD) + 32]%asi + + /* pcpu->pad[5] = %tnpc */ + rdpr %tnpc, %g4 + stxa %g4, [PCPU(PAD) + 40]%asi + /* * Increment a counter which might help us notice if we're * stuck in a loop. pcpu->pad[2] = count