Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(SOLVED) Mobile AMD Sempron Processor 3500+ CFlag question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Kasumi_Ninja
Veteran
Veteran


Joined: 18 Feb 2006
Posts: 1825
Location: The Netherlands

PostPosted: Sat Apr 07, 2007 7:55 pm    Post subject: (SOLVED) Mobile AMD Sempron Processor 3500+ CFlag question Reply with quote

Currently I am installing Gentoo on my laptop. I checked the wiki for cflags:
Quote:
Check it out, there are many different sempron mobile CPUs on sale, those that work at 1.8GHz are K8 (i.e. AMD SM 3000+), some others, older, aren't yet k8 but they're still k7 so you must specify athlon-xp instead of athlon64

http://gentoo-wiki.com/Safe_Cflags#Mobile_Sempron_.28AMD.29

I wonder thought if should use march=athlon-xp or athlon64 for cflags. Any help would be appreciated!


# cat /proc/cpuinfo

Code:
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 76
model name      : Mobile AMD Sempron(tm) Processor 3500+
stepping        : 2
cpu MHz         : 1800.000
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow up pni cx16 lahf_lm cr8legacy ts fid vid ttp tm stc
bogomips        : 3619.56


# lsmod (from Gentoo livecd)
Code:
Module                  Size  Used by
ipv6                  178400  8
pcspkr                  1760  0
snd_hda_intel          11956  1
snd_hda_codec         101120  1 snd_hda_intel
snd_pcm                45156  2 snd_hda_intel,snd_hda_codec
snd_timer              14212  1 snd_pcm
snd                    30564  6 snd_hda_intel,snd_hda_codec,snd_pcm,snd_timer
snd_page_alloc          6024  2 snd_hda_intel,snd_pcm
forcedeth              19884  0
amd64_agp               8292  0
agpgart                17888  1 amd64_agp
rtc                     8660  0
nfs                    79276  0
lockd                  41416  1 nfs
sunrpc                100540  2 nfs,lockd
jfs                   143884  0
dm_mirror              14128  0
dm_mod                 36024  1 dm_mirror
pdc_adma                6180  0
sata_mv                12712  0
ata_piix                8036  0
ahci                   10756  0
sata_qstor              6372  0
sata_vsc                5380  0
sata_uli                4772  0
sata_sis                5188  0
sata_sx4                9732  0
sata_nv                 6212  3
sata_via                5636  0
sata_svw                4900  0
sata_sil24              7780  0
sata_sil                6408  0
sata_promise            7748  0
libata                 40044  15 pdc_adma,sata_mv,ata_piix,ahci,sata_qstor,sata_vsc,sata_uli,sata_sis,sata_sx4,sata_nv,sata_via,sata_svw,sata_sil24,sata_sil,sata_promise
sbp2                   15848  0
ohci1394               25456  0
ieee1394               55416  2 sbp2,ohci1394
sl811_hcd               8960  0
ohci_hcd               14468  0
uhci_hcd               16296  0
usb_storage            55456  1
usbhid                 31488  0
ehci_hcd               21608  0
usbcore                80448  7 sl811_hcd,ohci_hcd,uhci_hcd,usb_storage,usbhid,ehci_hcd



Update:
I also wonder which kernel option to set :roll::
Code:

 │      ( ) Athlon/Duron/K7                                       │ │
     │ │      (X) Opteron/Athlon64/Hammer/K8     

_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered


Last edited by Kasumi_Ninja on Thu Apr 12, 2007 9:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
ttuegel
Apprentice
Apprentice


Joined: 18 Jan 2005
Posts: 176
Location: Illinois, USA

PostPosted: Sat Apr 07, 2007 9:04 pm    Post subject: Reply with quote

You can safely use "-march=athlon64" in your CFLAGS, as your Sempron chip runs at 1.8GHz (and is therefore a newer model). You can also use "-msse3" as your cpuinfo lists "pni" in the features. In the kernel, you can also select support for Athlon64/K8 chips.
Back to top
View user's profile Send private message
aceFruchtsaft
Guru
Guru


Joined: 16 May 2004
Posts: 438
Location: Vienna, Austria

PostPosted: Sat Apr 07, 2007 10:40 pm    Post subject: Reply with quote

ttuegel wrote:
You can safely use "-march=athlon64" in your CFLAGS....


I think that depends on whether you run 32bit or 64bit Gentoo. I doubt that enabling 64bit instructions in gcc would be a good idea on a 32bit system.
Back to top
View user's profile Send private message
ttuegel
Apprentice
Apprentice


Joined: 18 Jan 2005
Posts: 176
Location: Illinois, USA

PostPosted: Sat Apr 07, 2007 10:48 pm    Post subject: Reply with quote

aceFruchtsaft wrote:
ttuegel wrote:
You can safely use "-march=athlon64" in your CFLAGS....


I think that depends on whether you run 32bit or 64bit Gentoo. I doubt that enabling 64bit instructions in gcc would be a good idea on a 32bit system.


Using "-march=athlon64" does not enable 64bit instructions, unless your CHOST is set to "x86_64-pc-linux-gnu". For "i686-pc-linux-gnu" hosts, it enables all the 32bit optimizations for K8 processors, but none of the 64bit optimizations. The march setting will only affect what optimizations gcc uses: the type of machine code it produces is determined by CHOST.
Back to top
View user's profile Send private message
aceFruchtsaft
Guru
Guru


Joined: 16 May 2004
Posts: 438
Location: Vienna, Austria

PostPosted: Sat Apr 07, 2007 11:09 pm    Post subject: Reply with quote

ttuegel wrote:
aceFruchtsaft wrote:
ttuegel wrote:
You can safely use "-march=athlon64" in your CFLAGS....


I think that depends on whether you run 32bit or 64bit Gentoo. I doubt that enabling 64bit instructions in gcc would be a good idea on a 32bit system.


Using "-march=athlon64" does not enable 64bit instructions, unless your CHOST is set to "x86_64-pc-linux-gnu". For "i686-pc-linux-gnu" hosts, it enables all the 32bit optimizations for K8 processors, but none of the 64bit optimizations. The march setting will only affect what optimizations gcc uses: the type of machine code it produces is determined by CHOST.

Ok, thanks.

I only checked the gcc manual which states that:
Code:

k8, opteron, athlon64, athlon-fx
AMD K8 core based CPUs with x86-64 instruction set support. (This supersets MMX, SSE, SSE2, 3dNOW!, enhanced 3dNOW! and 64-bit instruction set extensions.)

without giving a more detailed explanation (it probably does somewhere else).
Back to top
View user's profile Send private message
Kasumi_Ninja
Veteran
Veteran


Joined: 18 Feb 2006
Posts: 1825
Location: The Netherlands

PostPosted: Thu Apr 12, 2007 9:30 pm    Post subject: Reply with quote

Thanks all. It works flawlessly now :D.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum