Support AES HW acceleration on ARMv8
Categories
(NSS :: Libraries, defect, P2)
Tracking
(Performance Impact:high, firefox40 wontfix, firefox-esr60 wontfix, firefox-esr68 wontfix, firefox67 wontfix, firefox67.0.1 wontfix, firefox68 wontfix, firefox69 wontfix, firefox70 wontfix, firefox71 fixed)
People
(Reporter: m_kato, Assigned: m_kato)
References
(Blocks 1 open bug)
Details
(Keywords: feature, perf:pageload, Whiteboard: [geckoview:p2] [bcs:p2])
Attachments
(4 files)
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Comment 1•7 years ago
|
||
Assignee | ||
Comment 2•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Comment 3•7 years ago
|
||
Assignee | ||
Comment 4•7 years ago
|
||
Assignee | ||
Comment 5•7 years ago
|
||
Assignee | ||
Comment 6•7 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Updated•5 years ago
|
Comment 7•5 years ago
|
||
FYI, apparently all armv8 HW has the AES instructions (which are officially optional).
Updated•5 years ago
|
Assignee | ||
Comment 8•5 years ago
|
||
Comment 9•5 years ago
|
||
esr68=affected because we might want to uplift this optimization to Fennec ESR 68.1.
Updated•5 years ago
|
Comment 10•5 years ago
|
||
Makoto, are you still working on this bug? Will AES HW acceleration improve TLS speed or just reduce power usage?
P2 because there has not been recent activity on this bug. Depending on the performance results, we'll need to decide if we want to uplift to Fennec ESR 68.x.
Comment 11•5 years ago
|
||
There's still work happening here, part due to bug 1556022, and part due to a webcompat issue Kevin caught using the TLS Canary.
The webcompat issue Kevin is soon going to work on - we need to basically run a few terabytes of data through this implementation against other implementations until we find one (or more) of the mismatches that caused connection errors in the Canary run.
Assignee | ||
Comment 12•5 years ago
|
||
(In reply to Chris Peterson [:cpeterson] from comment #10)
Makoto, are you still working on this bug? Will AES HW acceleration improve TLS speed or just reduce power usage?
Yes. both is improved.
Comment 13•5 years ago
|
||
Updated•5 years ago
|
Comment 14•5 years ago
|
||
Note - This patch may need to be backed out (per Bug 1570991) so I can land the other NSS changes into m-c. I'll be running an upstream try run on it to confirm whether this patch is the offender and report back.
Assignee | ||
Comment 15•5 years ago
|
||
(In reply to J.C. Jones [:jcj] (he/him) from comment #14)
Note - This patch may need to be backed out (per Bug 1570991) so I can land the other NSS changes into m-c. I'll be running an upstream try run on it to confirm whether this patch is the offender and report back.
Hmm, is this PGO bug? When I have Pixel 2 and I cannot hit crash during my testing with opt and debug build.
Assignee | ||
Comment 16•5 years ago
|
||
Looking PGO crash, since I add __builtin_assume_aligned to improve read performance, iv isn't aligned to 16 for PGO. I have to remove __builtin_assume_aligned for key and iv.
Fix is coming soon.
Assignee | ||
Comment 17•5 years ago
|
||
AESContext->iv
doesn't align to 16 bytes on PGO build, so we should remove
__builtin_assume. Also, I guess that expandedKey
has same problem.
Comment 18•5 years ago
|
||
Backed out for crash in arm_aes_encrypt_cbc_128 on Android 8.0 Pixel2 pgo
Comment 19•5 years ago
|
||
status-firefox-esr68=wontfix because we don't plan to uplift these NSS changes to Fennec ESR 68.
Comment 20•5 years ago
|
||
This is probably going to have to roll into Firefox 71 since we're late in the cycle and it's risky, so marking for 3.47.
Comment 21•5 years ago
|
||
Depends on D34473
Updated•5 years ago
|
Assignee | ||
Comment 22•5 years ago
|
||
Kevin, do I still have any issue to land this?
Comment 23•5 years ago
|
||
Feature freeze is today, so if it's going into 3.47, it needs to land today. I'm good with taking it - Kevin will be back in office later today and I presume after brief conference we'll land everything and tag BETA1. Settting a needinfo to myself.
Comment 24•5 years ago
|
||
https://hg.mozilla.org/projects/nss/rev/efb895a43899
https://hg.mozilla.org/projects/nss/rev/1b0f5c5335ee
https://hg.mozilla.org/projects/nss/rev/9abcea09fdd4
Comment 25•5 years ago
|
||
Setting firefox70=wontfix because I assume it's too late in the Beta cycle to uplift NSS changes to Firefox 70 Beta (release date October 22).
Updated•3 years ago
|
Description
•