[Intel-gfx] [PATCH v13 0/6] drm/i915: expose RCS topology to userspace

2018-02-15 Thread Lionel Landwerlin
Rb on patches 5 & 6. Cheers, Lionel Landwerlin (6): drm/i915: store all subslice masks drm/i915/debugfs: reuse max slice/subslices already stored in sseu drm/i915/debugfs: add rcs topology entry drm/i915: add rcs topology to error state drm/i915: add query uAPI drm/i915: expose rcs

[Intel-gfx] [PATCH v13 1/6] drm/i915: store all subslice masks

2018-02-15 Thread Lionel Landwerlin
setting eu_mask on CHV (Tvrtko) Reformat debug prints for subslices (Tvrtko) v4: Change eu_mask helper into sseu_set_eus() (Tvrtko) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_debugfs.c | 25 ++-- drivers/gpu/drm/i915/i915_drv.c

Re: [Intel-gfx] [PATCH 15/20] drm/i915/icl: Added ICL 11 slice, subslice and EU fuse detection

2018-02-13 Thread Lionel Landwerlin
Checked the documentation. It looks good to me : Reviewed-by: Lionel Landwerlin On 13/02/18 16:37, Mika Kuoppala wrote: From: Kelvin Gardiner This patch adds support to detect ICL, slice, subslice and EU fuse settings. Add addresses for ICL 11 slice, subslice and EU fuses registers. These

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Reduce context HW ID lifetime

2018-02-12 Thread Lionel Landwerlin
On 12/02/18 11:08, Chris Wilson wrote: Quoting Lionel Landwerlin (2018-02-12 11:00:10) On 12/02/18 10:41, Chris Wilson wrote: Quoting Lionel Landwerlin (2018-02-12 10:37:52) On 09/02/18 20:53, Chris Wilson wrote: Quoting Lionel Landwerlin (2018-02-09 17:47:44) Hey Chris, From the i915

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Reduce context HW ID lifetime

2018-02-12 Thread Lionel Landwerlin
On 12/02/18 10:41, Chris Wilson wrote: Quoting Lionel Landwerlin (2018-02-12 10:37:52) On 09/02/18 20:53, Chris Wilson wrote: Quoting Lionel Landwerlin (2018-02-09 17:47:44) Hey Chris, From the i915/perf point of view, I'm fine with this change. The pinning of the hw_id when monitor

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Reduce context HW ID lifetime

2018-02-12 Thread Lionel Landwerlin
On 09/02/18 20:53, Chris Wilson wrote: Quoting Lionel Landwerlin (2018-02-09 17:47:44) Hey Chris, From the i915/perf point of view, I'm fine with this change. The pinning of the hw_id when monitoring a single context (with OA) doesn't break the existing userspace (I can only thi

Re: [Intel-gfx] [PATCH v2] drm/i915/icl: Update subslice define for ICL 11

2018-02-09 Thread Lionel Landwerlin
On 09/02/18 17:44, Oscar Mateo wrote: On 02/08/2018 08:35 AM, Lionel Landwerlin wrote: On 11/01/18 18:25, Oscar Mateo wrote: From: Kelvin Gardiner ICL 11 has a greater number of maximum subslices. This patch reflects this. v2: GEN11 updates to MCR_SELECTOR (Oscar) Bspec: 21139 BSpec

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Reduce context HW ID lifetime

2018-02-09 Thread Lionel Landwerlin
y the kernel or by perf). Signed-off-by: Chris Wilson Cc: Lionel Landwerlin Cc: Oscar Mateo Cc: Mika Kuoppala Cc: Michel Thierry --- drivers/gpu/drm/i915/i915_debugfs.c | 5 +- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/dr

Re: [Intel-gfx] [PATCH v2] drm/i915/icl: Update subslice define for ICL 11

2018-02-08 Thread Lionel Landwerlin
On 11/01/18 18:25, Oscar Mateo wrote: From: Kelvin Gardiner ICL 11 has a greater number of maximum subslices. This patch reflects this. v2: GEN11 updates to MCR_SELECTOR (Oscar) Bspec: 21139 BSpec: 21108 Reviewed-by: Daniele Ceraolo Spurio (v1) Signed-off-by: Kelvin Gardiner Signed-off-by:

Re: [Intel-gfx] [PATCH] drm/i915/snb+: Remove incorrect forcewake check in debugfs/i915_drpc_info

2018-02-08 Thread Lionel Landwerlin
eak Tested-by: Lionel Landwerlin On CNL. --- drivers/gpu/drm/i915/i915_debugfs.c | 13 - 1 file changed, 13 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 2bdce9fea671..eff5548ec093 100644 --- a/drivers/gpu/drm/i915/i915_

Re: [Intel-gfx] [PATCH] drm/i915: Fix kerneldoc warnings for i915_gem_request

2018-02-08 Thread Lionel Landwerlin
On 08/02/18 11:14, Chris Wilson wrote: drivers/gpu/drm/i915/i915_gem_request.c:941: warning: No description found for parameter 'write' Signed-off-by: Chris Wilson Reviewed-by: Lionel Landwerlin --- drivers/gpu/drm/i915/i915_gem_request.c | 2 +- 1 file changed, 1 inser

Re: [Intel-gfx] [PATCH] drm/i915: Remove lost comment from i915_gem_context

