[Intel-gfx] [RFC] drm/i915: add slice shutdown debugfs interface

2017-04-07 Thread Dmitry Rogozhkin
Slice shutdown override interface (i915_slice_enabled) permits to power on/off GPGPU slices in Gen8 and Gen9. This is helpful in performance investigations amd checking scalability across hw platforms. Change-Id: I4f2fe5fefb8d1df4519fd0eb58237759c7d1a930 Signed-off-by: Dmitry Rogozhkin CC

Re: [Intel-gfx] [RFC] drm/i915: add slice shutdown debugfs interface

2017-04-07 Thread Dmitry Rogozhkin
On 4/7/2017 11:50 AM, Chris Wilson wrote: On Fri, Apr 07, 2017 at 03:41:41AM -0700, Dmitry Rogozhkin wrote: Slice shutdown override interface (i915_slice_enabled) permits to power on/off GPGPU slices in Gen8 and Gen9. This is helpful in performance investigations amd checking scalability

[Intel-gfx] [RFC 1/2] drm/i915/skl: add slice shutdown debugfs interface

2017-04-07 Thread Dmitry Rogozhkin
will not affect older ones. v1: Restrict effect of the patch to SKL. Comment code. Change-Id: I4f2fe5fefb8d1df4519fd0eb58237759c7d1a930 Signed-off-by: Dmitry Rogozhkin CC: Tvrtko Ursulin CC: Zhipeng Gong CC: Joonas Lahtinen CC: Chris Wilson --- drivers/gpu/drm/i915/i915_debugfs.c | 38

[Intel-gfx] [RFC 2/2] drm/i915/bdw: permit make_rpcs execution on BDW to enable slice shutdown

2017-04-07 Thread Dmitry Rogozhkin
BDW supports RCS slices powering on/off. To do that we need make_rpcs executed on BDW to flash slices configuration. Change-Id: Ia80b1be329bedc57cc61078ea18ecb3d2580c16a Signed-off-by: Dmitry Rogozhkin CC: Tvrtko Ursulin CC: Zhipeng Gong CC: Joonas Lahtinen CC: Chris Wilson --- drivers/gpu

[Intel-gfx] [RFC 0/2] slice shutdown debugfs interface for Gen8/Gen9

2017-04-07 Thread Dmitry Rogozhkin
scalability across hw platforms. Dmitry Rogozhkin (2): drm/i915/skl: add slice shutdown debugfs interface drm/i915/bdw: permit make_rpcs execution on BDW to enable slice shutdown drivers/gpu/drm/i915/i915_debugfs.c | 38 +++- drivers/gpu/drm/i915/i915_drv.h

Re: [Intel-gfx] [PATCH] drm/i915: Update MOCS settings for gen 9

2017-05-04 Thread Dmitry Rogozhkin
On 5/4/2017 9:51 AM, Kenneth Graunke wrote: MediaSDK is not a benchmark. If I'm not mistaken, it's a userspace driver produced by Intel engineers, one which Intel has the full capability to change. What you're saying is that Intel's MediaSDK engineers are unwilling to change their software to

Re: [Intel-gfx] [PATCH] drm/i915: Update MOCS settings for gen 9

2017-05-05 Thread Dmitry Rogozhkin
On 5/5/2017 8:44 AM, Kenneth Graunke wrote: On Thursday, May 4, 2017 7:46:34 PM PDT Dmitry Rogozhkin wrote: On 5/4/2017 9:51 AM, Kenneth Graunke wrote: MediaSDK is not a benchmark. If I'm not mistaken, it's a userspace driver produced by Intel engineers, one which Intel ha

Re: [Intel-gfx] [RFC 0/3] Engine utilization tracking

2017-05-09 Thread Dmitry Rogozhkin
On 5/9/2017 8:51 AM, Tvrtko Ursulin wrote: On 09/05/2017 16:29, Chris Wilson wrote: On Tue, May 09, 2017 at 04:16:41PM +0100, Tvrtko Ursulin wrote: On 09/05/2017 15:26, Chris Wilson wrote: On Tue, May 09, 2017 at 03:09:33PM +0100, Tvrtko Ursulin wrote: From: Tvrtko Ursulin By popular cu

Re: [Intel-gfx] [RFC 3/3] drm/i915: Export engine busy stats in debugfs

2017-05-09 Thread Dmitry Rogozhkin
On 5/9/2017 7:09 AM, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Export the stats added in the previous patch in debugfs. Number of active clients reading this data is tracked and the static key is only enabled whilst there are some. Userspace is intended to keep the file descriptor open, se

