Skip to contentSkip to conversation

hwmon: (dell-smm) Also add Dell Precision 7540 to fan control whitelist

PATCH Superseded Seiji Nishikawa 3 participants 7 messages Dec 23, 2023 – Mar 26, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon: (dell-smm) Also add Dell Precision 7540 to fan control whitelist

This patch, in addition to 95d88d054ad9 that added Dell Precision 7510 to fan control whitelist, also adds Precision 7540 to the whitelist, which allows manual PWM control on Dell Precision 7540. It has been confirmed that the same SMM commands work to enable/disable manual PWM control on Dell Precision 7540.

---
 drivers/hwmon/dell-smm-hwmon.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/hwmon/dell-smm-hwmon.c +8 -0
index 44aaf9b9191d..f946257f72c6 100644
@@ -1330,6 +1330,14 @@ static const struct dmi_system_id i8k_whitelist_fan_control[] __initconst = {
 		},
 		.driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3],
 	},
+        {
+                .ident = "Dell Precision 7540",
+                .matches = {
+                        DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+                        DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Precision 7540"),
+                },
+                .driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3],
+        },
 	{
 		.ident = "Dell XPS 13 7390",
 		.matches = {
Signature · 1 line
2.42.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · On Saturday 23 December 2023 16:36:58 Seiji Nishikawa wrote:

This patch, in addition to 95d88d054ad9 that added Dell Precision 7510 to fan control whitelist, also adds Precision 7540 to the whitelist, which allows manual PWM control on Dell Precision 7540. It has been confirmed that the same SMM commands work to enable/disable manual PWM control on Dell Precision 7540.
---

Quoted 25 lines
 drivers/hwmon/dell-smm-hwmon.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/hwmon/dell-smm-hwmon.c +8 -0
index 44aaf9b9191d..f946257f72c6 100644
@@ -1330,6 +1330,14 @@ static const struct dmi_system_id i8k_whitelist_fan_control[] __initconst = {
 		},
 		.driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3],
 	},
+        {
+                .ident = "Dell Precision 7540",
+                .matches = {
+                        DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+                        DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Precision 7540"),
+                },
+                .driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3],
+        },
 	{
 		.ident = "Dell XPS 13 7390",
 		.matches = {
Signature · 1 line
2.42.0
maintainer
#2 lore raw
In reply to Seiji Nishikawa
Quoted 2 lines · Seiji Nishikawa

This patch, in addition to 95d88d054ad9 that added Dell Precision 7510 to fan control whitelist, also adds Precision 7540 to the whitelist, which allows manual

Use imperative mood to describe your patch.

Quoted 16 lines

PWM control on Dell Precision 7540. It has been confirmed that the same SMM commands work to enable/disable manual PWM control on Dell Precision 7540.

---
 drivers/hwmon/dell-smm-hwmon.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/hwmon/dell-smm-hwmon.c +1 -0
index 44aaf9b9191d..f946257f72c6 100644
@@ -1330,6 +1330,14 @@ static const struct dmi_system_id i8k_whitelist_fan_control[] __initconst = {
 		},
 		.driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3],
 	},
+        {

drivers/hwmon/dell-smm-hwmon.c static const struct dmi_system_id i8k_whitelist_fan_control[] __initconst = { · line 1343

Quoted 10 lines
drivers/hwmon/dell-smm-hwmon.c +7 -0
+                .ident = "Dell Precision 7540",
+                .matches = {
+                        DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+                        DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Precision 7540"),
+                },
+                .driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3],
+        },
 	{
 		.ident = "Dell XPS 13 7390",
 		.matches = {

Patch uses spaces instead of tabs and produces lots of checkpatch warnings and errors. Also, Signed-off: tag is missing.

Overall, please read and follow Documentation/process/submitting-patches.rst.

Guenter

#3 lore raw

'Re: [PATCH] hwmon: (dell-smm) Also add Dell Precision 7540 to fan control whitelist'

Quoted 6 lines · Guenter Roeck
Quoted 2 lines · Seiji Nishikawa

This patch, in addition to 95d88d054ad9 that added Dell Precision 7510 to fan control whitelist, also adds Precision 7540 to the whitelist, which allows manual

Use imperative mood to describe your patch.

Just as you pointed out.

Quoted 21 lines
Quoted 21 lines

PWM control on Dell Precision 7540. It has been confirmed that the same SMM commands work to enable/disable manual PWM control on Dell Precision 7540.

---
 drivers/hwmon/dell-smm-hwmon.c | 8 ++++++++

 1 file changed, 8 insertions(+)
drivers/hwmon/dell-smm-hwmon.c +6 -0
index 44aaf9b9191d..f946257f72c6 100644
@@ -1330,6 +1330,14 @@ static const struct dmi_system_id i8k_whitelist_fan_control[] __initconst = {
               },
               .driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3],
       },
+        {
+                .ident = "Dell Precision 7540",
+                .matches = {
+                        DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+                        DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Precision 7540"),
+                },
Quoted 8 lines

drivers/hwmon/dell-smm-hwmon.c static const struct dmi_system_id i8k_whitelist_fan_control[] __initconst = { · line 1343

Quoted 5 lines
drivers/hwmon/dell-smm-hwmon.c +2 -0
+                .driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3],
+        },
       {
               .ident = "Dell XPS 13 7390",
               .matches = {

Patch uses spaces instead of tabs and produces lots of checkpatch warnings and errors. Also, Signed-off: tag is missing.

Apologies for the noises and the missing tag.

Quoted 1 line

Overall, please read and follow Documentation/process/submitting-patches.rst.

I should have done that.

#4 lore raw

PATCH v2 1/1 hwmon: (dell-smm) Add Dell Precision 7540 to fan control whitelist

Add Precision 7540 to the fan control whitelist, in addition to 7510.

---
 drivers/hwmon/dell-smm-hwmon.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/hwmon/dell-smm-hwmon.c +8 -0
index efcf78673e74..0e12634e83cb 100644
@@ -1506,6 +1506,14 @@ static const struct dmi_system_id i8k_whitelist_fan_control[] __initconst = {
 		},
 		.driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3],
 	},
+	{
+		.ident = "Dell Precision 7540",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Precision 7540"),
+		},
+		.driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3],
+	},
 	{
 		.ident = "Dell XPS 13 7390",
 		.matches = {
Signature · 1 line
2.44.0
maintainer Applied
#5 lore raw

Re: [PATCH v2] hwmon: (dell-smm) Add Dell Precision 7540 to fan control whitelist

Quoted 3 lines · Seiji Nishikawa

Add Precision 7540 to the fan control whitelist, in addition to 7510.

Applied. Note though that sending a new version of a patch as reply to an older one may easily result in it getting lost, so I'd recommend not to do that.

Guenter

#6 lore raw

'Re: [PATCH v2] hwmon: (dell-smm) Add Dell Precision 7540 to fan control whitelist'

Quoted 9 lines · Guenter Roeck
Quoted 3 lines · Seiji Nishikawa

Add Precision 7540 to the fan control whitelist, in addition to 7510.

Applied. Note though that sending a new version of a patch as reply to an older one may easily result in it getting lost, so I'd recommend not to do that.

Thank you. Noted. I won't do that again.