Skip to contentSkip to conversation

sensors-detect: Add detection of ITE

PATCH In review Guenter Roeck 3 participants 4 messages Jan 9, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 sensors-detect: Add detection of ITE

---
 CHANGES                    |    1 +
 prog/detect/sensors-detect |    6 ++++++
 2 files changed, 7 insertions(+), 0 deletions(-)
CHANGES +1 -0
index 3ae863c..ce04e54 100644
@@ -10,6 +10,7 @@ SVN HEAD
                   Fix loading of the cpuid module
                   Make LM73 detection less problematic
                   Add detection of National Semiconductor LM96163
+                  Add detection of ITE IT8510E
 
 3.3.1 (2011-07-21)
   isadump: Add support for word (16-bit) and long (32-bit) reads
prog/detect/sensors-detect +6 -0
index 31a4619..1beb66b 100755
@@ -2076,6 +2076,12 @@ use constant FEAT_SMBUS	=> (1 << 7);
 
 @superio_ids_ite = (
 	{
+		name => "ITE IT8510E Super IO Sensors",
+		driver => "to-be-written",
+		devid => 0x8510,
+		logdev => 0x04,
+		features => FEAT_IN | FEAT_FAN | FEAT_TEMP,
+	}, {
 		name => "ITE IT8702F Super IO Fan Sensors",
 		driver => "to-be-written",
 		devid => 0x8702,
Signature · 7 lines
1.7.5.4


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#1 lore raw
Quoted 23 lines · Guenter Roeck
---
 CHANGES                    |    1 +
 prog/detect/sensors-detect |    6 ++++++
 2 files changed, 7 insertions(+), 0 deletions(-)
CHANGES +1 -0
index 3ae863c..ce04e54 100644
@@ -10,6 +10,7 @@ SVN HEAD
                   Fix loading of the cpuid module
                   Make LM73 detection less problematic
                   Add detection of National Semiconductor LM96163
+                  Add detection of ITE IT8510E
 
 3.3.1 (2011-07-21)
   isadump: Add support for word (16-bit) and long (32-bit) reads
prog/detect/sensors-detect +0 -0
index 31a4619..1beb66b 100755

prog/detect/sensors-detect use constant FEAT_SMBUS => (1 << 7); · line 2082

Quoted 7 lines
prog/detect/sensors-detect +4 -0
@@ -2076,6 +2076,12 @@ use constant FEAT_SMBUS	=> (1 << 7);
 
 @superio_ids_ite = (
 	{
+		name => "ITE IT8510E Super IO Sensors",
+		driver => "to-be-written",
+		devid => 0x8510,
+		logdev => 0x04,

Are you sure about the logical device? LD 4 is "System Wake-Up" according to superiotool, this doesn't seem to be related to hardware monitoring. I think I understand that for the IT8510E, monitoring is done through an EC, this doesn't seem to be tied to a specific logical device? I admit I'm a bit confused by these new chips still.

Quoted 5 lines
prog/detect/sensors-detect +2 -0
+		features => FEAT_IN | FEAT_FAN | FEAT_TEMP,
+	}, {
 		name => "ITE IT8702F Super IO Fan Sensors",
 		driver => "to-be-written",
 		devid => 0x8702,
Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#2 lore raw
In reply to Guenter Roeck
Quoted 25 lines · Jean Delvare
Quoted 24 lines · Guenter Roeck
---
 CHANGES                    |    1 +
 prog/detect/sensors-detect |    6 ++++++
 2 files changed, 7 insertions(+), 0 deletions(-)
CHANGES +1 -0
index 3ae863c..ce04e54 100644
@@ -10,6 +10,7 @@ SVN HEAD
                   Fix loading of the cpuid module
                   Make LM73 detection less problematic
                   Add detection of National Semiconductor LM96163
+                  Add detection of ITE IT8510E
 
 3.3.1 (2011-07-21)
   isadump: Add support for word (16-bit) and long (32-bit) reads
prog/detect/sensors-detect +0 -0
index 31a4619..1beb66b 100755
@@ -2076,6 +2076,12 @@ use constant FEAT_SMBUS	=> (1 << 7);
 
Quoted 13 lines

prog/detect/sensors-detect use constant FEAT_SMBUS => (1 << 7); · line 2082

Quoted 6 lines
prog/detect/sensors-detect +4 -0
 @superio_ids_ite = (
 	{
+		name => "ITE IT8510E Super IO Sensors",
+		driver => "to-be-written",
+		devid => 0x8510,
+		logdev => 0x04,

Are you sure about the logical device? LD 4 is "System Wake-Up" according to superiotool, this doesn't seem to be related to hardware monitoring. I think I understand that for the IT8510E, monitoring is done through an EC, this doesn't seem to be tied to a specific logical device? I admit I'm a bit confused by these new chips still.

No, I am not sure. May be completely wrong, and is untested. I copied that value from one of the other ITE entries; they all use the same value for logdev. I don't even know what logdev is used for ;).

We should probably try to get some test coverage berfore committing the code.

Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#3 lore raw
In reply to Guenter Roeck
Quoted 39 lines · Guenter Roeck
Quoted 25 lines · Jean Delvare
Quoted 24 lines · Guenter Roeck
---
 CHANGES                    |    1 +
 prog/detect/sensors-detect |    6 ++++++
 2 files changed, 7 insertions(+), 0 deletions(-)
CHANGES +1 -0
index 3ae863c..ce04e54 100644
@@ -10,6 +10,7 @@ SVN HEAD
                   Fix loading of the cpuid module
                   Make LM73 detection less problematic
                   Add detection of National Semiconductor LM96163
+                  Add detection of ITE IT8510E
 
 3.3.1 (2011-07-21)
   isadump: Add support for word (16-bit) and long (32-bit) reads
prog/detect/sensors-detect +0 -0
index 31a4619..1beb66b 100755
@@ -2076,6 +2076,12 @@ use constant FEAT_SMBUS	=> (1 << 7);
 
Quoted 13 lines

prog/detect/sensors-detect use constant FEAT_SMBUS => (1 << 7); · line 2082

Quoted 6 lines
prog/detect/sensors-detect +4 -0
 @superio_ids_ite = (
 	{
+		name => "ITE IT8510E Super IO Sensors",
+		driver => "to-be-written",
+		devid => 0x8510,
+		logdev => 0x04,

Are you sure about the logical device? LD 4 is "System Wake-Up" according to superiotool, this doesn't seem to be related to hardware monitoring. I think I understand that for the IT8510E, monitoring is done through an EC, this doesn't seem to be tied to a specific logical device? I admit I'm a bit confused by these new chips still.

Quoted 3 lines

No, I am not sure. May be completely wrong, and is untested. I copied that value from one of the other ITE entries; they all use the same value for logdev. I don't even know what logdev is used for ;).

Logical devices refer to the different parts of Super-I/O chips, for example parallel port, serial ports, hardware monitoring, RTC, watchdog etc. Basically, every function which needs a separate I/O port range corresponds to a logical device. Each logical device has a separate configuration space, which can be selected using a global configuration register.

Quoted 2 lines

We should probably try to get some test coverage berfore committing the code.

Yes, please. Reading the datasheet should probably be a good idea as well, even though it is no fun reading. These chips are so different from what we support at the moment that we won't go anywhere without a good amount of reading.

Note that the current superio detection code wants a logical device number. If we start seeing devices which don't need/have one, we'll have to revisit the code to make it optional.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors