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=-13.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, 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 9939CC433E0 for ; Thu, 18 Mar 2021 16:07:49 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 C5DB364E37 for ; Thu, 18 Mar 2021 16:07:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C5DB364E37 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 boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4F1X430p2rz3bww for ; Fri, 19 Mar 2021 03:07:47 +1100 (AEDT) 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=IwUk/hun; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=google.com (client-ip=2a00:1450:4864:20::42d; helo=mail-wr1-x42d.google.com; envelope-from=edtanous@google.com; receiver=) 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=IwUk/hun; dkim-atps=neutral Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) (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 4F1X3g1zhbz30D6 for ; Fri, 19 Mar 2021 03:07:26 +1100 (AEDT) Received: by mail-wr1-x42d.google.com with SMTP id j18so6127893wra.2 for ; Thu, 18 Mar 2021 09:07:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fR+Y8I46xLRPrzube9kumla6McE8HBprEn3FNm9Koco=; b=IwUk/hunagaxy2B77xfJ489OWcI8PkemFVAutcankPQkkitlB3ZV0opTGEzqw/+Ww7 At7a2w6fsDsfZ8fElKT6xM3QiDdO67dIxSJmQz0rtCe7QzZVjQO+/IdXQMzWR0fyFewb NcVLg8rRwX6LCEpu9CkZ2J3hMJQ9l3TMmFL2DWA3jnviJQUAb2CI9OJUSU27iQVZDxUZ zXPd00NDqCEi4QXZc185oxbNqUxM0kdhd4e6SVOaEx+zJ7L7aKIKidxVdQEK+GjegynL UnDkgm0+XfFBAfaONAmTI4g3KL7hwzCSSOSNQyxqjSTr680MlLdpN+uqId7CUgnyR9Cm nsCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fR+Y8I46xLRPrzube9kumla6McE8HBprEn3FNm9Koco=; b=KT67DIi5MgWFEvBCjTY3GaQx9yfKKOdBaN48fd8KuotIbsM6tRT4+UNJ9mlUwsM4nG Xam37slDnloXbMVHEepWCh/DtNr3laMVZUXrd1uxOj/3CfFwmi7/kP5bHTXZeMXCj9LD MMaCAukjhQxVwmAK6JZSD6WCuP1kQRHr4GI3DfMbrsXraoZNNaEmqbFMoaKgFwhu6H9D yA3hSjoL7sJIRi9jXCli6gEW5U0DRF7WejWxqn3HbGjLEAI1RhQLft7UCg9D2w/5Hf/a ntiN73WW+cfPYBrUfsHN/eSFBGHkieV31Q9HLtR0ygDKL7cl/ptNlxdLklNojby4aN0r cA+g== X-Gm-Message-State: AOAM533nBJ4+vU8zx7U5/BakutwF30LePUfO3X9UiHrwo+OqavAktsic FKMn+KH9uM5zKP49GFwRau+yx6RuJLItHrqNIaxgOG8ivi2qLg== X-Google-Smtp-Source: ABdhPJxv1x88WFGCIAWBf7OivoiR9V/MKLyzGsExQ8P3hbNzV9P1APiSeJpq2xyhE3lZBH4JScHniJZKnZoNT9zT7Cs= X-Received: by 2002:a05:6000:178a:: with SMTP id e10mr6512wrg.424.1616083639309; Thu, 18 Mar 2021 09:07:19 -0700 (PDT) MIME-Version: 1.0 References: <925a9eba-db8f-fba0-7d17-db32860c44ba@os.amperecomputing.com> <1cd3b4fb-a729-52cf-e03e-1cb3b4a1bbf8@os.amperecomputing.com> In-Reply-To: <1cd3b4fb-a729-52cf-e03e-1cb3b4a1bbf8@os.amperecomputing.com> From: Ed Tanous Date: Thu, 18 Mar 2021 09:07:08 -0700 Message-ID: Subject: Re: Where to collect information for Redfish System's Processors, Storage, Memory data To: Thang Nguyen Content-Type: text/plain; charset="UTF-8" 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: OpenBMC Maillist Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" On Thu, Mar 18, 2021 at 1:26 AM Thang Nguyen wrote: > > > On 18/03/2021 02:45, Ed Tanous wrote: > > On Tue, Mar 16, 2021 at 3:22 AM Thang Nguyen > > wrote: > >> Hi, > >> > >> I am looking for how to support Redfish System schema which information > >> from Host: > >> > >> - Processors: redfish/v1/Systems/system/Processors > >> > >> - Storage: redfish/v1/Systems/system/Storage > >> > >> - Memory: redfish/v1/Systems/system/Memory > >> > >> I looked into the bmcweb repository at redfish-core/lib/memory.hpp and > >> redfish-core/lib/pcie.hpp but just see doGet() function to read data > >> from dbus to report via Redfish. There is no doPost() function to post > >> codes to Redfish. > > Today, there's no way to do this sort of Redfish POST/PATCH for normal > > BIOS use cases. I'm working on a design doc for how to add this (via > > redfish host interface) to bmcweb. If you have any ideas here for how > > this should work, or requirements for what you're trying to do, > > please, share. > > I checked on the Redfish Schema Supplement document and saw attributes > from the Memory, Pcie, ... schema are read-only. It means no POST/PATCH > action is supported now. > > How's about suggesting on supporting POST/PATCH action with the needed > information change to read-write? UEFI will then collect data and send > Redfish commands via the Redfish Host Interface. That's effectively what I'm hoping to propose. ar ethe Memory and PCIe schemas the only things you need? > > > > >> My questions are: > >> > >> 1. How can Host BIOS collect information and send to BMC so that BMC can > >> report via Redfish? via in-band Redfish? > >> > >> 2. If the information is not from BIOS, how can BMC collect information? > >> What recipes/repositories are used to collect information? > >> > >> > >> Thanks, > >> > >> Thang Q. Nguyen - > >>