From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2745DC433E7 for ; Sat, 10 Oct 2020 00:58:38 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EC7642224A for ; Sat, 10 Oct 2020 00:58:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="pDEaIEPv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EC7642224A Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4C7RQL4cmszDqs3 for ; Sat, 10 Oct 2020 11:58:34 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=google.com (client-ip=2607:f8b0:4864:20::333; helo=mail-ot1-x333.google.com; envelope-from=ztai@google.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20161025 header.b=pDEaIEPv; dkim-atps=neutral Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4C7RP33752zDqs3 for ; Sat, 10 Oct 2020 11:57:23 +1100 (AEDT) Received: by mail-ot1-x333.google.com with SMTP id m13so10605145otl.9 for ; Fri, 09 Oct 2020 17:57:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=zdYc75A6660DkMV/iLpPA8L1nkWFqQ7g+x9xvqHZysY=; b=pDEaIEPv2cutB57EYtteI/8zbuKAkcIb3fMLDqJNpGP3FN7JPZzbxkd/Zf6LDDSxmk 2TcXtbccmj8i4NafuVg2TKUML/6co5R2yFCV/c2r+K7FVeP72HDGAlzauEDtbgDM/r0X TP74DPBi8nEzp1zVq68uyAKGDFIAbxWrsee5rQ2/RT7o887tGv9WEc6Cn8fBWDS7kLv5 CGf8djv0TZ0hOtmbJwfxO/936XPdmtvWD/VDzwlbHV0IvjakIqBhUM6Mcp0d/uYr/DyC wUQGutfUEaEE9plZTqO0hO9dwylEp+WWKhIvGIHolefTBEwXNd2hv8TxKNTnCu1J7iKt vLFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=zdYc75A6660DkMV/iLpPA8L1nkWFqQ7g+x9xvqHZysY=; b=O46bbQaoUbXeidD4H3U+IxxxlLKA4jUDLi6hyWaO4a0aUpnXnwOqa6KEe9CY20rKxb SF5J0iDhMq68sN02qZFXCPeqRwIoX9X+AWAwHt68ZiVTTr4tw7Es43yrZjZlMwohEp6n PdjFyB6u025DQuDF6zdZ+nhULP34dIJDom/5Pxw2gId9CQ84za06cz1QuzaCeQeSFSHC Cb9N+LPCJLLUdMq0O9kChvzEHM2Uh0+tDEfYxnYwQh0gUkbiWT1Mn0n/145DmK/92aok pv/+i2ozNY2SLz6ezQVUonnjhjzUfG2rOUAWIS6wGyb0pDXxhKY2GL5MxQ92Owyow+OX Yu7w== X-Gm-Message-State: AOAM5314dXlMmfjL5RcvU+1WPP3o2+UfXg/csPGisuNV7K8MDdRr0BCg jIZnAliyfssSCyaShJpao/2uoFRcJIM+S5KrzEDbzmIIBU60nw== X-Google-Smtp-Source: ABdhPJxTQzpfDJSBvRmJjlvHtk9Nr5m7Mt319ByLSFzXlQchSSp5QQKZ4eFJPbijyDNW6brs0xxbcP2tvSkXQ9hS2i4= X-Received: by 2002:a9d:4587:: with SMTP id x7mr10660795ote.222.1602291440019; Fri, 09 Oct 2020 17:57:20 -0700 (PDT) MIME-Version: 1.0 From: Zhenfei Tai Date: Fri, 9 Oct 2020 17:57:09 -0700 Message-ID: Subject: [redfish/v1/Systems/system/Processors] How does it work on wolf pass? To: OpenBMC Maillist Content-Type: multipart/alternative; boundary="0000000000001c55c105b1468c18" 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: , Cc: Ed Tanous Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" --0000000000001c55c105b1468c18 Content-Type: text/plain; charset="UTF-8" Hi, I've been testing bmcweb and noticed the response from the URI `redfish/v1/Systems/system/Processors` contains an empty collection. { "@odata.context": "/redfish/v1/$metadata#ProcessorCollection.ProcessorCollection", "@odata.id": "/redfish/v1/Systems/system/Processors/", "@odata.type": "#ProcessorCollection.ProcessorCollection", "Members": [], "Members@odata.count": 0, "Name": "Processor Collection" } Looking at bmcweb code, it seems to look for dbus interfaces `xyz.openbmc_project.Inventory.Item.Cpu` and `xyz.openbmc_project.Inventory.Item.Accelerator`. However they can't be seen in dbus. # busctl tree --no-pager xyz.openbmc_project.Inventory.Item.Cpu Failed to introspect object / of service xyz.openbmc_project.Inventory.Item.Cpu: The name is not activatable Entity-manager and cpu-sensor are running in addition to bmcweb. The entity-manager config is below and I can see the config is picked up in `xyz.openbmc_project.EntityManager`. { "Exposes": [ { "Address": "0x30", "Bus": 0, "CpuID": 1, "Name": "CPU 1", "Type": "XeonCPU" }, { "Address": "0x31", "Bus": 0, "CpuID": 2, "Name": "CPU 2", "Type": "XeonCPU" } ], "Name": "internal_code_name", "Probe": "xyz.openbmc_project.FruDevice({'BOARD_PRODUCT_NAME': 'internal_product_name'})", "Type": "Board" } I'm not sure what else is required to have the URI work properly. Could someone familiar with this issue help? Thanks, Zhenfei --0000000000001c55c105b1468c18 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I've been testing bmcweb an= d noticed the response from the URI `redfish/v1/Systems/system/Processors` = contains an empty collection.

{
=C2=A0 "@odata.context": "/redfish/v1/$metadata#Pro= cessorCollection.ProcessorCollection",
=C2=A0 "@odata.id": "/redfish/v1/Systems/system/Processo= rs/",
=C2=A0 "@odata.type": "#ProcessorCollection.Pr= ocessorCollection",
=C2=A0 "Members": [],
=C2=A0 "= ;Members@odata.count": 0,
=C2=A0 "Name": "Processor = Collection"
}


Looking at bmcweb= code, it seems to look for dbus interfaces `xyz.openbmc_project.Inventory.= Item.Cpu` and `xyz.openbmc_project.Inventory.Item.Accelerator`. However the= y can't be seen in dbus.

# busctl tree --no-pager xyz.openbmc_project.Inventory.Item.Cpu
Faile= d to introspect object / of service xyz.openbmc_project.Inventory.Item.Cpu:= The name is not activatable


Entity-man= ager and cpu-sensor are running in addition to bmcweb. The entity-manager c= onfig is below and I can see the config is picked up in `xyz.openbmc_projec= t.EntityManager`.

{
=C2= =A0 "Exposes": [
=C2=A0 =C2=A0 {
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 "Address": "0x30",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 &= quot;Bus": 0,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 "CpuID": 1,
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 "Name": "CPU 1",
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 "Type": "XeonCPU"
=C2=A0 =C2=A0= },
=C2=A0 =C2=A0 {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 "Address": = "0x31",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 "Bus": 0,
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 "CpuID": 2,
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 "Name": "CPU 2",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 &qu= ot;Type": "XeonCPU"
=C2=A0 =C2=A0 }
=C2=A0 ],
=C2= =A0 "Name": "internal_code_name",
=C2=A0 "Probe= ": "xyz.openbmc_project.FruDevice({'BOARD_PRODUCT_NAME': = 'internal_product_name'})",
=C2=A0 "Type": "= Board"
}


I'm not sure what else is required to = have the URI work properly. Could someone familiar with this issue help?

Thanks,
Zhenfei
--0000000000001c55c105b1468c18--