Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.ibm.com (client-ip=148.163.156.1; helo=mx0a-001b2d01.pphosted.com; envelope-from=mspinler@linux.ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4B1VK94MjXzDqL4 for ; Wed, 8 Jul 2020 03:48:12 +1000 (AEST) Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 067HZUIt098433; Tue, 7 Jul 2020 13:48:10 -0400 Received: from ppma03dal.us.ibm.com (b.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.11]) by mx0a-001b2d01.pphosted.com with ESMTP id 324pxsnrpx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 Jul 2020 13:48:10 -0400 Received: from pps.filterd (ppma03dal.us.ibm.com [127.0.0.1]) by ppma03dal.us.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 067HjESN027133; Tue, 7 Jul 2020 17:48:09 GMT Received: from b03cxnp08027.gho.boulder.ibm.com (b03cxnp08027.gho.boulder.ibm.com [9.17.130.19]) by ppma03dal.us.ibm.com with ESMTP id 324aejheh3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 Jul 2020 17:48:09 +0000 Received: from b03ledav002.gho.boulder.ibm.com (b03ledav002.gho.boulder.ibm.com [9.17.130.233]) by b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 067Hm6Gl15008238 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 7 Jul 2020 17:48:06 GMT Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 114F2136051; Tue, 7 Jul 2020 17:48:08 +0000 (GMT) Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1569213604F; Tue, 7 Jul 2020 17:48:06 +0000 (GMT) Received: from [9.85.128.144] (unknown [9.85.128.144]) by b03ledav002.gho.boulder.ibm.com (Postfix) with ESMTP; Tue, 7 Jul 2020 17:48:06 +0000 (GMT) Subject: Re: Sensor value is not accurate which is generated by phosphor-hwmon To: =?UTF-8?B?RHVrZSBEdSAo5p2c56Wl5ZiJKQ==?= , "openbmc@lists.ozlabs.org" Cc: =?UTF-8?B?RWRkaWUgTHUgKOmZuOWuh+WyoSk=?= , =?UTF-8?B?RnJhbiBIc3UgKOW+kOiqjOismSk=?= , =?UTF-8?B?R2VvcmdlIEh1bmcgKOa0quW/oOaVrCk=?= References: <07175a7434c44797944ff8550006abbe@quantatw.com> From: Matt Spinler Message-ID: <07cbefdd-1768-91f2-37af-0918627b1f5b@linux.ibm.com> Date: Tue, 7 Jul 2020 12:48:05 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <07175a7434c44797944ff8550006abbe@quantatw.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-07-07_09:2020-07-07, 2020-07-07 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 phishscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1011 impostorscore=0 cotscore=-2147483648 suspectscore=0 adultscore=0 mlxlogscore=999 spamscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2007070119 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jul 2020 17:48:14 -0000 On 7/6/2020 9:15 PM, Duke Du (杜祥嘉) wrote: > > Hi All, > >   I found sensor value type is changed to double in > > xyz/openbmc_project/Sensor/Value.interface.yaml, > > after this change, the sensor value on the interface > > xyz.openbmc_project.Sensor.Value which is generated by > > phosphor-hwmon is not accurate, for example, 0.99 volts > > would be record 0 volts on the interface. Do I miss some > > configuration for phosphor-hwmon ? > Looks like that is indeed a problem.  I haven't looked closely yet, but I wonder if how the code is attempting to support Sensor.Value as both an int64 and a double at the same time has an issue. Maybe now would be a good time to just support the double version. I can take a look. > Sensor value type is changed to double, which commit is : > > 4ec6587fa908fe9df41cc0962ab6ff6446fbd54f > https://github.com/openbmc/phosphor-dbus-interfaces/commit/4ec6587fa908fe9df41cc0962ab6ff6446fbd54f > > Thanks. > > Duke Du >