From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 2 12:54:14 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E4141065670 for ; Tue, 2 Mar 2010 12:54:14 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.25]) by mx1.freebsd.org (Postfix) with ESMTP id 0AE748FC12 for ; Tue, 2 Mar 2010 12:54:13 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 9so32586qwb.7 for ; Tue, 02 Mar 2010 04:54:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:in-reply-to:message-id:references:user-agent :x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; bh=gtc7D11PM72b9gUWXVKKbWj7jJPtKi1cnhJf5owfDf4=; b=GF9QS1sOywumrWDJuTrHv7NtiHGYHxdDMESH+Tqcf1jKvPXYzOVuFY6GIw7UaS37f4 EAQj+fNKa/QEkhYIzbF3y8hr+K0yJfMmZgm5b64v9XAv+kHsPy/d+SBUeOutrVdQ3FNn 7WhLHTD4O+ubkyanck/w8tBbHOiTILyqpoYl8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; b=XJlZ9Oa5CtMKeIlvE9d8JZw9jOwDJHAG/KFpDPV63igS+atuSXxi6KOAGlt2oqYXOO gU0o7rrQNemG+63B32EQ0+7q7FakHf0fT28uqInvwxV0ySSDrj/p5Gu3dxICkbXBbIoO IoBOPKQ+ziLrVo4iGBw2m2MES2EVbzEazosf8= Received: by 10.224.27.202 with SMTP id j10mr297187qac.250.1267534442518; Tue, 02 Mar 2010 04:54:02 -0800 (PST) Received: from centel.dataix.local (ppp-22.138.dialinfree.com [209.172.22.138]) by mx.google.com with ESMTPS id 6sm13052144qwd.4.2010.03.02.04.53.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 02 Mar 2010 04:54:00 -0800 (PST) Sender: "J. Hellenthal" Date: Tue, 2 Mar 2010 07:53:04 -0500 From: jhell To: Alexander Best In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD Hackers Subject: Re: [patch] extending {amd64|i386} cpu info X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2010 12:54:14 -0000 On Mon, 1 Mar 2010 19:29, alexbestms@ wrote: > jhell schrieb am 2010-03-01: > >> On Fri, 26 Feb 2010 22:19, alexbestms@ wrote: >>> hi there, > >>> i always forget how to decipher model and family from the cpu id. >>> of course >>> there're 3rd party tools to do that for you, but instead i decided >>> to hack the >>> kernel. ;) > >>> maybe somebody finds these changes useful. > >>> cheers. >>> alex > > > >> What about the other arch's ? I only see i386 and amd64. I would >> think if this functionality is going to "make it in" that it should >> be done consistantly across the board, the way it is now. > > just had a look at the other archs and in fact implementing these changes is > not that easy as on i386 and amd64. > > talking about consistency: i found the cpu info outputs on arm, i64, etc. to > differ from the ones on i386 and amd64. so in fact there is inconsistency > present atm. > In that case. EEEK. Alright if they are already differing then I certainly see no reason why not to do this. > i also think that on some archs it's not possible to output cpu id, stepping, > family and model simply because there's no cpu instruction (CPUID or something > similar) returning those info for freebsd to use. > Man what_was_I_smokin(1) "joking"; when I wrote that last email while thinking about three things at once. Of course they are going to be different lol. You are quite correct. Sorry. > cheers. > alex > >> -- > >> jhell > -- jhell