Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1188816lqo; Fri, 17 May 2024 13:42:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLWtloCDl57g/x5Ele6XtsqHR/oAZY0LT0o0ih7mzZQNGFXkRGzz8ATFUwl+ibeEz4cQZrbBc8ose19yP0GxXvm80YkT1D5xRWmUfyRQ== X-Google-Smtp-Source: AGHT+IE9iHwkPKDK6oDYDSuXL7D9676WTQpaDQkMY6oHGouw6rHmVoCE5mm8DvbFvduH7y2rlvT5 X-Received: by 2002:a50:ccc8:0:b0:572:795a:b913 with SMTP id 4fb4d7f45d1cf-5734d67fd75mr17743750a12.34.1715978575387; Fri, 17 May 2024 13:42:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715978575; cv=pass; d=google.com; s=arc-20160816; b=BttRuBViT4WfhWWzDC83GwiWjCqROrflYqS5MIOM+zLgTZoHpkUhYCrGIB8clzdecd sqD20zhIXw5qXIU8XXnJ12ypfJG2zEda3zS5i+O5rEg+wwpVPFcrFMa0HPvXhFlZ/14W mf72spL3+qYTrkpT8eGUxSVCOTuRMLxYqKGNTyHrNfo9RqgnuOxai8tllKx8Wi2TuQlF mRYeF1+5n9qUZED4Oec1Ex8sFDrnRVVURM8tOvWc5U8djYTDgqLRebvrP2Z2LxukjY0J 6l16B8fQqNqVtSTaMOlZQAyOhvrCDPe4/RhtuBCqFag41qXNV+AEaGyAT2FueVEFyf94 6I5g== 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=Nb8T9+YAZvVq3/tnQ33z15ugIKC5aFR13sHCOd9V6s4=; fh=m82EvJBJ4OLtESw3YRrgmECPpOKz3dgdJUWoAJxCZrc=; b=ncWNNLQnxeTc5Krjc+22A82gOvLgoXuAojoVFNzdVYq4F1q8LvmIyVjuLqfv34aiW+ 1Ctjg2JHvmf+MNgnEqc2jV9g5l10hUj+acKvsACzwCJKKiHlAkXYyIOa4+ez77tkAO9s 8K2N7BxXOtHuSwXyEZllpc1Icg3tqR1pRdKL3ljBZ5phPwdkzhu0u5QWunqijKSB+FFi nGCNZGz7+KQsv9lXPW1sQnJgjlbZZCUiwpzcUB7Rf+sjG5FfJbqn+yx4VV+agyHHt5Z6 Dupt/kjVeNK9xkFt2VsTiYO1sOcbQAGGUosE/B2OLoCseqEEsYtQyOFvrtG73yo/29wY yWpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4fqrhmru; 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-182621-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182621-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733beac53fsi10393115a12.20.2024.05.17.13.42.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 13:42:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182621-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4fqrhmru; 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-182621-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182621-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 220921F21B37 for ; Fri, 17 May 2024 20:42:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 12651433A6; Fri, 17 May 2024 20:42:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="4fqrhmru"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="1yREj0KP" 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 F41081DFF2 for ; Fri, 17 May 2024 20:42:46 +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=1715978568; cv=none; b=JAs8xj+PYuZXA5eqsU+7JIEFBjNPObMePZ6srZZPpx2XeugcUg3ZjpEoETio5FvC77dRh7yYMXQX+t5yp3UmxjDjjBkOhlZT8jmeLjWWzuxc9cKc0vjllEs/pqgnKdg//cHiEYx4iS0jIHHR17koijpuXd1RHyoEseQ6zHRaR9s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715978568; c=relaxed/simple; bh=/aD3mENHTyGvfBzxvu8ejeq/Mm5dAFbXQMuFoOrnsbE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=TJnxGffaITRKRDkk0VVrw9L9GV8M5gTHEddXwjIcr9nFDvrRoeBj5RDzqVm40rUkOquDT8ZQHoCgVoNRwLwJIEs5SDmJqtUz51aIUZ8knHbU89XSaG/7oq5qRdwVpxKi8a250BHOqR1/van+1ez0fpPPaYWUacQ2B5k1sr+S/Dw= 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=4fqrhmru; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=1yREj0KP; 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=1715978565; 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=Nb8T9+YAZvVq3/tnQ33z15ugIKC5aFR13sHCOd9V6s4=; b=4fqrhmrupFz9sg/pwPYQhp+gzZPmg04C3vpkpI5WWKwA2u8jZjEh8f1XSfYwAqSeHyq4n+ hlummQwSf45aPFCzWb46IAESFaik3jmLYZJQv9c0hqZmht0vBonKLVIjNCiFPCPwwbk+3v k2QH8/Nduvqn+ikUvCixbC2JiJVmb8O0yTM2iIk1Nwv7ELPOzentaQEa2E3MVyl86zsd9k 8toR4fryjFtnGYZZYbIv9LBp/VfuD7U0jVFA+MRFabyl/1nRWA+tBWOOE/v36X3EmC8o96 8Ql1MK1PVJBXAexH7lDtZtslpw7DBhJ0JFKabt2OqqWd/Te4wiQkBP3mkQkvpQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1715978565; 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=Nb8T9+YAZvVq3/tnQ33z15ugIKC5aFR13sHCOd9V6s4=; b=1yREj0KPTwOvCCsfxoGNuaMn+Mqt4hw8mwoT3svxlmZd3rbc/9KyZPDd1D90owUmxqQ5q1 xp5p1fE8Ugf01UBw== To: "Luck, Tony" , "H. Peter Anvin" , Borislav Petkov Cc: Ingo Molnar , Dave Hansen , "x86@kernel.org" , "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 v2] x86/cpu: Fix x86_match_cpu() to match just X86_VENDOR_INTEL In-Reply-To: References: <20240516162925.79245-1-tony.luck@intel.com> <20240517144312.GBZkdtAOuJZCvxhFbJ@fat_crate.local> <863D0F06-1217-4C94-B2CA-816FC4ABB103@zytor.com> Date: Fri, 17 May 2024 22:42:44 +0200 Message-ID: <87eda0jhkr.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:17, Luck, Tony wrote: >> I'm confused. Why not simply use say -1 for wildcard vendor match, -2 >> for no vendor ID (no CPUID or other known probing mechanism) and -3 >> for unrecognized vendor (vendor detectable but not known.) > > It was really convenient to have "0" be the wildcard for all of > vendor, family, model, stepping, feature because users of > x86_match_cpu() could just initialize the fields they cared about in > the struct x86_cpu_id and have the compiler make the rest be 0 > automagically. > > But X86_VENDOR_INTEL being zero has always been a thorn in that scheme. As all initializers are macro based, that's really a non-problem. Thanks, tglx