diff options
author | Dave Airlie <airlied@redhat.com> | 2023-02-09 07:16:37 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2023-02-09 07:16:44 +0100 |
commit | 48075a66fca613477ac1969b576a93ef5db0164f (patch) | |
tree | 5e600dfdc36d6268284f661ce3f6609a6d192829 /drivers/gpu/drm/scheduler | |
parent | Merge tag 'amd-drm-next-6.3-2023-02-03' of https://gitlab.freedesktop.org/agd... (diff) | |
parent | drm/etnaviv: show number of NN cores in GPU debugfs info (diff) | |
download | linux-48075a66fca613477ac1969b576a93ef5db0164f.tar.xz linux-48075a66fca613477ac1969b576a93ef5db0164f.zip |
Merge branch 'etnaviv/next' of https://git.pengutronix.de/git/lst/linux into drm-next
This time we've added support for reporting of GPU load via the common
fdinfo format, as already supported by multiple other drivers. Improved
diagnostic messages for MMU faults. And finally added experimental
support for driving the VeriSilicon NPU cores, which are very close
relatives to the GPU designs, so close in fact that they can run the
same compute instruction set, but with a big NN-fabric/matrix/tensor
execution array glued to the side.
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Lucas Stach <l.stach@pengutronix.de>
Link: https://patchwork.freedesktop.org/patch/msgid/80ceb4eedf7d88e434deeb69607d5ce0a0759581.camel@pengutronix.de
Diffstat (limited to 'drivers/gpu/drm/scheduler')
-rw-r--r-- | drivers/gpu/drm/scheduler/sched_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/scheduler/sched_main.c b/drivers/gpu/drm/scheduler/sched_main.c index 0e4378420271..4e6ad6e122bc 100644 --- a/drivers/gpu/drm/scheduler/sched_main.c +++ b/drivers/gpu/drm/scheduler/sched_main.c @@ -906,6 +906,12 @@ drm_sched_get_cleanup_job(struct drm_gpu_scheduler *sched) spin_unlock(&sched->job_list_lock); + if (job) { + job->entity->elapsed_ns += ktime_to_ns( + ktime_sub(job->s_fence->finished.timestamp, + job->s_fence->scheduled.timestamp)); + } + return job; } |