Skip to content

[bullseye] [sensors] Sensor tests need to be aligned with pmbus drivers for kernel 5.10 #4513

@alexrallen

Description

@alexrallen

THIS IS A BUG TARGETING the Debian 11 / Kernel 5.10 UPGRADE

Description

Currently for the tps53679 driver the sensors tests expect the following two alarms

/sys/bus/i2c/devices/15-0061/hwmon/hwmon12/in1_alarm
/sys/bus/i2c/devices/15-0061/hwmon/hwmon12/in2_alarm

However in the latest pmbus driver this has been changed to the following

/sys/bus/i2c/devices/15-0061/hwmon/hwmon12/in1_crit_alarm
/sys/bus/i2c/devices/15-0061/hwmon/hwmon12/in1_lcrit_alarm 

/sys/bus/i2c/devices/15-0061/hwmon/hwmon12/in2_crit_alarm 
/sys/bus/i2c/devices/15-0061/hwmon/hwmon12/in2_lcrit_alarm

As such the expected test results will need to be updated. However, some amount of infra will be necessary if we wish this test to be compatible with both buster and bullseye.

Steps to reproduce the issue:

  1. Execute the test_sensors suite on a Mellanox 3420 switch (or any other swithc with a tps53679

Describe the results you received:
Tests fail with

Failed: Sensor alarms:
{
    "temp_reasons": [], 
    "fan_reasons": [], 
    "fan": false, 
    "temp": false, 
    "power": true, 
    "power_reasons": [
        "Path tps53679-i2c-15-58/PMIC-3 PSU 12V Rail (in1)/in1_alarm is not exist", 
        "Path tps53679-i2c-15-58/PMIC-3 PSU 12V Rail (in2)/in2_alarm is not exist", 
        "Path tps53679-i2c-15-58/PMIC-3 COMEX 1.05V Rail (out)/in4_lcrit_alarm is not exist", 
        "Path tps53679-i2c-15-58/PMIC-3 COMEX 1.05V Rail (out)/in4_crit_alarm is not exist", 
        "Path tps53679-i2c-15-61/PMIC-4 PSU 12V Rail (in1)/in1_alarm is not exist", 
        "Path tps53679-i2c-15-61/PMIC-4 PSU 12V Rail (in2)/in2_alarm is not exist"
    ]
}

Describe the results you expected:
Tests Pass

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions