[PATCH -next] thermal: intel: pch: use macro for temperature calculation

2020-12-10 Thread Sumeet Pawnikar
Use macro for temperature calculation Signed-off-by: Sumeet Pawnikar Reviewed-by: Andy Shevchenko Reviewed-by: Zhang Rui --- drivers/thermal/intel/intel_pch_thermal.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/thermal/intel/intel_pch_thermal.c

[PATCH] thermal: intel: pch: fix S0ix failure due to PCH temperature above threshold

2020-11-06 Thread Sumeet Pawnikar
. Previously out of 1000 runs around 3 to 5 times it might fail to enter S0ix just after heavy workload. With this change, S0ix failures reduced as PCH cools down below threshold. Signed-off-by: Sumeet Pawnikar Reviewed-by: Zhang Rui --- Below are the different types of messages during various

[PATCH] thermal: intel: intel_pch_thermal: Add Cannon Lake Low Power PCH support

2020-07-30 Thread Sumeet Pawnikar
Add LP (Low Power) PCH id for Cannon Lake (CNL) based platforms. Signed-off-by: Sumeet Pawnikar --- drivers/thermal/intel/intel_pch_thermal.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/thermal/intel/intel_pch_thermal.c b/drivers/thermal/intel/intel_pch_thermal.c index

[PATCH v3] powercap: Add Power Limit4 support

2020-07-16 Thread Sumeet Pawnikar
for the platform that has been verified to work, for safety concerns. Signed-off-by: Sumeet Pawnikar Co-developed-by: Zhang Rui Signed-off-by: Zhang Rui Reviewed-and-tested-by: Srinivas Pandruvada --- Changes in v3: - Addressed review comments from Srinivas. Changes in v2: - Addressed review comments

[PATCH v2] powercap: Add Power Limit4 support

2020-07-14 Thread Sumeet Pawnikar
for the platform that has been verified to work, for safety concerns. Signed-off-by: Sumeet Pawnikar Signed-off-by: Zhang Rui --- Changes in v2: - Addressed review comments from Rafael. - Made the commit message more clearer. - Updated powercap documentation. --- Documentation/power/powercap

[PATCH] ACPI: fan: fix: Update Tiger Lake ACPI device ID

2020-06-30 Thread Sumeet Pawnikar
Tiger Lake's new unique ACPI device ID for Fan is not valid because of missing 'C' in the ID. Fix this Fan ID by updating it. Fixes: c248dfe7e0ca ("ACPI: fan: Add Tiger Lake ACPI device ID") Signed-off-by: Sumeet Pawnikar --- drivers/acpi/fan.c |2 +- 1 file changed, 1 inser

[PATCH] powercap: Add Power Limit4 support

2020-06-22 Thread Sumeet Pawnikar
Add power limit4 (PL4) support for only mobile processor peak power. This is similar to VR Icc-Max limit, but works on Power instead of current. This limit should be used in order to protect the system from instantaneous power draw. Signed-off-by: Sumeet Pawnikar --- drivers/powercap

[PATCH] powercap: remove unused local MSR define

2020-05-21 Thread Sumeet Pawnikar
Currently, this #define entry is being used only in intel_rapl_msr.c file and local definition present in this file. Signed-off-by: Sumeet Pawnikar Reviewed-by: Andy Shevchenko --- drivers/powercap/intel_rapl_common.c |3 --- 1 file changed, 3 deletions(-) diff --git a/driver

[PATCH] powercap: remove unused local MSR define

2020-05-20 Thread Sumeet Pawnikar
From: "Pawnikar, Sumeet" Remove unused PLATFORM_POWER_LIMIT MSR local definition from file intel_rapl_common.c. This was missed while splitting old RAPL code intel_rapl.c file into two new files intel_rapl_msr.c and intel_rapl_common.c as per the commit 3382388d7148 ("intel_rapl: abstract RAPL

[PATCH] thermal: intel: int340x: processor_thermal_device: simplify to get driver data

2019-04-15 Thread Sumeet Pawnikar
we can use dev_get_drvdata(). This removes the unnecessary step back and forth. Signed-off-by: Sumeet Pawnikar --- .../int340x_thermal/processor_thermal_device.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/thermal/intel/int340x_thermal/processor_thermal_d