platform-driver-x86.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] platform/x86/amd/pmf: Updates to PMF driver
@ 2023-01-25  9:59 Shyam Sundar S K
  2023-01-25  9:59 ` [PATCH 1/5] platform/x86/amd/pmf: Add helper routine to update SPS thermals Shyam Sundar S K
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Shyam Sundar S K @ 2023-01-25  9:59 UTC (permalink / raw)
  To: hdegoede, markgross; +Cc: platform-driver-x86, Patil.Reddy, Shyam Sundar S K

This patch series includes general updates and bug fixes to amd_pmf
driver.

Shyam Sundar S K (5):
  platform/x86/amd/pmf: Add helper routine to update SPS thermals
  platform/x86/amd/pmf: Add helper routine to check pprof is balanced
  platform/x86/amd/pmf: update to auto-mode limits only after AMT event
  platform/x86/amd/pmf: Fix to update SPS default pprof thermals
  platform/x86/amd/pmf: Fix to update SPS thermals when power supply
    change

 drivers/platform/x86/amd/pmf/auto-mode.c |  9 +-------
 drivers/platform/x86/amd/pmf/cnqf.c      | 14 +++++-------
 drivers/platform/x86/amd/pmf/core.c      | 23 +++++++++++++++++++
 drivers/platform/x86/amd/pmf/pmf.h       |  3 +++
 drivers/platform/x86/amd/pmf/sps.c       | 28 +++++++++++++++++++-----
 5 files changed, 54 insertions(+), 23 deletions(-)

-- 
2.25.1


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

* [PATCH 1/5] platform/x86/amd/pmf: Add helper routine to update SPS thermals
  2023-01-25  9:59 [PATCH 0/5] platform/x86/amd/pmf: Updates to PMF driver Shyam Sundar S K
@ 2023-01-25  9:59 ` Shyam Sundar S K
  2023-01-25  9:59 ` [PATCH 2/5] platform/x86/amd/pmf: Add helper routine to check pprof is balanced Shyam Sundar S K
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Shyam Sundar S K @ 2023-01-25  9:59 UTC (permalink / raw)
  To: hdegoede, markgross; +Cc: platform-driver-x86, Patil.Reddy, Shyam Sundar S K

Add helper routine to update the static slider information
and remove the duplicate code occurrences after this change.

Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
---
 drivers/platform/x86/amd/pmf/auto-mode.c |  7 +------
 drivers/platform/x86/amd/pmf/cnqf.c      |  8 ++------
 drivers/platform/x86/amd/pmf/pmf.h       |  1 +
 drivers/platform/x86/amd/pmf/sps.c       | 20 ++++++++++++++------
 4 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/drivers/platform/x86/amd/pmf/auto-mode.c b/drivers/platform/x86/amd/pmf/auto-mode.c
index 644af42e07cf..7564ef1bca7d 100644
--- a/drivers/platform/x86/amd/pmf/auto-mode.c
+++ b/drivers/platform/x86/amd/pmf/auto-mode.c
@@ -275,13 +275,8 @@ int amd_pmf_reset_amt(struct amd_pmf_dev *dev)
 	 */
 
 	if (is_apmf_func_supported(dev, APMF_FUNC_STATIC_SLIDER_GRANULAR)) {
-		int mode = amd_pmf_get_pprof_modes(dev);
-
-		if (mode < 0)
-			return mode;
-
 		dev_dbg(dev->dev, "resetting AMT thermals\n");
-		amd_pmf_update_slider(dev, SLIDER_OP_SET, mode, NULL);
+		amd_pmf_set_sps_power_limits(dev);
 	}
 	return 0;
 }
diff --git a/drivers/platform/x86/amd/pmf/cnqf.c b/drivers/platform/x86/amd/pmf/cnqf.c
index 3f9731a2ac28..21e00ba39f19 100644
--- a/drivers/platform/x86/amd/pmf/cnqf.c
+++ b/drivers/platform/x86/amd/pmf/cnqf.c
@@ -307,13 +307,9 @@ static ssize_t cnqf_enable_store(struct device *dev,
 				 const char *buf, size_t count)
 {
 	struct amd_pmf_dev *pdev = dev_get_drvdata(dev);
-	int mode, result, src;
+	int result, src;
 	bool input;
 
-	mode = amd_pmf_get_pprof_modes(pdev);
-	if (mode < 0)
-		return mode;
-
 	result = kstrtobool(buf, &input);
 	if (result)
 		return result;
@@ -325,7 +321,7 @@ static ssize_t cnqf_enable_store(struct device *dev,
 		amd_pmf_set_cnqf(pdev, src, config_store.current_mode, NULL);
 	} else {
 		if (is_apmf_func_supported(pdev, APMF_FUNC_STATIC_SLIDER_GRANULAR))
-			amd_pmf_update_slider(pdev, SLIDER_OP_SET, mode, NULL);
+			amd_pmf_set_sps_power_limits(pdev);
 	}
 
 	dev_dbg(pdev->dev, "Received CnQF %s\n", input ? "on" : "off");
diff --git a/drivers/platform/x86/amd/pmf/pmf.h b/drivers/platform/x86/amd/pmf/pmf.h
index 84bbe2c6ea61..b5b77a353b96 100644
--- a/drivers/platform/x86/amd/pmf/pmf.h
+++ b/drivers/platform/x86/amd/pmf/pmf.h
@@ -394,6 +394,7 @@ int apmf_get_static_slider_granular(struct amd_pmf_dev *pdev,
 
 
 int apmf_update_fan_idx(struct amd_pmf_dev *pdev, bool manual, u32 idx);
+int amd_pmf_set_sps_power_limits(struct amd_pmf_dev *pmf);
 
 /* Auto Mode Layer */
 int apmf_get_auto_mode_def(struct amd_pmf_dev *pdev, struct apmf_auto_mode *data);
diff --git a/drivers/platform/x86/amd/pmf/sps.c b/drivers/platform/x86/amd/pmf/sps.c
index dba7e36962dc..5f842d6e6db2 100644
--- a/drivers/platform/x86/amd/pmf/sps.c
+++ b/drivers/platform/x86/amd/pmf/sps.c
@@ -70,6 +70,19 @@ void amd_pmf_update_slider(struct amd_pmf_dev *dev, bool op, int idx,
 	}
 }
 
+int amd_pmf_set_sps_power_limits(struct amd_pmf_dev *pmf)
+{
+	int mode;
+
+	mode = amd_pmf_get_pprof_modes(pmf);
+	if (mode < 0)
+		return mode;
+
+	amd_pmf_update_slider(pmf, SLIDER_OP_SET, mode, NULL);
+
+	return 0;
+}
+
 static int amd_pmf_profile_get(struct platform_profile_handler *pprof,
 			       enum platform_profile_option *profile)
 {
@@ -105,15 +118,10 @@ static int amd_pmf_profile_set(struct platform_profile_handler *pprof,
 			       enum platform_profile_option profile)
 {
 	struct amd_pmf_dev *pmf = container_of(pprof, struct amd_pmf_dev, pprof);
-	int mode;
 
 	pmf->current_profile = profile;
-	mode = amd_pmf_get_pprof_modes(pmf);
-	if (mode < 0)
-		return mode;
 
-	amd_pmf_update_slider(pmf, SLIDER_OP_SET, mode, NULL);
-	return 0;
+	return amd_pmf_set_sps_power_limits(pmf);
 }
 
 int amd_pmf_init_sps(struct amd_pmf_dev *dev)
-- 
2.25.1


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

* [PATCH 2/5] platform/x86/amd/pmf: Add helper routine to check pprof is balanced
  2023-01-25  9:59 [PATCH 0/5] platform/x86/amd/pmf: Updates to PMF driver Shyam Sundar S K
  2023-01-25  9:59 ` [PATCH 1/5] platform/x86/amd/pmf: Add helper routine to update SPS thermals Shyam Sundar S K
