From owner-p4-projects@FreeBSD.ORG Fri May 5 03:47:56 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 24DD216A405; Fri, 5 May 2006 03:47:56 +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 E160616A403 for ; Fri, 5 May 2006 03:47:55 +0000 (UTC) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE39343D45 for ; Fri, 5 May 2006 03:47:55 +0000 (GMT) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k453ltVg047167 for ; Fri, 5 May 2006 03:47:55 GMT (envelope-from kmacy@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k453ltN9047164 for perforce@freebsd.org; Fri, 5 May 2006 03:47:55 GMT (envelope-from kmacy@freebsd.org) Date: Fri, 5 May 2006 03:47:55 GMT Message-Id: <200605050347.k453ltN9047164@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to kmacy@freebsd.org using -f From: Kip Macy To: Perforce Change Reviews Cc: Subject: PERFORCE change 96681 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: Fri, 05 May 2006 03:47:58 -0000 http://perforce.freebsd.org/chv.cgi?CH=96681 Change 96681 by kmacy@kmacy_storage:sun4v_rwbuf on 2006/05/05 03:47:52 don't set a low MP_TICK_QUALITY on sun4v improve pstate panic message in idle Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/machdep.c#21 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/machdep.c#21 (text+ko) ==== @@ -144,7 +144,16 @@ */ #define UP_TICK_QUALITY 1000 +#ifdef SUN4V +#define MP_TICK_QUALITY 1000 +#else #define MP_TICK_QUALITY -100 +#endif + + + + + static struct timecounter tick_tc; char sparc64_model[32]; @@ -264,6 +273,7 @@ if (td->td_md.md_spinlock_count == 0) { intr_restore(td->td_md.md_saved_pil); } + } unsigned @@ -628,8 +638,8 @@ critical_enter(); if ((tf->tf_fprs & FPRS_FEF) != 0) { savefpctx(pcb->pcb_ufp); + pcb->pcb_flags |= PCB_FEF; tf->tf_fprs &= ~FPRS_FEF; - pcb->pcb_flags |= PCB_FEF; } if ((pcb->pcb_flags & PCB_FEF) != 0) { bcopy(pcb->pcb_ufp, mc->mc_fp, sizeof(mc->mc_fp)); @@ -738,7 +748,7 @@ if (rdpr(pil) != 0) panic("pil in cpu_idle not 0 - %ld", rdpr(pil)); if (rdpr(pstate) != 0x16) - panic("interrupts disabled in cpu_idle %ld", rdpr(pstate)); + panic("interrupts disabled in cpu_idle 0x%lx", rdpr(pstate)); /* XXX heinous hack begin*/ cpu_yield(); @@ -795,6 +805,7 @@ tf->tf_out[0] = stack; tf->tf_out[3] = p->p_sysent->sv_psstrings; tf->tf_out[6] = sp - SPOFF - sizeof(struct frame); + tf->tf_tnpc = entry + 4; tf->tf_tpc = entry; tf->tf_tstate = TSTATE_IE | TSTATE_PEF | TSTATE_MM_TSO;