Skip to content

Add DMA enablement tests#296

Open
vnarapar wants to merge 3 commits intoqualcomm-linux:mainfrom
vnarapar:dmabuf
Open

Add DMA enablement tests#296
vnarapar wants to merge 3 commits intoqualcomm-linux:mainfrom
vnarapar:dmabuf

Conversation

@vnarapar
Copy link
Copy Markdown
Contributor

Added the tests to check DMA configs, Device Tree Validation and upstream kselftests

@vnarapar vnarapar requested a review from smuppand February 15, 2026 19:17
@vnarapar vnarapar force-pushed the dmabuf branch 4 times, most recently from 90efb69 to 6b50d76 Compare March 23, 2026 12:47
@smuppand
Copy link
Copy Markdown
Contributor

smuppand commented Mar 24, 2026

This one should be split into 3 commits, unlike the simple one commit and one-testcase PR. It currently combines:

  1. library/helper addition
  2. presence-style dmabuf testcase
  3. functional dmabuf heap kselftest runner

@smuppand
Copy link
Copy Markdown
Contributor

This one should be split into 3 commits, unlike the simple one commit and one-testcase PR. It currently combines:

  1. library/helper addition
  2. presence-style dmabuf testcase
  3. functional dmabuf heap kselftest runner

This should still be split into 3 commits. Also address the structural commensts. The PR is 1 commit / 7 files / 3 logical chunks

@vnarapar vnarapar changed the title Added tests for dmabuf validations Add DMA enablement tests Apr 5, 2026
vnarapar added 3 commits April 6, 2026 00:04
Add the helper function to check kernel optional config

Signed-off-by: Vamsee Narapareddi <vnarapar@qti.qualcomm.com>
This test validates the DMA-BUF subsystem configuration on Qualcomm
platforms, including kernel configuration, device tree setup, and system
interfaces

Signed-off-by: Vamsee Narapareddi <vnarapar@qti.qualcomm.com>
This test runs the `dmabuf-heap` binary from the Linux kernel selftests
suite to validate DMA-BUF heap functionality

Signed-off-by: Vamsee Narapareddi <vnarapar@qti.qualcomm.com>
Copy link
Copy Markdown
Contributor

@smuppand smuppand left a comment

Choose a reason for hiding this comment

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

Kindly close the comments that have been addressed with the updated patches.


TESTNAME="dmabuf"
test_path=$(find_test_case_by_name "$TESTNAME")
cd "$test_path" || exit 1
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.

Validate test_path, write .res, and exit through the normal flow instead of direct exit 1.

log_info "============ Starting $TESTNAME Testcase ======================================="
log_info "================================================================================"

if ! check_dependencies "find grep basename"; then
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.

Add awk to the dependency list, or remove the later awk usage.

else
log_fail "None of the requested nodes were found."
echo "$TESTNAME FAIL" > "$res_file"
exit 1
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.

Set pass=false and continue to the common final result path instead of exit 1 here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants