From: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
To: rui.zhang@intel.com, daniel.lezcano@linaro.org, amitk@kernel.org
Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Subject: [PATCH 2/4] thermal: int340x: processor_thermal: Add AlderLake PCI device id
Date: Thu, 26 Nov 2020 09:18:27 -0800 [thread overview]
Message-ID: <20201126171829.945969-2-srinivas.pandruvada@linux.intel.com> (raw)
In-Reply-To: <20201126171829.945969-1-srinivas.pandruvada@linux.intel.com>
Added AlderLake PCI device id to support processor thermal driver. Reuse
the feature set (just includes RAPL) from previous generations.
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
---
drivers/thermal/intel/int340x_thermal/processor_thermal_device.c | 1 +
drivers/thermal/intel/int340x_thermal/processor_thermal_device.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/thermal/intel/int340x_thermal/processor_thermal_device.c b/drivers/thermal/intel/int340x_thermal/processor_thermal_device.c
index 5b8dc5e9ec86..589ac7deec02 100644
--- a/drivers/thermal/intel/int340x_thermal/processor_thermal_device.c
+++ b/drivers/thermal/intel/int340x_thermal/processor_thermal_device.c
@@ -566,6 +566,7 @@ static int proc_thermal_resume(struct device *dev)
static SIMPLE_DEV_PM_OPS(proc_thermal_pm, NULL, proc_thermal_resume);
static const struct pci_device_id proc_thermal_pci_ids[] = {
+ { PCI_DEVICE_DATA(INTEL, ADL_THERMAL, PROC_THERMAL_FEATURE_RAPL) },
{ PCI_DEVICE_DATA(INTEL, BDW_THERMAL, 0) },
{ PCI_DEVICE_DATA(INTEL, BSW_THERMAL, 0) },
{ PCI_DEVICE_DATA(INTEL, BXT0_THERMAL, 0) },
diff --git a/drivers/thermal/intel/int340x_thermal/processor_thermal_device.h b/drivers/thermal/intel/int340x_thermal/processor_thermal_device.h
index e20d142a55b4..45214571e00d 100644
--- a/drivers/thermal/intel/int340x_thermal/processor_thermal_device.h
+++ b/drivers/thermal/intel/int340x_thermal/processor_thermal_device.h
@@ -9,6 +9,7 @@
#include <linux/intel_rapl.h>
+#define PCI_DEVICE_ID_INTEL_ADL_THERMAL 0x461d
#define PCI_DEVICE_ID_INTEL_BDW_THERMAL 0x1603
#define PCI_DEVICE_ID_INTEL_BSW_THERMAL 0x22DC
--
2.25.4
next prev parent reply other threads:[~2020-11-26 17:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-26 17:18 [PATCH 1/4] thermal: int340x: processor_thermal: Refactor MMIO interface Srinivas Pandruvada
2020-11-26 17:18 ` Srinivas Pandruvada [this message]
2020-12-11 13:09 ` [thermal: thermal/next] thermal: int340x: processor_thermal: Add AlderLake PCI device id thermal-bot for Srinivas Pandruvada
2020-11-26 17:18 ` [PATCH 3/4] thermal: int340x: processor_thermal: Add RFIM driver Srinivas Pandruvada
2020-12-09 20:48 ` Daniel Lezcano
2020-12-10 0:19 ` Srinivas Pandruvada
2020-12-11 13:09 ` [thermal: thermal/next] " thermal-bot for Srinivas Pandruvada
2020-11-26 17:18 ` [PATCH 4/4] thermal: int340x: processor_thermal: Add mailbox driver Srinivas Pandruvada
2020-12-11 13:09 ` [thermal: thermal/next] " thermal-bot for Srinivas Pandruvada
2020-12-09 16:15 ` [PATCH 1/4] thermal: int340x: processor_thermal: Refactor MMIO interface Srinivas Pandruvada
2020-12-11 13:09 ` [thermal: thermal/next] " thermal-bot for Srinivas Pandruvada
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=20201126171829.945969-2-srinivas.pandruvada@linux.intel.com \
--to=srinivas.pandruvada@linux.intel.com \
--cc=amitk@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rui.zhang@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;
as well as URLs for NNTP newsgroup(s).