Skip to content

Handle ioctl EINVAL error for set_power_state when FW is too old #139

@kikkiakki

Description

@kikkiakki

When using a BH FW version that didn't support new power management features, I ran into this error when attempting to use set_power_state:

(.venv) palexson@yyz-syseng-06:~/tt-burnin$ tt-burnin
 Detected Chips: 1
 Detecting ARC: |
 Detecting DRAM: |
 [] [14/14] ETH: |
Traceback (most recent call last):
  File "/home/palexson/tt-burnin/.venv/bin/tt-burnin", line 8, in <module>
    sys.exit(main())
  File "/home/palexson/tt-burnin/.venv/lib/python3.10/site-packages/tt_burnin/main.py", line 272, in main
    devs, devices = detect_and_group_devices()
  File "/home/palexson/tt-burnin/.venv/lib/python3.10/site-packages/tt_burnin/main.py", line 260, in detect_and_group_devices
    device.set_power_state("high")
Exception: Ioctl failed with EINVAL: Invalid argument

Joel suggests: "Ideally Luwen would handle old KMD/old FW without an error. It can just swallow the error from KMD."

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions