Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1782891rwb; Sun, 15 Jan 2023 04:20:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXs6gJNxxzrpBD1XlXxARsoCFq9FJcKosap3r443WQnxFnyapcRzYYUXOXfNkn2Cv/Q9REd0 X-Received: by 2002:a05:6a20:8f26:b0:ad:db18:6d0d with SMTP id b38-20020a056a208f2600b000addb186d0dmr131250979pzk.59.1673785207629; Sun, 15 Jan 2023 04:20:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673785207; cv=none; d=google.com; s=arc-20160816; b=VoNqlWvqM6lnXU+GghDhDOcrFc+D0IDggXKSBw0IIkaXX3sE/ZI4jD0B77BcqwO/c9 R4WmF4R0uRM/waWS/PzfMN5XXTIYSbiodNus254ySuJvR6A26ogaziAngs6Pa3sIVoD/ Q8VJ7IXnifn37x0KVS9kRlTSsnuRGcmsxuHyiCZouvx2G0KMcN0l+/QQcrodGWC7ud0F FjzllFULvGb64S6zHipWOTdSKsqynHmNDTPltYMCExWRtFFVzIpVNQ7RQzhQJpgJL3j2 rqOVcHE0VOv2UhIuwam48oD3n03YVxcWGnrs12aCPHQ2BBPhoyJ6Y4ocysZwpUDYeCjL tnZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wohviZ5AvrjkuM7pQcDlfVJrclFly2Iud3REWsRmAw4=; b=wwj8sVrduuoBDOGCXtYPkUr6T5ZtAqSl86gDvjkQ0gfSL+2jah8HWpVuIxO76gH8Zy KRQq75jZHj1NuMY7JY4nRsS1fi7G6b64Gl5y+Dqu8muFYDkvQh8xmPbc2TlBCCbhE6Aa aSnmQ+L94N7nIGAwJaNR/eTvJepi0tV7e+VSmDfDRuOBSHf9kwAQpm/WYuYS/cgEWbu7 Krppnsh2Mh63wkUSZZ0NiizuEgvHzsHxFX2eF/cCV3Z+iyYJb+bdwq0oMi0OBYPOAaaz 9J6PO+oj5ZyU2VRPW43PY1OTjbwLjT2WmaptZfBp9QbOnJ6YlVUMq4M5CBRUOwzQ6vWX ALVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lY7pD+T5; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iz17-20020a170902ef9100b00188f0ca6838si22556785plb.569.2023.01.15.04.19.54; Sun, 15 Jan 2023 04:20:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lY7pD+T5; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231317AbjAOMQN (ORCPT + 99 others); Sun, 15 Jan 2023 07:16:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231320AbjAOMQL (ORCPT ); Sun, 15 Jan 2023 07:16:11 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42AEFEC77 for ; Sun, 15 Jan 2023 04:16:10 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id b9-20020a17090a7ac900b00226ef160dcaso26886809pjl.2 for ; Sun, 15 Jan 2023 04:16:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wohviZ5AvrjkuM7pQcDlfVJrclFly2Iud3REWsRmAw4=; b=lY7pD+T5ac0vU7tN+oT3cgxBrTlrow27QBa+Ul+yDnwo4ujhty+UqIMla6wQh4uopA fLdjIO/298xMCdgXYXH+755sNG07yPI29YYubpWXM+DG2Ejegv+d9yv/5uq6ejresUPQ wPUoPF4dznYt7YVMz9m6PaLnTAxIfO26e8foeMXuZmiQVa7xoKb9SD3FXjG1Hko/YSaW bcx+QG1E0JZGvhauEG3Q6r7Acnq7SA0R32MqsN0fuRcAjK51mHcbVW3cgVkrFlBsHq7+ d7rFXFqzTYMA/z1MaXzsx6EJpTzidg9jDuliX1ky7DEiPguf4YBJxj/Ek4Df4mbumQri BAww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wohviZ5AvrjkuM7pQcDlfVJrclFly2Iud3REWsRmAw4=; b=gAnGsypLhhCp1NGBEPGsDvzL/1my3+TOO8KZhr08qWIAqWRYn2TsSsVByinJrXWmLk GZHow2Bu9s6ydybHhpooYMuFGZ1d9j+ge/fubYpOfmBQg0jx1cP1KXBD0V1JxkOrJiVA d041XLXGqU3FgNJYGzExTltqp9jy+VnxnMaOhgkGAa8ikYMxWeFQRlmZUIUdsdrWTGLk mGdcdxuYKcsCeLLzU8boZd7yu0KnzbKXsAkqxYcOrvUv7vAQhFch9UzoiToRzvryp5vd m4ftbdvRoA2FX4wI2EWWRibOVHD0rj5ZS56A8wpwnrYz0+mHzhvm4EGDR03HMcnZ3Bs3 vgkQ== X-Gm-Message-State: AFqh2kpaRvNTRN13D3gRgCoebphDVPpIP+N6Jq4amM0h+Nc5hH3ytI5d On1nq/BtKUfPedHAa2CE20yZqdlBSKo= X-Received: by 2002:a17:90a:8a84:b0:229:3660:1759 with SMTP id x4-20020a17090a8a8400b0022936601759mr7866277pjn.25.1673784968666; Sun, 15 Jan 2023 04:16:08 -0800 (PST) Received: from ap.. ([182.213.254.91]) by smtp.gmail.com with ESMTPSA id e13-20020a63e00d000000b00485cbedd34bsm14361783pgh.89.2023.01.15.04.16.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Jan 2023 04:16:07 -0800 (PST) From: Taehee Yoo To: linux-crypto@vger.kernel.org, herbert@gondor.apana.org.au, davem@davemloft.net, x86@kernel.org Cc: jbeulich@suse.com, ap420073@gmail.com Subject: [PATCH 3/3] crypto: x86/aria-avx15 - fix build failure with old binutils Date: Sun, 15 Jan 2023 12:15:36 +0000 Message-Id: <20230115121536.465367-4-ap420073@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230115121536.465367-1-ap420073@gmail.com> References: <20230115121536.465367-1-ap420073@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The minimum version of binutils for kernel build is currently 2.23 and it doesn't support GFNI. So, it fails to build the aria-avx512 if the old binutils is used. aria-avx512 requires GFNI, so it should not be allowed to build if the old binutils is used. The AS_AVX512 and AS_GFNI are added to the Kconfig to disable build aria-avx512 if the old binutils is used. Fixes: c970d42001f2 ("crypto: x86/aria - implement aria-avx512") Reported-by: Jan Beulich Signed-off-by: Taehee Yoo --- arch/x86/crypto/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/crypto/Kconfig b/arch/x86/crypto/Kconfig index 688e848f740d..9bbfd01cfa2f 100644 --- a/arch/x86/crypto/Kconfig +++ b/arch/x86/crypto/Kconfig @@ -325,7 +325,7 @@ config CRYPTO_ARIA_AESNI_AVX2_X86_64 config CRYPTO_ARIA_GFNI_AVX512_X86_64 tristate "Ciphers: ARIA with modes: ECB, CTR (AVX512/GFNI)" - depends on X86 && 64BIT + depends on X86 && 64BIT && AS_AVX512 && AS_GFNI select CRYPTO_SKCIPHER select CRYPTO_SIMD select CRYPTO_ALGAPI -- 2.34.1