2018-02-08 Thread Lionel Landwerlin
'file_priv' Signed-off-by: Chris Wilson Reviewed-by: Lionel Landwerlin --- drivers/gpu/drm/i915/i915_gem_context.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem_context.c b/drivers/gpu/drm/i915/i915_gem_context.c index dd9efb9d0e0b..7b3e9b41b31b

Re: [Intel-gfx] [PATCH] drm/i915: Fix kerneldoc warnings for intel_ringbuffer

2018-02-08 Thread Lionel Landwerlin
r.c:741: warning: No description found for parameter 'cs' Signed-off-by: Chris Wilson Reviewed-by: Lionel Landwerlin --- drivers/gpu/drm/i915/intel_ringbuffer.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_ringbu

Re: [Intel-gfx] [PATCH] drm/i915: Fix kerneldoc warnings for i915_gem_userptr

2018-02-08 Thread Lionel Landwerlin
r.c:761: warning: No description found for parameter 'file' Signed-off-by: Chris Wilson Reviewed-by: Lionel Landwerlin --- drivers/gpu/drm/i915/i915_gem_userptr.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem_userptr.c b/drivers/g

Re: [Intel-gfx] [PATCH] drm/i915: Fix kerneldoc warnings for i915_gpu_error

2018-02-08 Thread Lionel Landwerlin
I'm not super familiar with all the documentation stuff, but this looks good to me. Reviewed-by: Lionel Landwerlin On 08/02/18 11:11, Chris Wilson wrote: drivers/gpu/drm/i915/i915_gpu_error.c:1815: warning: No description found for parameter 'dev_priv' drivers/gpu/drm/i915/i

Re: [Intel-gfx] [PATCH v2 2/2] drm/i915/perf: Fix compiler warning for string truncation

2018-02-08 Thread Lionel Landwerlin
-truncation] v2: strlcpy Fixes: 95690a02fb5d ("drm/i915/perf: enable perf support on CNL") Signed-off-by: Chris Wilson Cc: Lionel Landwerlin Cc: Matthew Auld Reviewed-by: Lionel Landwerlin --- drivers/gpu/drm/i915/i915_oa_cnl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletion

Re: [Intel-gfx] [PATCH v2 1/2] drm/i915/perf: Fix compiler warning for string truncation

2018-02-08 Thread Lionel Landwerlin
=stringop-truncation] v2: strlcpy Fixes: 4407eaa9b0cc ("drm/i915/perf: add support for Coffeelake GT3") Signed-off-by: Chris Wilson Cc: Lionel Landwerlin Reviewed-by: Lionel Landwerlin Cc: Matthew Auld --- drivers/gpu/drm/i915/i915_oa_cflgt3.c | 4 ++-- 1 file changed, 2 insert

Re: [Intel-gfx] [PATCH 1/2] drm/i915/perf: Fix compiler warning for string truncation

2018-02-08 Thread Lionel Landwerlin
efore terminating nul copying 36 bytes from a string of the same length [-Werror=stringop-truncation] Fixes: 4407eaa9b0cc ("drm/i915/perf: add support for Coffeelake GT3") Signed-off-by: Chris Wilson Cc: Lionel Landwerlin Cc: Matthew Auld --- drivers/gpu/drm/i915/i915_oa_cflgt3.c

Re: [Intel-gfx] [PATCH] Revert "drm/i915: mark all device info struct with __initconst"

2018-01-31 Thread Lionel Landwerlin
On 31/01/18 02:15, Rodrigo Vivi wrote: On Tue, Jan 30, 2018 at 08:44:46AM +, Jani Nikula wrote: On Mon, 29 Jan 2018, Jani Nikula wrote: On Mon, 29 Jan 2018, Lionel Landwerlin wrote: On 29/01/18 09:02, Chris Wilson wrote: Quoting Lionel Landwerlin (2018-01-29 08:33:46) This reverts

Re: [Intel-gfx] [PATCH v11 5/6] drm/i915: add query uAPI

2018-01-30 Thread Lionel Landwerlin
On 30/01/18 15:01, Lahtinen, Joonas wrote: On Mon, 2018-01-29 at 16:24 +, Lionel Landwerlin wrote: Thanks all, I don't really read much opposition to the current patch series. If anything we could actually want to do more it seems. It would be good to have the green light and land

Re: [Intel-gfx] [PATCH v12 6/8] drm/i915: expose rcs topology through query uAPI

2018-01-30 Thread Lionel Landwerlin
Thanks Sagar, fixed locally. On 30/01/18 09:08, Sagar Arun Kamble wrote: On 1/29/2018 10:01 PM, Lionel Landwerlin wrote: With the introduction of asymmetric slices in CNL, we cannot rely on the previous SUBSLICE_MASK getparam to tell userspace what subslices are available. Here we introduce

[Intel-gfx] [PATCH v12 7/8] RFC: drm/i915: expose chipset/driver properties through query uAPI

2018-01-29 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- drivers/gpu/drm/i915/i915_query.c | 135 ++ drivers/gpu/drm/i915/i915_query.h | 5 ++ include/uapi/drm/i915_drm.h | 76 + 3 files changed, 216 insertions(+) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH v12 6/8] drm/i915: expose rcs topology through query uAPI

2018-01-29 Thread Lionel Landwerlin
uapi comments style to match the coding style (Lionel) v9: Fix error in comment about computation of enabled subslice (Tvrtko) Signed-off-by: Lionel Landwerlin --- drivers/gpu/drm/i915/i915_query.c | 110 ++ include/uapi/drm/i915_drm

[Intel-gfx] [PATCH v12 3/8] drm/i915/debugfs: add rcs topology entry

2018-01-29 Thread Lionel Landwerlin
lice2: 8 EUs (0xff) subslice3: 0 EUs (0x0) v2: Reformat debugfs printing (Tvrtko) Use the new EU mask helper (Tvrtko) v3: Move printing code to intel_device_info.c to be shared with error state (Michal) Suggested-by: Chris Wilson Signed-off-by: Lionel Landwerlin Reviewed-by: T

[Intel-gfx] [PATCH v12 4/8] drm/i915: add rcs topology to error state

2018-01-29 Thread Lionel Landwerlin
This might be useful information for developers looking at an error state. v2: Place topology towards the end of the error state (Chris) v3: Reuse common printing code (Michal) v4: Make this a one-liner (Chris) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm

[Intel-gfx] [PATCH v12 1/8] drm/i915: store all subslice masks

2018-01-29 Thread Lionel Landwerlin
setting eu_mask on CHV (Tvrtko) Reformat debug prints for subslices (Tvrtko) v4: Change eu_mask helper into sseu_set_eus() (Tvrtko) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_debugfs.c | 25 ++-- drivers/gpu/drm/i915/i915_drv.c

[Intel-gfx] [PATCH v12 5/8] drm/i915: add query uAPI

2018-01-29 Thread Lionel Landwerlin
the coding style (Lionel) v7: Add i915_query.h (Joonas) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/i915_drv.c | 2 ++ drivers/gpu/drm/i915/i915_query.c | 67 +++ drivers

[Intel-gfx] [PATCH v12 2/8] drm/i915/debugfs: reuse max slice/subslices already stored in sseu

2018-01-29 Thread Lionel Landwerlin
Now that we have that information in topology fields, let's just reused it. v2: Style tweaks (Tvrtko) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_debugfs.c | 27 +++ 1 file changed, 11 insertions(+), 16 deletions(-)

[Intel-gfx] [PATCH v12 8/8] RFC: drm/i915: reuse new chipset/driver query in getparam

2018-01-29 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- drivers/gpu/drm/i915/i915_drv.c | 212 ++-- 1 file changed, 119 insertions(+), 93 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index ebb2e4241cf7..cc0342e8a400 100644 --- a

[Intel-gfx] [PATCH v12 0/8] drm/i915: expose RCS topology to userspace