@ 2023-01-25  9:59 ` Shyam Sundar S K
  2023-01-25  9:59 ` [PATCH 3/5] platform/x86/amd/pmf: update to auto-mode limits only after AMT event Shyam Sundar S K
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Shyam Sundar S K @ 2023-01-25  9:59 UTC (permalink / raw)
  To: hdegoede, markgross; +Cc: platform-driver-x86, Patil.Reddy, Shyam Sundar S K

Add helper routine to check if the current platform profile
is balanced mode and remove duplicate code occurrences.

Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
---
 drivers/platform/x86/amd/pmf/cnqf.c | 6 +++---
 drivers/platform/x86/amd/pmf/pmf.h  | 1 +
 drivers/platform/x86/amd/pmf/sps.c  | 5 +++++
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/drivers/platform/x86/amd/pmf/cnqf.c b/drivers/platform/x86/amd/pmf/cnqf.c
index 21e00ba39f19..4beb22a19466 100644
--- a/drivers/platform/x86/amd/pmf/cnqf.c
+++ b/drivers/platform/x86/amd/pmf/cnqf.c
@@ -103,7 +103,7 @@ int amd_pmf_trans_cnqf(struct amd_pmf_dev *dev, int socket_power, ktime_t time_l
 
 	src = amd_pmf_cnqf_get_power_source(dev);
 
-	if (dev->current_profile == PLATFORM_PROFILE_BALANCED) {
+	if (is_pprof_balanced(dev)) {
 		amd_pmf_set_cnqf(dev, src, config_store.current_mode, NULL);
 	} else {
 		/*
@@ -317,7 +317,7 @@ static ssize_t cnqf_enable_store(struct device *dev,
 	src = amd_pmf_cnqf_get_power_source(pdev);
 	pdev->cnqf_enabled = input;
 
-	if (pdev->cnqf_enabled && pdev->current_profile == PLATFORM_PROFILE_BALANCED) {
+	if (pdev->cnqf_enabled && is_pprof_balanced(pdev)) {
 		amd_pmf_set_cnqf(pdev, src, config_store.current_mode, NULL);
 	} else {
 		if (is_apmf_func_supported(pdev, APMF_FUNC_STATIC_SLIDER_GRANULAR))
@@ -382,7 +382,7 @@ int amd_pmf_init_cnqf(struct amd_pmf_dev *dev)
 	dev->cnqf_enabled = amd_pmf_check_flags(dev);
 
 	/* update the thermal for CnQF */
-	if (dev->cnqf_enabled && dev->current_profile == PLATFORM_PROFILE_BALANCED) {
+	if (dev->cnqf_enabled && is_pprof_balanced(dev)) {
 		src = amd_pmf_cnqf_get_power_source(dev);
 		amd_pmf_set_cnqf(dev, src, config_store.current_mode, NULL);
 	}
diff --git a/drivers/platform/x86/amd/pmf/pmf.h b/drivers/platform/x86/amd/pmf/pmf.h
index b5b77a353b96..b94e1a9030f8 100644
--- a/drivers/platform/x86/amd/pmf/pmf.h
+++ b/drivers/platform/x86/amd/pmf/pmf.h
@@ -391,6 +391,7 @@ int amd_pmf_init_sps(struct amd_pmf_dev *dev);
 void amd_pmf_deinit_sps(struct amd_pmf_dev *dev);
 int apmf_get_static_slider_granular(struct amd_pmf_dev *pdev,
 				    struct apmf_static_slider_granular_output *output);
+bool is_pprof_balanced(struct amd_pmf_dev *pmf);
 
 
 int apmf_update_fan_idx(struct amd_pmf_dev *pdev, bool manual, u32 idx);
diff --git a/drivers/platform/x86/amd/pmf/sps.c b/drivers/platform/x86/amd/pmf/sps.c
index 5f842d6e6db2..3b4a09a84c29 100644
--- a/drivers/platform/x86/amd/pmf/sps.c
+++ b/drivers/platform/x86/amd/pmf/sps.c
@@ -83,6 +83,11 @@ int amd_pmf_set_sps_power_limits(struct amd_pmf_dev *pmf)
 	return 0;
 }
 
+bool is_pprof_balanced(struct amd_pmf_dev *pmf)
+{
+	return (pmf->current_profile == PLATFORM_PROFILE_BALANCED) ? true : false;
+}
+
 static int amd_pmf_profile_get(struct platform_profile_handler *pprof,
 			       enum platform_profile_option *profile)
 {
-- 
2.25.1


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

* [PATCH 3/5] platform/x86/amd/pmf: update to auto-mode limits only after AMT event
  2023-01-25  9:59 [PATCH 0/5] platform/x86/amd/pmf: Updates to PMF driver Shyam Sundar S K
  2023-01-25  9:59 ` [PATCH 1/5] platform/x86/amd/pmf: Add helper routine to update SPS thermals Shyam Sundar S K
  2023-01-25  9:59 ` [PATCH 2/5] platform/x86/amd/pmf: Add helper routine to check pprof is balanced Shyam Sundar S K
@ 2023-01-25  9:59 ` Shyam Sundar S K
  2023-01-25  9:59 ` [PATCH 4/5] platform/x86/amd/pmf: Fix to update SPS default pprof thermals Shyam Sundar S K
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Shyam Sundar S K @ 2023-01-25  9:59 UTC (permalink / raw)
  To: hdegoede, markgross; +Cc: platform-driver-x86, Patil.Reddy, Shyam Sundar S K

Auto-mode thermal limits should be updated only after receiving the AMT
event. But due to a bug in the older commit, these settings were getting
applied during the auto-mode init.

Fix this by removing amd_pmf_set_automode() during auto-mode
initialization.

Fixes: 3f5571d99524 ("platform/x86/amd/pmf: Add support for Auto mode feature")
Suggested-by: Patil Rajesh Reddy <Patil.Reddy@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
---
 drivers/platform/x86/amd/pmf/auto-mode.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/platform/x86/amd/pmf/auto-mode.c b/drivers/platform/x86/amd/pmf/auto-mode.c
index 7564ef1bca7d..96a8e1832c05 100644
--- a/drivers/platform/x86/amd/pmf/auto-mode.c
+++ b/drivers/platform/x86/amd/pmf/auto-mode.c
@@ -294,7 +294,5 @@ void amd_pmf_deinit_auto_mode(struct amd_pmf_dev *dev)
 void amd_pmf_init_auto_mode(struct amd_pmf_dev *dev)
 {
 	amd_pmf_load_defaults_auto_mode(dev);
-	/* update the thermal limits for Automode */
-	amd_pmf_set_automode(dev, config_store.current_mode, NULL);
 	amd_pmf_init_metrics_table(dev);
 }
-- 
2.25.1


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

* [PATCH 4/5] platform/x86/amd/pmf: Fix to update SPS default pprof thermals
  2023-01-25  9:59 [PATCH 0/5] platform/x86/amd/pmf: Updates to PMF driver Shyam Sundar S K
                   ` (2 preceding siblings ...)
  2023-01-25  9:59 ` [PATCH 3/5] platform/x86/amd/pmf: update to auto-mode limits only after AMT event Shyam Sundar S K
@ 2023-01-25  9:59 ` Shyam Sundar S K
  2023-01-25  9:59 ` [PATCH 5/5] platform/x86/amd/pmf: Fix to update SPS thermals when power supply change Shyam Sundar S K
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Shyam Sundar S K @ 2023-01-25  9:59 UTC (permalink / raw)
  To: hdegoede, markgross; +Cc: platform-driver-x86, Patil.Reddy, Shyam Sundar S K

By design PMF static slider will be set to BALANCED during
init, but updating to corresponding thermal values from
the PMF config store was missed, leading to improper settings
getting propagated to PMFW.

Fixes: 4c71ae414474 ("platform/x86/amd/pmf: Add support SPS PMF feature")
Suggested-by: Patil Rajesh Reddy <Patil.Reddy@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
---
 drivers/platform/x86/amd/pmf/sps.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/platform/x86/amd/pmf/sps.c b/drivers/platform/x86/amd/pmf/sps.c
index 3b4a09a84c29..bed762d47a14 100644
--- a/drivers/platform/x86/amd/pmf/sps.c
+++ b/drivers/platform/x86/amd/pmf/sps.c
@@ -136,6 +136,9 @@ int amd_pmf_init_sps(struct amd_pmf_dev *dev)
 	dev->current_profile = PLATFORM_PROFILE_BALANCED;
 	amd_pmf_load_defaults_sps(dev);
 
+	/* update SPS balanced power mode thermals */
+	amd_pmf_set_sps_power_limits(dev);
+
 	dev->pprof.profile_get = amd_pmf_profile_get;
 	dev->pprof.profile_set = amd_pmf_profile_set;
 
-- 
2.25.1


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

* [PATCH 5/5] platform/x86/amd/pmf: Fix to update SPS thermals when power supply change
  2023-01-25  9:59 [PATCH 0/5] platform/x86/amd/pmf: Updates to PMF driver Shyam Sundar S K
                   ` (3 preceding siblings ...)
  2023-01-25  9:59 ` [PATCH 4/5] platform/x86/amd/pmf: Fix to update SPS default pprof thermals Shyam Sundar S K
@ 2023-01-25  9:59 ` Shyam Sundar S K
  2023-01-26  3:39 ` [PATCH 0/5] platform/x86/amd/pmf: Updates to PMF driver Mario Limonciello
  2023-01-30 13:32 ` Hans de Goede
  6 siblings, 0 replies; 8+ messages in thread
From: Shyam Sundar S K @ 2023-01-25  9:59 UTC (permalink / raw)
  To: hdegoede, markgross; +Cc: platform-driver-x86, Patil.Reddy, Shyam Sundar S K

Every power mode of static power slider has its own AC and DC power
settings.

When the power source changes from AC to DC, corresponding DC thermals
were not updated from PMF config store and this leads the system to always
run on AC power settings.

Fix it by registering with power_supply notifier and apply DC settings
upon getting notified by the power_supply handler.

Fixes: da5ce22df5fe ("platform/x86/amd/pmf: Add support for PMF core layer")
Suggested-by: Patil Rajesh Reddy <Patil.Reddy@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
---
 drivers/platform/x86/amd/pmf/core.c | 23 +++++++++++++++++++++++
 drivers/platform/x86/amd/pmf/pmf.h  |  1 +
 2 files changed, 24 insertions(+)

diff --git a/drivers/platform/x86/amd/pmf/core.c b/drivers/platform/x86/amd/pmf/core.c
index a5f5a4bcff6d..f7ace0e8fbee 100644
--- a/drivers/platform/x86/amd/pmf/core.c
+++ b/drivers/platform/x86/amd/pmf/core.c
@@ -58,6 +58,25 @@ static bool force_load;
 module_param(force_load, bool, 0444);
 MODULE_PARM_DESC(force_load, "Force load this driver on supported older platforms (experimental)");
 
+static int amd_pmf_pwr_src_notify_call(struct notifier_block *nb, unsigned long event, void *data)
+{
+	struct amd_pmf_dev *pmf = container_of(nb, struct amd_pmf_dev, pwr_src_notifier);
+
+	if (event != PSY_EVENT_PROP_CHANGED)
+		return NOTIFY_OK;
+
+	if (is_apmf_func_supported(pmf, APMF_FUNC_AUTO_MODE) ||
+	    is_apmf_func_supported(pmf, APMF_FUNC_DYN_SLIDER_DC) ||
+	    is_apmf_func_supported(pmf, APMF_FUNC_DYN_SLIDER_AC)) {
+		if ((pmf->amt_enabled || pmf->cnqf_enabled) && is_pprof_balanced(pmf))
+			return NOTIFY_DONE;
+	}
+
+	amd_pmf_set_sps_power_limits(pmf);
+
+	return NOTIFY_OK;
+}
+
 static int current_power_limits_show(struct seq_file *seq, void *unused)
 {
 	struct amd_pmf_dev *dev = seq->private;
@@ -372,6 +391,9 @@ static int amd_pmf_probe(struct platform_device *pdev)
 	apmf_install_handler(dev);
 	amd_pmf_dbgfs_register(dev);
 
+	dev->pwr_src_notifier.notifier_call = amd_pmf_pwr_src_notify_call;
+	power_supply_reg_notifier(&dev->pwr_src_notifier);
+
 	mutex_init(&dev->lock);
 	mutex_init(&dev->update_mutex);
 	dev_info(dev->dev, "registered PMF device successfully\n");
@@ -389,6 +411,7 @@ static int amd_pmf_remove(struct platform_device *pdev)
 	apmf_acpi_deinit(dev);
 	amd_pmf_dbgfs_unregister(dev);
 	kfree(dev->buf);
+	power_supply_unreg_notifier(&dev->pwr_src_notifier);
 	return 0;
 }
 
diff --git a/drivers/platform/x86/amd/pmf/pmf.h b/drivers/platform/x86/amd/pmf/pmf.h
index b94e1a9030f8..06c30cdc0573 100644
--- a/drivers/platform/x86/amd/pmf/pmf.h
+++ b/drivers/platform/x86/amd/pmf/pmf.h
@@ -169,6 +169,7 @@ struct amd_pmf_dev {
 	struct mutex update_mutex; /* protects race between ACPI handler and metrics thread */
 	bool cnqf_enabled;
 	bool cnqf_supported;
+	struct notifier_block pwr_src_notifier;
 };
 
 struct apmf_sps_prop_granular {
-- 
2.25.1


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

* Re: [PATCH 0/5] platform/x86/amd/pmf: Updates to PMF driver
  2023-01-25  9:59 [PATCH 0/5] platform/x86/amd/pmf: Updates to PMF driver Shyam Sundar S K
                   ` (4 preceding siblings ...)
  2023-01-25  9:59 ` [PATCH 5/5] platform/x86/amd/pmf: Fix to update SPS thermals when power supply change Shyam Sundar S K
@ 2023-01-26  3:39 ` Mario Limonciello
  2023-01-30 13:32 ` Hans de Goede
  6 siblings, 0 replies; 8+ messages in thread
From: Mario Limonciello @ 2023-01-26  3:39 UTC (permalink / raw)
  To: Shyam Sundar S K, hdegoede, markgross; +Cc: platform-driver-x86, Patil.Reddy

On 1/25/23 03:59, Shyam Sundar S K wrote:
> This patch series includes general updates and bug fixes to amd_pmf
> driver.
> 
> Shyam Sundar S K (5):
>    platform/x86/amd/pmf: Add helper routine to update SPS thermals
>    platform/x86/amd/pmf: Add helper routine to check pprof is balanced
>    platform/x86/amd/pmf: update to auto-mode limits only after AMT event
>    platform/x86/amd/pmf: Fix to update SPS default pprof thermals
>    platform/x86/amd/pmf: Fix to update SPS thermals when power supply
>      change
> 
>   drivers/platform/x86/amd/pmf/auto-mode.c |  9 +-------
>   drivers/platform/x86/amd/pmf/cnqf.c      | 14 +++++-------
>   drivers/platform/x86/amd/pmf/core.c      | 23 +++++++++++++++++++
>   drivers/platform/x86/amd/pmf/pmf.h       |  3 +++
>   drivers/platform/x86/amd/pmf/sps.c       | 28 +++++++++++++++++++-----
>   5 files changed, 54 insertions(+), 23 deletions(-)
> 

For the series:

Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>

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

* Re: [PATCH 0/5] platform/x86/amd/pmf: Updates to PMF driver
  2023-01-25  9:59 [PATCH 0/5] platform/x86/amd/pmf: Updates to PMF driver Shyam Sundar S K
                   ` (5 preceding siblings ...)
  2023-01-26  3:39 ` [PATCH 0/5] platform/x86/amd/pmf: Updates to PMF driver Mario Limonciello
@ 2023-01-30 13:32 ` Hans de Goede
  6 siblings, 0 replies; 8+ messages in thread
From: Hans de Goede @ 2023-01-30 13:32 UTC (permalink / raw)
  To: Shyam Sundar S K, markgross; +Cc: platform-driver-x86, Patil.Reddy

Hi,

On 1/25/23 10:59, Shyam Sundar S K wrote:
> This patch series includes general updates and bug fixes to amd_pmf
> driver.

Thank you for your patch-series, I've applied the series to
the pdx86 fixes branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=fixes

and this will be included in my next fixes pull-req to Linus.

Regards,

Hans


> 
> Shyam Sundar S K (5):
>   platform/x86/amd/pmf: Add helper routine to update SPS thermals
>   platform/x86/amd/pmf: Add helper routine to check pprof is balanced
>   platform/x86/amd/pmf: update to auto-mode limits only after AMT event
>   platform/x86/amd/pmf: Fix to update SPS default pprof thermals
>   platform/x86/amd/pmf: Fix to update SPS thermals when power supply
>     change
> 
>  drivers/platform/x86/amd/pmf/auto-mode.c |  9 +-------
>  drivers/platform/x86/amd/pmf/cnqf.c      | 14 +++++-------
>  drivers/platform/x86/amd/pmf/core.c      | 23 +++++++++++++++++++
>  drivers/platform/x86/amd/pmf/pmf.h       |  3 +++
>  drivers/platform/x86/amd/pmf/sps.c       | 28 +++++++++++++++++++-----
>  5 files changed, 54 insertions(+), 23 deletions(-)
> 


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

end of thread, other threads:[~2023-01-30 13:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-25  9:59 [PATCH 0/5] platform/x86/amd/pmf: Updates to PMF driver Shyam Sundar S K
2023-01-25  9:59 ` [PATCH 1/5] platform/x86/amd/pmf: Add helper routine to update SPS thermals Shyam Sundar S K
2023-01-25  9:59 ` [PATCH 2/5] platform/x86/amd/pmf: Add helper routine to check pprof is balanced Shyam Sundar S K
2023-01-25  9:59 ` [PATCH 3/5] platform/x86/amd/pmf: update to auto-mode limits only after AMT event Shyam Sundar S K
2023-01-25  9:59 ` [PATCH 4/5] platform/x86/amd/pmf: Fix to update SPS default pprof thermals Shyam Sundar S K
2023-01-25  9:59 ` [PATCH 5/5] platform/x86/amd/pmf: Fix to update SPS thermals when power supply change Shyam Sundar S K
2023-01-26  3:39 ` [PATCH 0/5] platform/x86/amd/pmf: Updates to PMF driver Mario Limonciello
2023-01-30 13:32 ` Hans de Goede

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).