Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2171301lqa; Tue, 30 Apr 2024 09:52:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWxFif3/2SVdeISSC4ji6cq/ZCEP7kbX+OUmLVHVTbOB7mFyoEKUcFn+gOPSTmicc9feO7WE6Ueqgd5FJzKxdRQSAY7nrT8p8wEkefQag== X-Google-Smtp-Source: AGHT+IF6FBLJYD5vbHNfpe8S3nZxkZNflQSLTyEVTAq0LEoyqSCQu9qbOKb3/dR1rGYLIvo0gjh4 X-Received: by 2002:a05:6214:212d:b0:6a0:a368:364 with SMTP id r13-20020a056214212d00b006a0a3680364mr17857784qvc.36.1714495965305; Tue, 30 Apr 2024 09:52:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714495965; cv=pass; d=google.com; s=arc-20160816; b=k/kVhSlwcHG+rtw+Yl+TqNrEPY81KzRvZRIa9Due+55loiousI7lPvUp7c87Fh8962 H+rhTna36oWfSvMPbFYmIrovBcnGiwbZpQ/CwyiFpI6II8fPIVOFVAK8N0sb3cL6OXZD ZRga7NGimnJzCps3lyr50NqyWVXLr1exSWvM6ZhNOJuMyAv+PJJ5bIZer4dNs2HIg8uL tALPZkHdW/ZZ2QKOvsYtqcYIAGzRgW9X7T+ZbTk6DV4mE+wXWT36MuJyscKwOGvxEsW5 odIVL2TcK5z+c8ielI79L6r4BVSJdqp6EeAFj8CW22z4nkc9p+FTER9zsg/7yNmGrIw+ 6+qg== 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=8f1fjB7JW3bfwRXpdC5ukBHFFBSUnKFEuic+L5Gye7A=; fh=rkoK/s7FxwcTuOAC8VWx8/OBrCYp43BrIuSJwNzodcI=; b=uD8TkV93bwo/cM9mEVy/bUsTdviE+AOWJrRgZPfCJOeH/A9TsD/6Y+zSSoq/3MbJZi Pk/a7ELH7xeq42NAgn9pZVe2BSf/VIATZdMuuTdkFc6oXdeFouBx0S/9Xo06R+cMiNQe OBXQVcHZ+/OQQxOOOdcE7ATOy4XauOGyOEELeOf78uJUsMDFPRsVO1sEWRByenty064X 5wrTkz66Wg+DIgxR/gqCnLTuat/yCLaAmGFiB6sZ095j5gIkLUKyShWtwySuV01LfTGc WCbpeA86Luus4Jk6zez2FzbFSXM5NZGNtqC5b9qVYx+dHDMpwE1ve5IiuroHjGRjm2Yr VNlA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CNRh5kt7; 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-164436-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164436-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id pt19-20020a056214049300b006993226e0a5si29309676qvb.118.2024.04.30.09.52.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 09:52:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164436-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=@intel.com header.s=Intel header.b=CNRh5kt7; 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-164436-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164436-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 98BEE1C23D42 for ; Tue, 30 Apr 2024 16:52:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A8081836E0; Tue, 30 Apr 2024 16:51:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="CNRh5kt7" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (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 6A9C217F390 for ; Tue, 30 Apr 2024 16:51:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714495897; cv=none; b=e6w9q7iojl2vmIzm/5p1OZtIDkBwg7lDfftUqWXFFSCqQ8KAHUnXDtEvHTzgwDbpW6mD5vBOWUW4OA9eghKJ2xo+9erLBS4o8T+RrZktsbfGJ/4CxWgWAs0hs5aLK3lFJ35sj8KFx2vQKdBbR8lgZmzC9+1mH2Ppu/Dd042tClw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714495897; c=relaxed/simple; bh=ljYYX+5RyEwARkxEi545qAS3MvJiGaPOJYML2NIcM9A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EO1zNikuaFFCW8XXPYWyI0PHq+++549n3N2oJ71FlfQDvkREpIxma0Nf9KAAn4yGirxwjdnAm0MgFR0XYl76uhwOJnuzdhpe78MkExmNA3QuoblaT+zawCpATOHyvwbvkNRIAG2j8IJ/x2nzvMl68JTzj2gzGTwXEg0JpzOGkWU= 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=CNRh5kt7; arc=none smtp.client-ip=198.175.65.19 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=1714495896; x=1746031896; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ljYYX+5RyEwARkxEi545qAS3MvJiGaPOJYML2NIcM9A=; b=CNRh5kt73jACdY1IFlMUIBHWJ9ESEG2GKn9vOcs8o3ZBMf0ZMRQvUviY g/kkoct5XRMsred8DcZmeMpEmjmhClBmzDBClODAg1ljB2Vz8HzKne+4E L5ZgcltDDKFiItsXmN4CDmlZChd/wQTkXByhFKPfIhzSLDasY+sh8kCUd gQpC0rhoaPgQ3mSX6WuwJQGt8LbkLarahI9zx0WvPvLyryasxLJuDOqsN Nyj21gW0789/WI7yONy8HFkPgoON/6g78tdxRqS071aU4QEDCrlXutnEQ NRsC6uhANqv/zCH3mZjEAt1b/axYGFiz5nBW4JmZZWJceocRjvpBc4fdX g==; X-CSE-ConnectionGUID: Au0kJXyTTr2AAKXxIIXcnA== X-CSE-MsgGUID: UnV01ADmTUKDXHll+Nb4dg== X-IronPort-AV: E=McAfee;i="6600,9927,11060"; a="10075640" X-IronPort-AV: E=Sophos;i="6.07,242,1708416000"; d="scan'208";a="10075640" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Apr 2024 09:51:21 -0700 X-CSE-ConnectionGUID: 8beofqT0SWaetbc58QqkhA== X-CSE-MsgGUID: Zn8NZumORj6cclvgyIhn4Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,242,1708416000"; d="scan'208";a="26515430" Received: from agluck-desk3.sc.intel.com ([172.25.222.105]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Apr 2024 09:51:12 -0700 From: Tony Luck To: Borislav Petkov Cc: x86@kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck , "Rafael J . Wysocki" Subject: [PATCH v5 11/47] powercap: intel_rapl: Switch to new Intel CPU model defines Date: Tue, 30 Apr 2024 09:50:24 -0700 Message-ID: <20240430165100.73491-11-tony.luck@intel.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240430165100.73491-1-tony.luck@intel.com> References: <20240430164913.73473-1-tony.luck@intel.com> <20240430165100.73491-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 Acked-by: Rafael J. Wysocki --- 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