Re: PrePATCH 02: AMD K6/K6-2 CPU recognition

Rob Dale (rob@nb.net)
Tue, 14 Jul 1998 11:09:26 -0400


Meelis Roos wrote:
>
> RD> This patch adds the extended functions available in the K6/K6-2 procs.
> RD> Detects 3DNow! and more. Only tested on a K6-2 300. Use at your own
> RD> risk ;)
>
> RD> cpu : 586
> RD> model : K6-2 (model 8)
> RD> vendor_id : AuthenticAMD
> RD> stepping : unknown
> [...]
> RD> flags : fpu vme de pse tsc msr mce cx8 mmx
> RD> bogomips : 599.65
> RD> cpu: : 686
> RD> model : K5 (model 0)
> RD> processor name : AMD-own
> RD> stepping : 0
> RD> fpu vme de pse tsc msr mce cx8 SYSCALL+SYSRET mmx 3DNow!
>
> 1. Why so many duplicate lines? I must miss something...
> "cpu" and "cpu:", flags line has no title in first column etc.
> Something must have been mixed up.

The first set is from cpuid 0 and 1, the second set is produced
from the extended cpuid functions 0x80000001, 0x8000002, 0x80000003,
0x80000004. There's even one for seeing how much L1 cache there is
(0x80000005) which I will implement next time around.

> 2. I suggest you don't use capitals in flag names, just lowercase letters and
> numbers. And don't make them too long.

Will do. This was just a quickie patch.
I still have to hear back from AMD to verify some things.

BTW, any suggestions for SYSCALL+SYSRET and 3DNow!?
syscr and 3dnow?

-- 
Robert Dale

"arrest this man he talks in maths" RADIOHEAD OK COMPUTER

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html