From owner-freebsd-current@FreeBSD.ORG Mon Sep 26 20:27:12 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1720616A41F; Mon, 26 Sep 2005 20:27:12 +0000 (GMT) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6682943D5A; Mon, 26 Sep 2005 20:27:08 +0000 (GMT) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.1/8.13.1) with ESMTP id j8QKXWGP023917; Mon, 26 Sep 2005 16:33:32 -0400 (EDT) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: obrien@FreeBSD.org Date: Mon, 26 Sep 2005 16:26:36 -0400 User-Agent: KMail/1.6.2 References: <200509211550.27524.jkim@FreeBSD.org> <20050926160431.GA1649@dragon.NUXI.org> In-Reply-To: <20050926160431.GA1649@dragon.NUXI.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="euc-kr" Content-Transfer-Encoding: 7bit Message-Id: <200509261626.47937.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV devel-20050919/1102/Sun Sep 25 10:04:56 2005 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: freebsd-current@FreeBSD.org Subject: AMD/Intel multicore detection (Was: Re: [PATCH] AMD multicore detection) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2005 20:27:12 -0000 On Monday 26 September 2005 12:04 pm, David O'Brien wrote: > On Wed, Sep 21, 2005 at 03:50:24PM -0400, Jung-uk Kim wrote: > > I renewed my multicore detection patch, which was originally > > posted here: > > > > http://docs.freebsd.org/cgi/mid.cgi?200505181935.18493.jkim > > http://docs.freebsd.org/cgi/mid.cgi?200505182007.28631.jkim > > > > New patch is here: > > http://people.freebsd.org/~jkim/multicore.diff > > I've got something I'm working on for AMD dual-core. Please don't > commit this. We work just fine on AMD dual-core. The patch to > disable cores on Intel Hyperthreaded CPU's does not affect AMD > dual-core in one bit. The author nicely took the different vendors > into account. > > AMD sets the CPUID.HTT simply for licensing issues - something that > does not affect FreeBSD at all. > > If there is something needed for Intel dual-core CPU's with > HyperThreading to use the real cores, but not the virtual cores - > then by all means please commit it. Okay. I have a new patch here: http://people.freebsd.org/~jkim/multicore-20050926.diff I removed mp_machdep.c patch and added proper multicore identification for both AMD and Intel CPUs. I hope this does not overlap with your work. Please review/test. > > Please test and let me know. I don't have multicore CPU to test > > it for myself. :-( > > I do and am working on something. Please explain what you are working on, so that we don't make duplicate effort. Thanks, Jung-uk Kim