Skip to contentSkip to conversation

hwmon: (asus-ec-sensors) add ROG STRIX B650E-E GAMING WIFI

PATCH Superseded Eugene Shalygin 3 participants 5 messages Apr 3 – Apr 9

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Eugene Shalygin

author maintainer
#0 lore raw

PATCH 1/1 hwmon: (asus-ec-sensors) add ROG STRIX B650E-E GAMING WIFI

From: Veronika Kossmann <[email protected]>

Add support for ROG STRIX B650E-E GAMING WIFI

---
 Documentation/hwmon/asus_ec_sensors.rst |  1 +
 drivers/hwmon/asus-ec-sensors.c         | 11 ++++++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)
Documentation/hwmon/asus_ec_sensors.rst +1 -0
index 9ad3f0a57f55..e14419811aac 100644
@@ -31,6 +31,7 @@ Supported boards:
  * ROG MAXIMUS Z690 FORMULA
  * ROG STRIX B550-E GAMING
  * ROG STRIX B550-I GAMING
+ * ROG STRIX B650E-E GAMING WIFI
  * ROG STRIX B650E-I GAMING WIFI
  * ROG STRIX B850-I GAMING WIFI
  * ROG STRIX X470-F GAMING
drivers/hwmon/asus-ec-sensors.c +10 -1
index 070bb368f2b7..8c53cd9ed8f3 100644
@@ -274,7 +274,7 @@ static const struct ec_sensor_info sensors_family_amd_600[] = {
 	[ec_sensor_temp_cpu_package] =
 		EC_SENSOR("CPU Package", hwmon_temp, 1, 0x00, 0x31),
 	[ec_sensor_temp_mb] =
-	EC_SENSOR("Motherboard", hwmon_temp, 1, 0x00, 0x32),
+		EC_SENSOR("Motherboard", hwmon_temp, 1, 0x00, 0x32),
 	[ec_sensor_temp_vrm] =
 		EC_SENSOR("VRM", hwmon_temp, 1, 0x00, 0x33),
 	[ec_sensor_temp_t_sensor] =
@@ -616,6 +616,13 @@ static const struct ec_board_info board_info_strix_b550_i_gaming = {
 	.family = family_amd_500_series,
 };
 
+static const struct ec_board_info board_info_strix_b650e_e_gaming = {
+	.sensors = SENSOR_TEMP_VRM | SENSOR_SET_TEMP_CHIPSET_CPU_MB |
+		SENSOR_IN_CPU_CORE,
+	.mutex_path = ASUS_HW_ACCESS_MUTEX_SB_PCI0_SBRG_SIO1_MUT0,
+	.family = family_amd_600_series,
+};
+
 static const struct ec_board_info board_info_strix_b650e_i_gaming = {
 	.sensors = SENSOR_TEMP_VRM | SENSOR_TEMP_T_SENSOR |
 		SENSOR_SET_TEMP_CHIPSET_CPU_MB | SENSOR_IN_CPU_CORE,
@@ -861,6 +868,8 @@ static const struct dmi_system_id dmi_table[] = {
 					&board_info_strix_b550_e_gaming),
 	DMI_EXACT_MATCH_ASUS_BOARD_NAME("ROG STRIX B550-I GAMING",
 					&board_info_strix_b550_i_gaming),
+	DMI_EXACT_MATCH_ASUS_BOARD_NAME("ROG STRIX B650E-E GAMING WIFI",
+					&board_info_strix_b650e_e_gaming),
 	DMI_EXACT_MATCH_ASUS_BOARD_NAME("ROG STRIX B650E-I GAMING WIFI",
 					&board_info_strix_b650e_i_gaming),
 	DMI_EXACT_MATCH_ASUS_BOARD_NAME("ROG STRIX B850-I GAMING WIFI",
Signature · 1 line
2.53.0
maintainer
#1 lore raw
Quoted 6 lines · Eugene Shalygin

From: Veronika Kossmann <[email protected]>

Add support for ROG STRIX B650E-E GAMING WIFI

Sashiko has a problem with this patch:

https://sashiko.dev/#/patchset/20260403210343.1380437-1-eugene.shalygin%40gmail.com

I never paid attention, but seems to me that it has a point. Assuming the concern is valid, that makes me wonder: Do other boards have similar problems ?

Thanks,
Guenter

Quoted 53 lines
---
  Documentation/hwmon/asus_ec_sensors.rst |  1 +
  drivers/hwmon/asus-ec-sensors.c         | 11 ++++++++++-
  2 files changed, 11 insertions(+), 1 deletion(-)
Documentation/hwmon/asus_ec_sensors.rst +1 -0
index 9ad3f0a57f55..e14419811aac 100644
@@ -31,6 +31,7 @@ Supported boards:
   * ROG MAXIMUS Z690 FORMULA
   * ROG STRIX B550-E GAMING
   * ROG STRIX B550-I GAMING
+ * ROG STRIX B650E-E GAMING WIFI
   * ROG STRIX B650E-I GAMING WIFI
   * ROG STRIX B850-I GAMING WIFI
   * ROG STRIX X470-F GAMING
drivers/hwmon/asus-ec-sensors.c +10 -1
index 070bb368f2b7..8c53cd9ed8f3 100644
@@ -274,7 +274,7 @@ static const struct ec_sensor_info sensors_family_amd_600[] = {
  	[ec_sensor_temp_cpu_package] =
  		EC_SENSOR("CPU Package", hwmon_temp, 1, 0x00, 0x31),
  	[ec_sensor_temp_mb] =
-	EC_SENSOR("Motherboard", hwmon_temp, 1, 0x00, 0x32),
+		EC_SENSOR("Motherboard", hwmon_temp, 1, 0x00, 0x32),
  	[ec_sensor_temp_vrm] =
  		EC_SENSOR("VRM", hwmon_temp, 1, 0x00, 0x33),
  	[ec_sensor_temp_t_sensor] =
@@ -616,6 +616,13 @@ static const struct ec_board_info board_info_strix_b550_i_gaming = {
  	.family = family_amd_500_series,
  };
 
+static const struct ec_board_info board_info_strix_b650e_e_gaming = {
+	.sensors = SENSOR_TEMP_VRM | SENSOR_SET_TEMP_CHIPSET_CPU_MB |
+		SENSOR_IN_CPU_CORE,
+	.mutex_path = ASUS_HW_ACCESS_MUTEX_SB_PCI0_SBRG_SIO1_MUT0,
+	.family = family_amd_600_series,
+};
+
  static const struct ec_board_info board_info_strix_b650e_i_gaming = {
  	.sensors = SENSOR_TEMP_VRM | SENSOR_TEMP_T_SENSOR |
  		SENSOR_SET_TEMP_CHIPSET_CPU_MB | SENSOR_IN_CPU_CORE,
@@ -861,6 +868,8 @@ static const struct dmi_system_id dmi_table[] = {
  					&board_info_strix_b550_e_gaming),
  	DMI_EXACT_MATCH_ASUS_BOARD_NAME("ROG STRIX B550-I GAMING",
  					&board_info_strix_b550_i_gaming),
+	DMI_EXACT_MATCH_ASUS_BOARD_NAME("ROG STRIX B650E-E GAMING WIFI",
+					&board_info_strix_b650e_e_gaming),
  	DMI_EXACT_MATCH_ASUS_BOARD_NAME("ROG STRIX B650E-I GAMING WIFI",
  					&board_info_strix_b650e_i_gaming),
  	DMI_EXACT_MATCH_ASUS_BOARD_NAME("ROG STRIX B850-I GAMING WIFI",
author maintainer
#2 lore raw
Quoted 1 line · Guenter Roeck

Sashiko has a problem with this patch:

I must admit now, that these _SET macros were a bad idea, it turned out to be too easy to misread. I'm going to remove them.

Veronika, could you, please, show us the output from sensors with this version of the code?

Cheers,
Eugene

#3 lore raw
Quoted 10 lines · Eugene Shalygin
Quoted 1 line · Guenter Roeck

Sashiko has a problem with this patch:

I must admit now, that these _SET macros were a bad idea, it turned out to be too easy to misread. I'm going to remove them.

Veronika, could you, please, show us the output from sensors with this version of the code?

Cheers,
Eugene

Of course:

$sensors asusec-isa-000a
asusec-isa-000a
Adapter: ISA adapter
CPU:          +37.0°C
Motherboard:  +38.0°C
VRM:          +51.0°C

These are relevant to actual temperatures.

Best wishes,

Veronika

author maintainer
#4 lore raw

Hey Veronika,

Quoted 12 lines · Veronika Kossmann

Of course:

$sensors asusec-isa-000a
asusec-isa-000a

Adapter: ISA adapter
CPU:          +37.0°C
Motherboard:  +38.0°C
VRM:          +51.0°C

These are relevant to actual temperatures.

Thanks! So, there is no output for CPU current and chipset temperature. Could you, please, test that CPU current displays reasonable values with the following additional change:

asus-ec-sensors.c +0 -0
index 47e6c2db8b97..4a0b80012a6d 100644
@@ -284,6 +284,7 @@ static const struct ec_sensor_info

sensors_family_amd_600[] = {
EC_SENSOR("VRM", hwmon_temp, 1, 0x00, 0x33),
[ec_sensor_temp_t_sensor] =
EC_SENSOR("T_Sensor", hwmon_temp, 1, 0x00, 0x36),
+ [ec_sensor_curr_cpu] = EC_SENSOR("CPU", hwmon_curr, 1, 0x00, 0xf4), [ec_sensor_fan_cpu_opt] =
EC_SENSOR("CPU_Opt", hwmon_fan, 2, 0x00, 0xb0),
[ec_sensor_temp_water_in] =

At least it should correlate with CPU load.

And we need to replace SENSOR_SET_TEMP_CHIPSET_CPU_MB with SENSOR_TEMP_CPU | SENSOR_TEMP_MB.

Cheers,
Eugene