aesni module with AMD CPUs?

Dennis Glatting dg17 at penx.com
Sat Feb 4 16:27:57 UTC 2012


I am confused by the Bulldozer comment and what FreeeBSD 9.0 reports.



#1:

CPU: AMD FX(tm)-8150 Eight-Core Processor            (4017.99-MHz
K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0x600f12  Family = 15  Model = 1
Stepping = 2

Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>

Features2=0x1698220b<SSE3,PCLMULQDQ,MON,SSSE3,CX16,SSE4.1,SSE4.2,POPCNT,AESNI,XSAVE,AVX>
------------------------------------------------------------------------^^^^^
  AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
  AMD
Features2=0x1c9bfff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,XOP,SKINIT,WDT,LWP,FMA4,NodeId,Topology,<b23>,<b24>>


And


#2:


CPU: AMD Opteron(TM) Processor 6274                  (2200.07-MHz
K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0x600f12  Family = 15  Model = 1
Stepping = 2

Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>

Features2=0x1698220b<SSE3,PCLMULQDQ,MON,SSSE3,CX16,SSE4.1,SSE4.2,POPCNT,AESNI,XSAVE,AVX>
------------------------------------------------------------------------^^^^^
  AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
  AMD
Features2=0x1c9bfff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,XOP,SKINIT,WDT,LWP,FMA4,NodeId,Topology,<b23>,<b24>>

  




On Sat, 2012-02-04 at 14:10 +0100, Gót András wrote:
> Hi,
> 
> This is from a Linux machine:
> 
> processor	: 15
> vendor_id	: AuthenticAMD
> cpu family	: 21
> model		: 1
> model name	: AMD Opteron(tm) Processor 4280
> stepping	: 2
> microcode	: 0x6000624
> cpu MHz		: 2800.277
> cache size	: 2048 KB
> physical id	: 1
> siblings	: 8
> core id		: 7
> cpu cores	: 4
> apicid		: 39
> initial apicid	: 23
> fpu		: yes
> fpu_exception	: yes
> cpuid level	: 13
> 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 ht syscall nx mmxext fxsr_opt 
> pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid 
> aperfmperf pni pclmulqdq monitor ssse3 cx16 sse4_1 sse4_2 popcnt aes 
> xsave avx lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a 
> misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 nodeid_msr 
> topoext perfctr_core arat cpb npt lbrv svm_lock nrip_save tsc_scale 
> vmcb_clean flushbyasid decodeassists pausefilter pfthreshold
> 
> AFAIK Bulldozer only has AVX, but unfortunately not AESNI.
> 
> Andras
> 
> On Sat, 4 Feb 2012 14:49:52 +0200, Konstantin Belousov wrote:
> > On Sat, Feb 04, 2012 at 10:52:03AM +0100, Mario Fleischmann wrote:
> >> Hi Konstantin,
> >> I hope you don't mind me writing to you directly, but I'm having a 
> >> hard
> >> time finding information on Google.
> > You would get much higher chances of getting response if you post on 
> > the
> > public list Cc:ing corresponding developer. Since the question 
> > seemingly
> > not contain any sensitive information, and discussion may be useful 
> > to
> > the wider audience, I added appropriate ml to Cc:.
> >
> >>
> >> I'm currently in the market for a new system, and I need AES-NI
> >> acceleration with FreeBSD 9.0. I'd like to buy an AMD-FX 4100 CPU, 
> >> which
> >> supports the AES-NI instruction set.
> > Do you have a reference to the CPU datasheet or programming manual ?
> >
> >>
> >> What I'd like to know is: Does the aesni driver in FreeBSD also 
> >> support
> >> AMD CPUs? The man page explicitly states the driver is for Intel 
> >> CPUs,
> >> but since the AES-NI instruction set is licensed by AMD, I think it
> >> should also work with those CPUs?
> > The aesni(4) driver attaches on any CPU that reports AESNI support 
> > through
> > the CPUID instruction. If amd implemented bit-to-bit compatible AESNI
> > instruction set and report the capability in CPUID, driver shall just 
> > work.
> >
> > I never saw any bulldozer live, so this is the most I can answer to 
> > you.
> >
> >>
> >>
> >> A reply would be greatly appreciated,
> >>
> >> Best Regards,
> >> Mario
> 
> _______________________________________________
> freebsd-amd64 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
> To unsubscribe, send any mail to "freebsd-amd64-unsubscribe at freebsd.org"




More information about the freebsd-amd64 mailing list