[RFC 3/3] drm/i915/gt: Export device and per-process runtimes via procfs

Emil Velikov emil.l.velikov at gmail.com
Fri Feb 12 14:57:56 UTC 2021


Hi Chris,

On Thu, 4 Feb 2021 at 12:11, Chris Wilson <chris at chris-wilson.co.uk> wrote:
>
> Register with /proc/gpu to provide the client runtimes for generic
> top-like overview, e.g. gnome-system-monitor can use this information to
> show the per-process multi-GPU usage.
>
Exposing this information to userspace sounds great IMHO and like the
proposed "channels" for the device engines.
If it were me, I would have the channel names a) exposed to userspace
and b) be a "fixed set".

Whereby with a "fixed set" I mean, we should have these akin to the
KMS UAPI properties, where we have core helpers exposing prop X/Y and
there should be no driver specific ones.
This would allow for consistent and deterministic userspace handling,
even if some hardware/drivers do not have all engines - say no copy
engine.


> --- /dev/null
> +++ b/drivers/gpu/drm/i915/gt/intel_gt_proc.c
> @@ -0,0 +1,66 @@
> +// SPDX-License-Identifier: MIT
Thanks for making these available under MIT.

> +/*
> + * Copyright © 2020 Intel Corporation

Might want to make this 2021 in the next revision.

HTH
Emil


More information about the dri-devel mailing list