[coreboot] genpowernow

Rudolf Marek r.marek at assembler.cz
Wed Mar 12 00:55:14 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I'm attaching my very experimental util, which can generate ACPI powernow
objects. It needs for pre K8 rev F a table entry which can be easily added from
datasheet. (So far there is Opteron 175 and some 4400 system.

For k8 revF it should follow an algorithm in BKDG to generate the table.
That code is totally UNTESTED - I dont have any access to revF system.

For pre revF it works quite fine, it produces same result as proprietary BIOS
except the bus latency value, which is recommended to 7 by AMD but my BIOS gives
there 9. (output.txt) If you want to compare with original bios use acpidump to
dump the SSDT table and iasl -d to get the text result.

So if you want to give a try, you will need to add your system to atable and
check the
http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/30430.pdf

For the table. Maybe AMD has some other form of the table ready to use by
programs/parsers?

The C structure quite follows the table entries so it is easy to add it there.

If someone have time (I dont :/) it would be nice to see if the revF algo works
or get fixed.

It uses cpuid.c from x86info - it must be linked like gcc cpuid.c genpowernow.c
- -o genpowernow

Comments/suggestions/FIXES/IMPROVEMENTS welcome :)

Thanks,
Rudolf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH1xvc3J9wPJqZRNURAqLIAJoDYgfXKVkU3qXEh1YIlfXVk2OL8ACgvE0Y
Ia7brZQnUNYnEAZQmIFi1fs=
=4382
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpuid.c
Type: text/x-csrc
Size: 3011 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20080312/ef5431c1/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: genpowernow.c
Type: text/x-csrc
Size: 11098 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20080312/ef5431c1/attachment-0001.c>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: output.txt
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20080312/ef5431c1/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpuid.c.sig
Type: application/octet-stream
Size: 65 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20080312/ef5431c1/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: genpowernow.c.sig
Type: application/octet-stream
Size: 65 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20080312/ef5431c1/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: output.txt.sig
Type: application/octet-stream
Size: 65 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20080312/ef5431c1/attachment-0002.obj>


More information about the coreboot mailing list