M7350/qcom-opensource/kernel/kernel-tests/bus-timeout/README

26 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-09-09 08:57:42 +00:00
Test:Bus Timeout Documentation
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
Usage: bus_timeout_test.sh [-c | --camera-timeout] [ -u | --usb-timeout]
[-p | --pc-save] [-h | --help]
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
OPTIONS:
The following options can be used:
-c | --camera-timeout trigger a camera bus timeout
-u | --usb-timeout trigger a usb bus timeout
-p | --pc-save trigger a sec wdog bite which will save the last
executing instruction.
2024-09-09 08:52:07 +00:00
TEST BEHAVIOR: Force a bus hang. If successful, the target will be reset by
the watchdog. The kernel will panic on a failure. Returning back to the command
prompt is also considered a failure.
LIMITATIONS: In order for the test to run correctly, clocks must be off.
Unfortunately, there is no guarantee with the public clock APIs that the
clock will actually be off after one clk_disable call. The easiest way
to guarantee that the disable will actually work is to make sure the
system is not using the required clocks.
For this module, the camera must not be on while attempting to do the
2024-09-09 08:57:42 +00:00
test since the camera registers are used for testing. The usb cable
must not be plugged in while attempting to do the usb timeout test.