Only enable arm64 CRC32 acceleration if the required header files are there
PATCH 1/1 Only enable arm64 CRC32 acceleration if the required header files are there
If the necessary header files are missing, then fio will bomb out when building on arm64. So disable the hardware acceleration option in that case, since it's only performance improvement and not a functional regression to turn it off.
Signed-off-by Theodore Ts'o <[email protected]>
--- configure | 4 ++++ 1 file changed, 4 insertions(+)
configure +4 -0
@@ -1807,6 +1807,10 @@ echo "bool $have_bool" march_armv8_a_crc_crypto="no" if test "$cpu" = "arm64" ; then cat > $TMPC <<EOF +#include <sys/auxv.h> +#include <arm_acle.h> +#include <arm_neon.h> + int main(void) { return 0;
Signature · 1 line
2.11.0.rc0.7.gbe5a750
Quoted 4 lines · Theodore Ts'o
If the necessary header files are missing, then fio will bomb out when building on arm64. So disable the hardware acceleration option in that case, since it's only performance improvement and not a functional regression to turn it off.
Thanks Ted, applied.
Signature · 1 line
Jens Axboe