From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=linux.vnet.ibm.com (client-ip=148.163.158.5; helo=mx0a-001b2d01.pphosted.com; envelope-from=dkodihal@linux.vnet.ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.vnet.ibm.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=ZnuNUxr4; dkim-atps=neutral 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 49XC9K51zkzDqKb for ; Wed, 27 May 2020 23:58:44 +1000 (AEST) Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 04RDY3Rh091068; Wed, 27 May 2020 09:58:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=JpyfDKouiEkRBsHS772Da3tNEiodmo+vuePiaND6GNY=; b=ZnuNUxr4eP0HoBLzV82gP9mxUMXC9voCcwhdLdvE5bpF05FXq5JAAaDiT1cRbcjZ0gV7 IgqCR1EbzZwSS//pIEp0HT0HO+XPZHW7useFreieCxSuMXyJm/v5yD840/eJvBEUKUHE dfaoBGresqHpJXoYJ4YjeiJ4+RCCptY32cTnKUT2UKb9jlTNhW78H/zLWyCfjPIsErrA /1hBEOmSyAj8sSBvYfiFmeeHmj42lufbPcpzXPcSJWVZ7E/NmKHtt2069K23HFpMgcg6 XfsFu0i5jB1VsOCouvCEMh6mSJjiox7bhhJZsXA+SqCW+BWvU+XZIt0Sy1IInpvc0hxP LA== Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0b-001b2d01.pphosted.com with ESMTP id 319pdg693a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 May 2020 09:58:32 -0400 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 04RDpJeI018437; Wed, 27 May 2020 13:58:30 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma04ams.nl.ibm.com with ESMTP id 316uf900xj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 May 2020 13:58:30 +0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 04RDwSvm46792718 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 27 May 2020 13:58:28 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 410E54203F; Wed, 27 May 2020 13:58:28 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9CA4242041; Wed, 27 May 2020 13:58:26 +0000 (GMT) Received: from Deepaks-MacBook-Pro.local (unknown [9.79.237.76]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 27 May 2020 13:58:26 +0000 (GMT) Subject: Re: D-Bus interface to provide data to entity manager To: "Thomaiyar, Richard Marian" , Brad Bishop , James Feist , "Bhat, Sumanth" , Patrick Williams Cc: "openbmc@lists.ozlabs.org" References: <7d8ba039-377f-c567-6a3d-5a18c4789df2@linux.vnet.ibm.com> <5fc67500-b0f4-c964-fc9a-d3f5346e47ab@linux.vnet.ibm.com> <0a9b8934-a3be-aaa0-90c0-134f286df951@linux.intel.com> From: Deepak Kodihalli Message-ID: Date: Wed, 27 May 2020 19:28:25 +0530 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <0a9b8934-a3be-aaa0-90c0-134f286df951@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216, 18.0.687 definitions=2020-05-27_03:2020-05-27, 2020-05-27 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 lowpriorityscore=0 mlxscore=0 mlxlogscore=999 impostorscore=0 cotscore=-2147483648 spamscore=0 phishscore=0 clxscore=1015 priorityscore=1501 adultscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005270098 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, 27 May 2020 13:58:47 -0000 On 27/05/20 7:20 pm, Thomaiyar, Richard Marian wrote: > I always view D-Bus interface as a specification / API which can work > with different producers / consumers (correct me, if that's not what we > intend with D-Bus interface here). Problem with Option 1 is, it will end > up in having multiple producers exposing different interface, and > thereby consumers(user interface facing applications) of D-Bus must be > aware about all the D-Bus interfaces and always requires change. > > Consider, we want to expose ChassisType, then irrespective of PLDM FRU / > IPMI FRU / Proprietary FRU, Consumer applications must read it in the > same manner. Having different interface / property types, requires > update in both the end. PLDM FRU / IPMI FRU can be in common form > (except few nit's /OEM's). We need to make sure it is represented in > that angle. As of today phosphor-dbus-interfaces doesn't have FRU > interface, but it has inventory related interfaces (exposed by > Entity-Manager), which is what Redfish uses (i.e. Indirectly the > FruDevice exposed interface is hidden by Entity-manager, and inventory > interface exposed by entity-manager is used). > > As of today, entity-manager doesn't add Inventory interface > automatically for Add-on cards (which doesn't have any json > configuration), but needs exposure (say PLDM based Add on card devices > will be of this type), but shouldn't be hard to add it anyway. > > Now the question is do we want to expose FRU as a separate interafce to > be used in User facing application, or shall we just use Inventory based > interface itself ?If inventory itself can be used, then let's go ahead > and add more fields to those if missing anything / correct the same > accordingly. > > James, Deepak, Patrick - your thoughts ? I guess there is a difference between FRU and inventory. If inventory interfaces could be used directly, why wouldn't the FruDevice or PLDM apps directly host inventory objects, why even use EM? I believe these apps (FruDevice, PLDM daemon) operate at a per FRU level, and rely on something like EM to make one or more inventory objects based on the FRU data. So that was my option 2, a generic FRU properties interface. I'm just not sure at the moment the impact/interest of doing something like that and then aligning FruDevice and EM to the same. Thanks, Deepak > > regards, > > Richard