Files
arm-trusted-firmware/plat/xilinx
Michal SimekandVarun Wadekar 777b7063f9 fix(zynqmp): workaround issue around cntpct_el0
cntvct_el0 after power up has an architecturally UNKNOWN value.
In ZynqMP case the value is very high (e.g. 0xefffffe80d4de62d).
At best value should be 0 because it is used for time measuring when
systemd analyze command is called (via storing it in UEFI variables).
As a workaround for this issue use cntvoff_el2 to record offset from actual value which clears cntvct_el0.
There could be different way how to achieve this behavior but till that
time use this workaround to fix systemd analyze behavior.

Change-Id: Ie43096bb33bb0e02c8cac07f965610b4565e141c
Signed-off-by: Michal Simek <michal.simek@amd.com>
(cherry picked from commit 97ec082a20)
2025-07-11 16:18:08 +00:00
..