Skip to content

[SWDEV-552020/SWDEV-563971] Fail memory partition tests if ASIC supports memory partitions & kmod not installed#2695

Merged
JeniferC99 merged 2 commits into
developfrom
users/charis-poag-amd/SWDEV-552020_MemoryPartitionFailureIfKmodNotInstalled
Feb 6, 2026
Merged

[SWDEV-552020/SWDEV-563971] Fail memory partition tests if ASIC supports memory partitions & kmod not installed#2695
JeniferC99 merged 2 commits into
developfrom
users/charis-poag-amd/SWDEV-552020_MemoryPartitionFailureIfKmodNotInstalled

Conversation

@charis-poag-amd

@charis-poag-amd charis-poag-amd commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

[SWDEV-552020/SWDEV-563971] Fail memory partition tests if ASIC supports memory partitions & kmod not installed
Updates:

  • Now provide more details on kmod being missing and how to install.
  • Cleaned up comparison logic, regardless if memory partition set/driver reload was
    successful or not.

Copilot AI review requested due to automatic review settings January 20, 2026 15:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances memory partition testing in AMD SMI by adding proper validation for kernel module (kmod) availability and improving test assertions based on driver reload success. The changes ensure that memory partition tests fail gracefully when kmod is not installed on systems that support memory partitions, rather than allowing tests to pass incorrectly.

Changes:

  • Added kmod installation detection to fail tests early when required tooling is missing
  • Enhanced test assertions to differentiate between successful driver reloads with/without NPS mode changes
  • Improved verbose logging to track memory partition state transitions throughout testing

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread projects/amdsmi/tests/amd_smi_test/functional/memorypartition_read_write.cc Outdated
Comment thread projects/amdsmi/tests/amd_smi_test/functional/memorypartition_read_write.cc Outdated
@charis-poag-amd charis-poag-amd force-pushed the users/charis-poag-amd/SWDEV-552020_MemoryPartitionFailureIfKmodNotInstalled branch 2 times, most recently from 9d542f6 to 1f74229 Compare January 20, 2026 15:43
@charis-poag-amd charis-poag-amd changed the title users/charis poag amd/SWDEV 552020 MemoryPartitionFailureIfKmodNotInstalled [SWDEV-552020/SWDEV-563971] Fail memory partition tests if ASIC supports memory partitions Jan 20, 2026
@charis-poag-amd charis-poag-amd changed the title [SWDEV-552020/SWDEV-563971] Fail memory partition tests if ASIC supports memory partitions [SWDEV-552020/SWDEV-563971] Fail memory partition if ASIC supports memory partitions and kmod not installed Jan 20, 2026
@charis-poag-amd charis-poag-amd changed the title [SWDEV-552020/SWDEV-563971] Fail memory partition if ASIC supports memory partitions and kmod not installed [SWDEV-552020/SWDEV-563971] Fail memory partition tests if ASIC supports memory partitions and kmod not installed Jan 20, 2026
@charis-poag-amd charis-poag-amd changed the title [SWDEV-552020/SWDEV-563971] Fail memory partition tests if ASIC supports memory partitions and kmod not installed [SWDEV-552020/SWDEV-563971] Fail memory partition tests if ASIC supports memory partitions & kmod not installed Jan 20, 2026
Comment thread projects/amdsmi/tests/amd_smi_test/functional/memorypartition_read_write.cc Outdated
@charis-poag-amd charis-poag-amd force-pushed the users/charis-poag-amd/SWDEV-552020_MemoryPartitionFailureIfKmodNotInstalled branch from 1f74229 to 3ca6081 Compare January 27, 2026 06:49
@charis-poag-amd charis-poag-amd requested a review from a team as a code owner January 27, 2026 06:49
@charis-poag-amd charis-poag-amd force-pushed the users/charis-poag-amd/SWDEV-552020_MemoryPartitionFailureIfKmodNotInstalled branch 3 times, most recently from f05a9c6 to c4ce624 Compare January 30, 2026 21:56
@charis-poag-amd charis-poag-amd force-pushed the users/charis-poag-amd/SWDEV-552020_MemoryPartitionFailureIfKmodNotInstalled branch from c4ce624 to c698e65 Compare February 3, 2026 18:33
@charis-poag-amd charis-poag-amd force-pushed the users/charis-poag-amd/SWDEV-552020_MemoryPartitionFailureIfKmodNotInstalled branch 3 times, most recently from 11ae0ec to 3322829 Compare February 4, 2026 17:03
@charis-poag-amd

Copy link
Copy Markdown
Contributor Author

/AzurePipelines run rocm-ci-caller

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@charis-poag-amd charis-poag-amd force-pushed the users/charis-poag-amd/SWDEV-552020_MemoryPartitionFailureIfKmodNotInstalled branch 3 times, most recently from d4372d7 to 3ab5024 Compare February 5, 2026 21:43
…rts memory partitions

Updates:
  - Now provide more details on kmod being missing and how to install.
  - Cleaned up comparison logic, regardless if memory partition set was
successful or not.
@charis-poag-amd charis-poag-amd force-pushed the users/charis-poag-amd/SWDEV-552020_MemoryPartitionFailureIfKmodNotInstalled branch from 3ab5024 to 613fccf Compare February 6, 2026 18:08
@JeniferC99

Copy link
Copy Markdown
Collaborator

http://rocm-ci.amd.com/job/rocm-tests/39494/ - overrode, good to merge

@JeniferC99 JeniferC99 merged commit 67a57d9 into develop Feb 6, 2026
25 of 29 checks passed
@JeniferC99 JeniferC99 deleted the users/charis-poag-amd/SWDEV-552020_MemoryPartitionFailureIfKmodNotInstalled branch February 6, 2026 19:01
amd-josnarlo pushed a commit that referenced this pull request Feb 9, 2026
…rts memory partitions & kmod not installed (#2695)

* [SWDEV-552020/SWDEV-563971] Fail memory partition tests if ASIC supports memory partitions

Updates:
  - Now provide more details on kmod being missing and how to install.
  - Cleaned up comparison logic, regardless if memory partition set was
successful or not.

* Change kmod install check to be a one-time check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants