[PATCH kernel-hwmon-occ v2 10/11] add Palmetto test result

OpenBMC Patches openbmc-patches at stwcx.xyz
Thu Nov 12 22:30:11 AEDT 2015


From: adamliyi <adamliyi at msn.com>

---
 README.md | 28 +++++++++++++++++++++++-----
 1 file changed, 23 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md
index 874824d..43b97e8 100644
--- a/README.md
+++ b/README.md
@@ -1,13 +1,17 @@
 # kernel-hwmon-occ
-hwmon driver for the openpower OCC. BMC uses it to read CPU sensor data via OCC (On-Chip-Controller).
+HWMON driver for the openpower OCC. BMC uses it to read CPU sensor data via OCC (On-Chip-Controller).
 It is part of openbmc.
 
-After building, a kernel module named "occ.ko" is generated.
+After building, a kernel module named "occ.ko" is generated. Currently the module is located in:
+"lib/modules/4.2.0-openbmc-20151104-1/extra/occ.ko".
 
-The driver exposed bellow HWMON interface:
+Bellow are steps tested on Palmetto:
 
-*_input: means sensor_value.
-*_label: means sensor_id
+1. root at palmetto:~# insmod occ.ko
+occ-i2c 3-0050: occ i2c driver ready: i2c addr at 0x50
+occ-i2c 3-0051: occ i2c driver ready: i2c addr at 0x51
+
+2. The driver exposed bellow HWMON interface:
 
 root at palmetto:~# ls /sys/class/hwmon/hwmon0/
 device        freq4_input   power2_input  temp1_input   temp4_label   temp8_input
@@ -18,3 +22,17 @@ freq2_label   power         power4_input  temp3_input   temp6_label   uevent
 freq3_input   power1_input  power4_label  temp3_label   temp7_input
 freq3_label   power1_label  subsystem     temp4_input   temp7_label
 
+*_input: means sensor_value.
+*_label: means sensor_id
+
+The OCC HWMON interface is created refering to: https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface
+However, freq*_input, freq*_label, power*_label is not stardard interface documented by kernel.
+
+3. Show TEMP sensor value (Unit: millidegree Celsius)
+root at palmetto:~# cat /sys/class/hwmon/hwmon0/temp1_input
+35000
+
+4. Show TEMP sensor id:
+root at palmetto:~# cat /sys/class/hwmon/hwmon0/temp1_label
+108
+
-- 
2.6.3




More information about the openbmc mailing list