Re: [Intel-gfx] [RFC 5/5] drm/i915: Add sysfs toggle to enable per-client engine stats

2019-10-25 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-10-25 15:21:31) > + ret = i915_mutex_lock_interruptible(>drm); > + if (ret) > + return ret; > + > + if (val && !i915->clients.stats.enabled) > + enable = true; > + else if (!val && i915->clients.stats.enabled) > +

[Intel-gfx] [RFC 5/5] drm/i915: Add sysfs toggle to enable per-client engine stats

2019-10-25 Thread Tvrtko Ursulin
From: Tvrtko Ursulin By default we are not collecting any per-engine and per-context statistcs. Add a new sysfs toggle to enable this facility: $ echo 1 >/sys/class/drm/card0/clients/enable_stats v2: Rebase. v3: sysfs_attr_init. v4: Scheduler caps. Signed-off-by: Tvrtko Ursulin ---

[Intel-gfx] [RFC 5/5] drm/i915: Add sysfs toggle to enable per-client engine stats

2018-02-14 Thread Tvrtko Ursulin
From: Tvrtko Ursulin By default we are not collecting any per-engine and per-context statistcs. Add a new sysfs toggle to enable this facility: $ echo 1 >/sys/class/drm/card0/clients/enable_stats v2: Rebase. Signed-off-by: Tvrtko Ursulin