2018-01-29 Thread Lionel Landwerlin
device in one ioctl (Chris' suggestion). Would be great to land !RFC if people are okay with it. Cheers, Lionel Landwerlin (8): drm/i915: store all subslice masks drm/i915/debugfs: reuse max slice/subslices already stored in sseu drm/i915/debugfs: add rcs topology entry drm/i915: ad

Re: [Intel-gfx] [PATCH v11 5/6] drm/i915: add query uAPI

2018-01-29 Thread Lionel Landwerlin
On 24/01/18 15:14, Chris Wilson wrote: Quoting Tvrtko Ursulin (2018-01-24 12:03:46) On 23/01/2018 14:17, Lionel Landwerlin wrote: Hi all, I've been trying to expose some information to userspace about the fused parts of the GPU. This is the 4th attempt at getting this upstream, here ar

Re: [Intel-gfx] [PATCH] Revert "drm/i915: mark all device info struct with __initconst"

2018-01-29 Thread Lionel Landwerlin
On 29/01/18 09:02, Chris Wilson wrote: Quoting Lionel Landwerlin (2018-01-29 08:33:46) This reverts commit 5b54eddd3920e9f6f1a6d972454baf350cbae77e. Conflicts: drivers/gpu/drm/i915/i915_pci.c Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104805 Fixes: 5b54eddd3920 (&quo

[Intel-gfx] [PATCH] Revert "drm/i915: mark all device info struct with __initconst"

2018-01-29 Thread Lionel Landwerlin
This reverts commit 5b54eddd3920e9f6f1a6d972454baf350cbae77e. Conflicts: drivers/gpu/drm/i915/i915_pci.c Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104805 Signed-off-by: Lionel Landwerlin --- drivers/gpu/drm/i915/i915_pci.c | 96 - 1

Re: [Intel-gfx] [PATCH v11 5/6] drm/i915: add query uAPI

2018-01-23 Thread Lionel Landwerlin
lly wouldn't like to rewrite this one more time and get turned down because this isn't to the taste of one of the reviewer. So my question is : Is everybody happy with what Joonas is proposing? Anybody in favor of having a generic mechanism? Thanks a lot, - Lionel On 22/01/18 08:21, Lione

[Intel-gfx] [PATCH v11 6/6] drm/i915: expose rcs topology through query uAPI

2018-01-22 Thread Lionel Landwerlin
uapi comments style to match the coding style (Lionel) v9: Fix error in comment about computation of enabled subslice (Tvrtko) Signed-off-by: Lionel Landwerlin --- drivers/gpu/drm/i915/i915_query.c | 110 ++ include/uapi/drm/i915_drm

[Intel-gfx] [PATCH v11 0/6] drm/i915: expose RCS topology to userspace

2018-01-22 Thread Lionel Landwerlin
Hi all, Just another update with only one change to the last patch (fixing a comment). Cheers, Lionel Landwerlin (6): drm/i915: store all subslice masks drm/i915/debugfs: reuse max slice/subslices already stored in sseu drm/i915/debugfs: add rcs topology entry drm/i915: add rcs topology

[Intel-gfx] [PATCH v11 4/6] drm/i915: add rcs topology to error state

2018-01-22 Thread Lionel Landwerlin
This might be useful information for developers looking at an error state. v2: Place topology towards the end of the error state (Chris) v3: Reuse common printing code (Michal) v4: Make this a one-liner (Chris) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm

[Intel-gfx] [PATCH v11 2/6] drm/i915/debugfs: reuse max slice/subslices already stored in sseu

2018-01-22 Thread Lionel Landwerlin
Now that we have that information in topology fields, let's just reused it. v2: Style tweaks (Tvrtko) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_debugfs.c | 27 +++ 1 file changed, 11 insertions(+), 16 deletions(-)

[Intel-gfx] [PATCH v11 3/6] drm/i915/debugfs: add rcs topology entry

2018-01-22 Thread Lionel Landwerlin
lice2: 8 EUs (0xff) subslice3: 0 EUs (0x0) v2: Reformat debugfs printing (Tvrtko) Use the new EU mask helper (Tvrtko) v3: Move printing code to intel_device_info.c to be shared with error state (Michal) Suggested-by: Chris Wilson Signed-off-by: Lionel Landwerlin Reviewed-by: T

[Intel-gfx] [PATCH v11 1/6] drm/i915: store all subslice masks

2018-01-22 Thread Lionel Landwerlin
setting eu_mask on CHV (Tvrtko) Reformat debug prints for subslices (Tvrtko) v4: Change eu_mask helper into sseu_set_eus() (Tvrtko) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_debugfs.c | 25 ++-- drivers/gpu/drm/i915/i915_drv.c

[Intel-gfx] [PATCH v11 5/6] drm/i915: add query uAPI

2018-01-22 Thread Lionel Landwerlin
the coding style (Lionel) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/i915_drv.c | 1 + drivers/gpu/drm/i915/i915_drv.h | 3 ++ drivers/gpu/drm/i915/i915_query.c | 67

Re: [Intel-gfx] [PATCH v10 6/6] drm/i915: expose rcs topology through query uAPI

2018-01-19 Thread Lionel Landwerlin
On 19/01/18 14:24, Tvrtko Ursulin wrote: On 19/01/2018 13:22, Lionel Landwerlin wrote: With the introduction of asymmetric slices in CNL, we cannot rely on the previous SUBSLICE_MASK getparam to tell userspace what subslices are available. Here we introduce a more detailed way of querying the

[Intel-gfx] [PATCH v10 2/6] drm/i915/debugfs: reuse max slice/subslices already stored in sseu

2018-01-19 Thread Lionel Landwerlin
Now that we have that information in topology fields, let's just reused it. v2: Style tweaks (Tvrtko) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_debugfs.c | 27 +++ 1 file changed, 11 insertions(+), 16 deletions(-)

[Intel-gfx] [PATCH v10 6/6] drm/i915: expose rcs topology through query uAPI

2018-01-19 Thread Lionel Landwerlin
uapi comments style to match the coding style (Lionel) Signed-off-by: Lionel Landwerlin Cc: Joonas Lahtinen --- drivers/gpu/drm/i915/i915_query.c | 110 ++ include/uapi/drm/i915_drm.h | 71 2 files changed, 181 insertions(+)

[Intel-gfx] [PATCH v10 0/6] drm/i915: expose RCS topology to userspace

2018-01-19 Thread Lionel Landwerlin
Hi all, This is hopefully the last iteration with a last tweak on comments for coding style. Cheers, Lionel Landwerlin (6): drm/i915: store all subslice masks drm/i915/debugfs: reuse max slice/subslices already stored in sseu drm/i915/debugfs: add rcs topology entry drm/i915: add rcs

[Intel-gfx] [PATCH v10 5/6] drm/i915: add query uAPI

2018-01-19 Thread Lionel Landwerlin
the coding style (Lionel) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin Cc: Joonas Lahtinen --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/i915_drv.c | 1 + drivers/gpu/drm/i915/i915_drv.h | 3 ++ drivers/gpu/drm/i915/i915_query.c | 67

[Intel-gfx] [PATCH v10 4/6] drm/i915: add rcs topology to error state

2018-01-19 Thread Lionel Landwerlin
This might be useful information for developers looking at an error state. v2: Place topology towards the end of the error state (Chris) v3: Reuse common printing code (Michal) v4: Make this a one-liner (Chris) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm

[Intel-gfx] [PATCH v10 1/6] drm/i915: store all subslice masks

2018-01-19 Thread Lionel Landwerlin
setting eu_mask on CHV (Tvrtko) Reformat debug prints for subslices (Tvrtko) v4: Change eu_mask helper into sseu_set_eus() (Tvrtko) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_debugfs.c | 25 ++-- drivers/gpu/drm/i915/i915_drv.c

[Intel-gfx] [PATCH v10 3/6] drm/i915/debugfs: add rcs topology entry

2018-01-19 Thread Lionel Landwerlin
lice2: 8 EUs (0xff) subslice3: 0 EUs (0x0) v2: Reformat debugfs printing (Tvrtko) Use the new EU mask helper (Tvrtko) v3: Move printing code to intel_device_info.c to be shared with error state (Michal) Suggested-by: Chris Wilson Signed-off-by: Lionel Landwerlin Reviewed-by: T

Re: [Intel-gfx] [PATCH v9 6/6] drm/i915: expose rcs topology through query uAPI

2018-01-18 Thread Lionel Landwerlin
On 18/01/18 15:36, Chris Wilson wrote: Quoting Lionel Landwerlin (2018-01-18 15:22:27) On 18/01/18 15:18, Chris Wilson wrote: Quoting Lionel Landwerlin (2018-01-18 14:45:31) +static int query_slice_info(struct drm_i915_private *dev_priv, + struct drm_i915_query_item

Re: [Intel-gfx] [PATCH v9 6/6] drm/i915: expose rcs topology through query uAPI

2018-01-18 Thread Lionel Landwerlin
On 18/01/18 15:18, Chris Wilson wrote: Quoting Lionel Landwerlin (2018-01-18 14:45:31) +static int query_slice_info(struct drm_i915_private *dev_priv, + struct drm_i915_query_item *query_item) +{ + const struct sseu_dev_info *sseu = &INTEL_INFO(dev_priv)-&

Re: [Intel-gfx] [PATCH v8 6/6] drm/i915: expose rcs topology through query uAPI

2018-01-18 Thread Lionel Landwerlin
On 18/01/18 12:46, Tvrtko Ursulin wrote: On 17/01/2018 15:39, Lionel Landwerlin wrote: With the introduction of asymmetric slices in CNL, we cannot rely on the previous SUBSLICE_MASK getparam to tell userspace what subslices are available. Here we introduce a more detailed way of querying the

[Intel-gfx] [PATCH v9 5/6] drm/i915: add query uAPI

2018-01-18 Thread Lionel Landwerlin
(Chris) Return error on flags field != 0 (Chris) Only copy length back to userspace in drm_i915_query_item (Chris) v4: Use array of functions instead of switch (Chris) v5: More comments in uapi (Tvrtko) Return query item errors in length field (All) Signed-off-by: Lionel Landwerlin

[Intel-gfx] [PATCH v9 4/6] drm/i915: add rcs topology to error state

2018-01-18 Thread Lionel Landwerlin
This might be useful information for developers looking at an error state. v2: Place topology towards the end of the error state (Chris) v3: Reuse common printing code (Michal) v4: Make this a one-liner (Chris) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm

[Intel-gfx] [PATCH v9 6/6] drm/i915: expose rcs topology through query uAPI

2018-01-18 Thread Lionel Landwerlin
itting (Tvrtko) tweak uapi struct/define names (Tvrtko) v5: Replace ALIGN() macro (Chris) v6: Updated uapi comments (Tvrtko) Moved flags != 0 checks into vfuncs (Tvrtko) v7: Use access_ok() before copying anything, to avoid overflows (Chris) Switch BUG_ON() to GEM_WARN_ON() (Tvrtko) Signed-

[Intel-gfx] [PATCH v9 3/6] drm/i915/debugfs: add rcs topology entry

2018-01-18 Thread Lionel Landwerlin
lice2: 8 EUs (0xff) subslice3: 0 EUs (0x0) v2: Reformat debugfs printing (Tvrtko) Use the new EU mask helper (Tvrtko) v3: Move printing code to intel_device_info.c to be shared with error state (Michal) Suggested-by: Chris Wilson Signed-off-by: Lionel Landwerlin Reviewed-by: T

[Intel-gfx] [PATCH v9 2/6] drm/i915/debugfs: reuse max slice/subslices already stored in sseu

2018-01-18 Thread Lionel Landwerlin
Now that we have that information in topology fields, let's just reused it. v2: Style tweaks (Tvrtko) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_debugfs.c | 27 +++ 1 file changed, 11 insertions(+), 16 deletions(-)

[Intel-gfx] [PATCH v9 1/6] drm/i915: store all subslice masks

2018-01-18 Thread Lionel Landwerlin
setting eu_mask on CHV (Tvrtko) Reformat debug prints for subslices (Tvrtko) v4: Change eu_mask helper into sseu_set_eus() (Tvrtko) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_debugfs.c | 25 ++-- drivers/gpu/drm/i915/i915_drv.c

[Intel-gfx] [PATCH v9 0/6] drm/i915: expose RCS topology to userspace

2018-01-18 Thread Lionel Landwerlin
Hi all, This looks like the last iteration :) Cheers, Lionel Landwerlin (6): drm/i915: store all subslice masks drm/i915/debugfs: reuse max slice/subslices already stored in sseu drm/i915/debugfs: add rcs topology entry drm/i915: add rcs topology to error state drm/i915: add query

Re: [Intel-gfx] [PATCH v8 6/6] drm/i915: expose rcs topology through query uAPI

2018-01-17 Thread Lionel Landwerlin
On 17/01/18 15:50, Lionel Landwerlin wrote: On 17/01/18 15:39, Lionel Landwerlin wrote: With the introduction of asymmetric slices in CNL, we cannot rely on the previous SUBSLICE_MASK getparam to tell userspace what subslices are available. Here we introduce a more detailed way of querying the

Re: [Intel-gfx] [PATCH v8 6/6] drm/i915: expose rcs topology through query uAPI

2018-01-17 Thread Lionel Landwerlin
On 17/01/18 15:39, Lionel Landwerlin wrote: With the introduction of asymmetric slices in CNL, we cannot rely on the previous SUBSLICE_MASK getparam to tell userspace what subslices are available. Here we introduce a more detailed way of querying the Gen's GPU topology that doesn't

[Intel-gfx] [PATCH v8 4/6] drm/i915: add rcs topology to error state

2018-01-17 Thread Lionel Landwerlin
This might be useful information for developers looking at an error state. v2: Place topology towards the end of the error state (Chris) v3: Reuse common printing code (Michal) v4: Make this a one-liner (Chris) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm

[Intel-gfx] [PATCH v8 5/6] drm/i915: add query uAPI

2018-01-17 Thread Lionel Landwerlin
(Chris) Return error on flags field != 0 (Chris) Only copy length back to userspace in drm_i915_query_item (Chris) v4: Use array of functions instead of switch (Chris) v5: More comments in uapi (Tvrtko) Return query item errors in length field (All) Signed-off-by: Lionel Landwerlin

[Intel-gfx] [PATCH v8 2/6] drm/i915/debugfs: reuse max slice/subslices already stored in sseu

2018-01-17 Thread Lionel Landwerlin
Now that we have that information in topology fields, let's just reused it. v2: Style tweaks (Tvrtko) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_debugfs.c | 27 +++ 1 file changed, 11 insertions(+), 16 deletions(-)

[Intel-gfx] [PATCH v8 1/6] drm/i915: store all subslice masks

2018-01-17 Thread Lionel Landwerlin
setting eu_mask on CHV (Tvrtko) Reformat debug prints for subslices (Tvrtko) v4: Change eu_mask helper into sseu_set_eus() (Tvrtko) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_debugfs.c | 25 ++-- drivers/gpu/drm/i915/i915_drv.c

[Intel-gfx] [PATCH v8 3/6] drm/i915/debugfs: add rcs topology entry

2018-01-17 Thread Lionel Landwerlin
lice2: 8 EUs (0xff) subslice3: 0 EUs (0x0) v2: Reformat debugfs printing (Tvrtko) Use the new EU mask helper (Tvrtko) v3: Move printing code to intel_device_info.c to be shared with error state (Michal) Suggested-by: Chris Wilson Signed-off-by: Lionel Landwerlin Reviewed-by: T

[Intel-gfx] [PATCH v8 6/6] drm/i915: expose rcs topology through query uAPI

2018-01-17 Thread Lionel Landwerlin
itting (Tvrtko) tweak uapi struct/define names (Tvrtko) v5: Replace ALIGN() macro (Chris) v6: Updated uapi comments (Tvrtko) Moved flags != 0 checks into vfuncs (Tvrtko) Signed-off-by: Lionel Landwerlin --- drivers/gpu/drm/i915/i915_query.c | 105 ++ in

[Intel-gfx] [PATCH v8 0/6] drm/i915: expose RCS topology to userspace

2018-01-17 Thread Lionel Landwerlin
al version ;) Thanks all for the great feedback, Lionel Landwerlin (6): drm/i915: store all subslice masks drm/i915/debugfs: reuse max slice/subslices already stored in sseu drm/i915/debugfs: add rcs topology entry drm/i915: add rcs topology to error state drm/i915: add query uAPI drm/i9

Re: [Intel-gfx] [PATCH v7 5/6] drm/i915: add query uAPI

2018-01-17 Thread Lionel Landwerlin
On 17/01/18 10:10, Tvrtko Ursulin wrote: On 16/01/2018 19:18, Lionel Landwerlin wrote: There are a number of information that are readable from hardware registers and that we would like to make accessible to userspace. One particular example is the topology of the execution units (how are

Re: [Intel-gfx] [PATCH v7 6/6] drm/i915: expose rcs topology through query uAPI

2018-01-17 Thread Lionel Landwerlin
On 16/01/18 21:48, Chris Wilson wrote: Quoting Lionel Landwerlin (2018-01-16 19:18:24) diff --git a/drivers/gpu/drm/i915/i915_query.c b/drivers/gpu/drm/i915/i915_query.c index 51736af7f573..038f292e1f2a 100644 --- a/drivers/gpu/drm/i915/i915_query.c +++ b/drivers/gpu/drm/i915/i915_query.c

Re: [Intel-gfx] [PATCH i-g-t 2/2] tests: add i915 query tests

2018-01-17 Thread Lionel Landwerlin
On 16/01/18 21:34, Chris Wilson wrote: Quoting Lionel Landwerlin (2018-01-16 16:07:28) Signed-off-by: Lionel Landwerlin --- tests/Makefile.sources | 1 + tests/meson.build | 1 + tests/query.c | 268 + 3 files changed, 270

Re: [Intel-gfx] [PATCH i-g-t 2/2] tests: add i915 query tests

2018-01-17 Thread Lionel Landwerlin
On 16/01/18 21:38, Chris Wilson wrote: Quoting Chris Wilson (2018-01-16 21:34:34) Quoting Lionel Landwerlin (2018-01-16 16:07:28) Signed-off-by: Lionel Landwerlin --- tests/Makefile.sources | 1 + tests/meson.build | 1 + tests/query.c | 268

Re: [Intel-gfx] [PATCH v6 6/6] drm/i915: expose rcs topology through query uAPI

2018-01-16 Thread Lionel Landwerlin
On 16/01/18 17:40, Chris Wilson wrote: Quoting Tvrtko Ursulin (2018-01-16 16:22:52) On 16/01/2018 16:02, Lionel Landwerlin wrote: diff --git a/drivers/gpu/drm/i915/i915_query.c b/drivers/gpu/drm/i915/i915_query.c index 6468ca613d27..81367c8224ee 100644 --- a/drivers/gpu/drm/i915/i915_query.c

[Intel-gfx] [PATCH v7 6/6] drm/i915: expose rcs topology through query uAPI

2018-01-16 Thread Lionel Landwerlin
itting (Tvrtko) tweak uapi struct/define names (Tvrtko) v5: Replace ALIGN() macro (Chris) Signed-off-by: Lionel Landwerlin --- drivers/gpu/drm/i915/i915_query.c | 94 +++ include/uapi/drm/i915_drm.h | 68 2 files changed, 162 inser

[Intel-gfx] [PATCH v7 5/6] drm/i915: add query uAPI

2018-01-16 Thread Lionel Landwerlin
(Chris) Return error on flags field != 0 (Chris) Only copy length back to userspace in drm_i915_query_item (Chris) v4: Use array of functions instead of switch (Chris) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm

[Intel-gfx] [PATCH v7 2/6] drm/i915/debugfs: reuse max slice/subslices already stored in sseu

2018-01-16 Thread Lionel Landwerlin
Now that we have that information in topology fields, let's just reused it. v2: Style tweaks (Tvrtko) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_debugfs.c | 27 +++ 1 file changed, 11 insertions(+), 16 deletions(-)

[Intel-gfx] [PATCH v7 4/6] drm/i915: add rcs topology to error state

2018-01-16 Thread Lionel Landwerlin
This might be useful information for developers looking at an error state. v2: Place topology towards the end of the error state (Chris) v3: Reuse common printing code (Michal) v4: Make this a one-liner (Chris) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm

[Intel-gfx] [PATCH v7 3/6] drm/i915/debugfs: add rcs topology entry

2018-01-16 Thread Lionel Landwerlin
lice2: 8 EUs (0xff) subslice3: 0 EUs (0x0) v2: Reformat debugfs printing (Tvrtko) Use the new EU mask helper (Tvrtko) v3: Move printing code to intel_device_info.c to be shared with error state (Michal) Suggested-by: Chris Wilson Signed-off-by: Lionel Landwerlin Reviewed-by: T

[Intel-gfx] [PATCH v7 0/6] drm/i915: expose RCS topology to userspace

2018-01-16 Thread Lionel Landwerlin
A few tweaks following comments from Chris. Cheers, Lionel Landwerlin (6): drm/i915: store all subslice masks drm/i915/debugfs: reuse max slice/subslices already stored in sseu drm/i915/debugfs: add rcs topology entry drm/i915: add rcs topology to error state drm/i915: add query uAPI

[Intel-gfx] [PATCH v7 1/6] drm/i915: store all subslice masks

2018-01-16 Thread Lionel Landwerlin
setting eu_mask on CHV (Tvrtko) Reformat debug prints for subslices (Tvrtko) v4: Change eu_mask helper into sseu_set_eus() (Tvrtko) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_debugfs.c | 25 ++-- drivers/gpu/drm/i915/i915_drv.c

[Intel-gfx] [PATCH i-g-t 2/2] tests: add i915 query tests

2018-01-16 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- tests/Makefile.sources | 1 + tests/meson.build | 1 + tests/query.c | 268 + 3 files changed, 270 insertions(+) create mode 100644 tests/query.c diff --git a/tests/Makefile.sources b/tests

[Intel-gfx] [PATCH i-g-t 1/2] include: bump drm uAPI headers

2018-01-16 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- include/drm-uapi/i915_drm.h | 126 lib/igt_perf.h | 7 --- 2 files changed, 126 insertions(+), 7 deletions(-) diff --git a/include/drm-uapi/i915_drm.h b/include/drm-uapi/i915_drm.h index 7f28eea4

[Intel-gfx] [PATCH v6 3/6] drm/i915/debugfs: add rcs topology entry

2018-01-16 Thread Lionel Landwerlin
lice2: 8 EUs (0xff) subslice3: 0 EUs (0x0) v2: Reformat debugfs printing (Tvrtko) Use the new EU mask helper (Tvrtko) v3: Move printing code to intel_device_info.c to be shared with error state (Michal) Suggested-by: Chris Wilson Signed-off-by: Lionel Landwerlin Reviewed-by: T

[Intel-gfx] [PATCH v6 4/6] drm/i915: add rcs topology to error state

2018-01-16 Thread Lionel Landwerlin
This might be useful information for developers looking at an error state. v2: Place topology towards the end of the error state (Chris) v3: Reuse common printing code (Michal) v4: Make this a one-liner (Chris) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm

[Intel-gfx] [PATCH v6 0/6] drm/i915: expose RCS topology to userspace

2018-01-16 Thread Lionel Landwerlin
Hi again, A few more changes following Chris' comments. Cheers, Lionel Landwerlin (6): drm/i915: store all subslice masks drm/i915/debugfs: reuse max slice/subslices already stored in sseu drm/i915/debugfs: add rcs topology entry drm/i915: add rcs topology to error state drm/i915

[Intel-gfx] [PATCH v6 2/6] drm/i915/debugfs: reuse max slice/subslices already stored in sseu

2018-01-16 Thread Lionel Landwerlin
Now that we have that information in topology fields, let's just reused it. v2: Style tweaks (Tvrtko) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_debugfs.c | 27 +++ 1 file changed, 11 insertions(+), 16 deletions(-)

[Intel-gfx] [PATCH v6 6/6] drm/i915: expose rcs topology through query uAPI

2018-01-16 Thread Lionel Landwerlin
itting (Tvrtko) tweak uapi struct/define names (Tvrtko) v5: Replace ALIGN() macro (Chris) Signed-off-by: Lionel Landwerlin --- drivers/gpu/drm/i915/i915_query.c | 108 +- include/uapi/drm/i915_drm.h | 54 +++ 2 files changed, 161 insertions(

[Intel-gfx] [PATCH v6 1/6] drm/i915: store all subslice masks

2018-01-16 Thread Lionel Landwerlin
setting eu_mask on CHV (Tvrtko) Reformat debug prints for subslices (Tvrtko) v4: Change eu_mask helper into sseu_set_eus() (Tvrtko) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_debugfs.c | 25 ++-- drivers/gpu/drm/i915/i915_drv.c

[Intel-gfx] [PATCH v6 5/6] drm/i915: add query uAPI

2018-01-16 Thread Lionel Landwerlin
(Chris) Return error on flags field != 0 (Chris) Only copy length back to userspace in drm_i915_query_item (Chris) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/i915_drv.c | 1 + drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH v5 6/6] drm/i915: expose rcs topology through query uAPI

2018-01-16 Thread Lionel Landwerlin
On 16/01/18 14:22, Chris Wilson wrote: Quoting Lionel Landwerlin (2018-01-16 13:40:10) With the introduction of asymmetric slices in CNL, we cannot rely on the previous SUBSLICE_MASK getparam to tell userspace what subslices are available. Here we introduce a more detailed way of querying the

Re: [Intel-gfx] [PATCH v5 5/6] drm/i915: add query uAPI

2018-01-16 Thread Lionel Landwerlin
On 16/01/18 14:08, Chris Wilson wrote: Quoting Lionel Landwerlin (2018-01-16 13:40:09) +int i915_query_ioctl(struct drm_device *dev, void *data, struct drm_file *file) +{ + struct drm_i915_query *args = data; + struct drm_i915_query_item __user *user_item_ptr

Re: [Intel-gfx] [PATCH v5 4/6] drm/i915: add rcs topology to error state

2018-01-16 Thread Lionel Landwerlin
On 16/01/18 13:57, Chris Wilson wrote: Quoting Lionel Landwerlin (2018-01-16 13:40:08) This might be useful information for developers looking at an error state. v2: Place topology towards the end of the error state (Chris) v3: Reuse common printing code (Michal) Signed-off-by: Lionel

[Intel-gfx] [PATCH v5 2/6] drm/i915/debugfs: reuse max slice/subslices already stored in sseu

2018-01-16 Thread Lionel Landwerlin
Now that we have that information in topology fields, let's just reused it. v2: Style tweaks (Tvrtko) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_debugfs.c | 27 +++ 1 file changed, 11 insertions(+), 16 deletions(-)

[Intel-gfx] [PATCH v5 0/6] drm/i915: expose RCS topology to userspace

2018-01-16 Thread Lionel Landwerlin
Hi all, Hopefully this is the last iteration. A few more tweaks only on patch 6 for uapi define/struct naming and factored out code in the data exchange between kernel & userspace. Thanks, Lionel Landwerlin (6): drm/i915: store all subslice masks drm/i915/debugfs: reuse max slice/subsl

[Intel-gfx] [PATCH v5 1/6] drm/i915: store all subslice masks

2018-01-16 Thread Lionel Landwerlin
setting eu_mask on CHV (Tvrtko) Reformat debug prints for subslices (Tvrtko) v4: Change eu_mask helper into sseu_set_eus() (Tvrtko) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_debugfs.c | 25 ++-- drivers/gpu/drm/i915/i915_drv.c

[Intel-gfx] [PATCH v5 3/6] drm/i915/debugfs: add rcs topology entry

2018-01-16 Thread Lionel Landwerlin
lice2: 8 EUs (0xff) subslice3: 0 EUs (0x0) v2: Reformat debugfs printing (Tvrtko) Use the new EU mask helper (Tvrtko) v3: Move printing code to intel_device_info.c to be shared with error state (Michal) Suggested-by: Chris Wilson Signed-off-by: Lionel Landwerlin Reviewed-by: T

[Intel-gfx] [PATCH v5 6/6] drm/i915: expose rcs topology through query uAPI

2018-01-16 Thread Lionel Landwerlin
itting (Tvrtko) tweak uapi struct/define names (Tvrtko) Signed-off-by: Lionel Landwerlin --- drivers/gpu/drm/i915/i915_query.c | 107 ++ include/uapi/drm/i915_drm.h | 53 +++ 2 files changed, 160 insertions(+) diff --git a/drivers/gpu/drm/i91

[Intel-gfx] [PATCH v5 4/6] drm/i915: add rcs topology to error state

2018-01-16 Thread Lionel Landwerlin
This might be useful information for developers looking at an error state. v2: Place topology towards the end of the error state (Chris) v3: Reuse common printing code (Michal) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_gpu_error.c | 9

[Intel-gfx] [PATCH v5 5/6] drm/i915: add query uAPI

2018-01-16 Thread Lionel Landwerlin
copy of the data to the pointed memory locations. The scope of this uAPI is only to provide information to userspace, not to allow configuration of the device. v2: Simplify dispatcher code iteration (Tvrtko) Tweak uapi drm_i915_query_item structure (Tvrtko) Signed-off-by: Lionel Landwerlin

Re: [Intel-gfx] [PATCH v4 4/6] drm/i915: add rcs topology to error state

2018-01-16 Thread Lionel Landwerlin
On 15/01/18 17:43, Tvrtko Ursulin wrote: On 15/01/2018 14:41, Lionel Landwerlin wrote: This might be useful information for developers looking at an error state. v2: Place topology towards the end of the error state (Chris) v3: Reuse common printing code (Michal) Signed-off-by: Lionel

<    8   9   10   11   12   13   14   15   16   17   >