在适配某一款npu卡的时候,已经通过带外协议获取到了温度值,并且在资源树上可以正确显示了,但是使用同步语法到门限传感器对象的reading,reading值一直不会改变。
vpd配置情况:
"ThresholdSensor_GPUAICoreTemp": {
"OwnerId": 32,
"OwnerLun": 0,
"EntityId": "<=/Entity_GPUCard.Id",
"EntityInstance": "<=/Entity_GPUCard.Instance",
"Initialization": 127,
"Capabilities": 104,
"SensorType": 1,
"ReadingType": 1,
"SensorName": "NPU${Slot} AICORE Temp",
"AssertMask": 0,
"DeassertMask": 0,
"ReadingMask": 2056,
"UpperNoncritical": 105,
"PositiveHysteresis": 2,
"Unit": 128,
"BaseUnit": 1,
"ModifierUnit": 0,
"Linearization": 0,
"M": 100,
"RBExp": 224,
"Analog": 1,
"NominalReading": 25,
"NormalMaximum": 0,
"NormalMinimum": 0,
"MaximumReading": 127,
"MinimumReading": 128,
"Reading": "<=/wzAtlasModel.CoreTemp",
"ReadingStatus": "<=/wzAtlasModel.CoreTemp |> expr($1 >= 255 ? 1 : 0)"
},
查看资源树,发现wzAtlasModel_010101010302的CoreTemp已经可以读到了是44:
~ ~ $ mdbctl lsprop wzAtlasModel_010101010302
bmc.kepler.Object.Properties
ClassName="wzAtlasModel"
ObjectIdentifier=[1,"1","1","010101010302"]
ObjectName="wzAtlasModel_010101010302"
bmc.kepler.wzapp.AtlasCard
BoardID=175
CoreTemp=44
Private
RefMCUChip="$ref"
~ ~ $
查看门限传感器对象的Reading一直为0
~ ~ $ mdbctl lsprop ThresholdSensor_GPUAICoreTemp_010101010302
bmc.kepler.Object.Properties
ClassName="ThresholdSensor"
ObjectIdentifier=[1,"1","1","010101010302"]
ObjectName="ThresholdSensor_GPUAICoreTemp_010101010302"
bmc.kepler.Systems.ThresholdSensor
Capabilities=104
EntityId=11
EntityInstance=101
LowerCritical=0
LowerNoncritical=0
LowerNonrecoverable=0
NegativeHysteresis=0
OriginalReading=0
OwnerLun=0
PositiveHysteresis=2
Reading=0
ReadingMask=2056
ReadingStatus=1
SensorIdentifier=""
SensorName="NPU3 AICORE Temp"
SensorNumber=79
SensorType=1
UpperCritical=0
UpperNoncritical=105
UpperNonrecoverable=0
