OSDN Git Service

drm/scheduler: track GPU active time per entity
authorLucas Stach <l.stach@pengutronix.de>
Wed, 1 Feb 2023 15:26:07 +0000 (16:26 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 7 Feb 2023 19:49:20 +0000 (20:49 +0100)
commitdf622729ddbf6607c10670e52d2cb484b1abe7c7
tree34757a17f69957d9d8eaeecd2e71003846ae0d2f
parent6b05266a0d6b6c02faa0a2749456dfc85277bae6
drm/scheduler: track GPU active time per entity

Track the accumulated time that jobs from this entity were active
on the GPU. This allows drivers using the scheduler to trivially
implement the DRM fdinfo when the hardware doesn't provide more
specific information than signalling job completion anyways.

[Bagas: Append missing colon to @elapsed_ns]
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
drivers/gpu/drm/scheduler/sched_main.c
include/drm/gpu_scheduler.h