* [PATCH] Add PCI ID of BXT thermal reporting device
@ 2015-10-13 15:50 amy.l.wiles
2015-10-13 23:05 ` Pandruvada, Srinivas
0 siblings, 1 reply; 2+ messages in thread
From: amy.l.wiles @ 2015-10-13 15:50 UTC (permalink / raw)
To: rui.zhang, srinivas.pandruvada, linux-pm; +Cc: Amy Wiles
From: Amy Wiles <amy.l.wiles@intel.com>
BUG=None
TEST=Navigate to /sys/class/thermal. Check thermal_zonex directories for one that is a cpu.
Signed-off-by: Amy Wiles <amy.l.wiles@intel.com>
---
drivers/thermal/int340x_thermal/processor_thermal_device.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/thermal/int340x_thermal/processor_thermal_device.c b/drivers/thermal/int340x_thermal/processor_thermal_device.c
index ccc0ad0..36fa724 100644
--- a/drivers/thermal/int340x_thermal/processor_thermal_device.c
+++ b/drivers/thermal/int340x_thermal/processor_thermal_device.c
@@ -33,6 +33,12 @@
/* Braswell thermal reporting device */
#define PCI_DEVICE_ID_PROC_BSW_THERMAL 0x22DC
+/* Broxton thermal reporting device */
+#define PCI_DEVICE_ID_PROC_BXT0_THERMAL 0x0A8C
+#define PCI_DEVICE_ID_PROC_BXT1_THERMAL 0x1A8C
+#define PCI_DEVICE_ID_PROC_BXTX_THERMAL 0x4A8C
+#define PCI_DEVICE_ID_PROC_BXTP_THERMAL 0x5A8C
+
struct power_config {
u32 index;
u32 min_uw;
@@ -404,6 +410,10 @@ static const struct pci_device_id proc_thermal_pci_ids[] = {
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_HSB_THERMAL)},
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_SKL_THERMAL)},
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_BSW_THERMAL)},
+ { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_BXT0_THERMAL)},
+ { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_BXT1_THERMAL)},
+ { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_BXTX_THERMAL)},
+ { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_BXTP_THERMAL)},
{ 0, },
};
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Add PCI ID of BXT thermal reporting device
2015-10-13 15:50 [PATCH] Add PCI ID of BXT thermal reporting device amy.l.wiles
@ 2015-10-13 23:05 ` Pandruvada, Srinivas
0 siblings, 0 replies; 2+ messages in thread
From: Pandruvada, Srinivas @ 2015-10-13 23:05 UTC (permalink / raw)
To: Zhang, Rui, Wiles, Amy L, linux-pm@vger.kernel.org
On Tue, 2015-10-13 at 08:50 -0700, amy.l.wiles@intel.com wrote:
> From: Amy Wiles <amy.l.wiles@intel.com>
>
> BUG=None
> TEST=Navigate to /sys/class/thermal. Check thermal_zonex directories
> for one that is a cpu.
Remove above lines and just say "Enabled Broxton SoC thermal reporting
device" Also in subject better to say Broxton.
Thanks,
Srinivas
> Signed-off-by: Amy Wiles <amy.l.wiles@intel.com>
> ---
> drivers/thermal/int340x_thermal/processor_thermal_device.c | 10
> ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git
> a/drivers/thermal/int340x_thermal/processor_thermal_device.c
> b/drivers/thermal/int340x_thermal/processor_thermal_device.c
> index ccc0ad0..36fa724 100644
> --- a/drivers/thermal/int340x_thermal/processor_thermal_device.c
> +++ b/drivers/thermal/int340x_thermal/processor_thermal_device.c
> @@ -33,6 +33,12 @@
> /* Braswell thermal reporting device */
> #define PCI_DEVICE_ID_PROC_BSW_THERMAL 0x22DC
>
> +/* Broxton thermal reporting device */
> +#define PCI_DEVICE_ID_PROC_BXT0_THERMAL 0x0A8C
> +#define PCI_DEVICE_ID_PROC_BXT1_THERMAL 0x1A8C
> +#define PCI_DEVICE_ID_PROC_BXTX_THERMAL 0x4A8C
> +#define PCI_DEVICE_ID_PROC_BXTP_THERMAL 0x5A8C
> +
> struct power_config {
> u32 index;
> u32 min_uw;
> @@ -404,6 +410,10 @@ static const struct pci_device_id
> proc_thermal_pci_ids[] = {
> { PCI_DEVICE(PCI_VENDOR_ID_INTEL,
> PCI_DEVICE_ID_PROC_HSB_THERMAL)},
> { PCI_DEVICE(PCI_VENDOR_ID_INTEL,
> PCI_DEVICE_ID_PROC_SKL_THERMAL)},
> { PCI_DEVICE(PCI_VENDOR_ID_INTEL,
> PCI_DEVICE_ID_PROC_BSW_THERMAL)},
> + { PCI_DEVICE(PCI_VENDOR_ID_INTEL,
> PCI_DEVICE_ID_PROC_BXT0_THERMAL)},
> + { PCI_DEVICE(PCI_VENDOR_ID_INTEL,
> PCI_DEVICE_ID_PROC_BXT1_THERMAL)},
> + { PCI_DEVICE(PCI_VENDOR_ID_INTEL,
> PCI_DEVICE_ID_PROC_BXTX_THERMAL)},
> + { PCI_DEVICE(PCI_VENDOR_ID_INTEL,
> PCI_DEVICE_ID_PROC_BXTP_THERMAL)},
> { 0, },
> };
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-13 23:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-13 15:50 [PATCH] Add PCI ID of BXT thermal reporting device amy.l.wiles
2015-10-13 23:05 ` Pandruvada, Srinivas
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).