#4312 closed defect (fixed)

bsps,leon3: need to make cpucounter restart after underflow

Reported by: Daniel Hellstrom Owned by: Daniel Hellstrom
Priority: normal Milestone: 5.2
Component: bsps Version: 5
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

Fix for the BSP timer initialization when GPTIMER is used as the cpucounter. Without restarting in HW the cpucounter would stop after some time.

Change History (2)

comment:1 Changed on Mar 7, 2021 at 3:57:16 PM by Daniel Hellstrom <daniel@…>

In cb8379d/rtems:

leon: restart and load timer counter at initialization

Without this smp05 and smpthreadlife01 tests may fail
depending on how the boot loader initialized the GPTIMER.
Before the time counter stopped counting when reaching
zero, but tests could work since it could take 232 us
before stopping.

The timer driver will potentially overwrite this, but it
happens later due to the initialization order having
RTEMS_SYSINIT_CPU_COUNTER very early.

Update #4312.

comment:2 Changed on Mar 9, 2021 at 1:28:21 PM by Daniel Hellstrom

Milestone: 6.15.2
Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.