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 [thread overview]
Message-ID: <20240131113713.74779-4-rui.zhang@intel.com> (raw)
In-Reply-To: <20240131113713.74779-1-rui.zhang@intel.com>
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,
};
--
2.34.1
next prev parent reply other threads:[~2024-01-31 11:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-31 11:37 [PATCH 0/6] powercap: intel_rapl: Fixes and new platform enabling Zhang Rui
2024-01-31 11:37 ` [PATCH 1/6] powercap: intel_rapl: Fix a NULL pointer dereference bug Zhang Rui
2024-01-31 11:37 ` [PATCH 2/6] powercap: intel_rapl: Fix locking for TPMI RAPL Zhang Rui
2024-01-31 11:37 ` Zhang Rui [this message]
2024-01-31 11:37 ` [PATCH 4/6] powercap: intel_rapl_tpmi: Fix System Domain probing Zhang Rui
2024-01-31 11:37 ` [PATCH 5/6] powercap: intel_rapl: Add support for LNL-M paltform Zhang Rui
2024-01-31 11:37 ` [PATCH 6/6] powercap: intel_rapl: add support for Arrow Lake Zhang Rui
2024-02-13 18:37 ` [PATCH 0/6] powercap: intel_rapl: Fixes and new platform enabling Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240131113713.74779-4-rui.zhang@intel.com \
--to=rui.zhang@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rafael.j.wysocki@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®