Re: [Intel-gfx] [RFC 01/10] drm/i915: Expose list of clients in sysfs

2020-03-13 Thread Chris Wilson
Quoting Tvrtko Ursulin (2020-03-11 18:26:09) > diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c > index ca5420012a22..7def0930684b 100644 > --- a/drivers/gpu/drm/i915/i915_gem.c > +++ b/drivers/gpu/drm/i915/i915_gem.c > @@ -1218,12 +1218,14 @@ static void

[Intel-gfx] [RFC 01/10] drm/i915: Expose list of clients in sysfs

2020-03-11 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Expose a list of clients with open file handles in sysfs. This will be a basis for a top-like utility showing per-client and per- engine GPU load. Currently we only expose each client's pid and name under opaque numbered directories in /sys/class/drm/card0/clients/. For