NetBSD Problem Report #49246

From msaitoh@amd64.execsw.org  Tue Sep 30 07:59:41 2014
Return-Path: <msaitoh@amd64.execsw.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 71F33A65B0
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 30 Sep 2014 07:59:41 +0000 (UTC)
Message-Id: <20140930075939.6026AC6203A@amd64.execsw.org>
Date: Tue, 30 Sep 2014 16:59:39 +0900 (JST)
From: msaitoh@amd64.execsw.org
Reply-To: msaitoh@amd64.execsw.org
To: gnats-bugs@NetBSD.org
Subject: x86/x86/procfs_machdep.c is very old.
X-Send-Pr-Version: 3.95

>Number:         49246
>Category:       port-i386
>Synopsis:       x86/x86/procfs_machdep.c (/proc/cpuinfo) is very old.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    msaitoh
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 30 08:00:00 +0000 2014
>Closed-Date:    Tue May 15 04:08:52 +0000 2018
>Last-Modified:  Tue May 15 04:08:52 +0000 2018
>Originator:     msaitoh@execsw.org
>Release:        NetBSD 7.99.1
>Organization:
>Environment:
>Description:
	sys/arch/x86/x86/procfs_machdep.c have not maintained, so it's
	not a good way to check a CPU's feature with /proc/cpuinfo.

	An workaround is to use "cpuctl identify" command.
>How-To-Repeat:
	cat /proc/cpuinfo
>Fix:
	Sync with the latest spec.
	Almost the same code exists in src/usr.sbin/cpuctl/arch/i386.c
	but the output format is completely different.

>Release-Note:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: port-i386/49246: x86/x86/procfs_machdep.c is very old.
Date: Tue, 30 Sep 2014 12:44:24 +0200

 If we'd sync again with the userland stuff, can we also add the pretty printed
 attach messages back ;-)

 Alternatively: kill it completely, or make it just export some strange binary
 file(s)?

 Martin

Responsible-Changed-From-To: port-i386-maintainer->msaitoh
Responsible-Changed-By: msaitoh@NetBSD.org
Responsible-Changed-When: Wed, 13 Jan 2016 06:07:32 +0000
Responsible-Changed-Why:
mine


From: "SAITOH Masanobu" <msaitoh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49246 CVS commit: src/sys/arch/x86/x86
Date: Wed, 13 Jan 2016 07:28:57 +0000

 Module Name:	src
 Committed By:	msaitoh
 Date:		Wed Jan 13 07:28:56 UTC 2016

 Modified Files:
 	src/sys/arch/x86/x86: procfs_machdep.c

 Log Message:
 PR#49246 "x86/x86/procfs_machdep.c (/proc/cpuinfo) is very old" related change
 - Decode NetBSD's ci_feat_val[0-5]. The output order of the bits is the same as
   linux. Before this commit, only ci_feat_val[0] was decoded.
 - Linux defined feature words and some others are not decoded yet.
 - procfs_getonecpufeatures() will be rewritten when all of linux entries are
   decoded.


 To generate a diff of this commit:
 cvs rdiff -u -r1.7 -r1.8 src/sys/arch/x86/x86/procfs_machdep.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49246 CVS commit: [netbsd-7] src/sys/arch/x86/x86
Date: Sun, 6 Mar 2016 17:58:22 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Sun Mar  6 17:58:22 UTC 2016

 Modified Files:
 	src/sys/arch/x86/x86 [netbsd-7]: procfs_machdep.c

 Log Message:
 Pull up the following revisions, requested by msaitoh in ticket #1119:

 	sys/arch/x86/x86/procfs_machdep.c		1.7-1.11

 x86's /proc/cpuinfo fixes:
 - Always output 2 digits for the cpu frequency decimal part.
 - Update x86's feature bits in /proc/cpuinfo (PR#49246).
 - Fix a bug that /proc/cpuinfo's CPU model was incorrect on many newer
   CPUs and CPU family was incorrect on some AMD CPUs.
 - Add comment. Fix comment.


 To generate a diff of this commit:
 cvs rdiff -u -r1.6 -r1.6.4.1 src/sys/arch/x86/x86/procfs_machdep.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: msaitoh@NetBSD.org
State-Changed-When: Tue, 15 May 2018 04:08:52 +0000
State-Changed-Why:
I think it's OK to close.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.