Date: Fri, 5 May 2006 03:47:55 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 96681 for review Message-ID: <200605050347.k453ltN9047164@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605050347.k453ltN9047164>