io/iommu/amd: Update kernel config and dmesg check methods#2944
Merged
narasimhan-v merged 2 commits intoavocado-framework-tests:masterfrom Mar 4, 2025
Merged
io/iommu/amd: Update kernel config and dmesg check methods#2944narasimhan-v merged 2 commits intoavocado-framework-tests:masterfrom
narasimhan-v merged 2 commits intoavocado-framework-tests:masterfrom
Conversation
Currently "check_kernelconf_5lvl()" checks "/boot/" directory for kernel config files. Ubuntu based system have config files for distro as well as custom build kernel in "/boot/" directory. But on rhel based systems, custom build kernel's config are not present in /boot/ directory. Use /lib/modules/<kernel_version>/build/.config to check for kernel config file making test work for both ubuntu and rhel. Signed-off-by: Dheeraj Kumar Srivastava <dheerajkumar.srivastava@amd.com>
Current code checks dmesg alone for kernel logs. But for cases where dmesg is cleared, checking journalctl adds more confidence on the outcome of kernel logs check. Signed-off-by: Dheeraj Kumar Srivastava <dheerajkumar.srivastava@amd.com>
narasimhan-v
approved these changes
Mar 4, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This patch series
file making test work for both ubuntu and rhel.
Run
avocado-misc-tests# avocado run io/iommu/amd/iommu_v2pgmode_test.py
JOB ID : 3cc7db3ef40f8195a00951bf6c7f6556d79beefc
JOB LOG : /root/tests/results/job-2025-03-04T08.04-3cc7db3/job.log
(1/1) io/iommu/amd/iommu_v2pgmode_test.py:IommuPageTable.test: STARTED
(1/1) io/iommu/amd/iommu_v2pgmode_test.py:IommuPageTable.test: PASS (0.21 s)
RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML : /root/tests/results/job-2025-03-04T08.04-3cc7db3/results.html
JOB TIME : 1.91 s