Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionAlexandra Petlanová Hájková
2019-05-24 12:25:06 UTC
valgrind does not recognise rdrand and f16c instructions on machines without avx2 which makes none/tests/amd64/f16c and none/tests/amd64/rdrand tests fail
rpm -q valgrind
valgrind-3.15.0-4.el8.x86_64
/vg-in-place -v none/tests/amd64/rdrand 2>&1 | grep -i hwcaps
--6458-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-rdtscp-sse3-ssse3-avx
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.
Comment 4Alexandra Petlanová Hájková
2019-06-03 10:12:35 UTC
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