Re-enable Neon dot on unknown chipsets (Armv7), improve Unisoc vendor detection #342
+27
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In #265, I disabled Neon dot product instructions on certain Unisoc chipsets due to sporadic SIGILL crashes. This reduced the occurance substantially, but we still saw some crashes on Unisoc phones. I tracked this down to cpuinfo vendor detection failing on some phones due to conflicting Unisoc and Spreadtrum vendor info and thus not hitting the check. I disabled neondot on all unknown chipsets on armv7 in #300, based on the (faulty) assumption that major chipsets would not be considered to have an unknown vendor.
That assumption was not correct, so I've refined the check in this PR to resolve the ambiguity in vendor detection and re-enabling neon dot instructions on unknown chipsets in armv7 mode. This should resolve the issue for unisoc phones and undo any perf regression for non-Unisoc devices.