i.MX93: BBNSM RTC read error under load

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX93: BBNSM RTC read error under load

174 Views
Niebel-TQ
Contributor IV

Whenn reading out the BBNSM RTC cyclically

```hwclock -r -f /dev/rtc0```

ande settign the CPU unde load (using stress-ng and stressapptest in parallel), intermidiate errors occur. The call to ```hwclock -r -f /dev/rtc0``` then produces no output, but goes into a timeout.

In a test run 324 out of 43322 calls failed. Wenn reading BBNSM RTC with the same settings with no CPU load no errors could be seen within 269305 calls.

Kernel: 6.1 from NXP BSP

@danny_john

 

 

Tags (2)
0 Kudos
4 Replies

122 Views
Niebel-TQ
Contributor IV

To reproduce run stresstools in background with decreased priority, actual test setup was:
```
# nice level 5
stressapptest -W -s 31536000 -M 128 -m 1 -C 0 -i 1 &

# nice level 9
stress-ng --cpu-load 10 --cpu 2 --timeout 31536000 &
```
Run in a loop with 2 seconds between invocations (rtc0: I2C RTC / rtc1: BBNSM RTC):
```
hwclock -r -f /dev/rtc0
hwclock -r -f /dev/rtc1
```
Expectation: when reading every 2 seconds we see increasing time whit every read.
Error case: reading BBNSM RTC fails randomly, hwclock needs 10 seconds to return in this case.
```
8<------------------------------------------
[2024-06-04_23:09:20] SUCCESS /dev/rtc1 1970-01-01 13:59:50.978334+00:00 1970-01-01 13:59:50.978334+00:00
[2024-06-04_23:09:23] SUCCESS /dev/rtc0 2024-06-04 23:09:23.175275+00:00 2024-06-04 23:09:23.175275+00:00
[2024-06-04_23:09:23] SUCCESS /dev/rtc1 1970-01-01 13:59:53.940790+00:00 1970-01-01 13:59:53.940790+00:00
[2024-06-04_23:09:26] SUCCESS /dev/rtc0 2024-06-04 23:09:26.222111+00:00 2024-06-04 23:09:26.222111+00:00
[2024-06-04_23:09:26] SUCCESS /dev/rtc1 1970-01-01 13:59:56.969521+00:00 1970-01-01 13:59:56.969521+00:00
[2024-06-04_23:09:29] SUCCESS /dev/rtc0 2024-06-04 23:09:29.175745+00:00 2024-06-04 23:09:29.175745+00:00
[2024-06-04_23:09:39] ERROR /dev/rtc1
[2024-06-04_23:09:42] SUCCESS /dev/rtc0 2024-06-04 23:09:42.239289+00:00 2024-06-04 23:09:42.239289+00:00
[2024-06-04_23:09:42] SUCCESS /dev/rtc1 1970-01-01 14:00:12.953436+00:00 1970-01-01 14:00:12.953436+00:00
[2024-06-04_23:09:45] SUCCESS /dev/rtc0 2024-06-04 23:09:45.209569+00:00 2024-06-04 23:09:45.209569+00:00
[2024-06-04_23:09:45] SUCCESS /dev/rtc1 1970-01-01 14:00:15.945005+00:00 1970-01-01 14:00:15.945005+00:00
8<------------------------------------------
```

0 Kudos

80 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Thank you for sharing, I'm investigating this issue with internal team and testing on my side as well.
While doing that, could you share the full part number of the i.MX93 that you are using?

Best regards/Saludos,
Aldo.

0 Kudos

53 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

So I could continue with the investigation, please help me sharing the full part number.

Best regards/Saludos,
Aldo.

0 Kudos

142 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Could you share the logs seen in the failed test?
How easy is to reproduce such error?

Best regards/Saludos,
Aldo.

0 Kudos