Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp562454lqb; Wed, 17 Apr 2024 05:02:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU1sVrQc9T69KYgcnhUR62pDnBbVBvnoywOtEdi8LXJ17NhoYYgeOcxkrRW2r2DQqu4GD2nW9MoVBRM6jqbjU9Th39aTcbbpame/LdPnw== X-Google-Smtp-Source: AGHT+IHbDfooTNczEzhhCiQrM95xF+ViaR26iCJU3x5ywozKBe25BapkBJQ+mEoIM3/cAHD4qNSD X-Received: by 2002:a17:90a:630a:b0:2a5:27df:e329 with SMTP id e10-20020a17090a630a00b002a527dfe329mr13517729pjj.47.1713355335126; Wed, 17 Apr 2024 05:02:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713355335; cv=pass; d=google.com; s=arc-20160816; b=RT4dZG1w7iWLtNenj8xZlzjkmZw6SmxYbjHrEWFDipTkWGbbhaHMXIUfbJvhxyy2YC JyBW07D+MfGDP2Li1XHJCOJHVA7tLHJuFYtx5iJpIbkuacaa+7lJYiqm2DKlVyhnas4T RA+re4hNX8CyrpdZZEfwqelbmA/B+lhHUfYf5FM7oJ6M2QJ+/uQIEhbPi6PgE5qhTkxK o3xwtEZC77dJMTUvx1bQ3TZGGidfrLhIcLccv+3+jE4x/R9tOAiLYp92bZUGHl4UEzR6 oa9UuiSe08dZpSMyerErkwXtiq+vfsIQ/5xstRAk+1VLRSV6REVpdnApIF+SQH/LirEd Babw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=VligSuMT1bOPFh/LffdjctGbe3eYj4S2x1k2hKgHtVg=; fh=upjKSUNmMoSdDQJn1cGSeDWubBBE7XQSkPpocprYCbg=; b=wV2wIBYCSa5iOG0bThZvVh4idaQd9YA/7SHZZVAYg/ktrJi4nS/CKwQw1GHI9cRb5F H/dYDHb9HJvDvEud0ZbybMyi3Q/OUQ6fU1USPIzr+YH5BMS06IpcRpAwsGu17NsK8Mhj Rz1SIeRF5T7PwZNMv9khllg5FvGLTXSEBj3INrxVw1oPYg/rT2WO/zDWjIoSMSHaHvHL //Ldh2aVZlscvlHGqpRHuJczRvIsg6/KHw5cLb1UXtGb1jVV0QQY4Bx3pDOBJhJexBNm 062DACBu+tcjIcWEX/LgAGjKsYcrLzS5j+J3xyQovma3uxhXp8GTlmaJ1Yi7eM54EGIv fRSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dAOxoxXr; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-148074-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148074-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id c1-20020a17090a8d0100b002a21bdb6034si1140473pjo.72.2024.04.17.05.02.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 05:02:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148074-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dAOxoxXr; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-148074-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148074-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A9140B20D6E for ; Wed, 17 Apr 2024 07:44:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AC90A6E613; Wed, 17 Apr 2024 07:44:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="dAOxoxXr" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (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 45CC5B653 for ; Wed, 17 Apr 2024 07:44:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713339887; cv=none; b=kO9Yor6UL4i+4QzrPBYF6T8hIhBbgckztQTocppOh4xOJsYfaLGetuAYvSCl0xp3KOdQia6e7ip33ReVncpsUYkuPpF1ZhHHojD070mQPifbd8Cz1TuOxVDwdBZP7YgL+/wg1+6fLwdPk00KygsPJMkLY3nsyOzZXVmd0r7ZX+Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713339887; c=relaxed/simple; bh=Le1XBAG80UzXZ5fJRhAn6sSYUHbNBDFbEaiuc+1VJe4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=iyoL6v8FO7EzND8N31/OuP09I77ydPB8CeA1XzR9hNY0VlcN+PX/CnjyXOCPjaBEZNIlME926JS93cxs2Dsex+9nD3W0pMR04eDiVXVCcau7axbsjHDfIUI7H80ss48Iwh1FqnDRFdRkAjaqEpCFROhiZ40Tg4YDrdkjUCFqM7I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=dAOxoxXr; arc=none smtp.client-ip=192.198.163.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713339887; x=1744875887; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=Le1XBAG80UzXZ5fJRhAn6sSYUHbNBDFbEaiuc+1VJe4=; b=dAOxoxXriXIRGdnwyqYrL5M/7WzPuVAIReawRN10AS4T7zeQ2XhthJK5 bL+1oK8Vpm37Rr9ouQP3QM4y5R7uLhHnGMBgxQ/em7goQgXT5I4e2tFgH mUpd2fwmb+u1SEnXcBv1XbZeaOwcfwOzMygYdWp4eopggewnEfxbaabaj y+ifWrc9w9PrdGfoYDcIoAvXXsz8z1SuSYNDFYuEmpwb8Ea4AIHW0Rve3 AGbdIghZ5CQsFxP13Z1NUyrF6BJSpxajwbCJS5Zs3q4SEiPKsckRqfx/t kJybY9KdKQvyPxwPxIQL463YDF8+7pNZoRt4DrRaGeD+dX2ax4whffjet w==; X-CSE-ConnectionGUID: oL8W31biSCmserh9jrS17g== X-CSE-MsgGUID: WQN1+xTdThOo/aHIpldwlQ== X-IronPort-AV: E=McAfee;i="6600,9927,11046"; a="11759086" X-IronPort-AV: E=Sophos;i="6.07,208,1708416000"; d="scan'208";a="11759086" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2024 00:42:35 -0700 X-CSE-ConnectionGUID: +fTXNeW+RpeTQQFXGr/eqQ== X-CSE-MsgGUID: g1co9ad3TSOc5RcLXb9hGw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,208,1708416000"; d="scan'208";a="22613333" Received: from aslawinx-mobl.ger.corp.intel.com (HELO [10.94.0.53]) ([10.94.0.53]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2024 00:42:28 -0700 Message-ID: Date: Wed, 17 Apr 2024 09:42:25 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 02/74] x86/cpu/vfm: Add new macros to work with (vendor/family/model) values Content-Language: en-US To: Tony Luck , Borislav Petkov Cc: x86@kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Thomas Gleixner References: <20240416211941.9369-1-tony.luck@intel.com> <20240416211941.9369-3-tony.luck@intel.com> From: =?UTF-8?Q?Amadeusz_S=C5=82awi=C5=84ski?= In-Reply-To: <20240416211941.9369-3-tony.luck@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/16/2024 11:19 PM, Tony Luck wrote: > To avoid adding a slew of new macros for each new Intel CPU family > switch over from providing CPU model number #defines to a new > scheme that encodes vendor, family, and model in a single number. > > Signed-off-by: Tony Luck > Reviewed-by: Thomas Gleixner > --- > arch/x86/include/asm/cpu_device_id.h | 93 ++++++++++++++++++++++++++++ > 1 file changed, 93 insertions(+) > > diff --git a/arch/x86/include/asm/cpu_device_id.h b/arch/x86/include/asm/cpu_device_id.h > index bf4e065cf1e2..833f230aeafc 100644 > --- a/arch/x86/include/asm/cpu_device_id.h > +++ b/arch/x86/include/asm/cpu_device_id.h > @@ -2,6 +2,39 @@ > #ifndef _ASM_X86_CPU_DEVICE_ID > #define _ASM_X86_CPU_DEVICE_ID > > +/* > + * Can't use because it generates expressions that > + * cannot be used in structure initializers. Bitfield construction > + * here must match the union in struct cpuinfo_86: Typo: cpuinfo_86 -> cpuinfo_x86