Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp250446lqb; Tue, 16 Apr 2024 14:46:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWSH8TzZ2hf6meR/RiBjf+Goocdc1usIZXkZXDdKdcTRxQ/VzdA1R3Zu7BKWtRsAo5zwmQ0jXPtRUO4Q0FUsM0S3/t/1JmNgQyZZ71D5g== X-Google-Smtp-Source: AGHT+IFd/AiHyXYXU1syxlOgiDx1ykHQaGnkg6bN2ELXm3m+Ct3Ra7YCshOhOZ3DaRt2qmLVE9WS X-Received: by 2002:a17:902:da90:b0:1e4:55d8:e15f with SMTP id j16-20020a170902da9000b001e455d8e15fmr5636551plx.32.1713304014988; Tue, 16 Apr 2024 14:46:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713304014; cv=pass; d=google.com; s=arc-20160816; b=Fs0ALub0GPOrSq1c6vqJHTvzz7WZTo1qpTPUd7UCKqEz6/5hH0qMl+M1i5MakiD7L4 74VXEBY8nimPiX6yOutn6uNXfNerw+V3ylvjbq1VozKZo/20WPEcr9YVQH9eOl1IypVD ice+8DP2DHXa0yAYz+oeb+DnSbPzeCAVZviWT204p30TuxmdtERB1VcrU1ZCSvi029zN PB1hlv7KFz9rRoR2A/9TDaJTQwydTzuyTHsOyDIhSE2YxQ1KyNaDyvxcMfjIace34NJF 4P7vWz87Ck+Mfy18QxB+inV7GOMgcBHH8VG6si6VFPKri1x14VTEQRwdHZBhtaZNoOf6 wHSQ== 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=RWychfwIqkSXTURGiOXOywaxr6pz32+VxRF9PNwo43U=; fh=Ors//+qGN950XLL+UhVtzhdzzrrM3J/hSHl9wIfD6bQ=; b=RxZSbsPWW0IXnxbvtl/nKN7HOUFs+ar31l0i4kJKsJAJVNbDS41F8Cqed8CKuv+2jJ brTukJ5n/7LAWi5huFxX7+Jtx4d3vtDymmqpT+CSJTrlbxdRvYthmp6O2fN+rJgpS/iZ D/EVbxAl0lN258YsaF3wR2QGke8t+YjHrcx7lI128HImhro60NVTRU/esghmL22nsjWJ LPWU0OaRcXtoiohegeJcEm+9dZI+Ts6RRAfGQJFuxpEFkg0BiRU+kFD/Jv0eHs9OHz1R HoKGi6SOLkyQ3HIUhP7135HW2qxJE3JfhO4ksd9/aWq9yOt1+Z0XYDctMf/hgEQijdcs ONCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Tq6EbqcG; 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-147630-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147630-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 q2-20020a170902eb8200b001e789aff264si3428931plg.506.2024.04.16.14.46.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 14:46:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147630-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=Tq6EbqcG; 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-147630-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147630-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 47C6DB23EBA for ; Tue, 16 Apr 2024 21:35:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F4791553A1; Tue, 16 Apr 2024 21:22:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Tq6EbqcG" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (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 7A1BA15534A; Tue, 16 Apr 2024 21:22:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713302568; cv=none; b=YpfjDf4aVX7CwLu4mbiqcVYd97MvY6bThKXsH8fQZ3X1qMExUO1lwrW0GIZF0kxi7fqlcnF+vzNYZXRNUAvDWGNdG96hCm+E8cZlnD36oH45HatEYL06qvvWGecDXDLprJx3K97n3zNju4jWIx16BuQoJg4katj5E6b778/BtyQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713302568; c=relaxed/simple; bh=9BhqAi51AVfIYErDEjqL8B6KCNTQRdQRVBtL2GkhI2U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PMGCwcUs+IM/5a9CTzbGVGIvpcVwvTWQv4qGnSsVEI5zPmW+Ro3Br/HaXCtH5DUO10S6MgF/yYDVAggiyxD3iRYmY/CjjLUk4Jctpys62PodGc2CzjE6eKj7CAJzZrR/VyCw23g/TURnuIO4giFNd6qGIAt1LLTXStNn/n321f4= 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=Tq6EbqcG; arc=none smtp.client-ip=192.198.163.12 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=1713302567; x=1744838567; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9BhqAi51AVfIYErDEjqL8B6KCNTQRdQRVBtL2GkhI2U=; b=Tq6EbqcGsz3llQn7GxvEfoBEDhXPDmigXN0DvCAVf7XXgUSEizzTHyhp Q6SkuYHCtJsrlqGEqrGFWif5xswZ6wa4wJ1OvfW4+Yam7ZHaWrH9KRPtm 3CvqAs8BT8IXpHWsxuElreH740AEv9kg0xuTuqgERc5+BOGm3w1nalU6p BPgAvwL2uTCWWqjoZAJ/ChzvTNU+s7oUg6TRcVve0ahYWC3iJ9m4kcFWI ZLvGu5892d6Bt3Q28hqSRUdr6X26oejvSOOKy4A4uRZ8WDFceeehftWk5 +X0IS+ZeC4ezDE3FyA2qOVAZL+glnOsPLG+iAdoZUMvOJF7h5N/0wvnx2 Q==; X-CSE-ConnectionGUID: /HXZlwP8Q0218hMgQPqxQQ== X-CSE-MsgGUID: OswGd13kTpm5woMu0qme8Q== X-IronPort-AV: E=McAfee;i="6600,9927,11046"; a="12548604" X-IronPort-AV: E=Sophos;i="6.07,207,1708416000"; d="scan'208";a="12548604" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2024 14:22:47 -0700 X-CSE-ConnectionGUID: 2t4VxFSIQX6wB24VKd16iw== X-CSE-MsgGUID: AKYTwcstTs6rcaOYj/EZrw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,207,1708416000"; d="scan'208";a="22453822" Received: from agluck-desk3.sc.intel.com ([172.25.222.105]) by fmviesa009-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2024 14:22:46 -0700 From: Tony Luck To: linux-kernel@vger.kernel.org Cc: "Rafael J. Wysocki" , linux-pm@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH v3 67/74] x86/cpu/vfm: Update drivers/powercap/intel_rapl_msr.c Date: Tue, 16 Apr 2024 14:22:45 -0700 Message-ID: <20240416212245.9929-1-tony.luck@intel.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240416211941.9369-1-tony.luck@intel.com> References: <20240416211941.9369-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 --- drivers/powercap/intel_rapl_msr.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/powercap/intel_rapl_msr.c b/drivers/powercap/intel_rapl_msr.c index 35cb152fa9aa..733a36f67fbc 100644 --- a/drivers/powercap/intel_rapl_msr.c +++ b/drivers/powercap/intel_rapl_msr.c @@ -139,14 +139,14 @@ static int rapl_msr_write_raw(int cpu, struct reg_action *ra) /* List of verified CPUs. */ static const struct x86_cpu_id pl4_support_ids[] = { - X86_MATCH_INTEL_FAM6_MODEL(TIGERLAKE_L, NULL), - X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE, NULL), - X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L, NULL), - X86_MATCH_INTEL_FAM6_MODEL(ATOM_GRACEMONT, NULL), - X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE, NULL), - X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P, NULL), - X86_MATCH_INTEL_FAM6_MODEL(METEORLAKE, NULL), - X86_MATCH_INTEL_FAM6_MODEL(METEORLAKE_L, NULL), + X86_MATCH_VFM(INTEL_TIGERLAKE_L, NULL), + X86_MATCH_VFM(INTEL_ALDERLAKE, NULL), + X86_MATCH_VFM(INTEL_ALDERLAKE_L, NULL), + X86_MATCH_VFM(INTEL_ATOM_GRACEMONT, NULL), + X86_MATCH_VFM(INTEL_RAPTORLAKE, NULL), + X86_MATCH_VFM(INTEL_RAPTORLAKE_P, NULL), + X86_MATCH_VFM(INTEL_METEORLAKE, NULL), + X86_MATCH_VFM(INTEL_METEORLAKE_L, NULL), {} }; -- 2.44.0