From owner-freebsd-smp Thu Apr 27 20:23: 4 2000 Delivered-To: freebsd-smp@freebsd.org Received: from mail.rdc1.sdca.home.com (ha1.rdc1.sdca.home.com [24.0.3.66]) by hub.freebsd.org (Postfix) with ESMTP id 27E2E37B7EB for ; Thu, 27 Apr 2000 20:23:02 -0700 (PDT) (envelope-from jgowdy@home.com) Received: from cx443070a ([24.4.93.90]) by mail.rdc1.sdca.home.com (InterMail vM.4.01.02.00 201-229-116) with SMTP id <20000428032258.MBQX13130.mail.rdc1.sdca.home.com@cx443070a>; Thu, 27 Apr 2000 20:22:58 -0700 Message-ID: <007101bfb0c2$a6fce9c0$5a5d0418@vista1.sdca.home.com> From: "Jeremiah Gowdy" To: "Matthew Dillon" Cc: "Steve Passe" , "James Housley" , References: <200004271609.KAA24711@Ilsa.StevesCafe.com> <001d01bfb070$12236b00$5a5d0418@vista1.sdca.home.com> <200004280142.SAA07744@apollo.backplane.com> Subject: Re: hlt instructions and temperature issues Date: Thu, 27 Apr 2000 20:34:25 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4132.1800 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4132.1800 Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org You said: > Umm... where'd you get the above code? This is not the current > halt code for 3.x, 4.x, or 5.x. That code was in : > Luoqi Chen wrote: > > > > Index: swtch.s > > =================================================================== > > RCS file: /home/ncvs/src/sys/i386/i386/swtch.s,v > > retrieving revision 1.91 > > diff -u -r1.91 swtch.s > > --- swtch.s 2000/03/29 06:15:38 1.91 > > +++ swtch.s 2000/04/27 15:31:11 > > @@ -258,9 +258,14 @@ > > > > ENTRY(default_halt) > > sti > > -#ifndef SMP > > - hlt /* XXX: until a wakeup IPI */ > > +#ifdef SMP > > +#ifdef CHEAP_TPR > > + movl $0, lapic_tpr > > +#else > > + andl $~APIC_TPR_PRIO, lapic_tpr > > +#endif /** CHEAP_TPR */ > > #endif > > + hlt > > ret > > > I applied this patch to my 3.4-STABLE SMP cvs's yesterday afternoon. > According to healthd my temps were 44.5 and 38.5 for the CPUs. After > rebooting they cooled down to 32.0 and 30.0. > > I guess the next question is, "Is this seriously impacting > performance?" Personaly a small hit is okay. I was just saying that although he applied that patch to his SMP setup, and it should work (I'm assuming), if he were to distribute that code or something to others without SMP, it would double hlt on non-SMP setups. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message