[coreboot] simple useful utility

Vincent Legoll vincent.legoll at gmail.com
Sun Oct 12 03:09:02 CEST 2008


On Sat, Oct 11, 2008 at 11:56 PM, ron minnich <rminnich at gmail.com> wrote:
>> and PCI IO address mask is 0x3FFF, right ?
>
> I think so, unless it is 3fff<<3

Yes, in the register, it is shifted by 3 bytes

> Then we just need C code :-)

That is another story...

Here is the python script, I have tested it on my SN25p / opteron 165

I attached the output from a run under legacy BIOS:
$ AMDK8MemMap.py -i > output.txt

with a
$ lspci -xxx -s 0:0:18.1 > lspci.txt
for reference

Could someone double check I did not misinterpreted the doc in the
decoding of the registers.

I would be interested in having the output of the tool and the lspci,
like above, from something more interesting, like a Tyan 2 or 4
processors motherboard. I'm also interested in --test output.

Try --help to have the list of available options.

I did not use the "Fam 0Fh" 32559.pdf documentation, because I
only have an opteron 939 to test on. But after a quick glance,
it all looks the same, so it should work as-is.

I'd also like comments, and any ideas for further improvements.

If this is useful, it is:
Signed-off-by: Vincent Legoll <vincent.legoll at gmail.com>
and could go somewhere in the utils directory...

-- 
Vincent Legoll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AMDK8MemMap.py
Type: application/octet-stream
Size: 19704 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20081012/67b6433a/attachment.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: output.txt
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20081012/67b6433a/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: lspci.txt
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20081012/67b6433a/attachment-0001.txt>


More information about the coreboot mailing list