Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=linux.ibm.com (client-ip=148.163.158.5; helo=mx0a-001b2d01.pphosted.com; envelope-from=jrey@linux.ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (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 46Jc0R2rmjzDrCm for ; Thu, 29 Aug 2019 05:55:02 +1000 (AEST) Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x7SJq8eO125588; Wed, 28 Aug 2019 15:54:58 -0400 Received: from ppma04wdc.us.ibm.com (1a.90.2fa9.ip4.static.sl-reverse.com [169.47.144.26]) by mx0b-001b2d01.pphosted.com with ESMTP id 2unycm9puh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Aug 2019 15:54:58 -0400 Received: from pps.filterd (ppma04wdc.us.ibm.com [127.0.0.1]) by ppma04wdc.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id x7SJseFr007369; Wed, 28 Aug 2019 19:54:57 GMT Received: from b03cxnp08026.gho.boulder.ibm.com (b03cxnp08026.gho.boulder.ibm.com [9.17.130.18]) by ppma04wdc.us.ibm.com with ESMTP id 2ujvv6qwqm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Aug 2019 19:54:57 +0000 Received: from b03ledav006.gho.boulder.ibm.com (b03ledav006.gho.boulder.ibm.com [9.17.130.237]) by b03cxnp08026.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x7SJsuL759834652 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 28 Aug 2019 19:54:57 GMT Received: from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E27F7C6059; Wed, 28 Aug 2019 19:54:56 +0000 (GMT) Received: from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A3C51C6057; Wed, 28 Aug 2019 19:54:56 +0000 (GMT) Received: from demeter.rchland.ibm.com (unknown [9.10.254.219]) by b03ledav006.gho.boulder.ibm.com (Postfix) with ESMTPS; Wed, 28 Aug 2019 19:54:56 +0000 (GMT) To: rli11@lenovo.com, openbmc From: Joseph Reynolds Subject: re: Question about FRU read/write function Message-ID: Date: Wed, 28 Aug 2019 14:54:55 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-08-28_10:, , 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-1906280000 definitions=main-1908280194 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: Wed, 28 Aug 2019 19:55:05 -0000 Ivan Li11 rli11 at lenovo.com Mon Aug 26 03:00:33 AEST 2019/ /> 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#L20 > FRU read command: > https://github.com/openbmc/phosphor-host-ipmid/blob/master/storagehandler.cpp#L659 > > Have you encountered this situation ? > If yes, please help to share your comment about it. There are some FRU test cases here: https://github.com/openbmc/openbmc-test-automation/blob/master/tests/ipmi/test_fru.robot https://github.com/openbmc/openbmc-test-automation/blob/master/tests/test_inventory.robot#L186 https://github.com/openbmc/openbmc-test-automation/blob/master/data/ipmi_raw_cmd_table.py Can you write a test to reproduce the problem? - Joseph > Thanks, > Ivan