Message ID | 20240131113713.74779-4-rui.zhang@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-46369-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp1827879dyb; Wed, 31 Jan 2024 03:45:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IHRmeaK8MGie4Z4P3nlB6XGo+sH5mDRN5iywgtZUe8YXy9RyL+7dEk7xoovDAOSpxYEMRlb X-Received: by 2002:a9d:7758:0:b0:6dd:efff:d7db with SMTP id t24-20020a9d7758000000b006ddefffd7dbmr1089247otl.20.1706701557722; Wed, 31 Jan 2024 03:45:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706701557; cv=pass; d=google.com; s=arc-20160816; b=r0qfo4ASVocB1H1Nac4p0sDWTJZ1zlgic22rTq+jLJ946xZ5Oa16qIBd7WsRSJSrn/ DOtUuFQl+EC0Ux5naLwE3Q7humbQbuGf7L758qOut+z+juhiD9/9ebHQMFiopoyEm0rY gle3ACShcDW4Ri+71uyU950J0yyZohrrfT3G9TnleXvS1tm4hvypu4nn1punwaHsh4xg Lt7WCXnpN179OnAJrw6kn+Y+aUQXtpaODGPMsuYucotOGtgEutOIvFSZQox8AAJ4gKYR lDV2Zb7L+Pvv0kr0sik8kotepXikiOY15c2HLu+HzD8q72eT/8XHzwcwEHhmR1mawLUw v08Q== 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=xOR0Uzc/MaOo+91OJ+LOBe455qndQyU5Dk/RZAlzJZg=; fh=LApksBCTBlhWGfjZQ6UeNHy/jh04xXillon7KuuhImU=; b=qufsUajpAVrm4FxTHHlqixxObxzvkeODfoy5SJVNRfVHR2QKUpO3tBkuKWmj38lBtP Nb8iAkhnsgKfHV+VJdZ1REGpYAfHT/v5Iy721npNyEyOk7MBhXzt754F7vq/MikVZvWy Ba9jxAkykAUJ2QQYJ1QQzwwUyaMF2aw/Gy80q5+jvTrAzS6zPskQKcaI+JSz+yl+Bj2d YTtxhLekwmRka4b23ejQucMVd6va8Q+XhL85VzRZ7RU0pCEtyYh4oGYheuCm2mwc36tD ebCUA4/oLvPBC5BZXZw/7V+5ANIMgtqoW/8khkc6CeyLyBcIn3Su21VMffE7/kmjrHrD M5Zg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IkpR5TKt; 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-46369-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46369-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCV9W4aCfrxShP3ojv78i/Qc1/wyMNSxIe6V5yrFKM0i35KknSsmUxlC98YkB1Vjii1cgmkN7GB2DjrN4Ebt6mfjogw4CQ== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id gu5-20020a056a004e4500b006ddd08fa3d2si9316895pfb.247.2024.01.31.03.45.57 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 03:45:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46369-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IkpR5TKt; 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-46369-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46369-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CF59728BD90 for <ouuuleilei@gmail.com>; Wed, 31 Jan 2024 11:40:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DBFF07F462; Wed, 31 Jan 2024 11:37:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="IkpR5TKt" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (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 68FF07B3D1; Wed, 31 Jan 2024 11:37:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706701053; cv=none; b=nyot7oZDQHgpp4KkYKH7y33uoh3HsMFwTjTTA98rVrpNqDrQPJqsMLYyyaMlozYs+MVtAnWTxtvkca/4Ji9l0gYyhvXDEswW71s01e3QjhnTNj/USzon3DAZlrfGjHc3bB0ahE3cmnn0HC+a4bHy7ANemiAhtMXnB1urSp6e6+U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706701053; c=relaxed/simple; bh=VbGVsMvlR6qLCq5piw4v45/5b+9I9zsshnAjLePRsqA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=OYV8vcANEIixbthTTIdXXWw4B2VoLhTyUeonq06031wL4XLahv/WZwKuu+/QaGPNbOuT203ckDWNTVtcbMob2vg7Cz5hQO0FQ29HlT7Yu35fhyYXq8r1ng6AlmrmDxxdJvkOro3myqvvnYxiz01y38nmiDAMi3IER8OZ/8oizps= 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=IkpR5TKt; arc=none smtp.client-ip=198.175.65.14 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=1706701050; x=1738237050; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VbGVsMvlR6qLCq5piw4v45/5b+9I9zsshnAjLePRsqA=; b=IkpR5TKtYFISiqvNHGBdb8CfScpggzwA1JrXKV5e83AofD9N/+Enn76m Izd7jxwpUNnQBn+sYkRhhvXvMiqDmyWkUUiqOgFIWuc/Mpr6IeIwwjjbk vCV5/j8SPl9gf/ocNx1zbuscRBSZEi42wSFbFmngZ5xilnvP3IIgjVq9i bmwB3jKEQEbaP2DxBOFqDY8o90CXSLLYLWdOaajUVQi7mCyxqIwOu5AKc j2NR0kqooHGW8djN7IvLJITkuXcFSh24pKhG0kbhsyxpIcrFllSnMysTy fS4QVsLRFNm/Zes9PklF28qainUlVIhf9O8Q/gKZDgOLAWXUOyVH5MPD5 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="3441637" X-IronPort-AV: E=Sophos;i="6.05,231,1701158400"; d="scan'208";a="3441637" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2024 03:37:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="788542488" X-IronPort-AV: E=Sophos;i="6.05,231,1701158400"; d="scan'208";a="788542488" Received: from puhongt-mobl2.ccr.corp.intel.com (HELO rzhang1-mobl7.ccr.corp.intel.com) ([10.255.29.147]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2024 03:37:28 -0800 From: Zhang Rui <rui.zhang@intel.com> To: rafael.j.wysocki@intel.com Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 3/6] powercap: intel_rapl_tpmi: Fix a register bug Date: Wed, 31 Jan 2024 19:37:10 +0800 Message-Id: <20240131113713.74779-4-rui.zhang@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240131113713.74779-1-rui.zhang@intel.com> References: <20240131113713.74779-1-rui.zhang@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789606292362473950 X-GMAIL-MSGID: 1789606292362473950 |
Series |
powercap: intel_rapl: Fixes and new platform enabling
|
|
Commit Message
Zhang, Rui
Jan. 31, 2024, 11:37 a.m. UTC
Add the missing Domain Info register. This also fixes the bogus
definition of the Interrupt register.
Neither of these two registers was used previously.
Fixes: 9eef7f9da928 ("powercap: intel_rapl: Introduce RAPL TPMI interface driver")
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
---
drivers/powercap/intel_rapl_tpmi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/powercap/intel_rapl_tpmi.c b/drivers/powercap/intel_rapl_tpmi.c index 891c90fefd8b..f1c734ac3c34 100644 --- a/drivers/powercap/intel_rapl_tpmi.c +++ b/drivers/powercap/intel_rapl_tpmi.c @@ -40,6 +40,7 @@ enum tpmi_rapl_register { TPMI_RAPL_REG_ENERGY_STATUS, TPMI_RAPL_REG_PERF_STATUS, TPMI_RAPL_REG_POWER_INFO, + TPMI_RAPL_REG_DOMAIN_INFO, TPMI_RAPL_REG_INTERRUPT, TPMI_RAPL_REG_MAX = 15, };