NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/39955: cpuctl identifies non-existing CPUs



>Number:         39955
>Category:       bin
>Synopsis:       cpuctl identifies non-existing CPUs
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 18 23:35:00 +0000 2008
>Originator:     Thomas Klausner
>Release:        NetBSD 5.99.01
>Organization:
>Environment:
        
        
Architecture: x86_64
Machine: amd64
>Description:
cpuctl identify swallows obviously incorrect arguments without problem.
# cpuctl identify 5000
cpu5000: AMD Athlon 64 or Sempron (686-class), 2210.32 MHz, id 0x40ff2
cpu5000: features 78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu5000: features 78bfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX>
cpu5000: features 78bfbff<FXSR,SSE,SSE2>
cpu5000: features2 2001<SSE3,CX16>
cpu5000: features3 ebd3fbff<SCALL/RET,NOX,MXX,FFXSR,RDTSCP,LONG,3DNOW2,3DNOW>
cpu5000: features4 1d<LAHF,SVM,EAPIC,ALTMOVCR0>
cpu5000: "AMD Athlon(tm) 64 Processor 3500+"
cpu5000: I-cache 64KB 64B/line 2-way, D-cache 64KB 64B/line 2-way
cpu5000: L2 cache 1MB 64B/line 16-way
cpu5000: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu5000: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu5000: Initial APIC ID 0
cpu5000: AMD Power Management features:
cpu5000: family 0f model 0f extfamily 00 extmodel 04

At least the output seems to be the same as for correct values:
# cpuctl identify 0
cpu0: AMD Athlon 64 or Sempron (686-class), 2210.32 MHz, id 0x40ff2
cpu0: features 78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features 78bfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX>
cpu0: features 78bfbff<FXSR,SSE,SSE2>
cpu0: features2 2001<SSE3,CX16>
cpu0: features3 ebd3fbff<SCALL/RET,NOX,MXX,FFXSR,RDTSCP,LONG,3DNOW2,3DNOW>
cpu0: features4 1d<LAHF,SVM,EAPIC,ALTMOVCR0>
cpu0: "AMD Athlon(tm) 64 Processor 3500+"
cpu0: I-cache 64KB 64B/line 2-way, D-cache 64KB 64B/line 2-way
cpu0: L2 cache 1MB 64B/line 16-way
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: Initial APIC ID 0
cpu0: AMD Power Management features:
cpu0: family 0f model 0f extfamily 00 extmodel 04
>How-To-Repeat:
cpuctl identify 5000
>Fix:
cpuctl flow is slightly strange, or at least I don't completely
understand it.
Easiest fix is probably comparing the argument against hw.ncpu. Is that ok?

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index