Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp228503lqp; Wed, 22 May 2024 02:47:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWz4UQ1UgtdmPJB4GbcMuxN+QD9a0n/xoeIO+r7CpxFngA9LZ3rHnpwACJiT0E0cq1TFe9qw6mq1t9ZMWeUnePRzlWuawEjHQBcWGgP8Q== X-Google-Smtp-Source: AGHT+IGLF4W+cVyruOJuAG89RTqZJ1XhIbXDJcTUm6ibAXR5ymgEkI25Ye4tJzKR75Ye888Dz1CZ X-Received: by 2002:a05:6214:2f01:b0:6a3:27b4:9b72 with SMTP id 6a1803df08f44-6ab7f352db2mr16163366d6.5.1716371253051; Wed, 22 May 2024 02:47:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716371253; cv=pass; d=google.com; s=arc-20160816; b=z3S2VZgt+u9Lr5XJu3R1KjHMnUCmoi2jNvFisd3+z5bnDxR+JM+ErWXrrRaAujI4LC 5EuooZEX43TwVkc3GLA9eQHSf2ZndC4DGZNYH2UiQJsROsqqpGhyXz+3iYmP5fXoYW+v exXsVQojY77bL5wL2K1pKEAtNh6y53E69Z7iauZ3V/MPRc+VLydA0IO9I1XzQM6G5tWW GYwagJD+GRWSDgkEmoMQEEcxupg5Eopav57iC11iH+NxPSHNZ1/L6XQJQYIB8Yj3YdR4 nM5pceXkKUKHkHLQaOiQoJmd8elelcsqIuUOuM4+orl781rFef47LRUuNr8jwhPEUAt9 6z+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=tbci3/Q4QiVdr3IVwLhtaqvHRvmSpRWKwJzp81lpGZk=; fh=SU4dNhPAhU09b5VNM2rWTktgMptmGTM899YDyJ6okZU=; b=EKcs1gOUI3KTMOHSTf7c5rSW4/mRjgfVyf2xmDRmafqSj41nWhVwyqSq9KB3b2fU45 7Nt0UpUMSI5wRboAnO+JXZYlkeSJ8hU1obaRhJyj9knOzAMVOXl4//FPqWKJwPOzNNnM OA47XOqnUgqutp2/O+lCBQgAOdzjJvtKdO3D898OnqERxLk36g0vs3Ewe54O6ZAnMcvu pj/AIAKBY+cdIXWXI0D/9NzKyDxeCwWTNsGLtgwR19hmhLLpJO1SRdLyknvf82/1aVAN vTgQ5blYXIhchGWXWXAK/2IBJDSTQjwIK9ela9Hn96dD+wc65v6tTH0jWG3a46FzWbgc Yhjw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=rwXL67JA; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Qv7C0+Wj; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-186005-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186005-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ab4e1062fdsi56874086d6.256.2024.05.22.02.47.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 02:47:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186005-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=rwXL67JA; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Qv7C0+Wj; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-186005-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186005-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 39D861C20F63 for ; Wed, 22 May 2024 09:47:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A7AF8172D; Wed, 22 May 2024 09:47:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="rwXL67JA"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Qv7C0+Wj" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 5AD8481722; Wed, 22 May 2024 09:47:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716371228; cv=none; b=rZvkpowDPAcFSRVxiaLmJpJVjDKJalNcJvyIyQaXikaD107vhLIUfQeJ8EdrgdaFOyCRNf9I1h6yE/+RP2CIjRU3Lf//JUQTtG/DaYHtGjZRrq6IZ2q6raQ3x4iWRHXZEiRxxMUqCQlOmQ/2iN4HmunT0XjYz8j9n3pSZq/kNYU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716371228; c=relaxed/simple; bh=GbH3ZjuIogxSDiRqCT4Y8LqcpzEVznEj2b457At/qkk=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=m1RfrG4dR/X8/9+kx7k+Rq6jxRnP94cOM5U8NwnXYzquPYa261CaE6P9J0NEzt8mA+smlBCz66JMrTZtLsGKwan8oN+HK8a+X1Z3PKD6lgBWz0jkxtfV8rLEPs/vUp4HNQLdKbZ0QkG7/YOjtJ6Ng1SixH/c0stacjL3MFSGJeY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=rwXL67JA; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Qv7C0+Wj; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Wed, 22 May 2024 09:47:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1716371225; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tbci3/Q4QiVdr3IVwLhtaqvHRvmSpRWKwJzp81lpGZk=; b=rwXL67JAo1CG/iB6g+MzvoqMuZaGGCxK0hv94nJMqODPglPdRORKnKON6OqrZMpOcuV35V nGwAScoxINlWlws8iH71/AHPWAOuW9uyghG+XxLlbFXzT6/noKrS+rk/5/vJ2ePZS1d6vh H9c8kNzhbiPSlyb1dCH8JYIMqDe21cXgSHBBf2PEfYX/uK6hnLgsEg3RKsN8R0+KSiPM9O ts38Cba7g6j32fPeXJa66a9Ww+5ex51WuvPiuw3qtk1f6SuqbbtkjHAARRvk0zZgNRqb7Q AEXqW5VHbssYB0Z0FHaRtKh83DGn1sC9U3XkcgK3cSDvjW9TZxUC3DP9Dl6v4w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1716371225; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tbci3/Q4QiVdr3IVwLhtaqvHRvmSpRWKwJzp81lpGZk=; b=Qv7C0+WjYk9osFw5DYP4N3u23PObAjUJci7+2y572QeVIiKG4Ks3zaro9UDv0VwaIE9pAN Kk5jP3bRFeHADAAw== From: "tip-bot2 for Tony Luck" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] crypto: x86/aes-xts - switch to new Intel CPU model defines Cc: Tony Luck , "Borislav Petkov (AMD)" , Eric Biggers , Herbert Xu , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240520224620.9480-2-tony.luck@intel.com> References: <20240520224620.9480-2-tony.luck@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171637122512.10875.8916941284453923650.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 6d85a058cf4941b5b2713b879ef41430e6aa74f3 Gitweb: https://git.kernel.org/tip/6d85a058cf4941b5b2713b879ef41430e6aa74f3 Author: Tony Luck AuthorDate: Mon, 20 May 2024 15:45:32 -07:00 Committer: Borislav Petkov (AMD) CommitterDate: Wed, 22 May 2024 11:10:48 +02:00 crypto: x86/aes-xts - switch to new Intel CPU model defines New CPU #defines encode vendor and family as well as model. Signed-off-by: Tony Luck Signed-off-by: Borislav Petkov (AMD) Reviewed-by: Eric Biggers Acked-by: Herbert Xu Link: https://lore.kernel.org/r/20240520224620.9480-2-tony.luck@intel.com --- arch/x86/crypto/aesni-intel_glue.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/x86/crypto/aesni-intel_glue.c b/arch/x86/crypto/aesni-intel_glue.c index 5b25d2a..ef03165 100644 --- a/arch/x86/crypto/aesni-intel_glue.c +++ b/arch/x86/crypto/aesni-intel_glue.c @@ -1223,14 +1223,14 @@ DEFINE_XTS_ALG(vaes_avx10_512, "xts-aes-vaes-avx10_512", 800); * implementation with ymm registers (256-bit vectors) will be used instead. */ static const struct x86_cpu_id zmm_exclusion_list[] = { - { .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_SKYLAKE_X }, - { .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_ICELAKE_X }, - { .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_ICELAKE_D }, - { .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_ICELAKE }, - { .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_ICELAKE_L }, - { .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_ICELAKE_NNPI }, - { .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_TIGERLAKE_L }, - { .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_TIGERLAKE }, + X86_MATCH_VFM(INTEL_SKYLAKE_X, 0), + X86_MATCH_VFM(INTEL_ICELAKE_X, 0), + X86_MATCH_VFM(INTEL_ICELAKE_D, 0), + X86_MATCH_VFM(INTEL_ICELAKE, 0), + X86_MATCH_VFM(INTEL_ICELAKE_L, 0), + X86_MATCH_VFM(INTEL_ICELAKE_NNPI, 0), + X86_MATCH_VFM(INTEL_TIGERLAKE_L, 0), + X86_MATCH_VFM(INTEL_TIGERLAKE, 0), /* Allow Rocket Lake and later, and Sapphire Rapids and later. */ /* Also allow AMD CPUs (starting with Zen 4, the first with AVX-512). */ {},