selftests/remoteproc: Add selftest suite for sysfs interface#743
Open
bibekpatro wants to merge 1 commit into
Open
selftests/remoteproc: Add selftest suite for sysfs interface#743bibekpatro wants to merge 1 commit into
bibekpatro wants to merge 1 commit into
Conversation
Add a new selftest suite for the remoteproc framework covering its stable userspace-facing sysfs interface: - /sys/class/remoteproc/remoteprocN/ (sysfs attributes) remoteproc_sysfs covers all sysfs attributes (name, state, firmware, coredump, recovery) with 11 tests: read validity checks, invalid write rejection, read-after-write roundtrips, firmware write while offline, and stop-when-offline noop. The binary uses kselftest_harness.h with FIXTURE/FIXTURE_TEARDOWN to ensure sysfs state (firmware, coredump, recovery) is restored to its original value after each test regardless of pass or fail. The binary skips gracefully with KSFT_SKIP when no remoteproc devices are present, making it safe to run in CI environments without remoteproc hardware. start/stop lifecycle tests and debugfs interfaces are intentionally excluded: the former requires a platform-specific firmware binary that cannot be assumed present in a generic test environment, and the latter is not part of the stable userspace ABI. Signed-off-by: Bibek Kumar Patro <bibek.patro@oss.qualcomm.com> Cc: Bjorn Andersson <andersson@kernel.org> Cc: Mathieu Poirier <mathieu.poirier@linaro.org> Cc: Shuah Khan <shuah@kernel.org> Cc: linux-remoteproc@vger.kernel.org Cc: linux-kselftest@vger.kernel.org
|
Merge Check Failed: No CR Numbers Found Error: No Change Request numbers were found. Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests. |
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.
Add a new selftest suite for the remoteproc framework covering its stable userspace-facing sysfs interface:
remoteproc_sysfs covers all sysfs attributes (name, state, firmware, coredump, recovery) with 11 tests: read validity checks, invalid write rejection, read-after-write roundtrips, firmware write while offline, and stop-when-offline noop.
The binary uses kselftest_harness.h with FIXTURE/FIXTURE_TEARDOWN to ensure sysfs state (firmware, coredump, recovery) is restored to its original value after each test regardless of pass or fail.
The binary skips gracefully with KSFT_SKIP when no remoteproc devices are present, making it safe to run in CI environments without remoteproc hardware.
start/stop lifecycle tests and debugfs interfaces are intentionally excluded: the former requires a platform-specific firmware binary that cannot be assumed present in a generic test environment, and the latter is not part of the stable userspace ABI.
Cc: Bjorn Andersson andersson@kernel.org
Cc: Mathieu Poirier mathieu.poirier@linaro.org
Cc: Shuah Khan shuah@kernel.org
Cc: linux-remoteproc@vger.kernel.org
Cc: linux-kselftest@vger.kernel.org