commit | 1930fbd482ad28be0c833db0035d1be180e25939 | [log] [tgz] |
---|---|---|
author | Brandon Kim <brandonkim@google.com> | Tue Sep 14 17:52:51 2021 -0700 |
committer | Ed Tanous <ed@tanous.net> | Wed Dec 01 00:38:37 2021 +0000 |
tree | f1d010453f284b8d676f4e5a3a3ba19173cfced0 | |
parent | 0fd03ad472d42eb35c15147e4c678d28b7f70c4a [diff] |
redfish-core: processor: Add Model, Microcode, Step Add implementation of ProcessorId from Processor DMTF Schema. "EffectiveModel", "MicrocodeInfo" and "Step" are mapped to "Model", "Microcode" and "Step" from phosphor-dbus-interfaces Tested: With some of the information redacted as XX, we can see: ``` { "@odata.id": "/redfish/v1/Systems/system/Processors/cpu0", "@odata.type": "#Processor.v1_11_0.Processor", "Id": "cpu0", "MaxSpeedMHz": 0, "Name": "Processor", "ProcessorId": { "EffectiveFamily": "X", "EffectiveModel": "XX", "MicrocodeInfo": "XXX", "Step": "X" }, "ProcessorType": "CPU", "Socket": "0", "Status": { "Health": "OK", "State": "Enabled" }, "TotalCores": XX, "TotalThreads": XXX } ``` The Redfish-Service-Validator passed for Processors: ``` *** /redfish/v1/Systems/system/Processors Type (#ProcessorCollection.ProcessorCollection), GET SUCCESS (time: 0.286532) ... ... *** /redfish/v1/Systems/system/Processors/cpu0 Type (#Processor.v1_11_0.Processor), GET SUCCESS (time: 0.434741) PASS ... ... *** /redfish/v1/JsonSchemas/Processor Type (#JsonSchemaFile.v1_0_2.JsonSchemaFile), GET SUCCESS (time: 0.134821) PASS ``` Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: Ie770bfcdb8bf9d5efbf90cc9d9c09daaf8447a6f
This component attempts to be a "do everything" embedded webserver for openbmc.
At this time, the webserver implements a few interfaces:
BMCWeb is configured by setting -D
flags that correspond to options in bmcweb/meson_options.txt
and then compiling. For example, meson <builddir> -Dkvm=disabled ...
followed by ninja
in build directory. The option names become C++ preprocessor symbols that control which code is compiled into the program.
meson builddir ninja -C builddir
meson builddir -Dbuildtype=minsize -Db_lto=true -Dtests=disabled ninja -C buildir
If any of the dependencies are not found on the host system during configuration, meson automatically gets them via its wrap dependencies mentioned in bmcweb/subprojects
.
meson builddir -Dwrap_mode=nofallback ninja -C builddir
meson builddir -Dbuildtype=debug ninja -C builddir
meson builddir -Db_coverage=true -Dtests=enabled ninja coverage -C builddir test
When BMCWeb starts running, it reads persistent configuration data (such as UUID and session data) from a local file. If this is not usable, it generates a new configuration.
When BMCWeb SSL support is enabled and a usable certificate is not found, it will generate a self-sign a certificate before launching the server. The keys are generated by the secp384r1
algorithm. The certificate
C=US, O=OpenBMC, CN=testhost
,SHA-256
algorithm.