Open Bug 1631093 Opened 6 years ago Updated 3 years ago

SSE4A detection should check processor vendor

Categories

(Core :: mozglue, defect)

defect

Tracking

()

People

(Reporter: agashlin, Unassigned)

Details

The SSE4A detection from bug 513422, still present, checks a bit [1] that AMD uses to indicate SSE4A [2], but that Intel documents as "Reserved" [3]. While it is unlikely that Intel will use this bit for something incompatible, it seems prudent to check that we are actually looking at an AMD processor's cpuid before interpreting that bit, as is done in Rust std_detect.

As far as I can tell this is only used for telemetry, and when requesting updates. For updates this is done so that clients with processors lacking the features aren't updated to a build requiring them, but this probably isn't relevant for SSE4A.

[1] bit 6 of ecx returned from giving cpuid eax=0x80000001
[2] AMD64 Architecture Programmer’s Manual Volume 3: General Purpose and System Instructions rev 3.29 April 2020 Appendix E.4.2 p575 "CPUID Fn8000_0001_ECX Feature Identifiers"
[3] Intel 64 and IA-32 Architectures Software Developer Manual Vol. 2A October 2019 p3-214 "Information Returned by CPUID Instruction"

The priority flag is not set for this bug.
:glandium, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(mh+mozilla)
Severity: -- → S4

Setting priority is no longer part of current triage processes, clearing needinfo.

Flags: needinfo?(mh+mozilla)
You need to log in before you can comment on or make changes to this bug.