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

Larry Maloney larrypatrickmaloney at yahoo.com
Fri Dec 21 13:48:08 PST 2007


I found another packaged called devmsr (just development version, not 
part of ports yet)

It is suppose to give an interface of /dev/cpu0/msr

I installed, and ran x86info and got information back about MSR.

Here is the output of x86info:

x86info v1.20.  Dave Jones 2001-2006
Feedback to <davej at redhat.com>.

Found 1 CPU
--------------------------------------------------------------------------
eax in: 0x00000000, eax = 00000001 ebx = 68747541 ecx = 444d4163 edx = 
69746e65
eax in: 0x00000001, eax = 000005a2 ebx = 00000400 ecx = 00000000 edx = 
0088a93d

eax in: 0x80000000, eax = 80000006 ebx = 68747541 ecx = 444d4163 edx = 
69746e65
eax in: 0x80000001, eax = 000005a2 ebx = 00000000 ecx = 00000000 edx = 
c0c0a13d
eax in: 0x80000002, eax = 646f6547 ebx = 4d542865 ecx = 6e492029 edx = 
72676574
eax in: 0x80000003, eax = 64657461 ebx = 6f725020 ecx = 73736563 edx = 
6220726f
eax in: 0x80000004, eax = 4d412079 ebx = 43502044 ecx = 00000053 edx = 
00000000
eax in: 0x80000005, eax = 00000000 ebx = ff10ff10 ecx = 40100120 edx = 
40100120
eax in: 0x80000006, eax = 0000f004 ebx = 00002040 ecx = 00804120 edx = 
00000000

Family: 5 Model: 10 Stepping: 2
CPU Model : Unknown CPU
Processor name string: Geode(TM) Integrated Processor by AMD PCS

Feature flags:
 fpu de pse tsc msr cx8 sep pge cmov clflsh mmx
Extended feature flags:
 mmxext 3dnowext 3dnow
MSR: 0xc0000082=0x00000000 : 00000000 00000000 00000000 00000000
Write allocate disabled
Data prefetch disabled.
EWBE mode: strong ordering (slowest performance)

Instruction TLB: Fully associative. 16 entries.
Data TLB: Fully associative. 16 entries.
L1 Data cache:
        Size: 64Kb      16-way associative.
        lines per tag=1 line size=32 bytes.
L1 Instruction cache:
        Size: 64Kb      16-way associative.
        lines per tag=1 line size=32 bytes.
L2 (on CPU) cache:
        Size: 128Kb     4-way associative.
        lines per tag=1 line size=32 bytes.


500MHz processor (estimate).

So I installed devmsr, and then just changed amd_msr.c to read 
/dev/cpu0/msr instead of /dev/cpu/0/msr

When I ran the driver, without the "NoAccel" set to true, there is NO 
complaint about missing MSR info in the log file.

Then, I commented out the "NoAccel" option, ran the Xorg with the amd 
driver, and the desktop is the same.  I can see
a cursor jsut fine, and a black background, but the 3 icons on the 
desktop are all screwed up.  (xfce)

Then I noticed something that I hadn't before.  I was missing xrdb.  So 
Installed that.

Then I ran the driver again, and this time the driver locks up on me.

Is this just coincidental? Could there be something with the RGB 
pallette snooping (sorry if that's the wrong term) that
could be making problems?

Also, I'm not 100% that the amd_msr.c is reading the MSR correctly.  
Maybe it is, I'm not sure though.

Just because there is no error in the log that says that MSR isn't 
opened, doesn't mean it's getting read correctly.

Can anyone tell from my log file?

Larry
Larry


Jordan Crouse wrote:
> On 20/12/07 11:02 -0800, Larry Maloney wrote:
>   
>> I found the following software in the ports collection for FreeBSD:
>>
>> http://www.freebsd.org/cgi/url.cgi?ports/sysutils/devcpu/pkg-descr
>>
>> Will that give us the MSR's we need?
>>     
>
> That will - but it might be cumbersome for people to install.  We need
> to figure out if there is a way to make BSD work out of the box.
>
>   
>> I guess the GEODE doesn't' use an AMD64 instruction set...?
>>     
>
> Nope - its all 32 bits.
>
>
>
>
>   


-- 
==============================
Larry P. Maloney
CEO/CTO SoftNet Solutions

Phone: 650-669-1942
  Web: www.softnetsolution.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.x.org/archives/xorg-driver-geode/attachments/20071221/142ac984/attachment.htm 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Xorg.0.log
Url: http://lists.x.org/archives/xorg-driver-geode/attachments/20071221/142ac984/attachment-0001.txt 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: larrypatrickmaloney.vcf
Type: text/x-vcard
Size: 318 bytes
Desc: not available
Url : http://lists.x.org/archives/xorg-driver-geode/attachments/20071221/142ac984/attachment-0001.vcf 


More information about the Xorg-driver-geode mailing list