Bug 1713658
Summary: | valgrind does not recognise rdrand and f16c instructions on machines without avx2 | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Alexandra Petlanová Hájková <ahajkova> |
Component: | valgrind | Assignee: | Mark Wielaard <mjw> |
valgrind sub component: | system-version | QA Contact: | Alexandra Petlanová Hájková <ahajkova> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | unspecified | ||
Priority: | unspecified | CC: | fweimer, jakub, ohudlick |
Version: | 8.1 | Flags: | pm-rhel:
mirror+
|
Target Milestone: | rc | ||
Target Release: | 8.0 | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | valgrind-3.15.0-9.el8 | Doc Type: | No Doc Update |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-11-05 20:51:51 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Alexandra Petlanová Hájková
2019-05-24 12:25:06 UTC
This caused by the following code in machine_get_hwcaps () coregrind/m_machine.c: /* Sanity check for RDRAND and F16C. These don't actually *need* AVX2, but it's convenient to restrict them to the AVX2 case since the simulated CPUID we'll offer them on has AVX2 as a base. */ if (!have_avx2) { have_f16c = False; have_rdrand = False; } This is somewhat lame. It could be argued that this is a testsuite bug, because it checks for support of f16c and rdrand on the host instead of under valgrind itself. But there really is no reason valgrind couldn't support f16c and rdrand in this case. It would need some surgery to the cpuid emulation code though. Fix proposed upstream: https://bugs.kde.org/show_bug.cgi?id=408009 I verified rdrand and fc16 tests passes on machines with avx (without avx2) which supports rdrand and f16c instructions and are skipped and instread of failing on machines with avx or avx2 when the machine does not support such instructions. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2019:3346 |