Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp697661lqh; Fri, 31 May 2024 13:38:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWk0QF5IJqjudxpVbC1sNzvP/rN2acAPO9ZofyUCOosu80XrtfaE+zRGM0WNID4jecbLOkbJ6ryyEXTmL/H0WjofYeO3xlPVigH5IAXvg== X-Google-Smtp-Source: AGHT+IEVWT2CpShNq1qJirx+i7sxA59w3GTNDlyZ2KnnzPUqrDONIGGyK0eRck0jYlfNJjYzJYAl X-Received: by 2002:a05:6214:4a90:b0:6a9:5d5:431 with SMTP id 6a1803df08f44-6aecd5a319fmr45201886d6.24.1717187898110; Fri, 31 May 2024 13:38:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717187898; cv=pass; d=google.com; s=arc-20160816; b=ICwfj1NO9VDUHPhMDSbTgdJvwjfitRAh3RILMWkO6uzZ6zob02sxE9xP2Jb/6YBy71 R/Atwy9H6U4iPZALLLoTmygssB1Eg39XeyaqGSUTxM0//87AulKlGHSLptOPAju2Oowd 6Z/NoBapy+BeXNFJvoK8J4mnAA13Ub0XH5cCUl7Q5xdJ5TeZXPCrLJno+ViUIULfCNlx oqKlagGTQWAau3O0f0qNezjS/sFcpt97Ty+Sl9Jmqfbf+GwVv68yueTtvWMjQ94FRQmH 9WZn/k4Wbol8CLJrXMGIw1dYPC7TTQ2HHd5Vzoz1sKc02kZdZ0F3U5Mh3DF7bEjch0ZZ oRvQ== 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=YXInr/grWXmvDDHrccG5uZnsTNR0NaCCZ+ngVEA/9Qs=; fh=Wxk4eDXiGzRWPmnGwHY/fiJJG4GnGwxBu3SzDcL/oAs=; b=zsWZJDGUhz0gbeCDdLx6peQkkV4Qdcx3i9s5sjRnfECG6xtLKHMONN0e/nR7ug/CFM U7jLrPX+7hnDVUJ9aHE0dlWPQeuYWMvZYQJO+SnCShDXH99zVQ8ywcwk5IADRXknG+C2 w6/kMywioqicdx/DWCCSlCs6JwlTJlzws1yH9r7HfgsgNWHKyb9wKAE2dRkJ7OhS/Dc3 f27TexkGudU/HxLZJyTZWirlDT1VG4BKaCpVxLbpefERUhSSHeQ52dJR6DLdVoyFTxOY Zr8xO0wQPCmvN0CRN2wNQ9SCogvUyYR/XIC00Fy/1N1ivdWEnGrGkGF6PJofvCGAipiy 5jLQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IhxbrwBp; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-197453-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197453-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b403c3dsi15262296d6.263.2024.05.31.13.38.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 13:38:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197453-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=@intel.com header.s=Intel header.b=IhxbrwBp; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-197453-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197453-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 658421C2430B for ; Fri, 31 May 2024 20:37:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7D6121822C7; Fri, 31 May 2024 20:37:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="IhxbrwBp" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (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 1D91817E46B; Fri, 31 May 2024 20:37:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717187835; cv=none; b=nO8yeUhQRnCAZf4ClUsOj0gijFrnT1ehGCdd2PVQ8HH4P7bpSdAwJ+98eLEwWJ33dt2xPLJ97yMcD/gMripYe7MZjW9e9b9kYk6jIPnARL5XVHsRN+SD88Qgh3Ab0SaMfkAGmULCJQuch6D0OFRd0vL0Hqm+regmIF+amOlQ7CY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717187835; c=relaxed/simple; bh=fYJHYz8V9kimHRbxD5uVEAotpDMXkQsRHlaEWk/P2XA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=W4Sy6fXj1KEESFuefAkn9Y263dSCQmjETPycHhw26JY0N0YXRovHAHfuM93iVFcwXNH7208xS+Cys32X6gpK/oIho0Ukg6Of0JjY25oBQwvvXi1DgftCwmOFqSoGG7VKOTo5HScj0l+0WqQ9nUU3uG9sghyCiecUYRcBeEbK+1g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=IhxbrwBp; arc=none smtp.client-ip=198.175.65.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717187834; x=1748723834; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=fYJHYz8V9kimHRbxD5uVEAotpDMXkQsRHlaEWk/P2XA=; b=IhxbrwBp6oNwE3HsRARz+ta7fux+EMRiXzbylkNlG21sdYUmouZq6jg3 EmUfYEqLuCfdf6cN8P3d+J851+35bBrdtLndBV1awvOGbOApyTHxVImuL xCUu7PmRKITUpJgK5JLrrUvUjlw4bJrRX3JJ2Fd8ITS3yH5zmi/KaYkN+ LuXYheMaeONMgROcOT/Y1q0xyuKhfqj2O++BuJqOG5Q8fYdU8+Q/pTEb0 s/Wu518Sk8hcsPjA4AhtQ5gWkOfdkY5Gl+4URVIlF6J6ZzQGagTwspo0n VWcbkZsX0/Ere8DBrkZ4q9osT6g57iu77lEA3bku//boVvzB4n7aPSOgE g==; X-CSE-ConnectionGUID: tFKItjkQT3WVHRz5YZ+Bzw== X-CSE-MsgGUID: suPmOhceQnuAcO1RZnadUQ== X-IronPort-AV: E=McAfee;i="6600,9927,11089"; a="13871829" X-IronPort-AV: E=Sophos;i="6.08,205,1712646000"; d="scan'208";a="13871829" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2024 13:37:12 -0700 X-CSE-ConnectionGUID: jlutvOQKQTeichxkEJghtg== X-CSE-MsgGUID: HXsIpmIITtKI0awIz129Tw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,205,1712646000"; d="scan'208";a="36355371" Received: from agluck-desk3.sc.intel.com ([172.25.222.70]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2024 13:37:12 -0700 From: Tony Luck To: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Hans de Goede Cc: platform-driver-x86@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH 03/11] x86/platform/atom: Switch to new Intel CPU model defines Date: Fri, 31 May 2024 13:36:59 -0700 Message-ID: <20240531203706.233365-4-tony.luck@intel.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240531203706.233365-1-tony.luck@intel.com> References: <20240531203706.233365-1-tony.luck@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit New CPU #defines encode vendor and family as well as model. Signed-off-by: Tony Luck --- arch/x86/platform/atom/punit_atom_debug.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/x86/platform/atom/punit_atom_debug.c b/arch/x86/platform/atom/punit_atom_debug.c index 6b9c6deca8ba..44c30ce6360a 100644 --- a/arch/x86/platform/atom/punit_atom_debug.c +++ b/arch/x86/platform/atom/punit_atom_debug.c @@ -165,14 +165,13 @@ static void punit_s2idle_check_register(struct punit_device *punit_device) {} static void punit_s2idle_check_unregister(void) {} #endif -#define X86_MATCH(model, data) \ - X86_MATCH_VENDOR_FAM_MODEL_FEATURE(INTEL, 6, INTEL_FAM6_##model, \ - X86_FEATURE_MWAIT, data) +#define X86_MATCH(vfm, data) \ + X86_MATCH_VFM_FEATURE(vfm, X86_FEATURE_MWAIT, data) static const struct x86_cpu_id intel_punit_cpu_ids[] = { - X86_MATCH(ATOM_SILVERMONT, &punit_device_byt), - X86_MATCH(ATOM_SILVERMONT_MID, &punit_device_tng), - X86_MATCH(ATOM_AIRMONT, &punit_device_cht), + X86_MATCH(INTEL_ATOM_SILVERMONT, &punit_device_byt), + X86_MATCH(INTEL_ATOM_SILVERMONT_MID, &punit_device_tng), + X86_MATCH(INTEL_ATOM_AIRMONT, &punit_device_cht), {} }; MODULE_DEVICE_TABLE(x86cpu, intel_punit_cpu_ids); -- 2.45.0