accel/ivpu/40xx: Capture D0i3 entry host and device timestamps
authorAndrzej Kacprowski <andrzej.kacprowski@linux.intel.com>
Sat, 28 Oct 2023 13:34:11 +0000 (15:34 +0200)
committerStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Mon, 30 Oct 2023 10:06:11 +0000 (11:06 +0100)
commitdb37a5bfe97588992c75c29c1f0e19c88d364ce5
tree602cc79758af689f4f5b3371e1d40683eb698b03
parent8b5cec3c2ccf0b12121cb151560c2876219d87e5
accel/ivpu/40xx: Capture D0i3 entry host and device timestamps

The driver needs to capture the D0i3 entry timestamp to
calculate D0i3 residency time.

The D0i3 residency time and the VPU timestamp are passed
to the firmware at D0i3 exit (warm boot).

Signed-off-by: Andrzej Kacprowski <andrzej.kacprowski@linux.intel.com>
Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231028133415.1169975-8-stanislaw.gruszka@linux.intel.com
drivers/accel/ivpu/ivpu_hw_40xx.c