Closed Bug 1559012 Opened 5 years ago Closed 5 years ago

Improve GCM perfomance using PMULL2

Categories

(NSS :: Libraries, enhancement, P1)

ARM64
Unspecified
enhancement

Tracking

(firefox-esr60 wontfix, firefox-esr68 wontfix, firefox67 wontfix, firefox67.0.1 wontfix, firefox68 wontfix, firefox69 affected)

RESOLVED FIXED
Tracking Status
firefox-esr60 --- wontfix
firefox-esr68 --- wontfix
firefox67 --- wontfix
firefox67.0.1 --- wontfix
firefox68 --- wontfix
firefox69 --- affected

People

(Reporter: m_kato, Assigned: m_kato)

References

Details

(Whiteboard: [geckoview:p2] [bcs:p2])

Attachments

(1 file)

we can improve perfomance using PMULL2 instruction of aarch64. PMULL2 is only aarch64 mode, not ARMv8.

Cortex-A72 single core with my WIP.

Original

     mode          in symmkey  opreps  cxreps     context          op   time(sec)     thrgput
 aes_gcm_e       190Mb     192     12M       0       0.000   10000.000      10.000        19Mb

Using PMULL2

      mode          in symmkey  opreps  cxreps     context          op   time(sec)     thrgput
 aes_gcm_e       501Mb     192     32M       0       0.000   10000.000      10.000        50Mb
Type: defect → enhancement
Status: NEW → ASSIGNED
Priority: -- → P1

esr68=affected because we might want to uplift this optimization to Fennec ESR 68.1.

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.46

status-firefox-esr68=wontfix because we don't plan to uplift these NSS changes to Fennec ESR 68.

Regressions: 1581391
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: