From owner-freebsd-smp@FreeBSD.ORG Sun Apr 27 04:21:21 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DC4537B404 for ; Sun, 27 Apr 2003 04:21:17 -0700 (PDT) Received: from mocha.cable.nu (CPE-144-132-13-112.vic.bigpond.net.au [144.132.13.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CAE543FDD for ; Sun, 27 Apr 2003 04:21:16 -0700 (PDT) (envelope-from joynt@bigpond.net.au) Received: from mocha.cable.nu (localhost [127.0.0.1]) by mocha.cable.nu (8.12.8p1/8.12.8) with ESMTP id h3RBLoT7090957 for ; Sun, 27 Apr 2003 21:21:50 +1000 (EST) (envelope-from joynt@bigpond.net.au) Received: from localhost (joynt@localhost)h3RBLo2L090954 for ; Sun, 27 Apr 2003 21:21:50 +1000 (EST) X-Authentication-Warning: mocha.cable.nu: joynt owned process doing -bs Date: Sun, 27 Apr 2003 21:21:50 +1000 (EST) From: Steve Joynt X-X-Sender: joynt@mocha.cable.nu To: freebsd-smp@freebsd.org Message-ID: <20030427211339.Y90915@mocha.cable.nu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: HTT in 4.8-STABLE X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Apr 2003 11:21:22 -0000 Hi, I need a few pointers on what I should be doing to get Hyperthreading working in my 4.8-STABLE system (cvsuped this afternoon). With a standard (i.e. no SMP) kernel, it boots ok and I get the following: CPU: Intel(R) Pentium(R) 4 CPU 3.06GHz (3073.65-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf27 Stepping = 7 Features=0xbfebfbff Hyperthreading: 2 logical CPUs Then when I add the lines: options SMP options APIC_IO options HTT to my kernel config, it panics on boot, with the following: panic: pmap_bootstrap: no local apic! mp_lock = 0000000c; cpuid = 0; lapic.id = 00000000 Should I even be trying to enable SMP since I only have a single physical CPU? HTT is enabled in the bios (hence it's detected in the non-SMP kernel), so I thought that should be enough to get it going. The motherboard is an ASUS P4PE (Intel 845PE chiset). thanks, - Steve From owner-freebsd-smp@FreeBSD.ORG Sun Apr 27 11:35:40 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C80137B401 for ; Sun, 27 Apr 2003 11:35:40 -0700 (PDT) Received: from planet.alastria.net (planet.alastria.net [66.111.42.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF6E343F85 for ; Sun, 27 Apr 2003 11:35:39 -0700 (PDT) (envelope-from peter@alastria.net) Received: from CAESIUM.hilbre.org.uk (m6-mp1.n06.man.dial.ntli.net [217.137.177.6] (may be forged)) by planet.alastria.net (8.12.8p1/8.12.8) with SMTP id h3RIZagD026493 for ; Sun, 27 Apr 2003 19:35:37 +0100 (BST) (envelope-from peter@alastria.net) From: Peter Wood To: freebsd-smp@freebsd.org Date: Sun, 27 Apr 2003 19:35:39 +0100 Organization: Alastria Networks Message-ID: X-Mailer: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, hits=-2.2 required=7.5 tests=NOSPAM_INC,SPAM_PHRASE_00_01 version=2.41 Subject: machdep.cpu_idle_hlt on a Dual AMD 2000+ MP X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Apr 2003 18:35:40 -0000 Afternoon, I was reading all the threads regarding hyperthreading, and descovered = that machdep.cpu_idle_hlt is set to 0 by default on SMP machines and 1 on uniprocessor machines. I've change it to 1 on my dual machine, and so far it appears stable. I = have noticed that the CPU tempratures appear to be lower now, possibly a coincidence as the servers load may have been changing. Should I expect = it to be lower? Also should I expect to see any performance loss, or instability? Does = anyone know the original reason for setting the defaults this way? Just curious, Have a good one, Peter. --=20 Peter Wood :: Tel +44 7974 799440 From owner-freebsd-smp@FreeBSD.ORG Sun Apr 27 13:16:52 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B229337B401 for ; Sun, 27 Apr 2003 13:16:52 -0700 (PDT) Received: from rms21.rommon.net (rms21.rommon.net [193.64.42.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41CC743FA3 for ; Sun, 27 Apr 2003 13:16:51 -0700 (PDT) (envelope-from pete@he.iki.fi) Received: from PHE (h93.vuokselantie10.fi [193.64.42.147]) by rms21.rommon.net (8.12.6p2/8.12.6) with SMTP id h3RKGbiZ075777; Sun, 27 Apr 2003 23:16:38 +0300 (EEST) (envelope-from pete@he.iki.fi) Message-ID: <049101c30cf9$fedef340$932a40c1@PHE> From: "Petri Helenius" To: "Peter Wood" , References: Date: Sun, 27 Apr 2003 23:17:14 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: machdep.cpu_idle_hlt on a Dual AMD 2000+ MP X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Apr 2003 20:16:53 -0000 >I've change it to 1 on my dual machine, and so far it appears stable. I have >noticed that the CPU tempratures appear to be lower now, possibly a >coincidence as the servers load may have been changing. Should I expect it to >be lower? Yes, because instead of running full steam in busyloop, you´re stopping the CPU. >Also should I expect to see any performance loss, or instability? Does anyone >know the original reason for setting the defaults this way? If a process wakes up there might be a scheduling latency up to one HZ tick if you have HLT enabled on SMP. This is documented at least on the comments on the source. Pete From owner-freebsd-smp@FreeBSD.ORG Sun Apr 27 14:24:28 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B556437B401 for ; Sun, 27 Apr 2003 14:24:28 -0700 (PDT) Received: from mx1.ovh.net (b4.ovh.net [213.186.33.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4032443FD7 for ; Sun, 27 Apr 2003 14:24:27 -0700 (PDT) (envelope-from sgault@hqservers.com) Received: (qmail 1144 invoked by uid 503); 27 Apr 2003 21:24:02 -0000 Received: from unknown (HELO legautch) (81.220.26.39) by ns0.ovh.net with SMTP; 27 Apr 2003 21:24:02 -0000 Message-ID: <001001c30d03$54e62de0$0c0aa8c0@legautch> From: "gault" To: Date: Sun, 27 Apr 2003 23:24:03 +0200 Organization: HQserver MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: machdep.cpu_idle_hlt X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Apr 2003 21:24:29 -0000 Hi there, Where do you find this option and how do you enable it ? = (machdep.cpu_idle_hlt ) is it the hyperthreading stuff ? Thx Regards, SGault From owner-freebsd-smp@FreeBSD.ORG Sun Apr 27 14:50:07 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E89C37B401 for ; Sun, 27 Apr 2003 14:50:07 -0700 (PDT) Received: from freesbee.wheel.dk (freesbee.wheel.dk [193.162.159.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id F038143FA3 for ; Sun, 27 Apr 2003 14:50:05 -0700 (PDT) (envelope-from jesper@skriver.dk) Received: by freesbee.wheel.dk (Postfix, from userid 1001) id E502638506; Sun, 27 Apr 2003 23:50:04 +0200 (CEST) Date: Sun, 27 Apr 2003 23:50:04 +0200 From: Jesper Skriver To: Peter Wood Message-ID: <20030427215004.GA98202@FreeBSD.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-PGP-Fingerprint: 6B88 9CE8 66E9 E631 C9C5 5EB4 22AB F0EC F956 1C31 X-PGP-Public-Key: http://freesbee.wheel.dk/~jesper/gpgkey.pub cc: freebsd-smp@freebsd.org Subject: Re: machdep.cpu_idle_hlt on a Dual AMD 2000+ MP X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Apr 2003 21:50:07 -0000 On Sun, Apr 27, 2003 at 07:35:39PM +0100, Peter Wood wrote: > Afternoon, > > I was reading all the threads regarding hyperthreading, and descovered that > machdep.cpu_idle_hlt is set to 0 by default on SMP machines and 1 on > uniprocessor machines. > > I've change it to 1 on my dual machine, and so far it appears stable. I have > noticed that the CPU tempratures appear to be lower now, possibly a > coincidence as the servers load may have been changing. Should I expect it to > be lower? Yes, you should expect the temperature and power usage to be lower. > Also should I expect to see any performance loss, or instability? Does anyone > know the original reason for setting the defaults this way? There is a slight performance loss on SMP systems, this is the reason for the default. /Jesper -- Jesper Skriver, jesper(at)skriver(dot)dk - CCIE #5456 One Unix to rule them all, One Resolver to find them, One IP to bring them all and in the zone to bind them. From owner-freebsd-smp@FreeBSD.ORG Sun Apr 27 14:52:28 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5335537B401 for ; Sun, 27 Apr 2003 14:52:28 -0700 (PDT) Received: from ztxmail04.ztx.compaq.com (ztxmail04.ztx.compaq.com [161.114.1.208]) by mx1.FreeBSD.org (Postfix) with ESMTP id B306643F75 for ; Sun, 27 Apr 2003 14:52:27 -0700 (PDT) (envelope-from john.cagle@hp.com) Received: from cceexg12.americas.cpqcorp.net (cceexg12.americas.cpqcorp.net [16.110.250.124]) by ztxmail04.ztx.compaq.com (Postfix) with ESMTP id 49A6DB433; Sun, 27 Apr 2003 16:52:27 -0500 (CDT) Received: from cceexc19.americas.cpqcorp.net ([16.110.250.85]) by cceexg12.americas.cpqcorp.net with Microsoft SMTPSVC(5.0.2195.6673); Sun, 27 Apr 2003 16:52:26 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Sun, 27 Apr 2003 16:52:26 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: machdep.cpu_idle_hlt Thread-Index: AcMNA2mHSlIHwcXBQxKFZS1TG9dfaQAA5PCA From: "Cagle, John (ISS-Houston)" To: "gault" , X-OriginalArrivalTime: 27 Apr 2003 21:52:27.0095 (UTC) FILETIME=[4B035E70:01C30D07] Subject: RE: machdep.cpu_idle_hlt X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Apr 2003 21:52:28 -0000 "sysctl -a" will show you all the available options. "sysctl machdep.cpu_idle_hlt=3D1" is how you enable it. > -----Original Message----- > From: gault [mailto:sgault@hqservers.com]=20 > Sent: Sunday, April 27, 2003 4:24 PM > To: freebsd-smp@freebsd.org > Subject: machdep.cpu_idle_hlt=20 >=20 >=20 > Hi there, >=20 > Where do you find this option and how do you enable it ?=20 > (machdep.cpu_idle_hlt ) is it the hyperthreading stuff ? >=20 > Thx >=20 > Regards, >=20 > SGault > _______________________________________________ > freebsd-smp@freebsd.org mailing list=20 > http://lists.freebsd.org/mailman/listinfo/free> bsd-smp > To=20 > unsubscribe, send any mail to=20 > "freebsd-smp-unsubscribe@freebsd.org" >=20 From owner-freebsd-smp@FreeBSD.ORG Sun Apr 27 16:10:51 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8485A37B401 for ; Sun, 27 Apr 2003 16:10:51 -0700 (PDT) Received: from maeko.hayai.de (denver038.server4free.de [217.172.178.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F72F43FDD for ; Sun, 27 Apr 2003 16:10:50 -0700 (PDT) (envelope-from mail@maeko.hayai.de) Received: from maeko.hayai.de (localhost [127.0.0.1]) by maeko.hayai.de (8.12.7/8.12.7) with ESMTP id h3RNB3rW027448 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO) for ; Mon, 28 Apr 2003 01:11:04 +0200 Received: (from mail@localhost) by maeko.hayai.de (8.12.7/8.12.7/Submit) id h3RNB30m027447 for freebsd-smp@freebsd.org; Mon, 28 Apr 2003 01:11:03 +0200 Date: Mon, 28 Apr 2003 01:11:03 +0200 From: Marco Wertejuk To: freebsd-smp@freebsd.org Message-ID: <20030427231103.GA27413@maeko> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: current smp on primergy p200 / i386/39234 X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Apr 2003 23:10:51 -0000 Hi there, I was installing Current on a Fujitsu Siemens Primergy P200 running a SMP configuration and I need the same patch as described in http://www.freebsd.org/cgi/query-pr.cgi?pr=i386/39234 After patching the mp_machdep.c the system works fine, but I don't see the point, why this always has to be patched manually. Is there a reason, why this haven't already been commited? -- Mit freundlichen Gruessen, Marco Wertejuk - mwcis.com Consulting & Internet Solutions From owner-freebsd-smp@FreeBSD.ORG Sun Apr 27 16:25:25 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C10F137B401 for ; Sun, 27 Apr 2003 16:25:25 -0700 (PDT) Received: from arthur.nitro.dk (port324.ds1-khk.adsl.cybercity.dk [212.242.113.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 307D143FBF for ; Sun, 27 Apr 2003 16:25:24 -0700 (PDT) (envelope-from simon@arthur.nitro.dk) Received: by arthur.nitro.dk (Postfix, from userid 1000) id 4BD5E10BF86; Mon, 28 Apr 2003 01:25:23 +0200 (CEST) Date: Mon, 28 Apr 2003 01:25:23 +0200 From: "Simon L. Nielsen" To: Marco Wertejuk Message-ID: <20030427232522.GC400@nitro.dk> References: <20030427231103.GA27413@maeko> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+g7M9IMkV8truYOl" Content-Disposition: inline In-Reply-To: <20030427231103.GA27413@maeko> User-Agent: Mutt/1.5.4i cc: freebsd-smp@freebsd.org Subject: Re: current smp on primergy p200 / i386/39234 X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Apr 2003 23:25:26 -0000 --+g7M9IMkV8truYOl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2003.04.28 01:11:03 +0200, Marco Wertejuk wrote: > I was installing Current on a Fujitsu Siemens Primergy P200 > running a SMP configuration and I need the same patch as=20 > described in http://www.freebsd.org/cgi/query-pr.cgi?pr=3Di386/39234 >=20 > After patching the mp_machdep.c the system works fine, > but I don't see the point, why this always has to be > patched manually. >=20 > Is there a reason, why this haven't already been commited? Because it is only valid for the particular motherboard used in the FSC P200/C200 and would most likely break SMP for other motherboards. A "valid" patch would detect the problem (the hang) and the hack the APIC I/O ints table only in this case. This is my understanding of the issue anyway. I don't know enough about the FreeBSD kernel yet to do a proper patch. --=20 Simon L. Nielsen --+g7M9IMkV8truYOl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+rGbi8kocFXgPTRwRAn9rAJ94dyxeSLmm+Os+Tx7YXLnj8r7iPwCgsF7R YnuqF4w0hcgaRD7UBVD8l7o= =ukgm -----END PGP SIGNATURE----- --+g7M9IMkV8truYOl-- From owner-freebsd-smp@FreeBSD.ORG Mon Apr 28 06:41:19 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F67F37B401 for ; Mon, 28 Apr 2003 06:41:19 -0700 (PDT) Received: from scribble.fsn.hu (scribble.fsn.hu [193.224.40.95]) by mx1.FreeBSD.org (Postfix) with SMTP id B3AE843FB1 for ; Mon, 28 Apr 2003 06:41:17 -0700 (PDT) (envelope-from bra@fsn.hu) Received: (qmail 24407 invoked from network); 28 Apr 2003 13:41:15 -0000 Received: from localhost (HELO fsn.hu) (127.0.0.1) by localhost with SMTP; 28 Apr 2003 13:41:15 -0000 Message-ID: <3EAD2F7B.2090905@fsn.hu> Date: Mon, 28 Apr 2003 15:41:15 +0200 From: Attila Nagy Organization: Free Software Network Foundation - http://www.fsn.hu/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en, hu MIME-Version: 1.0 To: "Simon L. Nielsen" References: <20030427231103.GA27413@maeko> <20030427232522.GC400@nitro.dk> In-Reply-To: <20030427232522.GC400@nitro.dk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: Marco Wertejuk cc: freebsd-smp@freebsd.org Subject: Re: current smp on primergy p200 / i386/39234 X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2003 13:41:19 -0000 Simon L. Nielsen wrote: > Because it is only valid for the particular motherboard used in the FSC > P200/C200 and would most likely break SMP for other motherboards. A > "valid" patch would detect the problem (the hang) and the hack the APIC > I/O ints table only in this case. FYI, FuSi F250 have a similar problem (didn't try your patch). It freezes during the startup if ACPI is loaded. -- Attila Nagy e-mail: Attila.Nagy@fsn.hu Free Software Network (FSN.HU) phone @work: +361 210 1415/127 ISOs: http://www.fsn.hu/?f=download cell.: +3630 306 6758 From owner-freebsd-smp@FreeBSD.ORG Mon Apr 28 06:43:41 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C57137B401 for ; Mon, 28 Apr 2003 06:43:41 -0700 (PDT) Received: from scribble.fsn.hu (scribble.fsn.hu [193.224.40.95]) by mx1.FreeBSD.org (Postfix) with SMTP id CD6F643F3F for ; Mon, 28 Apr 2003 06:43:37 -0700 (PDT) (envelope-from bra@fsn.hu) Received: (qmail 24446 invoked from network); 28 Apr 2003 13:43:36 -0000 Received: from localhost (HELO fsn.hu) (127.0.0.1) by localhost with SMTP; 28 Apr 2003 13:43:36 -0000 Message-ID: <3EAD3008.4060304@fsn.hu> Date: Mon, 28 Apr 2003 15:43:36 +0200 From: Attila Nagy Organization: Free Software Network Foundation - http://www.fsn.hu/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en, hu MIME-Version: 1.0 To: freebsd-smp@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Intel7501 X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2003 13:43:41 -0000 Hello, Given, that many folks have had problems with the Intel 7500 chipset, I like to ask if the 7501 is better. We plan to buy some machines with Intel Westville 2 motherboards which have the this chipset. Will this work with FreeBSD correctly? Thanks, -- Attila Nagy e-mail: Attila.Nagy@fsn.hu Free Software Network (FSN.HU) phone @work: +361 210 1415/127 ISOs: http://www.fsn.hu/?f=download cell.: +3630 306 6758 From owner-freebsd-smp@FreeBSD.ORG Mon Apr 28 07:10:33 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED20537B401 for ; Mon, 28 Apr 2003 07:10:33 -0700 (PDT) Received: from arthur.nitro.dk (port324.ds1-khk.adsl.cybercity.dk [212.242.113.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D90943F75 for ; Mon, 28 Apr 2003 07:10:33 -0700 (PDT) (envelope-from simon@arthur.nitro.dk) Received: by arthur.nitro.dk (Postfix, from userid 1000) id BFFCB10BF82; Mon, 28 Apr 2003 16:10:31 +0200 (CEST) Date: Mon, 28 Apr 2003 16:10:31 +0200 From: "Simon L. Nielsen" To: Attila Nagy Message-ID: <20030428141030.GK398@nitro.dk> References: <20030427231103.GA27413@maeko> <20030427232522.GC400@nitro.dk> <3EAD2F7B.2090905@fsn.hu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UHN/qo2QbUvPLonB" Content-Disposition: inline In-Reply-To: <3EAD2F7B.2090905@fsn.hu> User-Agent: Mutt/1.5.4i cc: Marco Wertejuk cc: freebsd-smp@freebsd.org Subject: Re: current smp on primergy p200 / i386/39234 X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2003 14:10:34 -0000 --UHN/qo2QbUvPLonB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2003.04.28 15:41:15 +0200, Attila Nagy wrote: > Simon L. Nielsen wrote: > >Because it is only valid for the particular motherboard used in the FSC > >P200/C200 and would most likely break SMP for other motherboards. A > >"valid" patch would detect the problem (the hang) and the hack the APIC > >I/O ints table only in this case. > FYI, FuSi F250 have a similar problem (didn't try your patch). It=20 > freezes during the startup if ACPI is loaded. Are you sure this is the same problem? I temporarily had a P250 and the problem it had with SMP was solved using 4.8 and adding HyperThreading support to the kernel. --=20 Simon L. Nielsen --UHN/qo2QbUvPLonB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+rTZW8kocFXgPTRwRAhTpAKCBiJ3ruTqgxeilFPygEnzrO0OfuQCbBYv6 THjGe5xIyo9Fymfrrt/6Cdg= =6zIU -----END PGP SIGNATURE----- --UHN/qo2QbUvPLonB-- From owner-freebsd-smp@FreeBSD.ORG Mon Apr 28 10:52:03 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C348337B401 for ; Mon, 28 Apr 2003 10:52:03 -0700 (PDT) Received: from scribble.fsn.hu (scribble.fsn.hu [193.224.40.95]) by mx1.FreeBSD.org (Postfix) with SMTP id 52F6543F3F for ; Mon, 28 Apr 2003 10:52:00 -0700 (PDT) (envelope-from bra@fsn.hu) Received: (qmail 28676 invoked from network); 28 Apr 2003 17:51:59 -0000 Received: from localhost (HELO fsn.hu) (127.0.0.1) by localhost with SMTP; 28 Apr 2003 17:51:59 -0000 Message-ID: <3EAD6A3E.1080406@fsn.hu> Date: Mon, 28 Apr 2003 19:51:58 +0200 From: Attila Nagy Organization: Free Software Network Foundation - http://www.fsn.hu/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en, hu MIME-Version: 1.0 To: "Simon L. Nielsen" References: <20030427231103.GA27413@maeko> <20030427232522.GC400@nitro.dk> <3EAD2F7B.2090905@fsn.hu> <20030428141030.GK398@nitro.dk> In-Reply-To: <20030428141030.GK398@nitro.dk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-smp@freebsd.org Subject: Re: current smp on primergy p200 / i386/39234 X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2003 17:52:04 -0000 Simon L. Nielsen wrote: > Are you sure this is the same problem? I temporarily had a P250 and the > problem it had with SMP was solved using 4.8 and adding HyperThreading > support to the kernel. Erm, I remember now, that we've discussed this before. Then, I promised that I will check with a newer OS, but I did not find the time to do the upgrade, so I don't know. It's rock stable, so I won't touch it until 5.1 happens. :) -- Attila Nagy e-mail: Attila.Nagy@fsn.hu Free Software Network (FSN.HU) phone @work: +361 210 1415/127 ISOs: http://www.fsn.hu/?f=download cell.: +3630 306 6758 From owner-freebsd-smp@FreeBSD.ORG Mon Apr 28 11:13:41 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9483437B401 for ; Mon, 28 Apr 2003 11:13:41 -0700 (PDT) Received: from ms-smtp-01.texas.rr.com (ms-smtp-01.texas.rr.com [24.93.36.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id BAFFA43FA3 for ; Mon, 28 Apr 2003 11:13:40 -0700 (PDT) (envelope-from cboyd@gizmopartners.com) Received: from gizmopartners.com (cs6668115-25.austin.rr.com [66.68.115.25]) h3SIDd8b013669 for ; Mon, 28 Apr 2003 13:13:39 -0500 (CDT) Date: Mon, 28 Apr 2003 13:13:37 -0500 Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed From: Chris Boyd To: freebsd-smp@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: <21F14552-79A5-11D7-B71D-00039375B178@gizmopartners.com> X-Mailer: Apple Mail (2.552) Subject: Compaq Proliant 2xPPro hangs on boot X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2003 18:13:41 -0000 I have a Compaq Proliant 800 with dual PentiumPros that hangs on boot when I try to use an SMP kernel with 4.7 or 4.8. The error messages are: Changing APIC ID for IO APIC #0 from 0 to 2 on chip Programming 24 pins in IOAPIC #0 IOAPIC #0 intpin 2 -> IRQ0 at which point it hangs. Box runs fine with a single CPU kernel. Looking through the list archives, I found some references to changing a BIOS setting to resolve the problem, but this machine does not have any similar settings. Any hints, tips trick, or pointers appreciated. --Chris From owner-freebsd-smp@FreeBSD.ORG Mon Apr 28 11:35:12 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F06537B401 for ; Mon, 28 Apr 2003 11:35:12 -0700 (PDT) Received: from maeko.hayai.de (denver038.server4free.de [217.172.178.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D75143F3F for ; Mon, 28 Apr 2003 11:35:11 -0700 (PDT) (envelope-from mail@maeko.hayai.de) Received: from maeko.hayai.de (localhost [127.0.0.1]) by maeko.hayai.de (8.12.7/8.12.7) with ESMTP id h3SIZVrW002862 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Mon, 28 Apr 2003 20:35:31 +0200 Received: (from mail@localhost) by maeko.hayai.de (8.12.7/8.12.7/Submit) id h3SIZU2n002861; Mon, 28 Apr 2003 20:35:31 +0200 Date: Mon, 28 Apr 2003 20:35:30 +0200 From: Marco Wertejuk To: "Simon L. Nielsen" Message-ID: <20030428183530.GA2736@maeko> References: <20030427231103.GA27413@maeko> <20030427232522.GC400@nitro.dk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="gBBFr7Ir9EOA20Yy" Content-Disposition: inline In-Reply-To: <20030427232522.GC400@nitro.dk> User-Agent: Mutt/1.4i cc: freebsd-smp@freebsd.org Subject: Re: current smp on primergy p200 / i386/39234 X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2003 18:35:12 -0000 --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, maybe it's an appropriate workaround to have a kernel option which enables this workaround like in the attached patches. -- Mit freundlichen Gruessen, Marco Wertejuk - mwcis.com Consulting & Internet Solutions --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="NOTES.diff" *** NOTES Sun Apr 27 05:35:10 2003 --- NOTES.primergy Mon Apr 28 20:24:09 2003 *************** *** 1067,1072 **** --- 1067,1073 ---- # Note that documenting these are not considered an affront. options FB_INSTALL_CDEV # install a CDEV entry in /dev + options SMP_PRIMERGY_BUG # use this if SMP on P200/C200 freezes # PECOFF module (Win32 Execution Format) options PECOFF_SUPPORT --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="mp_machdep.c.diff" *** mp_machdep.c Wed Apr 2 23:53:28 2003 --- mp_machdep.c.primergy Mon Apr 28 19:15:37 2003 *************** *** 1045,1050 **** --- 1045,1053 ---- panic("NO BSP found!"); /* report fact that its NOT a default configuration */ + #if defined (SMP_PRIMERGY_BUG) + io_apic_ints[0].int_type = 3; + #endif /* SMP_PRIMERGY_BUG */ return 0; } --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="options.i386.diff" *** options.i386 Sat Apr 12 09:40:37 2003 --- options.i386.primergy Mon Apr 28 19:15:05 2003 *************** *** 18,23 **** --- 18,24 ---- I586_PMC_GUPROF opt_i586_guprof.h COMPAT_OLDISA BROKEN_KEYBOARD_RESET opt_reset.h + SMP_PRIMERGY_BUG # Options for emulators. These should only be used at config time, so # they are handled like options for static filesystems --gBBFr7Ir9EOA20Yy-- From owner-freebsd-smp@FreeBSD.ORG Mon Apr 28 11:46:59 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D5AC37B401 for ; Mon, 28 Apr 2003 11:46:59 -0700 (PDT) Received: from arthur.nitro.dk (port324.ds1-khk.adsl.cybercity.dk [212.242.113.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0E3B43FD7 for ; Mon, 28 Apr 2003 11:46:58 -0700 (PDT) (envelope-from simon@arthur.nitro.dk) Received: by arthur.nitro.dk (Postfix, from userid 1000) id 3A54510BF82; Mon, 28 Apr 2003 20:46:58 +0200 (CEST) Date: Mon, 28 Apr 2003 20:46:58 +0200 From: "Simon L. Nielsen" To: Marco Wertejuk Message-ID: <20030428184657.GO398@nitro.dk> References: <20030427231103.GA27413@maeko> <20030427232522.GC400@nitro.dk> <20030428183530.GA2736@maeko> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eNMatiwYGLtwo1cJ" Content-Disposition: inline In-Reply-To: <20030428183530.GA2736@maeko> User-Agent: Mutt/1.5.4i cc: freebsd-smp@freebsd.org Subject: Re: current smp on primergy p200 / i386/39234 X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2003 18:46:59 -0000 --eNMatiwYGLtwo1cJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2003.04.28 20:35:30 +0200, Marco Wertejuk wrote: > Hi, >=20 > maybe it's an appropriate workaround to have a kernel option > which enables this workaround like in the attached patches. Could certainly be handled this way. I would suggest posting the patch to the PR so it does not get lost. Perhaps some committer could comment if it could be handled this way ? --=20 Simon L. Nielsen --eNMatiwYGLtwo1cJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+rXch8kocFXgPTRwRAhBGAJ9KWGnxyS48LKTetxqIoDOL9K+GfgCgyx7C xEtpzkSLBfTgYL1ub1BUUoQ= =IrnN -----END PGP SIGNATURE----- --eNMatiwYGLtwo1cJ-- From owner-freebsd-smp@FreeBSD.ORG Mon Apr 28 11:56:05 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E38737B401 for ; Mon, 28 Apr 2003 11:56:05 -0700 (PDT) Received: from smtp1.linkline.com (smtp1.linkline.com [66.59.235.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8940343F85 for ; Mon, 28 Apr 2003 11:56:04 -0700 (PDT) (envelope-from sclements@linkline.com) Received: from sam.linkline.com (unknown [64.30.215.228]) by smtp1.linkline.com (Postfix) with ESMTP id 8B4F3A2374; Mon, 28 Apr 2003 11:56:03 -0700 (PDT) Message-Id: <5.2.0.9.0.20030428115154.0218f7d0@junior.loungenet.org> X-Sender: spam@junior.loungenet.org X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Mon, 28 Apr 2003 11:56:01 -0700 To: Attila Nagy , freebsd-smp@freebsd.org From: Samuel Clements In-Reply-To: <3EAD3008.4060304@fsn.hu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: Intel7501 X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2003 18:56:05 -0000 >Given, that many folks have had problems with the Intel 7500 chipset, I >like to ask if the 7501 is better. We plan to buy some machines with Intel >Westville 2 motherboards which have the this chipset. >Will this work with FreeBSD correctly? Below is the dmesg from an Intel SE7501WV2 motherboard with a single Xeon with SMP & HTT enabled. I'd assume since a single cpu shows as two (expected due to HT), the two physical should show as 4. If I run across another CPU before this machine goes out, I'll try it out and post again. -Sam Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.8-RELEASE #0: Tue Apr 29 11:42:24 GMT 2003 root@bubba.linkline.com:/usr/src/sys/compile/BUBBA Timecounter "i8254" frequency 1193182 Hz CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2392.30-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf27 Stepping = 7 Features=0xbfebfbff Hyperthreading: 2 logical CPUs real memory = 1073676288 (1048512K bytes) avail memory = 1039724544 (1015356K bytes) Programming 24 pins in IOAPIC #0 IOAPIC #0 intpin 2 -> irq 0 Programming 24 pins in IOAPIC #1 Programming 24 pins in IOAPIC #2 FreeBSD/SMP: Multiprocessor motherboard cpu0 (BSP): apic id: 0, version: 0x00050014, at 0xfee00000 cpu1 (AP): apic id: 1, version: 0x00050014, at 0xfee00000 io0 (APIC): apic id: 8, version: 0x00178020, at 0xfec00000 io1 (APIC): apic id: 9, version: 0x00178020, at 0xfec81000 io2 (APIC): apic id: 10, version: 0x00178020, at 0xfec81400 Preloaded elf kernel "kernel" at 0xc052e000. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 19 entries at 0xc00f2f30 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard IOAPIC #0 intpin 16 -> irq 2 IOAPIC #0 intpin 19 -> irq 16 pci0: on pcib0 pci0: (vendor=0x8086, dev=0x2541) at 0.1 pcib1: at device 3.0 on pci0 pci2: on pcib1 pci2: (vendor=0x8086, dev=0x1461) at 28.0 pcib2: at device 29.0 on pci2 IOAPIC #2 intpin 0 -> irq 18 pci4: on pcib2 iir0: mem 0xfa000000-0xfbffffff irq 18 at device 8.0 on pci4 pci2: (vendor=0x8086, dev=0x1461) at 30.0 pcib3: at device 31.0 on pci2 IOAPIC #1 intpin 6 -> irq 19 IOAPIC #1 intpin 7 -> irq 20 pci3: on pcib3 em0: port 0x2040-0x207f mem 0xfe8c0000-0xfe8dffff irq 19 at device 7.0 on pci3 em0: Speed:100 Mbps Duplex:Half em1: port 0x2000-0x203f mem 0xfe8e0000-0xfe8fffff irq 20 at device 7.1 on pci3 em1: Speed:100 Mbps Duplex:Full pci0: (vendor=0x8086, dev=0x2546) at 3.1 uhci0: port 0x3020-0x303f irq 2 at device 29.0 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x3000-0x301f irq 16 at device 29.1 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered pcib4: at device 30.0 on pci0 pci1: on pcib4 pci1: at 12.0 irq 17 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x3a0-0x3af,0-0x3,0-0x7,0-0x3,0-0x7 irq 0 at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: (vendor=0x8086, dev=0x2483) at 31.3 irq 17 orm0: