Skip to content

fix(amdgpu): parse the SMC debugfs line that carries a program field - #162

Merged
moezdil merged 1 commit into
mainfrom
fix/firmware-test-skip-vf
Oct 11, 2026
Merged

moezdil merged 1 commit into
mainfrom
fix/firmware-test-skip-vf

Conversation

@moezdil

@moezdil moezdil commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

/kind bug

Newer kernels print SMC feature version: 0, program: 7, firmware version: 0x07551300 in amdgpu_firmware_info. fwVersionRe required the firmware field right after the feature field, so the SMC entry was dropped and TestFirmwareVersionConsistent compared the ioctl value (7551300) against zero. The regex now accepts an optional program: N, field.

Refs #38

Reproduced on an MI325X node (kernel 7.0): the consistency test failed before and passes now with the real debugfs mounted, and the new fixture test fails without the fix.

AI assistance was used for this PR.

Newer kernels print "SMC feature version: 0, program: 7, firmware version:
0x07551300" in amdgpu_firmware_info. The regex required the firmware field
right after the feature field, so SMC was dropped and
TestFirmwareVersionConsistent compared the ioctl value against zero.

Signed-off-by: mesutoezdil <mesudozdil@gmail.com>
@hami-robot hami-robot Bot added the kind/bug Categorizes issue or PR as related to a bug. label Oct 11, 2026
@hami-robot

hami-robot Bot commented Oct 11, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: moezdil

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@coderabbitai

coderabbitai Bot commented Oct 11, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 119b5c4c-d21d-45c3-b6ff-165524dde4f7

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@moezdil
moezdil merged commit 6f36eaf into main Oct 11, 2026
11 of 12 checks passed
@moezdil
moezdil deleted the fix/firmware-test-skip-vf branch October 11, 2026 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Categorizes issue or PR as related to a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant