Return-Path: Authentication-Results: lists.ozlabs.org; spf=none (mailfrom) smtp.mailfrom=linux.vnet.ibm.com (client-ip=148.163.156.1; helo=mx0a-001b2d01.pphosted.com; envelope-from=shawnmm@linux.vnet.ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.vnet.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 46fS4K5Z9fzDqcK for ; Fri, 27 Sep 2019 07:00:17 +1000 (AEST) Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x8QKqgxf125707; Thu, 26 Sep 2019 17:00:12 -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 2v93f8aqnn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 26 Sep 2019 17:00:12 -0400 Received: from pps.filterd (ppma03dal.us.ibm.com [127.0.0.1]) by ppma03dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id x8QKttNl026647; Thu, 26 Sep 2019 21:00:09 GMT Received: from b01cxnp22033.gho.pok.ibm.com (b01cxnp22033.gho.pok.ibm.com [9.57.198.23]) by ppma03dal.us.ibm.com with ESMTP id 2v5bg7xxv7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 26 Sep 2019 21:00:09 +0000 Received: from b01ledav002.gho.pok.ibm.com (b01ledav002.gho.pok.ibm.com [9.57.199.107]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x8QL08f355378228 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 26 Sep 2019 21:00:08 GMT Received: from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9D45212405E; Thu, 26 Sep 2019 21:00:07 +0000 (GMT) Received: from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 72BFD12405B; Thu, 26 Sep 2019 21:00:07 +0000 (GMT) Received: from [9.10.99.13] (unknown [9.10.99.13]) by b01ledav002.gho.pok.ibm.com (Postfix) with ESMTP; Thu, 26 Sep 2019 21:00:07 +0000 (GMT) Subject: Re: Is it required that regulator sensors implement threshold interfaces? To: Ed Tanous , openbmc@lists.ozlabs.org References: <0519f084-a20d-a338-2875-c5a4110e02ff@linux.vnet.ibm.com> <1dd65323-231d-8a18-40d4-a0e00c48a184@intel.com> From: Shawn McCarney Message-ID: Date: Thu, 26 Sep 2019 16:00:06 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <1dd65323-231d-8a18-40d4-a0e00c48a184@intel.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:, , definitions=2019-09-26_08:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1909260163 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: Thu, 26 Sep 2019 21:00:18 -0000 Hi Ed.  Thanks for the information and feedback. On 9/26/2019 3:07 PM, Ed Tanous wrote: > For some implementations, these are used to appropriately scale the SDR, > and provide the redfish interfaces for those properties. What is SDR?  Sorry I'm not familiar with that acronym. > I'm not really following why you wouldn't want to implement > those. The problem is one of scale.  Some of the systems where my application will run may have 30+ voltage rails.  30 rails * 9 sensors per rail = 270 MinValues and MaxValues.  I'd rather not ask the hardware engineers to provide 540 data values unless absolutely necessary. > They don't have to be exact, and there are plenty of cases where > they are set to INT8_MAX and INT8_MIN. Usually you will know based on > the spec you're implementing if the values fall into a > uint8/int8/int16/uint16 range, and you can just put in the specified > range limits. That's probably a better approach that setting both min and max to 0.  I was just wondering if anything (especially IPMI) would break if I set all the sensor min/max values to INT16_MIN/INT16_MAX. Thanks! Shawn