From: "H. Peter Anvin" <hpa@zytor.com>
To: Avuton Olrich <avuton@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
Suresh Siddha <suresh.b.siddha@intel.com>,
Ingo Molnar <mingo@elte.hu>
Subject: Re: Fail to early boot with v2.6.27-rc2 to at least v2.6.29-rc2 due to dc1e35c
Date: Mon, 19 Jan 2009 10:55:07 -0800 [thread overview]
Message-ID: <4974CC8B.1030403@zytor.com> (raw)
In-Reply-To: <3aa654a40901190604l2149c592ne4fbf782fa46655f@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 251 bytes --]
>
> bisected to:
> commit dc1e35c6e95e8923cf1d3510438b63c600fee1e2
> Author: Suresh Siddha <suresh.b.siddha@intel.com>
> Date: Tue Jul 29 10:29:19 2008 -0700
>
Avuton, could you please compile the attached program and send us the
output?
-hpa
[-- Attachment #2: cpuid.c --]
[-- Type: text/x-csrc, Size: 1096 bytes --]
#include <stdio.h>
#include <ctype.h>
#include <stdint.h>
char *make_string(uint32_t val)
{
static char string[5] = "xxxx";
int i, ch;
for ( i = 0 ; i < 4 ; i++ ) {
ch = val & 0xff;
string[i] = isprint(ch) ? ch : '.';
val >>= 8;
}
return string;
}
void dump_cpuid_level(uint32_t level)
{
uint32_t eax, ebx, ecx, edx;
asm("cpuid" : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
: "a" (level));
printf("%08X: %08X %s ", level, eax, make_string(eax));
printf("%08X %s ", ebx, make_string(ebx));
printf("%08X %s ", ecx, make_string(ecx));
printf("%08X %s\n", edx, make_string(edx));
}
void dump_levels(uint32_t region)
{
uint32_t max, n;
asm("cpuid" : "=a" (max) : "a" (region) : "ebx","ecx","edx");
if ( (max & 0xffff0000) == region ) {
for ( n = region ; n <= max ; n++ ) {
dump_cpuid_level(n);
}
}
}
int main(int argc, char *argv[])
{
uint32_t n;
printf("Level EAX EBX ECX EDX \n");
for ( n = 0 ; n <= 0xffff ; n++ ) {
dump_levels(n << 16);
}
return 0;
}
next prev parent reply other threads:[~2009-01-19 18:54 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-19 14:04 Fail to early boot with v2.6.27-rc2 to at least v2.6.29-rc2 due to dc1e35c Avuton Olrich
2009-01-19 14:28 ` Avuton Olrich
2009-01-19 18:55 ` H. Peter Anvin [this message]
2009-01-19 19:31 ` Avuton Olrich
2009-01-19 20:07 ` H. Peter Anvin
2009-01-19 20:11 ` Suresh Siddha
2009-01-19 21:46 ` Avuton Olrich
2009-01-19 21:57 ` Suresh Siddha
2009-01-19 22:07 ` H. Peter Anvin
2009-01-19 22:14 ` Suresh Siddha
2009-01-19 22:24 ` H. Peter Anvin
2009-01-21 5:20 ` Andi Kleen
2009-01-22 22:22 ` Suresh Siddha
2009-01-22 22:40 ` H. Peter Anvin
2009-01-22 22:56 ` Suresh Siddha
2009-01-20 3:35 ` Valdis.Kletnieks
2009-01-20 6:36 ` H. Peter Anvin
2009-01-22 0:38 ` H. Peter Anvin
2009-01-22 2:26 ` Avuton Olrich
2009-01-22 8:28 ` Ingo Molnar
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=4974CC8B.1030403@zytor.com \
--to=hpa@zytor.com \
--cc=avuton@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=suresh.b.siddha@intel.com \
/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