From: Bruno Ducrot <ducrot@poupinou.org>
To: Matthew Harrell <mharrell-dated-1105374160.f5a808@bittwiddlers.com>
Cc: cpufreq list <cpufreq@www.linux.org.uk>
Subject: Re: found unsupported CPU with Enhanced SpeedStep
Date: Wed, 5 Jan 2005 18:24:15 +0100 [thread overview]
Message-ID: <20050105172415.GH19199@poupinou.org> (raw)
In-Reply-To: <20050105162234.GA18703@bittwiddlers.com>
[-- Attachment #1: Type: text/plain, Size: 725 bytes --]
On Wed, Jan 05, 2005 at 11:22:34AM -0500, Matthew Harrell wrote:
> http://alecto.bittwiddlers.com/files/inspiron-5160/dmesg
> http://alecto.bittwiddlers.com/files/inspiron-5160/dmesg-noht
> http://alecto.bittwiddlers.com/files/inspiron-5160/dsdt.dat
> http://alecto.bittwiddlers.com/files/inspiron-5160/dsdt.dsl
> http://alecto.bittwiddlers.com/files/inspiron-5160/ssdt.dat
> http://alecto.bittwiddlers.com/files/inspiron-5160/ssdt.dsl
>
There is four Load statements in the ssdt. I need to look what tables
are loaded at run time.
Could you please send to me the result of the attached program
when HT mode?
CHeers,
--
Bruno Ducrot
-- Which is worse: ignorance or apathy?
-- Don't know. Don't care.
[-- Attachment #2: retrive_cpus.c --]
[-- Type: text/x-csrc, Size: 1530 bytes --]
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
struct table {
char * name;
off_t address;
ssize_t len;
};
static struct table tables[] = {
{
.name = "CPU0IST ",
.address = 0x3FFEFBE7,
.len = 0x00000277,
},
{
.name = "CPU1IST ",
.address = 0x3FFEFB60,
.len = 0x00000087,
},
{
.name = "CPU0CST ",
.address = 0x3FFEF988,
.len = 0x000001D8,
},
{
.name = "CPU1CST ",
.address = 0x0x3FFEF92C,
.len = 0x0000005C
},
{
.name = NULL,
.address = 0,
.len = -1
},
};
static int fd;
static int init_sysmem(void)
{
fd = open("/dev/mem", O_RDONLY);
return (fd >= 0);
}
static int exit_sysmem(void)
{
return (close(fd));
}
static int decode(struct table *t)
{
char *p;
int i;
ssize_t count;
if (fd < 0 || !t)
return 1;
printf("%s %lx %x\n", t->name, t->address, t->len);
if (lseek(fd, t->address, SEEK_SET) != t->address)
return 1;
p = malloc(t->len);
if (!p)
return 1;
count = read(fd, p, t->len);
if (count != t->len) {
free(p);
return 1;
}
for (i = 0; i < t->len; i++) {
if ((i % 16) == 0)
printf("\n%p: ", p + i);
printf("%.2x ", p[i] & 0xff);
}
printf("\n");
free(p);
return 0;
}
int main(void)
{
struct table *t;
fd = -1;
if (!init_sysmem()) {
fprintf(stderr, "Can't open /dev/mem for read. Are you root?\n");
exit(1);
}
for (t = &tables[0]; t->name; t++) {
if (decode(t)) {
printf("can't decode %s\n", t->name);
}
}
exit_sysmem();
return 0;
}
[-- Attachment #3: Type: text/plain, Size: 143 bytes --]
_______________________________________________
Cpufreq mailing list
Cpufreq@www.linux.org.uk
http://www.linux.org.uk/mailman/listinfo/cpufreq
next prev parent reply other threads:[~2005-01-05 17:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20041230014005.GA16358@bittwiddlers.com>
2004-12-30 22:38 ` found unsupported CPU with Enhanced SpeedStep Jeremy Fitzhardinge
2005-01-02 12:07 ` Dominik Brodowski
2005-01-05 16:06 ` Bruno Ducrot
2005-01-05 16:22 ` Matthew Harrell
2005-01-05 17:24 ` Bruno Ducrot [this message]
2005-01-05 18:02 ` Matthew Harrell
2005-01-06 10:00 ` Bruno Ducrot
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=20050105172415.GH19199@poupinou.org \
--to=ducrot@poupinou.org \
--cc=cpufreq@www.linux.org.uk \
--cc=mharrell-dated-1105374160.f5a808@bittwiddlers.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.