Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lenovo.com (client-ip=67.219.246.3; helo=mail1.bemta23.messagelabs.com; envelope-from=dlin23@lenovo.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=lenovo.com Received: from mail1.bemta23.messagelabs.com (mail1.bemta23.messagelabs.com [67.219.246.3]) (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 46ZNsD31qlzF3NY for ; Fri, 20 Sep 2019 16:21:34 +1000 (AEST) Received: from [67.219.246.102] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-3.bemta.az-b.us-east-1.aws.symcld.net id 0A/91-21607-BEF648D5; Fri, 20 Sep 2019 06:21:31 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHKsWRWlGSWpSXmKPExsWSLveKTfdlfku swf3nFhanWl6wODB6nJ+xkDGAMYo1My8pvyKBNWP3tpPMBUdCKrbenMHSwPjNp4uRi0NIYD6T xPaGzYxdjJxAzmtGiV8HnCAS+xkllr+4y9LFyMHBJqAqcX8aN0iNiIC+xK5Ju9lAbGEBaYlDz c/YIeIKEqv2/2CFsPUkZhz+CBZnAWqdfLaZBcTmFbCUOLVnChOIzSggK/FkwTMwm1lAXOLcxV awegkBAYkle84zQ9iiEi8f/2OFsBUkmve8ZoGoT5CY3DyLFWKmoMTJmU9YJjAKzkIyahaSsll IyiDiOhILdn9ig7C1JZYtfM0MY5858JgJWXwBI/sqRtOkosz0jJLcxMwcXUMDA11DQyNdQ10L C73EKt0kvdJi3dTE4hJdQ73E8mK94src5JwUvbzUkk2MwIhJKWCM2MF4YtYbvUOMkhxMSqK8L nYtsUJ8SfkplRmJxRnxRaU5qcWHGGU4OJQkeP/nAuUEi1LTUyvSMnOA0QuTluDgURLh/ZgHlO YtLkjMLc5Mh0idYrTnmPBy7iJmjoNH5wHJj6uWAMnvIFKIJS8/L1VKnPcJSJsASFtGaR7cUFi yucQoKyXMy8jAwCDEU5BalJtZgir/ilGcg1FJmLcRZApPZl4J3O5XQGcxAZ1lF9EIclZJIkJK qoHpkFNG87Kuyyfzvc9fPzZVZHE2d8Hz3qK3R6oL6670h/bMXiHscLhD4e/ktxPeOzGJ6tlYT 43n//J7QlO515nVE440rf6rwHb79vc/b5dmcDq9fMjQsCYg3PSs9kVtzc3vRWYoHug/s5yd++ Se3ktmnut3GfgveGPx4v2u6VP9V725sDmKy+9n7+Q/x0/PlngpYl/pUy93pJolbKKkcad/F5u eot/n1tDAW5df3gzP56hst217ufhx0X2FB1rzuHe1RjueOvDqss+fC4eFuC45efx3C1iR6ZGo 1sFyit1souW2T/euV/VsC8mPS7Kuvrcw+MV0lgUf7O9I3hXcv0MuegIzl1BzbpLhgrIp65T8l ViKMxINtZiLihMB3X21pLEDAAA= X-Env-Sender: dlin23@lenovo.com X-Msg-Ref: server-10.tower-386.messagelabs.com!1568960487!89645!1 X-Originating-IP: [103.30.234.6] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.43.12; banners=-,-,- X-VirusChecked: Checked Received: (qmail 2545 invoked from network); 20 Sep 2019 06:21:29 -0000 Received: from unknown (HELO apsmtp.lenovo.com) (103.30.234.6) by server-10.tower-386.messagelabs.com with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 20 Sep 2019 06:21:29 -0000 Received: from HKGWPEMAIL01.lenovo.com (unknown [10.128.3.69]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by Forcepoint Email with ESMTPS id 0DBEC8B70F749CEE488D for ; Fri, 20 Sep 2019 14:21:27 +0800 (CST) Received: from HKGWPEMAIL02.lenovo.com (10.128.3.70) by HKGWPEMAIL01.lenovo.com (10.128.3.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1591.10; Fri, 20 Sep 2019 14:21:05 +0800 Received: from HKGWPEMAIL02.lenovo.com ([fe80::7020:5ebb:e3eb:29ba]) by HKGWPEMAIL02.lenovo.com ([fe80::7020:5ebb:e3eb:29ba%12]) with mapi id 15.01.1591.008; Fri, 20 Sep 2019 14:21:26 +0800 From: Derek Lin23 To: OpenBMC Maillist Subject: PECI sensor rename Thread-Topic: PECI sensor rename Thread-Index: AdVvczEc4JIh9rDeSauE2DE3VmlT5g== Date: Fri, 20 Sep 2019 06:21:26 +0000 Message-ID: Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.128.115.1] Content-Type: multipart/alternative; boundary="_000_f59e0897a48c4922b82ff0110df5a33clenovocom_" MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 23 Sep 2019 14:40:35 +1000 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: Fri, 20 Sep 2019 06:21:37 -0000 --_000_f59e0897a48c4922b82ff0110df5a33clenovocom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Team: I have a question for how to rename PECI sensor in cpu-sensor. Currently, I am using peci-dimmtemp & peci-cputemp drivers under = Kernel to read DIMM and CPU temperatures. So, under /sys/class/hwmon directories, I can find the correspond= ing CPU & DIMM label names and temperatures. Now, my question is how do I change the label names of each corre= sponding temperature in cpu-sensor component. Here is the snapshot of my cpu-sensor using busctl. My goal is to= show temperature name to be something else other than "Die_CPU1" or "DIMM_= C1_CPU1". root@abc/sys/class/hwmon/hwmon23# busctl tree --no-page= xyz.openbmc_project.CPUSensor ... /xyz/openbmc_project/sensors mq/xyz/openbmc_project/sensors/temperature tq/xyz/openbmc_project/sensors/temperature/Core_0_CPU1 tq/xyz/openbmc_project/sensors/temperature/Core_10_CPU1 tq/xyz/openbmc_project/sensors/temperature/Core_11_CPU1 tq/xyz/openbmc_project/sensors/temperature/Core_12_CPU1 tq/xyz/openbmc_project/sensors/temperature/Core_13_CPU1 tq/xyz/openbmc_project/sensors/temperature/Core_14_CPU1 tq/xyz/openbmc_project/sensors/temperature/Core_15_CPU1 tq/xyz/openbmc_project/sensors/temperature/Core_17_CPU1 tq/xyz/openbmc_project/sensors/temperature/Core_2_CPU1 tq/xyz/openbmc_project/sensors/temperature/Core_3_CPU1 tq/xyz/openbmc_project/sensors/temperature/Core_4_CPU1 tq/xyz/openbmc_project/sensors/temperature/Core_5_CPU1 tq/xyz/openbmc_project/sensors/temperature/Core_6_CPU1 tq/xyz/openbmc_project/sensors/temperature/Core_7_CPU1 tq/xyz/openbmc_project/sensors/temperature/Core_9_CPU1 tq/xyz/openbmc_project/sensors/temperature/DIMM_C1_CPU1 tq/xyz/openbmc_project/sensors/temperature/DIMM_C2_CPU1 mq/xyz/openbmc_project/sensors/temperature/Die_CPU1 ... I understand that "Die" comes from peci-cputemp driver and "DIMM_= C1" comes from peci-dimmtemp driver. Besides rewriting the label names in t= he drivers, do I have other options? Thank you, Derek --_000_f59e0897a48c4922b82ff0110df5a33clenovocom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi Team:

 

     &= nbsp;    I have a question for how to rename PECI sensor in = cpu-sensor.

     &= nbsp;    Currently, I am using peci-dimmtemp & peci-cput= emp drivers under Kernel to read DIMM and CPU temperatures.

     &= nbsp;    So, under /sys/class/hwmon directories, I can find = the corresponding CPU & DIMM label names and temperatures.

     &= nbsp;   

     &= nbsp;    Now, my question is how do I change the label names= of each corresponding temperature in cpu-sensor component.

     &= nbsp;   

     &= nbsp;    Here is the snapshot of my cpu-sensor using busctl.= My goal is to show temperature name to be something else other than “= ;Die_CPU1” or “DIMM_C1_CPU1”.

     &= nbsp;   

     &= nbsp;            &nb= sp; root@abc/sys/class/hwmon/hwmon23# busctl tree --no-page xyz.openbmc_pro= ject.CPUSensor
            &nb= sp;      …

     &= nbsp;           &nbs= p; /xyz/openbmc_project/sensors

      = mq/xyz/openbmc_project/sensors/temperature

     &= nbsp;  tq/xyz/openbmc_project/sensors/temperature/Core_0_CPU1

     &= nbsp;  tq/xyz/openbmc_project/sensors/temperature/Core_10_CPU1

     &= nbsp;  tq/xyz/openbmc_project/sensors/temperature/Core_11_CPU1

     &= nbsp;  tq/xyz/openbmc_project/sensors/temperature/Core_12_CPU1

     &= nbsp;  tq/xyz/openbmc_project/sensors/temperature/Core_13_CPU1

     &= nbsp;  tq/xyz/openbmc_project/sensors/temperature/Core_14_CPU1

     &= nbsp;  tq/xyz/openbmc_project/sensors/temperature/Core_15_CPU1

     &= nbsp;  tq/xyz/openbmc_project/sensors/temperature/Core_17_CPU1

     &= nbsp;  tq/xyz/openbmc_project/sensors/temperature/Core_2_CPU1

     &= nbsp;  tq/xyz/openbmc_project/sensors/temperature/Core_3_CPU1

     &= nbsp;  tq/xyz/openbmc_project/sensors/temperature/Core_4_CPU1

      =   tq/xyz/openbmc_project/sensors/temperature/Core_5_CPU1

     &= nbsp;  tq/xyz/openbmc_project/sensors/temperature/Core_6_CPU1

     &= nbsp;  tq/xyz/openbmc_project/sensors/temperature/Core_7_CPU1

     &= nbsp;  tq/xyz/openbmc_project/sensors/temperature/Core_9_CPU1

     &= nbsp;  tq/xyz/openbmc_project/sensors/temperature/DIMM_C1_CPU1

     &= nbsp;  tq/xyz/openbmc_project/sensors/temperature/DIMM_C2_CPU1

     &= nbsp;  mq/xyz/openbmc_project/sensors/temperature/Die_CPU1<= /span>

     &= nbsp;           &nbs= p; …

 

     &= nbsp;    I understand that “Die” comes from peci= -cputemp driver and “DIMM_C1” comes from peci-dimmtemp driver. = Besides rewriting the label names in the drivers, do I have other options?

 

Thank you,

 

Derek

 

--_000_f59e0897a48c4922b82ff0110df5a33clenovocom_--