Re: [Intel-gfx] [RFC 0/3] Engine utilization tracking

2017-05-10 Thread Dmitry Rogozhkin
On 5/10/2017 1:38 AM, Tvrtko Ursulin wrote: On 09/05/2017 19:11, Dmitry Rogozhkin wrote: On 5/9/2017 8:51 AM, Tvrtko Ursulin wrote: On 09/05/2017 16:29, Chris Wilson wrote: On Tue, May 09, 2017 at 04:16:41PM +0100, Tvrtko Ursulin wrote: On 09/05/2017 15:26, Chris Wilson wrote: On Tue

Re: [Intel-gfx] [RFC 3/3] drm/i915: Export engine busy stats in debugfs

2017-05-10 Thread Dmitry Rogozhkin
On 5/10/2017 1:30 AM, Tvrtko Ursulin wrote: On 09/05/2017 19:17, Dmitry Rogozhkin wrote: On 5/9/2017 7:09 AM, Tvrtko Ursulin wrote: [snip] +static ssize_t i915_engine_stats_read(struct file *file, char __user *ubuf, + size_t count, loff_t *pos) +{ +struct

Re: [Intel-gfx] [RFC 0/3] Engine utilization tracking

2017-05-12 Thread Dmitry Rogozhkin
On 5/10/2017 12:45 PM, Daniel Vetter wrote: On Wed, May 10, 2017 at 10:38 AM, Tvrtko Ursulin wrote: On 09/05/2017 19:11, Dmitry Rogozhkin wrote: On 5/9/2017 8:51 AM, Tvrtko Ursulin wrote: On 09/05/2017 16:29, Chris Wilson wrote: On Tue, May 09, 2017 at 04:16:41PM +0100, Tvrtko Ursulin

Re: [Intel-gfx] [PATCH 24/24] RFC drm/i915: Expose a PMU interface for perf queries

2017-05-18 Thread Dmitry Rogozhkin
On 5/18/2017 2:46 AM, Chris Wilson wrote: The first goal is to be able to measure GPU (and invidual ring) busyness without having to poll registers from userspace. (Which not only incurs holding the forcewake lock indefinitely, perturbing the system, but also runs the risk of hanging the machin

Re: [Intel-gfx] [PATCH 24/24] RFC drm/i915: Expose a PMU interface for perf queries

2017-05-19 Thread Dmitry Rogozhkin
On 5/19/2017 1:01 AM, Chris Wilson wrote: On Thu, May 18, 2017 at 04:48:47PM -0700, Dmitry Rogozhkin wrote: On 5/18/2017 2:46 AM, Chris Wilson wrote: The first goal is to be able to measure GPU (and invidual ring) busyness without having to poll registers from userspace. (Which not only

[Intel-gfx] [PATCH igt] benchmarks/gem_exec_nop: fix engines selection

2017-11-20 Thread Dmitry Rogozhkin
Code on loop() function shadowed function parameter which led to inability to try out different engines in the test: we always loaded RCS0. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103804 Signed-off-by: Dmitry Rogozhkin Cc: Chris Wilson --- benchmarks/gem_exec_nop.c | 6 +++--- 1

[Intel-gfx] [RFC 1/2] drm/i915/pmu: reorder function to suite next patch

2017-08-15 Thread Dmitry Rogozhkin
This patch is doing nover except reordering functions to highlight changes in the next patch. Change-Id: I0cd298780503ae8f6f8035b86c59fc8b5191356b Signed-off-by: Dmitry Rogozhkin Cc: Tvrtko Ursulin Cc: Peter Zijlstra --- drivers/gpu/drm/i915/i915_pmu.c | 180

[Intel-gfx] [RFC 0/2] Support perf stat with i915 PMU

2017-08-15 Thread Dmitry Rogozhkin
g now comparing to Tvrtko's patches. Next patches adds fixes according to PMU API comments and clarifications from PMU aware engineers. Cc: Tvrtko Ursulin Cc: Peter Zijlstra Dmitry Rogozhkin (2): drm/i915/pmu: reorder function to suite next patch drm/i915/pmu: serve global events and su

[Intel-gfx] [RFC v1 2/2] drm/i915/pmu: serve global events and support perf stat

2017-08-17 Thread Dmitry Rogozhkin
.busy_stats a refcounter to avoid busy stats going away with some deleted event. Change-Id: I7d1abe747a4399196e72253f7b66441a6528dbee Signed-off-by: Dmitry Rogozhkin Cc: Tvrtko Ursulin Cc: Peter Zijlstra --- drivers/gpu/drm/i915/i915_pmu.c | 37 --

[Intel-gfx] [RFC v1 1/2] drm/i915/pmu: reorder function to suite next patch

2017-08-17 Thread Dmitry Rogozhkin
This patch is doing nover except reordering functions to highlight changes in the next patch. Change-Id: I0cd298780503ae8f6f8035b86c59fc8b5191356b Signed-off-by: Dmitry Rogozhkin Cc: Tvrtko Ursulin Cc: Peter Zijlstra --- drivers/gpu/drm/i915/i915_pmu.c | 180

[Intel-gfx] [RFC v1 0/2] Support perf stat with i915 PMU

2017-08-17 Thread Dmitry Rogozhkin
g now comparing to Tvrtko's patches. Next patches adds fixes according to PMU API comments and clarifications from PMU aware engineers. v1: make busy_stats refcounted instead of the whole pmu Dmitry Rogozhkin (2): drm/i915/pmu: reorder function to suite next patch drm/i915/pmu: serve glo

[Intel-gfx] [RFC v2 1/3] drm/i915/pmu: reorder function to suite next patch

2017-08-23 Thread Dmitry Rogozhkin
This patch is doing nover except reordering functions to highlight changes in the next patch. Change-Id: I0cd298780503ae8f6f8035b86c59fc8b5191356b Signed-off-by: Dmitry Rogozhkin Cc: Tvrtko Ursulin Cc: Peter Zijlstra --- drivers/gpu/drm/i915/i915_pmu.c | 180

[Intel-gfx] [RFC v2 0/3] Support perf stat with i915 PMU

2017-08-23 Thread Dmitry Rogozhkin
erf-driver level sampling. Cc: Tvrtko Ursulin Cc: Chris Wilson Cc: Peter Zijlstra Dmitry Rogozhkin (3): drm/i915/pmu: reorder function to suite next patch drm/i915/pmu: serve global events and support perf stat drm/i915/pmu: deny perf driver level sampling of i915 PMU drivers/gp

[Intel-gfx] [RFC v2 2/3] drm/i915/pmu: serve global events and support perf stat

2017-08-23 Thread Dmitry Rogozhkin
MU to avoid multiple events creation of the same type followed by counter aggregation by perf-stat. Change-Id: I7d1abe747a4399196e72253f7b66441a6528dbee Signed-off-by: Dmitry Rogozhkin Cc: Tvrtko Ursulin Cc: Peter Zijlstra --- drivers/gpu/drm/i915/i915_pmu.c | 71

[Intel-gfx] [RFC v2 3/3] drm/i915/pmu: deny perf driver level sampling of i915 PMU

2017-08-23 Thread Dmitry Rogozhkin
gned-off-by: Dmitry Rogozhkin Cc: Tvrtko Ursulin Cc: Chris Wilson Cc: Peter Zijlstra --- drivers/gpu/drm/i915/i915_pmu.c | 89 ++--- 1 file changed, 4 insertions(+), 85 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_pmu.c b/drivers/gpu/drm/i915/i915_pmu

[Intel-gfx] [RFC i-g-t] tests/perf_pmu: test i915 RFC PMU

2017-08-24 Thread Dmitry Rogozhkin
initialization * single: verify that BUSY metrics work for each engine * parallel: verify that parallel requests for metrics do not conflict Signed-off-by: Dmitry Rogozhkin Cc: Tvrtko Ursulin Cc: Chris Wilson --- tests/Makefile.sources | 1 + tests/perf_pmu.c | 546

[Intel-gfx] [RFC v3 2/3] drm/i915/pmu: serve global events and support perf stat

2017-08-30 Thread Dmitry Rogozhkin
fect of CPU status tracking. Change-Id: I7d1abe747a4399196e72253f7b66441a6528dbee Signed-off-by: Dmitry Rogozhkin Cc: Tvrtko Ursulin Cc: Peter Zijlstra cpumask Change-Id: I145f59240b75f2b703e0531ec81af6cd05aae95c Signed-off-by: Dmitry Rogozhkin --- drivers/gpu/drm/i915/i915_drv.h | 19 +++--- driver

[Intel-gfx] [RFC v3 3/3] drm/i915/pmu: deny perf driver level sampling of i915 PMU

2017-08-30 Thread Dmitry Rogozhkin
gned-off-by: Dmitry Rogozhkin Cc: Tvrtko Ursulin Cc: Chris Wilson Cc: Peter Zijlstra --- drivers/gpu/drm/i915/i915_pmu.c | 89 ++--- 1 file changed, 4 insertions(+), 85 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_pmu.c b/drivers/gpu/drm/i915/i915_pmu

[Intel-gfx] [RFC v3 1/3] drm/i915/pmu: reorder function to suite next patch

2017-08-30 Thread Dmitry Rogozhkin
This patch is doing nover except reordering functions to highlight changes in the next patch. Change-Id: I0cd298780503ae8f6f8035b86c59fc8b5191356b Signed-off-by: Dmitry Rogozhkin Cc: Tvrtko Ursulin Cc: Peter Zijlstra --- drivers/gpu/drm/i915/i915_pmu.c | 180

[Intel-gfx] [RFC v3 0/3] Support perf stat with i915 PMU

2017-08-30 Thread Dmitry Rogozhkin
erf-driver level sampling. v3: Add CPUs online/offline tracking to form cpumask. Cc: Tvrtko Ursulin Cc: Chris Wilson Cc: Peter Zijlstra Dmitry Rogozhkin (3): drm/i915/pmu: reorder function to suite next patch drm/i915/pmu: serve global events and support perf stat drm/i915/pmu: deny p

[Intel-gfx] [RFC i-g-t v1] tests/perf_pmu: test i915 RFC PMU

2017-08-30 Thread Dmitry Rogozhkin
initialization * single: verify that BUSY metrics work for each engine * parallel: verify that parallel requests for metrics do not conflict * cpu_online: verify PMU context migration on CPUs going online/offline v1: add cpu_online test Signed-off-by: Dmitry Rogozhkin Cc: Tvrtko Ursulin Cc: Chris

[Intel-gfx] [RFC v4 1/5] drm/i915/pmu: reorder function to suite next patch

2017-09-01 Thread Dmitry Rogozhkin
This patch is doing nover except reordering functions to highlight changes in the next patch. Change-Id: I0cd298780503ae8f6f8035b86c59fc8b5191356b Signed-off-by: Dmitry Rogozhkin Cc: Tvrtko Ursulin Cc: Peter Zijlstra --- drivers/gpu/drm/i915/i915_pmu.c | 180

[Intel-gfx] [RFC v4 4/5] drm/i915/pmu: introduce refcounting of event subscriptions

2017-09-01 Thread Dmitry Rogozhkin
are other subscribers for this event. Change-Id: I0d787f5feab988ad3c8af6d7ad70fb26d5839263 Signed-off-by: Dmitry Rogozhkin Cc: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/i915_pmu.c | 38 ++--- drivers/gpu/drm/i915/intel_ri

[Intel-gfx] [RFC v4 5/5] drm/i915/pmu: deny perf driver level sampling of i915 PMU

2017-09-01 Thread Dmitry Rogozhkin
gned-off-by: Dmitry Rogozhkin Cc: Tvrtko Ursulin Cc: Chris Wilson Cc: Peter Zijlstra --- drivers/gpu/drm/i915/i915_pmu.c | 89 ++--- 1 file changed, 4 insertions(+), 85 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_pmu.c b/drivers/gpu/drm/i915/i915_pmu

[Intel-gfx] [RFC v4 0/5] Support perf stat with i915 PMU

2017-09-01 Thread Dmitry Rogozhkin
erf-driver level sampling. v3: Add CPUs online/offline tracking to form cpumask. v4: Add i915_pmu_enable_info debugfs entry. Introduce refcounting of event subscriptions. Dmitry Rogozhkin (5): drm/i915/pmu: reorder function to suite next patch drm/i915/pmu: serve global events and support

[Intel-gfx] [RFC v4 2/5] drm/i915/pmu: serve global events and support perf stat

2017-09-01 Thread Dmitry Rogozhkin
fect of CPU status tracking. Change-Id: I7d1abe747a4399196e72253f7b66441a6528dbee Signed-off-by: Dmitry Rogozhkin Cc: Tvrtko Ursulin Cc: Peter Zijlstra cpumask Change-Id: I145f59240b75f2b703e0531ec81af6cd05aae95c Signed-off-by: Dmitry Rogozhkin --- drivers/gpu/drm/i915/i915_drv.h | 19 +++--- driver

[Intel-gfx] [RFC v4 3/5] drm/i915/pmu: introduce i915_pmu_enable_info debugfs entry

2017-09-01 Thread Dmitry Rogozhkin
With the exposure of i915 PMU event enabling mask we will be able to implement IGT tests to see whether we properly handle events enabling/disabling on multiple parallel consumers. Change-Id: I3561e48cd27bc2a19424cf7b6949fadb2a77ab20 Signed-off-by: Dmitry Rogozhkin Cc: Tvrtko Ursulin

[Intel-gfx] [RFC i-g-t v1] tests/perf_pmu: test i915 RFC PMU

2017-09-01 Thread Dmitry Rogozhkin
initialization * single: verify that BUSY metrics work for each engine * parallel: verify that parallel requests for metrics do not conflict * cpu_online: verify PMU context migration on CPUs going online/offline v1: add cpu_online test Signed-off-by: Dmitry Rogozhkin Cc: Tvrtko Ursulin Cc: Chris

[Intel-gfx] [RFC i-g-t v2] tests/perf_pmu: test i915 RFC PMU

2017-09-01 Thread Dmitry Rogozhkin
metrics do not conflict * cpu_online: verify PMU context migration on CPUs going online/offline v1: add cpu_online test v2: add enable and frequency tests Signed-off-by: Dmitry Rogozhkin Cc: Tvrtko Ursulin Cc: Chris Wilson --- tests/Makefile.sources | 1 + tests/perf_pmu.c | 824

[Intel-gfx] [RFC v4 1/5] drm/i915/pmu: reorder function to suite next patch

2017-09-01 Thread Dmitry Rogozhkin
This patch is doing nover except reordering functions to highlight changes in the next patch. Change-Id: I0cd298780503ae8f6f8035b86c59fc8b5191356b Signed-off-by: Dmitry Rogozhkin Cc: Tvrtko Ursulin Cc: Peter Zijlstra --- drivers/gpu/drm/i915/i915_pmu.c | 180

[Intel-gfx] [RFC v4 3/5] drm/i915/pmu: introduce i915_pmu_enable_info debugfs entry

2017-09-01 Thread Dmitry Rogozhkin
With the exposure of i915 PMU event enabling mask we will be able to implement IGT tests to see whether we properly handle events enabling/disabling on multiple parallel consumers. Change-Id: I3561e48cd27bc2a19424cf7b6949fadb2a77ab20 Signed-off-by: Dmitry Rogozhkin Cc: Tvrtko Ursulin

[Intel-gfx] [RFC v4 4/5] drm/i915/pmu: introduce refcounting of event subscriptions

2017-09-01 Thread Dmitry Rogozhkin
are other subscribers for this event. Change-Id: I0d787f5feab988ad3c8af6d7ad70fb26d5839263 Signed-off-by: Dmitry Rogozhkin Cc: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/i915_pmu.c | 38 ++--- drivers/gpu/drm/i915/intel_ri

[Intel-gfx] [RFC v4 0/5] Support perf stat with i915 PMU

2017-09-01 Thread Dmitry Rogozhkin
erf-driver level sampling. v3: Add CPUs online/offline tracking to form cpumask. v4: Add i915_pmu_enable_info debugfs entry. Introduce refcounting of event subscriptions. Cc: Tvrtko Ursulin Cc: Chris Wilson Cc: Peter Zijlstra Dmitry Rogozhkin (5): drm/i915/pmu: reorder function to

[Intel-gfx] [RFC v4 2/5] drm/i915/pmu: serve global events and support perf stat

2017-09-01 Thread Dmitry Rogozhkin
fect of CPU status tracking. Change-Id: I7d1abe747a4399196e72253f7b66441a6528dbee Signed-off-by: Dmitry Rogozhkin Cc: Tvrtko Ursulin Cc: Peter Zijlstra cpumask Change-Id: I145f59240b75f2b703e0531ec81af6cd05aae95c Signed-off-by: Dmitry Rogozhkin --- drivers/gpu/drm/i915/i915_drv.h | 19 +++--- driver

[Intel-gfx] [RFC v4 5/5] drm/i915/pmu: deny perf driver level sampling of i915 PMU

2017-09-01 Thread Dmitry Rogozhkin
gned-off-by: Dmitry Rogozhkin Cc: Tvrtko Ursulin Cc: Chris Wilson Cc: Peter Zijlstra --- drivers/gpu/drm/i915/i915_pmu.c | 89 ++--- 1 file changed, 4 insertions(+), 85 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_pmu.c b/drivers/gpu/drm/i915/i915_pmu