Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lenovo.com (client-ip=67.219.246.215; helo=mail1.bemta23.messagelabs.com; envelope-from=rli11@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.215]) (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 46GhGc0ff2zDqZH for ; Mon, 26 Aug 2019 03:00:39 +1000 (AEST) Received: from [67.219.246.198] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-3.bemta.az-c.us-east-1.aws.symcld.net id 11/7E-13824-3BEB26D5; Sun, 25 Aug 2019 17:00:35 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrAKsWRWlGSWpSXmKPExsWS8eIhr+7mfUm xBp/PslicannB4sDocX7GQsYAxijWzLyk/IoE1owFB+awF8xUqPjx/xdLA+Mh2S5GLg4hgflM Ei+7uxkhnNeMEvOfPYRy9jFK7H7wH8jh5GATUJJoebWCHcQWEbCUWPKgnQ3EFhbQl+g985oFI m4i8fPiNlYIW0/i8MM+sBoWAVWJfRufgcV5gXq/N5wDm8MoICvxZMEzJhCbWUBc4tzFVrC4hI CAxJI955khbFGJl4//sULYChLNeyB2MQskSBxv3sMIMVNQ4uTMJywTGAVnIRk1C0nZLCRlEHE diQW7P7FB2NoSyxa+Zoaxzxx4zIQsvoCRfRWjaVJRZnpGSW5iZo6uoYGBrqGhka65romhXmKV brJeabFuamJxiS6QW16sV1yZm5yTopeXWrKJERg1KQXsmjsY9856o3eIUZKDSUmUt+paYqwQX 1J+SmVGYnFGfFFpTmrxIUYZDg4lCd5Xe5JihQSLUtNTK9Iyc4ARDJOW4OBREuGNBknzFhck5h ZnpkOkTjHac0x4OXcRM8fBo/OA5MdVS4DkdxApxJKXn5cqJc5rD9ImANKWUZoHNxSWcC4xyko J8zIyMDAI8RSkFuVmlqDKv2IU52BUEuY9BjKFJzOvBG73K6CzmIDO2ro2EeSskkSElFQDU3fe 9f1Hp0/X21M5m6HN+vpfhd3Z3JudTVe9WhNktCz65GMxNx0HvwOHGZ9M+7y3LXCBdKVw6SUB8 U8m7P/vfrrwvPfg24MCRxymb9+5wpeNfUHqtOba+uMtHSrb9/cwnjc+ePVE4volLz7oPvbWyX 832bo7Z3ty4pUnH9YtURaJ35FsUid1LItx9h03mRtP9CcW/m0JPyJ3TGhrS7S1/dKaU3w7s5r 06rRN3eedVptvveVD4u6IVZmLGo/J/dk/70vylz0Jb4U6Ml+s4zyYP/N9WZqaXet9g006dtMz juuYT3nWuYfFZ/qGpzcCvu/IPszxTL/+87EPCQWvii7V3yksufMxlmHtn0UaEa8/XpiixFKck WioxVxUnAgAj9pk8LMDAAA= X-Env-Sender: rli11@lenovo.com X-Msg-Ref: server-7.tower-406.messagelabs.com!1566752434!636874!1 X-Originating-IP: [104.232.225.13] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.43.9; banners=-,-,- X-VirusChecked: Checked Received: (qmail 4912 invoked from network); 25 Aug 2019 17:00:35 -0000 Received: from unknown (HELO aesmtp.lenovo.com) (104.232.225.13) by server-7.tower-406.messagelabs.com with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 25 Aug 2019 17:00:35 -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 72825E0539CD6164B021 for ; Sun, 25 Aug 2019 13:00:34 -0400 (EDT) Received: from HKGWPEMAIL04.lenovo.com (10.128.3.72) 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; Mon, 26 Aug 2019 01:00:20 +0800 Received: from HKGWPEMAIL04.lenovo.com ([fe80::f1ef:1ffe:9927:6613]) by HKGWPEMAIL04.lenovo.com ([fe80::f1ef:1ffe:9927:6613%5]) with mapi id 15.01.1591.008; Mon, 26 Aug 2019 01:00:33 +0800 From: Ivan Li11 To: "openbmc@lists.ozlabs.org" Subject: Question about FRU read/write function Thread-Topic: Question about FRU read/write function Thread-Index: AdVbZFAl3imRPqf7Quaq5a4/oRyv8g== Date: Sun, 25 Aug 2019 17:00:33 +0000 Message-ID: <24239ac0c21341d9af32893d5c6beb76@lenovo.com> 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_24239ac0c21341d9af32893d5c6beb76lenovocom_" MIME-Version: 1.0 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: Sun, 25 Aug 2019 17:00:41 -0000 --_000_24239ac0c21341d9af32893d5c6beb76lenovocom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Team, I found the output FRU raw data via FRU read command doesn't totally match = with input FRU raw data via FRU write command. FRU write command: https://github.com/openbmc/ipmi-fru-parser/blob/master/strgfnhandler.cpp#L2= 0 FRU read command: https://github.com/openbmc/phosphor-host-ipmid/blob/master/storagehandler.c= pp#L659 Have you encountered this situation ? If yes, please help to share your comment about it. Thanks, Ivan --_000_24239ac0c21341d9af32893d5c6beb76lenovocom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi Team,

 

I found the output FRU raw data= via FRU read command doesn’t totally match with input FRU raw data v= ia FRU write command.

FRU write command:

https://github.co= m/openbmc/ipmi-fru-parser/blob/master/strgfnhandler.cpp#L20<= /span>

FRU read command:

https://git= hub.com/openbmc/phosphor-host-ipmid/blob/master/storagehandler.cpp#L659=

 

Have you encountered this situa= tion ?

If yes, please help to share yo= ur comment about it.

 

Thanks,

Ivan

--_000_24239ac0c21341d9af32893d5c6beb76lenovocom_--