Discussion:
AMD Bulldozer and aesni driver
(too old to reply)
Mario Fleischmann
2012-02-04 12:34:08 UTC
Permalink
I'm wondering if the aesni module in FreeBSD 9.0 does support the
current AMD FX CPUs. The manpage explicitly states support for Intel
CPUs, but since AMD licensed AES-NI from Intel, I think it should also
work with the current Bulldozer lineup.

Does anyone have experience with aesni regarding the current Zambezi cores?

Regards,
Mario Fleischmann
潘图
2012-03-09 20:58:05 UTC
Permalink
Still no info on this?
I am also about to buy a bulldozer, but I need to know if the aesni driver
supports the bulldozer.
Please anyone already using it?

潘图

--
View this message in context: http://freebsd.1045724.n5.nabble.com/AMD-Bulldozer-and-aesni-driver-tp5456101p5551674.html
Sent from the freebsd-hardware mailing list archive at Nabble.com.
Oleg Baranov
2012-03-10 08:47:36 UTC
Permalink
Hi!

aesni(4) driver detects the module on Bulldozer fine.
I was happy to see it first but then I found out that openssl that goes
as part of FreeBSD distribution lacks AESNI engine module.
There are some patches for bringing aesni into FreeBSD mentioned on
forums but this in not a production-system-running approach for me.
So the answer is YES - it exists, but right then NO - it does not work.



CPU: AMD FX(tm)-8120 Eight-Core Processor (3110.48-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>>
TSC: P-state invariant, performance statistics
real memory = 17179869184 (16384 MB)
avail memory = 16460046336 (15697 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <ALASKA A M I>
FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs
FreeBSD/SMP: 1 package(s) x 8 core(s)
cpu0 (BSP): APIC ID: 16
cpu1 (AP): APIC ID: 17
cpu2 (AP): APIC ID: 18
cpu3 (AP): APIC ID: 19
cpu4 (AP): APIC ID: 20
cpu5 (AP): APIC ID: 21
cpu6 (AP): APIC ID: 22
cpu7 (AP): APIC ID: 23
ACPI Warning: Optional field Pm2ControlBlock has zero address or length:
0x0000000000000000/0x1 (20110527/tbfadt-586)
ioapic0 <Version 2.1> irqs 0-23 on motherboard
ioapic1 <Version 2.1> irqs 24-55 on motherboard
kbd1 at kbdmux0
cryptosoft0: <software crypto> on motherboard
aesni0: <AES-CBC,AES-XTS> on motherboard
Post by 潘图
Still no info on this?
I am also about to buy a bulldozer, but I need to know if the aesni driver
supports the bulldozer.
Please anyone already using it?
图潘
2012-03-10 15:37:19 UTC
Permalink
What patches are you talking about? There is an official aesni driver
http://www.freebsd.org/cgi/man.cgi?query=aesni&sektion=4&manpath=FreeBSD+8.2-RELEASE
And it does work for intel.
Sorry I didnt quite understand you fully. Do you mean it does not work
in general?
Post by Oleg Baranov
Hi!
aesni(4) driver detects the module on Bulldozer fine.
I was happy to see it first but then I found out that openssl that goes as
part of FreeBSD distribution lacks AESNI engine module.
There are some patches for bringing aesni into FreeBSD mentioned on forums
but this in not a production-system-running approach for me.
So the answer is YES - it exists, but right then NO - it does not work.
CPU: AMD FX(tm)-8120 Eight-Core Processor            (3110.48-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>>
 TSC: P-state invariant, performance statistics
real memory  = 17179869184 (16384 MB)
avail memory = 16460046336 (15697 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <ALASKA A M I>
FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs
FreeBSD/SMP: 1 package(s) x 8 core(s)
 cpu0 (BSP): APIC ID: 16
 cpu1 (AP): APIC ID: 17
 cpu2 (AP): APIC ID: 18
 cpu3 (AP): APIC ID: 19
 cpu4 (AP): APIC ID: 20
 cpu5 (AP): APIC ID: 21
 cpu6 (AP): APIC ID: 22
 cpu7 (AP): APIC ID: 23
0x0000000000000000/0x1 (20110527/tbfadt-586)
ioapic0 <Version 2.1> irqs 0-23 on motherboard
ioapic1 <Version 2.1> irqs 24-55 on motherboard
kbd1 at kbdmux0
cryptosoft0: <software crypto> on motherboard
aesni0: <AES-CBC,AES-XTS> on motherboard
Post by 潘图
Still no info on this?
I am also about to buy a bulldozer, but I need to know if the aesni driver
supports the bulldozer.
Please anyone already using it?
Oleg Baranov
2012-03-11 09:57:30 UTC
Permalink
Hi!

I mean that most of software which utilizes encryption relies on OpenSSL
library. It looks that current version of OpenSSL in FreeBSD cannot use
aesni as hardware accelerator, so all that software cannot benefit from
using aesni.

On the other hand there is stuff like ipsec and geli which relies on
crypto(9) framework. This may use aesni accelerator. Unfortunately the
machine with Bulldozer that I have use neither of them so I cannot tell
how significant improvement is.
Post by 图潘
What patches are you talking about? There is an official aesni driver
http://www.freebsd.org/cgi/man.cgi?query=aesni&sektion=4&manpath=FreeBSD+8.2-RELEASE
And it does work for intel.
Sorry I didnt quite understand you fully. Do you mean it does not work
in general?
Post by Oleg Baranov
Hi!
aesni(4) driver detects the module on Bulldozer fine.
I was happy to see it first but then I found out that openssl that goes as
part of FreeBSD distribution lacks AESNI engine module.
There are some patches for bringing aesni into FreeBSD mentioned on forums
but this in not a production-system-running approach for me.
So the answer is YES - it exists, but right then NO - it does not work.
CPU: AMD FX(tm)-8120 Eight-Core Processor (3110.48-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>>
TSC: P-state invariant, performance statistics
real memory = 17179869184 (16384 MB)
avail memory = 16460046336 (15697 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table:<ALASKA A M I>
FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs
FreeBSD/SMP: 1 package(s) x 8 core(s)
cpu0 (BSP): APIC ID: 16
cpu1 (AP): APIC ID: 17
cpu2 (AP): APIC ID: 18
cpu3 (AP): APIC ID: 19
cpu4 (AP): APIC ID: 20
cpu5 (AP): APIC ID: 21
cpu6 (AP): APIC ID: 22
cpu7 (AP): APIC ID: 23
0x0000000000000000/0x1 (20110527/tbfadt-586)
ioapic0<Version 2.1> irqs 0-23 on motherboard
ioapic1<Version 2.1> irqs 24-55 on motherboard
kbd1 at kbdmux0
cryptosoft0:<software crypto> on motherboard
aesni0:<AES-CBC,AES-XTS> on motherboard
Post by 潘图
Still no info on this?
I am also about to buy a bulldozer, but I need to know if the aesni driver
supports the bulldozer.
Please anyone already using it?
Loading...