#
17f6f2fd |
| 03-Sep-2024 |
Andrew Jones <andrew.jones@linux.dev> |
Merge branch 'riscv/sbi' into 'master'
riscv: Add support for SBI tests
See merge request kvm-unit-tests/kvm-unit-tests!67
|
#
ff2fceb1 |
| 28-Aug-2024 |
Andrew Jones <andrew.jones@linux.dev> |
riscv: Provide timer_start and timer_stop
For unit tests that need a timer but don't care if they use Sstc or SBI TIME, provide timer_start and timer_stop which will try Sstc first and fallback to S
riscv: Provide timer_start and timer_stop
For unit tests that need a timer but don't care if they use Sstc or SBI TIME, provide timer_start and timer_stop which will try Sstc first and fallback to SBI TIME.
Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
show more ...
|
#
a1418d6d |
| 02-Aug-2024 |
Andrew Jones <andrew.jones@linux.dev> |
Merge branch 'riscv/sbi' into 'master'
riscv: Add TIME SBI extension tests
See merge request kvm-unit-tests/kvm-unit-tests!62
|
#
14fa12b1 |
| 30-Jul-2024 |
James Raphael Tiovalen <jamestiotio@gmail.com> |
riscv: sbi: Add test for timer extension
Add a test for the set_timer function of the time extension. The test checks that: - The time extension is available - The installed timer interrupt handler
riscv: sbi: Add test for timer extension
Add a test for the set_timer function of the time extension. The test checks that: - The time extension is available - The installed timer interrupt handler is called - The timer interrupt is received within a reasonable time interval - The timer interrupt pending bit is cleared after the set_timer SBI call is made when a time in the future is passed
The timer interrupt delay can be set using the TIMER_DELAY environment variable in microseconds. The default delay value is 200 milliseconds. Since the interrupt can arrive a little later than the specified delay, allow some margin of error. This margin of error can be specified via the TIMER_MARGIN environment variable in microseconds. The default margin of error is 200 milliseconds.
Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Signed-off-by: James Raphael Tiovalen <jamestiotio@gmail.com> [Modified masked timer test and made a few cleanups.] Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
show more ...
|
#
93bcbb09 |
| 30-Jul-2024 |
James Raphael Tiovalen <jamestiotio@gmail.com> |
riscv: Add some delay and timer routines
Add a delay method that would allow tests to wait for some specified number of cycles. Also add a conversion helper method between microseconds and cycles. T
riscv: Add some delay and timer routines
Add a delay method that would allow tests to wait for some specified number of cycles. Also add a conversion helper method between microseconds and cycles. This conversion is done by using the timebase frequency, which is obtained during setup via the device tree.
Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Signed-off-by: James Raphael Tiovalen <jamestiotio@gmail.com> Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
show more ...
|