Linux assembly list
 help / color / mirror / Atom feed
From: Nicholas Mc Guire <der.herr@hofr.at>
To: Bai Shuwei <baishuwei@gmail.com>
Cc: linux-assembly@vger.kernel.org
Subject: Re: how to get AMD CPU identification information?
Date: Tue, 9 Mar 2010 17:36:46 +0100	[thread overview]
Message-ID: <20100309163646.GE16373@opentech.at> (raw)
In-Reply-To: <f3566d61003090627s7f018511t444fa28bb02b341a@mail.gmail.com>

On Tue, 09 Mar 2010, Bai Shuwei wrote:

> Hi, ALL:
>    On the Intel platform, we can use the CPUID instruction to get the
> processor serial number which is the identification for the CPU. But
> on the AMD platform, i find only can get the cpu family,model,
> stepping. I think those information cannot identify one processor. So
> how i can get the identification information for AMD processor, or how
> i distinguish every AMD processor?
> 
>
you can get the values from the "CPUID Specifications April 2008"
http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/25481.pdf - basically you should be able to get all the infos you need to identify
the specifics of a processor (AMD or Intel).

you also can get the values with rdmsr - on a debian box

rtl26:~# apt-get install msr-tools
rtl26:~# modprobe msr
rtl26:~# rdmsr --decimal 16 --hexadecimal  (to read the TSC in this case)
be3163d1778

details in http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/41322.PDF  (atleast for the phenom)

you also want to grab the AMD "BIOS and Kernel Developers Guide" - there is one
for every processor - so it could be a bit painfull to figure this out for all possible processors. The one for AMD Hammer is at http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/26094.PDF

HTH

hofrat
 

  reply	other threads:[~2010-03-09 16:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-09 14:27 how to get AMD CPU identification information? Bai Shuwei
2010-03-09 16:36 ` Nicholas Mc Guire [this message]
2010-03-10  3:07   ` Bai Shuwei
2010-03-10  3:43   ` Bai Shuwei

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100309163646.GE16373@opentech.at \
    --to=der.herr@hofr.at \
    --cc=baishuwei@gmail.com \
    --cc=linux-assembly@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox