From patchwork Tue Jul 26 13:02:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumeet Pawnikar X-Patchwork-Id: 593985 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9E6CEC43334 for ; Tue, 26 Jul 2022 13:07:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238231AbiGZNHK (ORCPT ); Tue, 26 Jul 2022 09:07:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238614AbiGZNHJ (ORCPT ); Tue, 26 Jul 2022 09:07:09 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A648C22BD1; Tue, 26 Jul 2022 06:07:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658840826; x=1690376826; h=from:to:cc:subject:date:message-id; bh=DvIjwdkxO81XtbqcSYVXAUA20zcuNGehRiM//+Z9ywA=; b=hc3Tg36PD3gZZhj66hU5supTNpKYSrW7Aa7E+PJYw5qLpmv1UGYBmcVD QpOpu0fkU4+3Saeei6D43VCRq/6n0df2LE7+i4tGfCJAZfWXRqqR5O3Sk +Dr9ek2+hts91Qs2uYzNJfgdFbJuZR2ZYEGQZA7xkdkeYfjUAEenxufJz iBYl65Bpia3lsvKtwRCrHgKxxGCLIZtKMTf/02THVjiMOpEvUeB4XGiny BrI3LsfL1T3gmmCMiuqyBgBo86JhEFTNGT3eAFefeWlRTZdo1Nzrjiw7a D/tPaHs8TG7yEFbxMV6TdAlewA37ZMB07rw/+l2mC0hOi1ClLc5R+n7y4 A==; X-IronPort-AV: E=McAfee;i="6400,9594,10419"; a="351941433" X-IronPort-AV: E=Sophos;i="5.93,193,1654585200"; d="scan'208";a="351941433" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jul 2022 06:07:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,193,1654585200"; d="scan'208";a="658676908" Received: from srpawnik.iind.intel.com ([10.99.123.68]) by fmsmga008.fm.intel.com with ESMTP; 26 Jul 2022 06:07:04 -0700 From: Sumeet Pawnikar To: rafael@kernel.org, srinivas.pandruvada@linux.intel.com, andriy.shevchenko@linux.intel.com, linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, sumeet.r.pawnikar@intel.com Subject: [PATCH v3] powercap: RAPL: Add Power Limit4 support for Alder Lake-N and Raptor Lake-P Date: Tue, 26 Jul 2022 18:32:29 +0530 Message-Id: <20220726130229.24634-1-sumeet.r.pawnikar@intel.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add Alder Lake-N and Raptor Lake-P to the list of processor models for which Power Limit4 is supported by the Intel RAPL driver. Signed-off-by: Sumeet Pawnikar Reviewed-by: Srinivas Pandruvada Reviewed-by: Andy Shevchenko --- v2: Sent v2 without v1 i.e. first patch itself sent as v2 by mistake. There was no v1 sent for review. v3: Added the backstory of previous versions. No functional changes. --- drivers/powercap/intel_rapl_msr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/powercap/intel_rapl_msr.c b/drivers/powercap/intel_rapl_msr.c index 9d23984d8931..bc6adda58883 100644 --- a/drivers/powercap/intel_rapl_msr.c +++ b/drivers/powercap/intel_rapl_msr.c @@ -140,7 +140,9 @@ static const struct x86_cpu_id pl4_support_ids[] = { { X86_VENDOR_INTEL, 6, INTEL_FAM6_TIGERLAKE_L, X86_FEATURE_ANY }, { X86_VENDOR_INTEL, 6, INTEL_FAM6_ALDERLAKE, X86_FEATURE_ANY }, { X86_VENDOR_INTEL, 6, INTEL_FAM6_ALDERLAKE_L, X86_FEATURE_ANY }, + { X86_VENDOR_INTEL, 6, INTEL_FAM6_ALDERLAKE_N, X86_FEATURE_ANY }, { X86_VENDOR_INTEL, 6, INTEL_FAM6_RAPTORLAKE, X86_FEATURE_ANY }, + { X86_VENDOR_INTEL, 6, INTEL_FAM6_RAPTORLAKE_P, X86_FEATURE_ANY }, {} };