Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1192486lqo; Fri, 17 May 2024 13:53:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXqH3HtRsjW4kSwu5YDXKW9xh7RpRpPhnToQb8NMoMDmlD0lbsyyGvxxoneXOlmpn2UbM+mFhP/VWKMAHtW1Em3x4WClAQb/v+LYnryuw== X-Google-Smtp-Source: AGHT+IEvoD6Aqu8YRIvidV9ZZ5GVbRExDlEypcdJt/qgqe41wS3MjwSxkvzZvVQJlrP0GDrt1FaR X-Received: by 2002:a05:6214:27c1:b0:6a0:ebde:ae7d with SMTP id 6a1803df08f44-6a841a5014dmr4508256d6.4.1715979208344; Fri, 17 May 2024 13:53:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715979208; cv=pass; d=google.com; s=arc-20160816; b=sGv4/svVbH9eYQvC320xepguTPuF2vZbv0HAEty2r2rW7J+bccSej7nRCepfz0llwg G0rBj4Hb8kumAvkMxquzOVSKJHOVopkaMfNm6n/Xteodi8jzLoNGCZXFPUJHiaLIl/0e KTcqeas8kHpI+AKmOBIIIe7808kVd7p9rkEQd2igSOO15FJKE1AAN8jtIzyxulN92BX+ uEHNzgOgIXmLr/784Wbx0JrwLABEClQL/fmEJmpemcMIuRd+WMOOhqKELBVDF4PO4QI7 h4gaHDb2QMXFeeaX1JFBi27nCNlJD3rDW4cv1q8sS+2cjrYIxPEhd68eYoVkw+abEJTE bqXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=+qZPdcMmSdZgJZSuN/e5pS3lfwWTp+KrsaCYNQeGP9E=; fh=yNatDI6D/UR0HQxtaWbekFae16DW2t/PescCpCiI640=; b=VC+TAwUrs3q05T5g7kkcUuwIuEhuvlJPq5CCzdgNTLxFE8SKpP2nKNHRgsbgpx1TgR 2kFySTFR5ZG1sgEKpGWyqFLk2lMQ306hjp/e3q4yuIB/qWWyQadyE1TtfSCPJcQIZxaS nyvy3xa5I+ZDGJNe5m+EqbuXhdZ4CR4hb1r2WEYnHkXe59NVbjAR4ar5NxJmIMTZykQ6 Z8Zjb0lqNPFGyxUQicqppCI1Fr9EnpxlVycNpitjlg6wz1syu4EAdMxQFb6y0z5TmSz5 SErkJLX+m/22Ntc5xLJREVR7cES27DhL4/GeWYqbg6w9EvX5OU3WthVk740Jcd9ON0D1 +/nA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=AsHJ+WWG; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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-182625-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182625-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f1d7523si202111026d6.38.2024.05.17.13.53.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 13:53:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182625-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=AsHJ+WWG; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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-182625-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182625-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 1A2C61C22011 for ; Fri, 17 May 2024 20:53:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C192D13E020; Fri, 17 May 2024 20:53:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="AsHJ+WWG"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Q+mrmRFC" 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 AF6BF3C489 for ; Fri, 17 May 2024 20:53:19 +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=1715979201; cv=none; b=ZL4xERblpX/49nzRwY2OFwe5Ws4TpNG5x9nvkoskNOOJT9WtPU7FK7ZlSVYgv5hN5HQHN6Gy/XE5wvubdU4/MUj2bY4NDapHoqg6Qzb8XYP4IN8w8Gblq5Uac1dlzjGg8BNCkm3pVH77kMwIK2equWpPZ1Nk8GfI7k3G1gZEyJ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715979201; c=relaxed/simple; bh=tK9pBSIz6Z4aG/7wfoByRED2a8aC5VOKanqMUCImif4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=sZ6P1cStgOWGruDQsOUQJJ1y8sU1K4K8EKhcrjWCya9aOfXCtbZw2bWZ8bfubiT2aljobvSlh1iG5dt6ZGu5MK2k+nT4HUdKrrX4Ce6quBH38qgTEN/nr35eE9ZaSECpsnMDNRDHLc6IbB8HxB9a5DMaop54pHk6ifWZ7oelLfc= 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=AsHJ+WWG; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Q+mrmRFC; 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 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1715979198; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+qZPdcMmSdZgJZSuN/e5pS3lfwWTp+KrsaCYNQeGP9E=; b=AsHJ+WWGU1BYBKW00N2nqdTHD76QGP5j5UvB3e9vfbLzHvmfaYtBm/esPGUrWUbJSMmSAH 8td0NYONmdzabawHauF5UjBpnWARQf6UKKN53FyJ/N+M4a8TLdKxcFJh+EdPh3t/6kLk8G CmLkw4G9Zip/O0e1vOFUju0ZNb6/Ap88dJxVJWoybyZPTa0aod0KqhfRxwGnIDV+zG9Rrm VICjP2euQHpsaaaERlN3iuTec9XS0JdHQsVoHPNYHButqAX6uhsPVkfyU+h90Bwyx5+49q RppMma5dcWlxMdMyeXM7yYSOo82Ks2KnVAZBo6XuyX7lkE8OnPKmNJO8zAqxEQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1715979198; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+qZPdcMmSdZgJZSuN/e5pS3lfwWTp+KrsaCYNQeGP9E=; b=Q+mrmRFC1dKcN11RbggtjjRhForM0Fm4nnWUZIhtXqM0lIgx6nFoGaxhrdArfvM3ZYMMaO JqACZN99mn6D9ZDA== To: "Luck, Tony" , Borislav Petkov Cc: Ingo Molnar , Dave Hansen , "x86@kernel.org" , "H. Peter Anvin" , "Peter Zijlstra (Intel)" , Uros Bizjak , "Edgecombe, Rick P" , Arnd Bergmann , Mateusz Guzik , Thomas Renninger , Greg Kroah-Hartman , Andi Kleen , "linux-kernel@vger.kernel.org" , "patches@lists.linux.dev" Subject: RE: [PATCH v3] x86/cpu: Fix x86_match_cpu() to match just X86_VENDOR_INTEL In-Reply-To: References: <20240517172134.7255-1-tony.luck@intel.com> <20240517173811.GFZkeWAzKjYtEMwe1e@fat_crate.local> <20240517175324.GGZkeZlNgjGxwfumLu@fat_crate.local> Date: Fri, 17 May 2024 22:53:17 +0200 Message-ID: <87bk54jh36.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Fri, May 17 2024 at 18:13, Luck, Tony wrote: >>> for (m = match; m->flags & X86_CPU_ID_FLAG_ENTRY_VALID; m++) { >> >> Yeah, makes sense at a first glance. >> >> This'll keep the terminators "{}" unchanged so that we don't have to >> touch all those gazillion places and it'll explicitly state that an >> entry is valid or not. > >> But the devil's in the detail, as always... > > Yes. One detail is that there are places not using the X86_MATCH > macros. Groan. > E.g. in arch/x86/crypto/aesni-intel_glue.c there is: > > static const struct x86_cpu_id zmm_exclusion_list[] = { > { .vendor = X86_VENDOR_INTEL, .family = 6, .model = INTEL_FAM6_SKYLAKE_X }, > ... > }; > > This one (and likely most/all others) will be fixed by the remaining > patches in my new families[1] series. AFAICT, that's the only one. # git grep -C5 'struct x86_cpu_id' | grep '\.vendor' | awk '{ print $1; }' | uniq arch/x86/crypto/aesni-intel_glue.c-