[Xorg-driver-geode] MSR Support for FreeBSD.

Jordan Crouse jordan.crouse at amd.com
Sun Dec 23 09:15:00 PST 2007


On 21/12/07 00:40 -0800, Larry Maloney wrote:
> Turns out I'm not getting the MSR information...
>
> I installed the devcpu  package, but getting the MSR info is a little 
> different in FreeBSD than linux.
>
> I can see /dev/cpu just fine, but there is no device for MSR (like 
> /dev/cpu/msr...)
>
> The doc's for the helper tool x86info says that MSR drivers must be 
> included in the kernel, or loaded as a kernel module.
>
> I did that with devcpu,  but I dont' see any MSR pseudo device.
>
> I think the only way to read and write the MSR data is to use IOCTL in 
> FreeBSD....
>
> In amd_msr.c, the calls to get the MSR data is  a nice easy  file open. 
> I think I"m gonna have to re-write the amd_msr.c for FreeBSD, or just add a 
> new file and if_def the build.

You can ifdef the code, I think - I don't have a problem with that.

> If I get MSR working in FreeBSD, what does that give us?  What register 
> information is needed to be read and set?  A whole bunch of "stuff" ? :)

Yes. :)  Most importantly, thats how we set the PLL for the video engine,
but there is other configuration that needs to happen too.

Jordan

-- 
Jordan Crouse
Systems Software Development Engineer 
Advanced Micro Devices, Inc.




More information about the Xorg-driver-geode mailing list