mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] thermal: intel: int340x: Panther Lake DLVR support
@ 2024-12-16 21:18 Srinivas Pandruvada
  2024-12-16 21:18 ` [PATCH 2/2] thermal: intel: int340x: Panther Lake power floor and workload hint support Srinivas Pandruvada
  2024-12-18 19:44 ` [PATCH 1/2] thermal: intel: int340x: Panther Lake DLVR support Rafael J. Wysocki
  0 siblings, 2 replies; 3+ messages in thread
From: Srinivas Pandruvada @ 2024-12-16 21:18 UTC (permalink / raw)
  To: rafael, rui.zhang, daniel.lezcano, lukasz.luba
  Cc: linux-pm, linux-kernel, Srinivas Pandruvada

Panther Lake follows same register set as Lunar Lake for DLVR. Enable
feature flag to support DLVR.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
---
 .../intel/int340x_thermal/processor_thermal_device_pci.c       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c b/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c
index 707bd1b23823..fb3820e72c11 100644
--- a/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c
+++ b/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c
@@ -495,7 +495,8 @@ static const struct pci_device_id proc_thermal_pci_ids[] = {
 	  PROC_THERMAL_FEATURE_DVFS | PROC_THERMAL_FEATURE_DLVR | PROC_THERMAL_FEATURE_WT_HINT) },
 	{ PCI_DEVICE_DATA(INTEL, RPL_THERMAL, PROC_THERMAL_FEATURE_RAPL |
 	  PROC_THERMAL_FEATURE_FIVR | PROC_THERMAL_FEATURE_DVFS | PROC_THERMAL_FEATURE_WT_REQ) },
-	{ PCI_DEVICE_DATA(INTEL, PTL_THERMAL, PROC_THERMAL_FEATURE_RAPL) },
+	{ PCI_DEVICE_DATA(INTEL, PTL_THERMAL, PROC_THERMAL_FEATURE_RAPL |
+	  PROC_THERMAL_FEATURE_DLVR) },
 	{ },
 };
 
-- 
2.47.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 2/2] thermal: intel: int340x: Panther Lake power floor and workload hint support
  2024-12-16 21:18 [PATCH 1/2] thermal: intel: int340x: Panther Lake DLVR support Srinivas Pandruvada
@ 2024-12-16 21:18 ` Srinivas Pandruvada
  2024-12-18 19:44 ` [PATCH 1/2] thermal: intel: int340x: Panther Lake DLVR support Rafael J. Wysocki
  1 sibling, 0 replies; 3+ messages in thread
From: Srinivas Pandruvada @ 2024-12-16 21:18 UTC (permalink / raw)
  To: rafael, rui.zhang, daniel.lezcano, lukasz.luba
  Cc: linux-pm, linux-kernel, Srinivas Pandruvada

Panther Lake follows same register set as Lunar Lake. Enable feature
flags to support workload hints and power floor status.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
---
 .../intel/int340x_thermal/processor_thermal_device_pci.c       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c b/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c
index fb3820e72c11..1b8ee61cb924 100644
--- a/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c
+++ b/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c
@@ -496,7 +496,8 @@ static const struct pci_device_id proc_thermal_pci_ids[] = {
 	{ PCI_DEVICE_DATA(INTEL, RPL_THERMAL, PROC_THERMAL_FEATURE_RAPL |
 	  PROC_THERMAL_FEATURE_FIVR | PROC_THERMAL_FEATURE_DVFS | PROC_THERMAL_FEATURE_WT_REQ) },
 	{ PCI_DEVICE_DATA(INTEL, PTL_THERMAL, PROC_THERMAL_FEATURE_RAPL |
-	  PROC_THERMAL_FEATURE_DLVR) },
+	  PROC_THERMAL_FEATURE_DLVR | PROC_THERMAL_FEATURE_MSI_SUPPORT |
+	  PROC_THERMAL_FEATURE_WT_HINT | PROC_THERMAL_FEATURE_POWER_FLOOR) },
 	{ },
 };
 
-- 
2.47.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] thermal: intel: int340x: Panther Lake DLVR support
  2024-12-16 21:18 [PATCH 1/2] thermal: intel: int340x: Panther Lake DLVR support Srinivas Pandruvada
  2024-12-16 21:18 ` [PATCH 2/2] thermal: intel: int340x: Panther Lake power floor and workload hint support Srinivas Pandruvada
@ 2024-12-18 19:44 ` Rafael J. Wysocki
  1 sibling, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2024-12-18 19:44 UTC (permalink / raw)
  To: Srinivas Pandruvada
  Cc: rafael, rui.zhang, daniel.lezcano, lukasz.luba, linux-pm, linux-kernel

On Mon, Dec 16, 2024 at 10:18 PM Srinivas Pandruvada
<srinivas.pandruvada@linux.intel.com> wrote:
>
> Panther Lake follows same register set as Lunar Lake for DLVR. Enable
> feature flag to support DLVR.
>
> Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
> ---
>  .../intel/int340x_thermal/processor_thermal_device_pci.c       | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c b/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c
> index 707bd1b23823..fb3820e72c11 100644
> --- a/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c
> +++ b/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c
> @@ -495,7 +495,8 @@ static const struct pci_device_id proc_thermal_pci_ids[] = {
>           PROC_THERMAL_FEATURE_DVFS | PROC_THERMAL_FEATURE_DLVR | PROC_THERMAL_FEATURE_WT_HINT) },
>         { PCI_DEVICE_DATA(INTEL, RPL_THERMAL, PROC_THERMAL_FEATURE_RAPL |
>           PROC_THERMAL_FEATURE_FIVR | PROC_THERMAL_FEATURE_DVFS | PROC_THERMAL_FEATURE_WT_REQ) },
> -       { PCI_DEVICE_DATA(INTEL, PTL_THERMAL, PROC_THERMAL_FEATURE_RAPL) },
> +       { PCI_DEVICE_DATA(INTEL, PTL_THERMAL, PROC_THERMAL_FEATURE_RAPL |
> +         PROC_THERMAL_FEATURE_DLVR) },
>         { },
>  };
>
> --

Applied along with the [2/2] as 6.14 material, thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-12-18 19:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-16 21:18 [PATCH 1/2] thermal: intel: int340x: Panther Lake DLVR support Srinivas Pandruvada
2024-12-16 21:18 ` [PATCH 2/2] thermal: intel: int340x: Panther Lake power floor and workload hint support Srinivas Pandruvada
2024-12-18 19:44 ` [PATCH 1/2] thermal: intel: int340x: Panther Lake DLVR support Rafael J. Wysocki

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®