Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3166802lqp; Tue, 26 Mar 2024 01:06:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX9ZJElt1ouHRHv2vnL7ohjVV0kBvqvAxfu+OVGczDtzPt62AT2isvWp9IRHefOslIIx9biiJ9oRlPfSZIQ042LLjCrpzCTwN398DpDpw== X-Google-Smtp-Source: AGHT+IH+GJXAaZoLrkwEEDEp+QyLxNe1GZmD+Bj4HbH3xrKY3R8Ozsgxo5qFTgih4lhHTos41HUg X-Received: by 2002:a17:906:b351:b0:a47:a340:c9c1 with SMTP id cd17-20020a170906b35100b00a47a340c9c1mr323488ejb.27.1711440371276; Tue, 26 Mar 2024 01:06:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711440371; cv=pass; d=google.com; s=arc-20160816; b=whWPyDhynHtVq2ERfIwSc6d4DhRCdjELS+NIrUgu71B6yJfvxHTHDdZYGvkYkKTUkM xTK5ZLL7EczmAA2DEu/xiG4rs7Vorlb8WAeYbYQZuzfYSLRtGDuLdtvCK1srcTfjruRK 0HIreGX7Obgunz33OlbtnXBCFRgAOHw7pC12Sq2yNNh5JFN2qpHH9ew+xVdMuWQ6QT8m kjvBhPUC+mPO6pavN0NwxfJkgAZKCdNbOLMbos4TXI7XKg/Mx9xzyYbVmEVY5onvpkCs G3GYPuxrkSQZiEcwxXiJ4ahmnsO1Dj0+akFyA0IgcUZ/xJns9QIMooSBWFDRoEGMaI3k HARA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=iMjCDlIPyz/HSxt1+Q259UAoWci70CdKFBQs2/QMc1s=; fh=HYLtzSYcxOa1KHDXbG6ny3oWyG0LxDnh9szm5mOcs3E=; b=uXD81mgpm51b+k4RdX7ACBqzsCV7noGqiSlg3/hAWCG6+R1y6rFulAsTknoi7z59ad l4HDYXkRlE8UQXpTimyOY8IqWifNuPV/XC+te/spaH2pl8IlCRD7wjZmqetHYgad6xfm actqiPPcYviEzicnYm2cItaNCJTEVrLXRaxQO1UzyL1PAhPyVkuxBEB0Eb8Xvyit/55Z G2NMY/S9fBtGClCV3HM7tVb3wuPOoLuWrGyx03Tgigzi0ehslQVpjrzXVzVZdFLWUD/y AzVR7Ltcx2eBZhsLOsHkdaO9i4mv6NJN92c5C3tGoMkydCRBaxyGg8docM8+8muBB0ge dXFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ThzC7bMW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-2860-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2860-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id sh19-20020a1709076e9300b00a4747432905si2906572ejc.258.2024.03.26.01.06.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 01:06:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-2860-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ThzC7bMW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-2860-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2860-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 075AA1F3A888 for ; Tue, 26 Mar 2024 08:06:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87A7D133420; Tue, 26 Mar 2024 08:06:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ThzC7bMW" X-Original-To: linux-crypto@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 433221332BC; Tue, 26 Mar 2024 08:06:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711440363; cv=none; b=faiSmpPApR8Sor3Tg7PkvWiMpWJ3SZDugQZy5DMRR31CK7xCyi2qh4tx1mHUg9r1JhXoLKcHwK7e0PGKmmrcw7m8m7ne8lS2d3+kC8oavRZItU5HiKx8N97PN3GDRvstk0JuWo2jjTpkXTx8pc+cRuGpJbfGmEh6WkYZvu3BiUo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711440363; c=relaxed/simple; bh=gUgld87S6b7a0jKCHf6oa5mjj1DMZIwYnPejvQVpIUE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=t+/cWQMrctMa5UpjkwVvBHFDp+GbRRcLPDB7KVBhnIDTmwM+nxbaB+UbIWl+T1flyA2LC9JxJoi/9+IWkSs+ufg/1XZrKT1L+nG3toioI/z/l8ieFdar1nMQ4cK9fJBWJs8lli8PSDF0TpIsgHLYtnrm+GNQTlWliXVbpOBQIPU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ThzC7bMW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CA0FC43394; Tue, 26 Mar 2024 08:06:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711440362; bh=gUgld87S6b7a0jKCHf6oa5mjj1DMZIwYnPejvQVpIUE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ThzC7bMWrWwTwH5Lyw3J0i4Tw7Y3E6TlfgdtHmCECGaZxGBIA4xh6XV4zhvZh/vB5 2Fe73bXC/VLUUFcQ8J2FG1YlhvekxnKXqtoQtJzczp+/hoNqQewEWL8Yb+Lg07iTTg 7kyUPMOz8+uisZu+4Sr5DdperesocsCcQ9oNJGCuV4rniPb93y0VEUnH+P0I+HpOIf eLTLXIK3yumnQbgRhlqi2rgKmRgNcom8Oq7tbjA+eGUkVzCO/HfV6GG4+dUXRhczS1 U4neS0ivz11QtIgenplqVYQJvtP1d6Z50jaOa+hRd6xdE1GsSpJTzIzGZADpRFcTcI VS4S7m4ECNjTg== From: Eric Biggers To: linux-crypto@vger.kernel.org, x86@kernel.org Cc: linux-kernel@vger.kernel.org, Ard Biesheuvel , Andy Lutomirski , "Chang S . Bae" Subject: [PATCH 1/6] x86: add kconfig symbols for assembler VAES and VPCLMULQDQ support Date: Tue, 26 Mar 2024 01:02:59 -0700 Message-ID: <20240326080305.402382-2-ebiggers@kernel.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240326080305.402382-1-ebiggers@kernel.org> References: <20240326080305.402382-1-ebiggers@kernel.org> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Eric Biggers Add config symbols AS_VAES and AS_VPCLMULQDQ that expose whether the assembler supports the vector AES and carryless multiplication cryptographic extensions. Signed-off-by: Eric Biggers --- arch/x86/Kconfig.assembler | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/x86/Kconfig.assembler b/arch/x86/Kconfig.assembler index 8ad41da301e5..59aedf32c4ea 100644 --- a/arch/x86/Kconfig.assembler +++ b/arch/x86/Kconfig.assembler @@ -23,9 +23,19 @@ config AS_TPAUSE config AS_GFNI def_bool $(as-instr,vgf2p8mulb %xmm0$(comma)%xmm1$(comma)%xmm2) help Supported by binutils >= 2.30 and LLVM integrated assembler +config AS_VAES + def_bool $(as-instr,vaesenc %ymm0$(comma)%ymm1$(comma)%ymm2) + help + Supported by binutils >= 2.30 and LLVM integrated assembler + +config AS_VPCLMULQDQ + def_bool $(as-instr,vpclmulqdq \$0x10$(comma)%ymm0$(comma)%ymm1$(comma)%ymm2) + help + Supported by binutils >= 2.30 and LLVM integrated assembler + config AS_WRUSS def_bool $(as-instr,wrussq %rax$(comma)(%rbx)) help Supported by binutils >= 2.31 and LLVM integrated assembler -- 2.44.0