【待评审】新增SSU处理器和内存接口

背景

当前需要支持Web和Redfish接口查询SSU的处理器信息和内存信息,
处理器:槽位,厂家,型号,序列号,标识寄存器,健康状态,部件BOM编码,核心数量,线程数量,最大主频,使用率
内存:使用率,槽位,厂家,接口类型,健康状态,序列号,容量,型号,频率,Rank数量,颗粒位宽

关联issue

https://gitcode.com/openUBMC/component_drivers/issues/1017
https://gitcode.com/openUBMC/component_drivers/issues/1018

整体方案

处理器:
1、新增设备树对象Processor,路径为: /bmc/dev/Systems/:SystemId/SSUCards/:Id/Processors/:ProcessorId
2、bmc.dev.Processor接口新增属性:标识寄存器(IdentificationRegisters)、健康状态(Health)
3、bmc.dev.Processor.Metrics接口新增属性:使用率(BandwidthPercent)
内存
4、新增设备树对象Memory,路径为:
/bmc/dev/Systems/:SystemId/SSUCards/:Id/Memory/:MemoryId
5、bmc.dev.Memory接口新增属性:Id(Id)、健康状态(Health)

详细描述

评审点1

新增设备树对象Processor,路径为: /bmc/dev/Systems/:SystemId/SSUCards/:Id/Processors/:ProcessorId

评审点2

接口:bmc.dev.Processor
变更描述:新增属性
属性描述:

属性名称 签名 只读 属性描述 属性来源 持久化类型 变更影响
IdentificationRegisters s true 标识寄存器 SSU带外获取 无持久化 无
Health y true 健康状态:0-OK,1-Warning,2-Critical SSU带外获取 无持久化 无

评审点3

接口:bmc.dev.Processor.Metrics
变更描述:新增属性
属性描述:

属性名称 签名 只读 属性描述 属性来源 持久化类型 变更影响
BandwidthPercent d true 使用率 SSU带外获取 无持久化 无

评审点4

新增设备树对象Memory,路径为:
/bmc/dev/Systems/:SystemId/SSUCards/:Id/Memory/:MemoryId

评审点5

接口:bmc.dev.Memory
变更描述:新增属性
属性描述:

属性名称 签名 只读 属性描述 属性来源 持久化类型 变更影响
Id y true 唯一Id SSU带外获取 无持久化 无
Health y true 健康状态:0-OK,1-Warning,2-Critical SSU带外获取 无持久化 无

评审结论

遗留问题