From 8cad9cc10a64af963f7b32043e7bd18c1885445f Mon Sep 17 00:00:00 2001 From: Richael Zhuang Date: Wed, 23 Oct 2019 11:26:00 +0800 Subject: [PATCH] spdk: enable isa-l by default aarch64 In addition to x86, enable isa-l by default on aarch64. Signed-off-by: Richael Zhuang Change-Id: I2db3f248bdc857326ec9b6f4b040a95d2a2ca1ca Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/472107 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Tomasz Zawadzki Reviewed-by: Shuhei Matsumoto --- CHANGELOG.md | 2 ++ configure | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29d518b41..4185c7733 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ Updated ISA-L submodule to commit f3993f5c0b6911 which includes implementation and optimization for aarch64. +Enabled ISA-L on aarch64 by default in addition to x86. + ### thread `spdk_thread_send_msg` now returns int indicating if the message was successfully diff --git a/configure b/configure index 48837ca1a..4aa86608c 100755 --- a/configure +++ b/configure @@ -86,7 +86,7 @@ function usage() echo " If argument is file, interpret it as compiled OCF lib" echo " If no argument is specified, OCF git submodule is used by default" echo " example: /usr/src/ocf/" - echo " isal Build with ISA-L. Enabled by default on x86 architecture." + echo " isal Build with ISA-L. Enabled by default on x86 and aarch64 architectures." echo " No path required." echo " uring Build I/O uring bdev." echo " If an argument is provided, it is considered a directory containing" @@ -395,9 +395,9 @@ else BUILD_CMD=($CC -o /dev/null -x c $CPPFLAGS $CFLAGS $LDFLAGS) fi -# Detect architecture and force no ISA-L if non-x86 archtecture +# Detect architecture and force no ISA-L if non-x86 or non-aarch64 architecture if [[ "${CONFIG[ISAL]}" = "y" ]]; then - if [[ $arch != x86_64* ]]; then + if [[ $arch != x86_64* ]] && [[ $arch != aarch64* ]]; then echo "Notice: ISA-L disabled due to CPU incompatiblity." CONFIG[ISAL]=n fi