Subject: port-i386/19163: VIA C3 processor isn't recognized correctly
To: None <gnats-bugs@gnats.netbsd.org>
From: Takahiro Kambe <taca@back-street.net>
List: netbsd-bugs
Date: 11/26/2002 00:15:45
>Number:         19163
>Category:       port-i386
>Synopsis:       VIA C3 processor isn't recognized correctly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 25 07:16:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Takahiro Kambe
>Release:        NetBSD 1.6K
>Organization:
	
>Environment:
	
	
System: NetBSD ns.back-street.net 1.6K NetBSD 1.6K (NS) #98: Thu Nov 21 23:13:42 JST 2002 taca@ns.back-street.net:/usr/src/sys/arch/i386/compile/NS i386
Architecture: i386
Machine: i386
>Description:
	VIA C3 processor dosen't recognized correctly on NetBSD.

>How-To-Repeat:
	NetBSD 1.6K recognizes it as "IDT Pentium Pro compatible".

NetBSD 1.6K (NS) #98: Thu Nov 21 23:13:42 JST 2002
    taca@ns.back-street.net:/usr/src/sys/arch/i386/compile/NS
total memory = 253 MB
avail memory = 232 MB
using 3271 buffers containing 13084 KB of memory
BIOS32 rev. 0 found at 0xfb370
PCI BIOS rev. 2.1 found at 0xfb3a0
pcibios: config mechanism [1][x], special cycles [1][x], last bus 1
PCI IRQ Routing Table rev. 1.0 found at 0xfdc70, size 112 bytes (5 entries)
PCI Interrupt Router at 000:00:0
PCI Exclusive IRQs: 10 11
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: IDT Pentium Pro compatible (686-class), 533.39 MHz
cpu0: features 803035<FPU,DE,TSC,MSR,MTRR>
cpu0: features 803035<PGE,MMX>

	But OpenBSD recognizes correctly.

OpenBSD 3.1 (RAMDISK_CD) #242: Sat Apr 13 15:35:54 MDT 2002
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/RAMDISK_CD
cpu0: VIA C3 Samuel 2 ("CentaurHauls" 686-class) 533 MHz
cpu0: FPU,DE,TSC,MSR,MTRR,PGE,MMX,3DNOW
real mem  = 265924608 (259692K)
avail mem = 241459200 (235800K)
using 3271 buffers containing 13398016 bytes (13084K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(30) BIOS, date 03/18/02, BIOS32 rev. 0 @ 0xfb370
apm0 at bios0: Power Management spec V1.2
...

>Fix:
	Import from CPU recognition code from OpenBSD?  It seems to
	support more CPU flags.

	And it recognizes Rise Technology's CPU (http://www.rise.com/)
	as CPUVENDOR_RISE, too.

>Release-Note:
>Audit-Trail:
>Unformatted: