Gedare Bloom created an issue: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5577



## Summary
<!--
Please provide as much information as possible such as error messages or 
attaching logs
-->

I get random assert() failures on smpmrsp01.exe using risc-v with s-mode on 
Qemu. It happens maybe 15-20% of the time at:

```
test MrsP various block and unblock
../../../testsuites/smptests/smpmrsp01/init.c: 1376 !ctx->low_run[ 0 ]
```

I suspect the issue has to do with tick timing. I have observed other bugs 
related to ticks, for example !1247 

The crashes stop if I change `CONFIGURE_MICROSECONDS_PER_TICK` from `1000` to 
`10000`.

Is the `CONFIGURE_MICROSECONDS_PER_TICK` setting of 1000 important to the test 
or can we increase it?

Should we perhaps add a BSP minimum microseconds per tick?

## Steps to reproduce

`qemu-system-riscv64 -M virt -icount shift=5,align=off -nographic -kernel 
build/riscv/rv64imafdc_s_smp/testsuites/smptests/smpmrsp01.exe -smp 4`

<!-- Pre-set options
- milestone
-->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5577
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to