Re: [Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915/userptr: Fix error handling of mutex_lock_killable()

2019-01-16 Thread Chris Wilson
Quoting Patchwork (2019-01-16 06:15:10) > Possible fixes > > * igt@gem_userptr_blits@map-fixed-invalidate-busy: > - shard-glk: INCOMPLETE [fdo#103359] / [k.org#198133] -> PASS +6 > > * igt@gem_userptr_blits@map-fixed-invalidate-busy-gup: > - shard-apl: INCO

[Intel-gfx] [PATCH v2] drm/i915/query: Split out query item checks

2019-01-16 Thread Abdiel Janulgue
This simplifies adding new query item objects. v2: Use query_hdr (Tvrtko, Chris). int instead of u32 in return (Tvrtko) Signed-off-by: Abdiel Janulgue Cc: Joonas Lahtinen --- drivers/gpu/drm/i915/i915_query.c | 39 --- 1 file changed, 26 insertions(+), 13 deleti

[Intel-gfx] [PATCH 00/17] drm/i915: switch to kernel fixed size types

2019-01-16 Thread Jani Nikula
Hi all - I haven't cared all that much about using C99 fixed size types (uint32_t etc.) in the driver in addition to kernel types, as long as only one or the other is used in the same struct/function/file. But the increasing mixed use crossed some OCD threshold the other day. It gets ugly, and set

[Intel-gfx] [PATCH 02/17] drm/i915/crt: switch to kernel types

2019-01-16 Thread Jani Nikula
Mixed C99 and kernel types use is getting ugly. Prefer kernel types. sed -i 's/\buint\(8\|16\|32\|64\)_t\b/u\1/g' Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/intel_crt.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/i915/int

[Intel-gfx] [PATCH 03/17] drm/i915/sdvo: switch to kernel types

2019-01-16 Thread Jani Nikula
Mixed C99 and kernel types use is getting ugly. Prefer kernel types. sed -i 's/\buint\(8\|16\|32\|64\)_t\b/u\1/g' Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/intel_sdvo.c | 78 +++ 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/drivers/gpu/dr

[Intel-gfx] [PATCH 01/17] drm/i915: small isolated c99 types to kernel types switch

2019-01-16 Thread Jani Nikula
Mixed C99 and kernel types use is getting ugly. Prefer kernel types. sed -i 's/\buint\(8\|16\|32\|64\)_t\b/u\1/g' Minor checkpatch fixes sprinkled on top of the changed lines. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_gem.c| 14 +++--- drivers/gpu/drm/i915/i9

[Intel-gfx] [PATCH 04/17] drm/i915/lspcon: switch to kernel types

2019-01-16 Thread Jani Nikula
Mixed C99 and kernel types use is getting ugly. Prefer kernel types. sed -i 's/\buint\(8\|16\|32\|64\)_t\b/u\1/g' Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/intel_lspcon.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/i915/in

[Intel-gfx] [PATCH 05/17] drm/i915/debugfs: switch to kernel types

2019-01-16 Thread Jani Nikula
Mixed C99 and kernel types use is getting ugly. Prefer kernel types. sed -i 's/\buint\(8\|16\|32\|64\)_t\b/u\1/g' Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_debugfs.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/i915/

[Intel-gfx] [PATCH 14/17] drm/i915/csr: switch to kernel types

2019-01-16 Thread Jani Nikula
Mixed C99 and kernel types use is getting ugly. Prefer kernel types. sed -i 's/\buint\(8\|16\|32\|64\)_t\b/u\1/g' Minor checkpatch fixes sprinkled on top of the changed lines. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/intel_csr.c | 68 1 file changed,

[Intel-gfx] [PATCH 13/17] drm/i915/ddi: switch to kernel types

2019-01-16 Thread Jani Nikula
Mixed C99 and kernel types use is getting ugly. Prefer kernel types. sed -i 's/\buint\(8\|16\|32\|64\)_t\b/u\1/g' Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/intel_ddi.c | 52 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/drivers/gpu/dr

[Intel-gfx] [PATCH 08/17] drm/i915/dpll_mgr: switch to kernel types

2019-01-16 Thread Jani Nikula
Mixed C99 and kernel types use is getting ugly. Prefer kernel types. sed -i 's/\buint\(8\|16\|32\|64\)_t\b/u\1/g' Minor checkpatch/whitespace fixes sprinkled on top of the changed lines. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/intel_dpll_mgr.c | 145 +- driv

[Intel-gfx] [PATCH 06/17] drm/i915/irq: switch to kernel types

2019-01-16 Thread Jani Nikula
Mixed C99 and kernel types use is getting ugly. Prefer kernel types. sed -i 's/\buint\(8\|16\|32\|64\)_t\b/u\1/g' Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_irq.c | 82 - 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/drivers/gpu/dr

[Intel-gfx] [PATCH 15/17] drm/i915/display: switch to kernel types

2019-01-16 Thread Jani Nikula
Mixed C99 and kernel types use is getting ugly. Prefer kernel types. sed -i 's/\buint\(8\|16\|32\|64\)_t\b/u\1/g' Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/intel_display.c | 104 +-- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/drivers/gpu/dr

[Intel-gfx] [PATCH 10/17] drm/i915/sprite: switch to kernel types

2019-01-16 Thread Jani Nikula
Mixed C99 and kernel types use is getting ugly. Prefer kernel types. sed -i 's/\buint\(8\|16\|32\|64\)_t\b/u\1/g' Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/intel_sprite.c | 60 ++--- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/drivers/gpu/dr

[Intel-gfx] [PATCH 12/17] drm/i915/pm: switch to kernel types

2019-01-16 Thread Jani Nikula
Mixed C99 and kernel types use is getting ugly. Prefer kernel types. sed -i 's/\buint\(8\|16\|32\|64\)_t\b/u\1/g' Minor checkpatch fixes sprinkled on top of the changed lines. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/intel_pm.c | 213 1 file changed,

[Intel-gfx] [PATCH 11/17] drm/i915/color: switch to kernel types

2019-01-16 Thread Jani Nikula
Mixed C99 and kernel types use is getting ugly. Prefer kernel types. sed -i 's/\buint\(8\|16\|32\|64\)_t\b/u\1/g' Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/intel_color.c | 40 +++--- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/dr

[Intel-gfx] [PATCH 07/17] drm/i915/cdclk: switch to kernel types

2019-01-16 Thread Jani Nikula
Mixed C99 and kernel types use is getting ugly. Prefer kernel types. sed -i 's/\buint\(8\|16\|32\|64\)_t\b/u\1/g' Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/intel_cdclk.c | 40 +++--- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/dr

[Intel-gfx] [PATCH 17/17] drm/i915/intel_drv.h: switch to kernel types

2019-01-16 Thread Jani Nikula
Mixed C99 and kernel types use is getting ugly. Prefer kernel types. sed -i 's/\buint\(8\|16\|32\|64\)_t\b/u\1/g' Minor checkpatch fixes sprinkled on top of the changed lines. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/intel_drv.h | 94 1 file changed,

[Intel-gfx] [PATCH 09/17] drm/i915/dp: switch to kernel types

2019-01-16 Thread Jani Nikula
Mixed C99 and kernel types use is getting ugly. Prefer kernel types. sed -i 's/\buint\(8\|16\|32\|64\)_t\b/u\1/g' Minor checkpatch/whitespace fixes sprinkled on top of the changed lines. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/intel_dp.c | 142 +- driv

[Intel-gfx] [PATCH 16/17] drm/i915/i915_drv.h: switch to kernel types

2019-01-16 Thread Jani Nikula
Mixed C99 and kernel types use is getting ugly. Prefer kernel types. sed -i 's/\buint\(8\|16\|32\|64\)_t\b/u\1/g' Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_drv.h | 158 1 file changed, 79 insertions(+), 79 deletions(-) diff --git a/drivers/gpu/dr

Re: [Intel-gfx] [PATCH 01/17] drm/i915: small isolated c99 types to kernel types switch

2019-01-16 Thread Chris Wilson
Quoting Jani Nikula (2019-01-16 09:15:19) > Mixed C99 and kernel types use is getting ugly. Prefer kernel types. > > sed -i 's/\buint\(8\|16\|32\|64\)_t\b/u\1/g' > > Minor checkpatch fixes sprinkled on top of the changed lines. > > Signed-off-by: Jani Nikula Of course it messes up adjacent lin

Re: [Intel-gfx] [PATCH 06/17] drm/i915/irq: switch to kernel types

2019-01-16 Thread Chris Wilson
Quoting Jani Nikula (2019-01-16 09:15:24) > Mixed C99 and kernel types use is getting ugly. Prefer kernel types. > > sed -i 's/\buint\(8\|16\|32\|64\)_t\b/u\1/g' > > Signed-off-by: Jani Nikula Reviewed-by: Chris Wilson -Chris ___ Intel-gfx mailing lis

Re: [Intel-gfx] [PATCH 16/17] drm/i915/i915_drv.h: switch to kernel types

2019-01-16 Thread Chris Wilson
Quoting Jani Nikula (2019-01-16 09:15:34) > Mixed C99 and kernel types use is getting ugly. Prefer kernel types. > > sed -i 's/\buint\(8\|16\|32\|64\)_t\b/u\1/g' > > Signed-off-by: Jani Nikula Reviewed-by: Chris Wilson -Chris ___ Intel-gfx mailing lis

Re: [Intel-gfx] [PATCH 00/17] drm/i915: switch to kernel fixed size types

2019-01-16 Thread Chris Wilson
Quoting Jani Nikula (2019-01-16 09:15:18) > Hi all - > > I haven't cared all that much about using C99 fixed size types (uint32_t > etc.) in the driver in addition to kernel types, as long as only one or > the other is used in the same struct/function/file. But the increasing > mixed use crossed s

Re: [Intel-gfx] [PATCH v2] drm/i915/query: Split out query item checks

2019-01-16 Thread Tvrtko Ursulin
On 16/01/2019 08:59, Abdiel Janulgue wrote: This simplifies adding new query item objects. v2: Use query_hdr (Tvrtko, Chris). int instead of u32 in return (Tvrtko) Signed-off-by: Abdiel Janulgue Cc: Joonas Lahtinen --- drivers/gpu/drm/i915/i915_query.c | 39 ---

Re: [Intel-gfx] [PATCH 00/17] drm/i915: switch to kernel fixed size types

2019-01-16 Thread Tvrtko Ursulin
On 16/01/2019 09:15, Jani Nikula wrote: Hi all - I haven't cared all that much about using C99 fixed size types (uint32_t etc.) in the driver in addition to kernel types, as long as only one or the other is used in the same struct/function/file. But the increasing mixed use crossed some OCD thr

Re: [Intel-gfx] [PATCH 1/8] drm/i915: Serialise concurrent calls to i915_gem_set_wedged()

2019-01-16 Thread Chris Wilson
Quoting Chris Wilson (2019-01-15 12:05:27) > Quoting Mika Kuoppala (2019-01-15 11:56:11) > > Chris Wilson writes: > > > > > Make i915_gem_set_wedged() and i915_gem_unset_wedged() behaviour more > > > consistently if called concurrently. > > > > More is needed in here. The purpose is to make them

[Intel-gfx] [PATCH i-g-t 1/3] i915/gem_userptr_blits: Only mlock the memfd once, not the arena

2019-01-16 Thread Chris Wilson
We multiply the memfd 64k to create a 2G arena which we then attempt to write into after marking read-only. Howver, when it comes to unlock the arena after the test, performance tanks as the kernel tries to resolve the 64k repeated mappings onto the same set of pages. (Must not be a very common ope

[Intel-gfx] [PATCH i-g-t 3/3] igt/drv_missed_irq: Skip if the kernel reports no rings available to test

2019-01-16 Thread Chris Wilson
Some setups (e.g. guc and gen10+) can not disable the MI_USER_INTERRUPT generation and so can not simulate missed interrupts. These tests would fail, so skip when the kernel reports no tests available. Signed-off-by: Chris Wilson --- lib/igt_gt.c| 2 +- tests/i915/missed_irq.c | 1 +

[Intel-gfx] [PATCH i-g-t 2/3] i915/gem_cpu_reloc: Use a self-modifying chained batch

2019-01-16 Thread Chris Wilson
Use another sensitive CPU reloc to emit a chained batch from inside the updated buffer to reduce the workload on slow machines to fit within the CI timeout. References: https://bugs.freedesktop.org/show_bug.cgi?id=108248 Signed-off-by: Chris Wilson --- tests/i915/gem_cpu_reloc.c | 347 ++

Re: [Intel-gfx] [PULL] drm-misc-next

2019-01-16 Thread Daniel Vetter
On Tue, Jan 15, 2019 at 4:57 PM Maxime Ripard wrote: > > Hi Daniel, Dave, > > Here is the drm-misc-next PR for this week. > > Thanks! > Maxime > > drm-misc-next-2019-01-15: > drm-misc-next for 5.1: > > UAPI Changes: > > Cross-subsystem Changes: > > Core Changes: > - Reorganisation of drm_device a

Re: [Intel-gfx] [PATCH i-g-t 1/3] i915/gem_userptr_blits: Only mlock the memfd once, not the arena

2019-01-16 Thread Mika Kuoppala
Chris Wilson writes: > We multiply the memfd 64k to create a 2G arena which we then attempt to > write into after marking read-only. Howver, when it comes to unlock the s/Howver/However > arena after the test, performance tanks as the kernel tries to resolve > the 64k repeated mappings onto the

Re: [Intel-gfx] [PATCH i-g-t 1/3] i915/gem_userptr_blits: Only mlock the memfd once, not the arena

2019-01-16 Thread Chris Wilson
Quoting Mika Kuoppala (2019-01-16 09:47:27) > Chris Wilson writes: > > > We multiply the memfd 64k to create a 2G arena which we then attempt to > > write into after marking read-only. Howver, when it comes to unlock the > > s/Howver/However > > > arena after the test, performance tanks as the

Re: [Intel-gfx] [PATCH v2] drm/i915: Pass down rc in intel_encoder->compute_config()

2019-01-16 Thread Daniel Vetter
On Wed, Jan 16, 2019 at 09:47:17AM +0200, Jani Nikula wrote: > On Tue, 15 Jan 2019, Lyude Paul wrote: > > Something that I completely missed when implementing the new MST VCPI > > atomic helpers is that with those helpers, there's technically a chance > > of us having to grab additional modeset lo

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/query: Split out query item checks (rev2)

2019-01-16 Thread Patchwork
== Series Details == Series: drm/i915/query: Split out query item checks (rev2) URL : https://patchwork.freedesktop.org/series/54917/ State : success == Summary == CI Bug Log - changes from CI_DRM_5432 -> Patchwork_11304 Summary ---

Re: [Intel-gfx] [PATCH i-g-t 1/3] i915/gem_userptr_blits: Only mlock the memfd once, not the arena

2019-01-16 Thread Mika Kuoppala
Chris Wilson writes: > Quoting Mika Kuoppala (2019-01-16 09:47:27) >> Chris Wilson writes: >> >> > We multiply the memfd 64k to create a 2G arena which we then attempt to >> > write into after marking read-only. Howver, when it comes to unlock the >> >> s/Howver/However >> >> > arena after th

Re: [Intel-gfx] [PATCH i-g-t 1/3] i915/gem_userptr_blits: Only mlock the memfd once, not the arena

2019-01-16 Thread Chris Wilson
Quoting Mika Kuoppala (2019-01-16 10:35:59) > Chris Wilson writes: > > > Quoting Mika Kuoppala (2019-01-16 09:47:27) > >> Chris Wilson writes: > >> > >> > We multiply the memfd 64k to create a 2G arena which we then attempt to > >> > write into after marking read-only. Howver, when it comes to

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: switch to kernel fixed size types

2019-01-16 Thread Patchwork
== Series Details == Series: drm/i915: switch to kernel fixed size types URL : https://patchwork.freedesktop.org/series/55281/ State : warning == Summary == $ dim sparse origin/drm-tip Sparse version: v0.5.2 Commit: drm/i915: small isolated c99 types to kernel types switch Okay! Commit: drm/i

Re: [Intel-gfx] [PATCH i-g-t v5 3/6] lib: Add function to hash a framebuffer

2019-01-16 Thread Liviu Dudau
On Tue, Jan 15, 2019 at 06:47:47PM +, Chris Wilson wrote: > Quoting Liviu Dudau (2019-01-15 17:47:44) > > +int igt_fb_get_crc(struct igt_fb *fb, igt_crc_t *crc) > > +{ > > +#define FNV1a_OFFSET_BIAS 2166136261 > > +#define FNV1a_PRIME 16777619 > > + uint32_t hash; > > + void *map; >

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: switch to kernel fixed size types

2019-01-16 Thread Patchwork
== Series Details == Series: drm/i915: switch to kernel fixed size types URL : https://patchwork.freedesktop.org/series/55281/ State : success == Summary == CI Bug Log - changes from CI_DRM_5433 -> Patchwork_11305 Summary --- **SUCCE

Re: [Intel-gfx] [PATCH i-g-t v5 3/6] lib: Add function to hash a framebuffer

2019-01-16 Thread Chris Wilson
Quoting Liviu Dudau (2019-01-16 11:20:09) > On Tue, Jan 15, 2019 at 06:47:47PM +, Chris Wilson wrote: > > Quoting Liviu Dudau (2019-01-15 17:47:44) > > > +int igt_fb_get_crc(struct igt_fb *fb, igt_crc_t *crc) > > > +{ > > > +#define FNV1a_OFFSET_BIAS 2166136261 > > > +#define FNV1a_PRIME 167776

Re: [Intel-gfx] [PATCH v2 2/2] drm: allow render capable master with DRM_AUTH ioctls

2019-01-16 Thread Emil Velikov
On 2019/01/14, Daniel Vetter wrote: > On Mon, Jan 14, 2019 at 08:54:08AM +, Emil Velikov wrote: > > From: Emil Velikov > > > > There are cases (in mesa and applications) where one would open the > > primary node without properly authenticating the client. > > > > Sometimes we don't check if

Re: [Intel-gfx] [PATCH v5 2/3] drm/i915: Move on the new pm runtime interface

2019-01-16 Thread Rafael J. Wysocki
On Monday, January 7, 2019 3:21:49 PM CET Rafael J. Wysocki wrote: > On Mon, Jan 7, 2019 at 3:04 PM Vincent Guittot > wrote: > > > > Hi Tvrtko, > > > > On Mon, 31 Dec 2018 at 13:32, Tvrtko Ursulin > > wrote: > > > > > > > > > On 21/12/2018 13:26, Vincent Guittot wrote: > > > > On Fri, 21 Dec 2018

[Intel-gfx] [PATCH i-g-t v6] lib: Add function to hash a framebuffer

2019-01-16 Thread Liviu Dudau
From: Brian Starkey To use writeback buffers as a CRC source, we need to be able to hash them. Implement a simple FVA-1a hashing routine for this purpose. Doing a bytewise hash on the framebuffer directly can be very slow if the memory is noncached. By making a copy of each line in the FB first

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/query: Split out query item checks (rev2)

2019-01-16 Thread Patchwork
== Series Details == Series: drm/i915/query: Split out query item checks (rev2) URL : https://patchwork.freedesktop.org/series/54917/ State : success == Summary == CI Bug Log - changes from CI_DRM_5432_full -> Patchwork_11304_full Summary -

[Intel-gfx] [PATCH i-g-t] drm/drm_import_export: Replace imprecise loop-bound with timeout

2019-01-16 Thread Chris Wilson
Use a specific timeout to exercise the race conditions, rather than a number of tries -- this prevents it burning up too many minutes under CI for little gain, we can just run it again to improve race detection. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108667 Signed-off-by: Chris Wil

Re: [Intel-gfx] [PATCH i-g-t] drm/drm_import_export: Replace imprecise loop-bound with timeout

2019-01-16 Thread Mika Kuoppala
Chris Wilson writes: > Use a specific timeout to exercise the race conditions, rather than a > number of tries -- this prevents it burning up too many minutes under CI > for little gain, we can just run it again to improve race detection. > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm: Split out drm_probe_helper.h (rev2)

2019-01-16 Thread Patchwork
== Series Details == Series: drm: Split out drm_probe_helper.h (rev2) URL : https://patchwork.freedesktop.org/series/55232/ State : warning == Summary == $ dim checkpatch origin/drm-tip 95c4e461b0cc drm: Split out drm_probe_helper.h -:626: WARNING:OBSOLETE: drivers/gpu/drm/cirrus/cirrus_drv.c

[Intel-gfx] ✓ Fi.CI.BAT: success for drm: Split out drm_probe_helper.h (rev2)

2019-01-16 Thread Patchwork
== Series Details == Series: drm: Split out drm_probe_helper.h (rev2) URL : https://patchwork.freedesktop.org/series/55232/ State : success == Summary == CI Bug Log - changes from CI_DRM_5434 -> Patchwork_11306 Summary --- **SUCCESS*

Re: [Intel-gfx] [PATCH i-g-t 2/3] i915/gem_cpu_reloc: Use a self-modifying chained batch

2019-01-16 Thread Mika Kuoppala
Chris Wilson writes: > Use another sensitive CPU reloc to emit a chained batch from inside the > updated buffer to reduce the workload on slow machines to fit within the > CI timeout. > > References: https://bugs.freedesktop.org/show_bug.cgi?id=108248 > Signed-off-by: Chris Wilson > --- > tests

Re: [Intel-gfx] [PATCH i-g-t 2/3] i915/gem_cpu_reloc: Use a self-modifying chained batch

2019-01-16 Thread Chris Wilson
Quoting Mika Kuoppala (2019-01-16 14:22:59) > Chris Wilson writes: > > > Use another sensitive CPU reloc to emit a chained batch from inside the > > updated buffer to reduce the workload on slow machines to fit within the > > CI timeout. > > > > References: https://bugs.freedesktop.org/show_bug.c

Re: [Intel-gfx] [PATCH i-g-t 3/3] igt/drv_missed_irq: Skip if the kernel reports no rings available to test

2019-01-16 Thread Mika Kuoppala
Chris Wilson writes: > Some setups (e.g. guc and gen10+) can not disable the MI_USER_INTERRUPT > generation and so can not simulate missed interrupts. These tests would > fail, so skip when the kernel reports no tests available. > > Signed-off-by: Chris Wilson Reviewed-by: Mika Kuoppala > ---

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: switch to kernel fixed size types

2019-01-16 Thread Patchwork
== Series Details == Series: drm/i915: switch to kernel fixed size types URL : https://patchwork.freedesktop.org/series/55281/ State : success == Summary == CI Bug Log - changes from CI_DRM_5433_full -> Patchwork_11305_full Summary ---

Re: [Intel-gfx] [PATCH i-g-t 2/3] i915/gem_cpu_reloc: Use a self-modifying chained batch

2019-01-16 Thread Mika Kuoppala
Chris Wilson writes: > Quoting Mika Kuoppala (2019-01-16 14:22:59) >> Chris Wilson writes: >> >> > Use another sensitive CPU reloc to emit a chained batch from inside the >> > updated buffer to reduce the workload on slow machines to fit within the >> > CI timeout. >> > >> > References: https:/

Re: [Intel-gfx] [PATCH 1/8] drm/i915: Serialise concurrent calls to i915_gem_set_wedged()

2019-01-16 Thread Mika Kuoppala
Chris Wilson writes: > Quoting Chris Wilson (2019-01-15 12:05:27) >> Quoting Mika Kuoppala (2019-01-15 11:56:11) >> > Chris Wilson writes: >> > >> > > Make i915_gem_set_wedged() and i915_gem_unset_wedged() behaviour more >> > > consistently if called concurrently. >> > >> > More is needed in h

Re: [Intel-gfx] [PATCH 3/8] drm/i915: Pull all the reset functionality together into i915_reset.c

2019-01-16 Thread Mika Kuoppala
Chris Wilson writes: > Currently the code to reset the GPU and our state is spread widely > across a few files. Pull the logic together into a common file. > > Signed-off-by: Chris Wilson Dunno how it goes but gut feeling that this would have been better at the end of series after the dust has

Re: [Intel-gfx] [PATCH 3/8] drm/i915: Pull all the reset functionality together into i915_reset.c

2019-01-16 Thread Chris Wilson
Quoting Mika Kuoppala (2019-01-16 15:06:37) > Chris Wilson writes: > > > Currently the code to reset the GPU and our state is spread widely > > across a few files. Pull the logic together into a common file. > > > > Signed-off-by: Chris Wilson > > Dunno how it goes but gut feeling that this wou

[Intel-gfx] [CI] drm/i915: Pull all the reset functionality together into i915_reset.c

2019-01-16 Thread Chris Wilson
Currently the code to reset the GPU and our state is spread widely across a few files. Pull the logic together into a common file. Signed-off-by: Chris Wilson Acked-by: Mika Kuoppala --- drivers/gpu/drm/i915/Makefile |3 +- drivers/gpu/drm/i915/i915_debugfs.c |

[Intel-gfx] [PATCH 5/7] drm/i915: handle interrupts from the OA unit

2019-01-16 Thread Lionel Landwerlin
The OA unit can notify that its circular buffer is half full through an interrupt and we would like to give the application the ability to make use of this interrupt to get rid of CPU checks on the OA buffer. This change wires up the interrupt to the i915-perf stream and leaves it ignored for now.

[Intel-gfx] [PATCH 4/7] drm/i915/perf: add new open param to configure polling of OA buffer

2019-01-16 Thread Lionel Landwerlin
This new parameter let's the application choose how often the OA buffer should be checked on the CPU side for data availability. Longer polling period tend to reduce CPU overhead if the application does not care about somewhat real time data collection. v2: Allow disabling polling completely with

[Intel-gfx] [PATCH 3/7] drm/i915/perf: only append status when data is available

2019-01-16 Thread Lionel Landwerlin
The only bit of the status register we currently report in the i915-perf stream is the "report loss" bit. Only report this when we have some data to report with it. There was a kind of inconsistency here in that we could report report loss without appending the reports associated with the loss. Si

[Intel-gfx] [PATCH 2/7] drm/i915/perf: reset pollin when perf stream is enabled

2019-01-16 Thread Lionel Landwerlin
No issues have been raised about this yet, but this should be reset every time we enable the stream, otherwise we might have a stale value from the previous round of enable/disable. Signed-off-by: Lionel Landwerlin --- drivers/gpu/drm/i915/i915_perf.c | 2 ++ 1 file changed, 2 insertions(+) dif

[Intel-gfx] [PATCH 1/7] drm/i915/perf: rework aging tail workaround

2019-01-16 Thread Lionel Landwerlin
We're about to introduce an options to open the perf stream, giving the user ability to configure how often it wants the kernel to poll the OA registers for available data. Right now the workaround against the OA tail pointer race condition requires at least twice the internal kernel polling timer

[Intel-gfx] [PATCH 7/7] drm/i915/perf: add flushing ioctl

2019-01-16 Thread Lionel Landwerlin
With the currently available parameters for the i915-perf stream, there are still situations that are not well covered : If an application opens the stream with polling disable or at very low frequency and OA interrupt enabled, no data will be available even though somewhere between nothing and ha

[Intel-gfx] [PATCH 6/7] drm/i915/perf: add interrupt enabling parameter

2019-01-16 Thread Lionel Landwerlin
This let's the application choose to be driven by the interrupt mechanism of the HW. In conjuction with long periods for checks for the availability of data on the CPU, this can reduce the CPU load when doing capture of OA data. Signed-off-by: Lionel Landwerlin --- drivers/gpu/drm/i915/i915_perf

[Intel-gfx] [PATCH 0/7] drm/i915/perf: add OA interrupt support

2019-01-16 Thread Lionel Landwerlin
Taking the RFC off this series. To quite the vTune team that tried the previous version : "It reduces data collection overhead in VTune by 11x. It is great!" The GPA team's report on the previous version was a drop in CPU consumption from 17~20% down to 2~3%. This version includes : - a

Re: [Intel-gfx] [v5 4/6] drm/i915/icl: Add icl pipe degamma and gamma support

2019-01-16 Thread Shankar, Uma
>-Original Message- >From: Roper, Matthew D >Sent: Saturday, January 12, 2019 3:49 AM >To: Shankar, Uma >Cc: intel-gfx@lists.freedesktop.org; Lankhorst, Maarten >; Syrjala, Ville ; >Sharma, >Shashank >Subject: Re: [v5 4/6] drm/i915/icl: Add icl pipe degamma and gamma support > >On Tue,

Re: [Intel-gfx] [PATCH 5/7] drm/i915: handle interrupts from the OA unit

2019-01-16 Thread Chris Wilson
Quoting Lionel Landwerlin (2019-01-16 15:36:20) > @@ -1877,6 +1883,21 @@ struct drm_i915_private { > wait_queue_head_t poll_wq; > bool pollin; > > + /** > +* Atomic counter incremented by the interrupt >

[Intel-gfx] [PATCH] drm/i915: Limit the for_each_set_bit() to the valid range

2019-01-16 Thread Chris Wilson
Let static analyzers (smatch) know that we are not going to wander off the end of the array by providing a tight upper bound: drivers/gpu/drm/i915/intel_display.c:9532 hsw_get_transcoder_state() error: buffer overflow 'dev_priv->__info.trans_offsets' 6 <= 31 References: 0716931a82b4 ("drm/i915/i

Re: [Intel-gfx] [v5 5/6] drm/i915/icl: Enable ICL Pipe CSC block

2019-01-16 Thread Shankar, Uma
>-Original Message- >From: Roper, Matthew D >Sent: Saturday, January 12, 2019 4:30 AM >To: Shankar, Uma >Cc: intel-gfx@lists.freedesktop.org; Lankhorst, Maarten >; Syrjala, Ville ; >Sharma, >Shashank >Subject: Re: [v5 5/6] drm/i915/icl: Enable ICL Pipe CSC block > >On Tue, Jan 08, 2019

Re: [Intel-gfx] [PATCH 5/7] drm/i915: handle interrupts from the OA unit

2019-01-16 Thread Lionel Landwerlin
On 16/01/2019 15:52, Chris Wilson wrote: Quoting Lionel Landwerlin (2019-01-16 15:36:20) @@ -1877,6 +1883,21 @@ struct drm_i915_private { wait_queue_head_t poll_wq; bool pollin; + /** +* Atomic co

Re: [Intel-gfx] [v5 6/6] drm/i915/icl: Add degamma and gamma lut size to gen11 caps

2019-01-16 Thread Shankar, Uma
>-Original Message- >From: Roper, Matthew D >Sent: Saturday, January 12, 2019 4:35 AM >To: Shankar, Uma >Cc: intel-gfx@lists.freedesktop.org; Lankhorst, Maarten >; Syrjala, Ville ; >Sharma, >Shashank >Subject: Re: [v5 6/6] drm/i915/icl: Add degamma and gamma lut size to gen11 >caps > >

[Intel-gfx] [v6 2/6] drm/i915/glk: Fix degamma lut programming

2019-01-16 Thread Uma Shankar
Fixed the glk degamma lut programming which currently was hard coding a linear lut all the time, making degamma block of glk basically a pass through. Currently degamma lut for glk is assigned as 0 in platform configuration. Updated the same to 33 as per the hardware capability. IGT tests for dega

[Intel-gfx] [v6 1/6] drm/i915: Sanitize crtc gamma and csc mode

2019-01-16 Thread Uma Shankar
Sanitize crtc gamma and csc mode and update the mode in driver in case BIOS has setup a different mode or gamma luts, csc with any other unexpected values than desired. There is restriction on HSW platform not to read/write color LUT's if ips is enabled. Handled the same accordingly. We don't re

[Intel-gfx] [v6 0/6] Add support for Gen 11 pipe color features

2019-01-16 Thread Uma Shankar
This patch series adds support for Gen11 pipe degamma, CSC and gamma hardware blocks. CRC checks are not working for 10bit gamma but works for 8bit pallete modes which seems to be due to some rounding errors in pipe. Also there is a corner case where Lut precision is increased to 3.16, hence its n

[Intel-gfx] [v6 3/6] drm/i915/icl: Add icl pipe degamma and gamma support

2019-01-16 Thread Uma Shankar
Add support for icl pipe degamma and gamma. v2: Removed a POSTING_READ and corrected the Bit Definition as per Maarten's comments. v3: Addressed Matt's review comments. Removed rmw patterns as suggested by Matt. v4: Fixed Matt's review comments. v5: Corrected macro alignment as per Jani Nikula'

[Intel-gfx] [v6 6/6] drm/i915/icl: Add degamma and gamma lut size to gen11 caps

2019-01-16 Thread Uma Shankar
Add the degamma and gamma lut sizes to gen11 capability structure. Note: Currently this doesn't account for the extended range gamma entries and this will be addressed with new segmented gamma ABI in a future patch. v2: Reorder the patch as per Maarten's suggestion. v3: Rebase v4: Updated commi

[Intel-gfx] [v6 4/6] drm/i915/icl: Enable ICL Pipe CSC block

2019-01-16 Thread Uma Shankar
Enable ICL pipe csc hardware. CSC block is enabled in CSC_MODE register instead of PLANE_COLOR_CTL. ToDO: Extend the ABI to accept 32 bit coefficient values instead of 16bit for future platforms. v2: Addressed Maarten's review comments. v3: Addressed Matt's review comments. Removed rmw patterns

[Intel-gfx] [v6 5/6] drm/i915/icl: Enable pipe output csc

2019-01-16 Thread Uma Shankar
GEN11+ onwards an output csc hardware block has been added. This is after the pipe gamma block and is in addition to the legacy pipe CSC block. Primary use case for this block is to convert RGB to YUV in case sink supports YUV. This patch adds supports for the same. v2: This is added after splitti

Re: [Intel-gfx] [PATCH 5/7] drm/i915: handle interrupts from the OA unit

2019-01-16 Thread Lionel Landwerlin
On 16/01/2019 15:58, Lionel Landwerlin wrote: On 16/01/2019 15:52, Chris Wilson wrote: Quoting Lionel Landwerlin (2019-01-16 15:36:20) @@ -1877,6 +1883,21 @@ struct drm_i915_private { wait_queue_head_t poll_wq; bool pollin;   +  

Re: [Intel-gfx] [PATCH 5/7] drm/i915: handle interrupts from the OA unit

2019-01-16 Thread Chris Wilson
Quoting Lionel Landwerlin (2019-01-16 15:58:00) > On 16/01/2019 15:52, Chris Wilson wrote: > > Quoting Lionel Landwerlin (2019-01-16 15:36:20) > >> @@ -1877,6 +1883,21 @@ struct drm_i915_private { > >> wait_queue_head_t poll_wq; > >> bool pollin; >

Re: [Intel-gfx] [PATCH 01/13] drm/i915: Clean up intel_plane_atomic_check_with_state()

2019-01-16 Thread Shankar, Uma
>-Original Message- >From: Ville Syrjala [mailto:ville.syrj...@linux.intel.com] >Sent: Friday, January 11, 2019 10:38 PM >To: intel-gfx@lists.freedesktop.org >Cc: Shankar, Uma ; Roper, Matthew D > >Subject: [PATCH 01/13] drm/i915: Clean up >intel_plane_atomic_check_with_state() > >From: V

Re: [Intel-gfx] [PATCH 5/7] drm/i915: handle interrupts from the OA unit

2019-01-16 Thread Chris Wilson
Quoting Lionel Landwerlin (2019-01-16 16:02:51) > On 16/01/2019 15:58, Lionel Landwerlin wrote: > > On 16/01/2019 15:52, Chris Wilson wrote: > >> Quoting Lionel Landwerlin (2019-01-16 15:36:20) > >>> @@ -1877,6 +1883,21 @@ struct drm_i915_private { > >>> wait_queue_head_t p

Re: [Intel-gfx] drm/i915: Watchdog timeout: IRQ handler for gen8+

2019-01-16 Thread Tvrtko Ursulin
On 11/01/2019 21:28, John Harrison wrote: On 1/11/2019 09:31, Antonio Argenziano wrote: On 11/01/19 00:22, Tvrtko Ursulin wrote: On 11/01/2019 00:47, Antonio Argenziano wrote: On 07/01/19 08:58, Tvrtko Ursulin wrote: On 07/01/2019 13:57, Chris Wilson wrote: Quoting Tvrtko Ursulin (2019-0

Re: [Intel-gfx] [PATCH 5/7] drm/i915: handle interrupts from the OA unit

2019-01-16 Thread Lionel Landwerlin
On 16/01/2019 16:05, Chris Wilson wrote: Quoting Lionel Landwerlin (2019-01-16 15:58:00) On 16/01/2019 15:52, Chris Wilson wrote: Quoting Lionel Landwerlin (2019-01-16 15:36:20) @@ -1877,6 +1883,21 @@ struct drm_i915_private { wait_queue_head_t poll_wq;

Re: [Intel-gfx] [PATCH 31/46] drm/i915: Stop tracking MRU activity on VMA

2019-01-16 Thread Tvrtko Ursulin
On 07/01/2019 11:54, Chris Wilson wrote: Our goal is to remove struct_mutex and replace it with fine grained locking. One of the thorny issues is our eviction logic for reclaiming space for an execbuffer (or GTT mmaping, among a few other examples). While eviction itself is easy to move under a

Re: [Intel-gfx] [PATCH 5/7] drm/i915: handle interrupts from the OA unit

2019-01-16 Thread Chris Wilson
Quoting Lionel Landwerlin (2019-01-16 16:25:26) > On 16/01/2019 16:05, Chris Wilson wrote: > > Quoting Lionel Landwerlin (2019-01-16 15:58:00) > >> On 16/01/2019 15:52, Chris Wilson wrote: > >>> Quoting Lionel Landwerlin (2019-01-16 15:36:20) > @@ -1877,6 +1883,21 @@ struct drm_i915_private {

Re: [Intel-gfx] [PATCH 31/46] drm/i915: Stop tracking MRU activity on VMA

2019-01-16 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-01-16 16:27:16) > > On 07/01/2019 11:54, Chris Wilson wrote: > > Our goal is to remove struct_mutex and replace it with fine grained > > locking. One of the thorny issues is our eviction logic for reclaiming > > space for an execbuffer (or GTT mmaping, among a few othe

Re: [Intel-gfx] [PATCH 32/46] drm/i915: Pull VM lists under the VM mutex.

2019-01-16 Thread Tvrtko Ursulin
On 07/01/2019 11:54, Chris Wilson wrote: A starting point to counter the pervasive struct_mutex. For the goal of avoiding (or at least blocking under them!) global locks during user request submission, a simple but important step is being able to manage each clients GTT separately. For which, we

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Pull all the reset functionality together into i915_reset.c

2019-01-16 Thread Patchwork
== Series Details == Series: drm/i915: Pull all the reset functionality together into i915_reset.c URL : https://patchwork.freedesktop.org/series/55308/ State : warning == Summary == $ dim checkpatch origin/drm-tip 01c7b5cb9d1a drm/i915: Pull all the reset functionality together into i915_res

Re: [Intel-gfx] [PATCH 32/46] drm/i915: Pull VM lists under the VM mutex.

2019-01-16 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-01-16 16:47:43) > > On 07/01/2019 11:54, Chris Wilson wrote: > > @@ -1530,20 +1531,21 @@ i915_gem_pwrite_ioctl(struct drm_device *dev, void > > *data, > > > > static void i915_gem_object_bump_inactive_ggtt(struct drm_i915_gem_object > > *obj) > > { > > - s

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: Pull all the reset functionality together into i915_reset.c

2019-01-16 Thread Patchwork
== Series Details == Series: drm/i915: Pull all the reset functionality together into i915_reset.c URL : https://patchwork.freedesktop.org/series/55308/ State : warning == Summary == $ dim sparse origin/drm-tip Sparse version: v0.5.2 Commit: drm/i915: Pull all the reset functionality together

Re: [Intel-gfx] [PATCH 14/17] drm/i915/csr: switch to kernel types

2019-01-16 Thread Ville Syrjälä
On Wed, Jan 16, 2019 at 11:15:32AM +0200, Jani Nikula wrote: > Mixed C99 and kernel types use is getting ugly. Prefer kernel types. > > sed -i 's/\buint\(8\|16\|32\|64\)_t\b/u\1/g' > > Minor checkpatch fixes sprinkled on top of the changed lines. > > Signed-off-by: Jani Nikula > --- > drivers/

Re: [Intel-gfx] [PATCH 00/17] drm/i915: switch to kernel fixed size types

2019-01-16 Thread Ville Syrjälä
On Wed, Jan 16, 2019 at 11:15:18AM +0200, Jani Nikula wrote: > Hi all - > > I haven't cared all that much about using C99 fixed size types (uint32_t > etc.) in the driver in addition to kernel types, as long as only one or > the other is used in the same struct/function/file. But the increasing >

Re: [Intel-gfx] [PATCH 02/13] drm/i915: Split the gamma/csc enable bits from the plane_ctl() function

2019-01-16 Thread Shankar, Uma
>-Original Message- >From: Intel-gfx [mailto:intel-gfx-boun...@lists.freedesktop.org] On Behalf Of >Ville Syrjälä >Sent: Tuesday, January 15, 2019 12:42 AM >To: Roper, Matthew D >Cc: intel-gfx@lists.freedesktop.org >Subject: Re: [Intel-gfx] [PATCH 02/13] drm/i915: Split the gamma/csc ena

Re: [Intel-gfx] [PATCH 2/7] drm/i915/perf: reset pollin when perf stream is enabled

2019-01-16 Thread Matthew Auld
On Wed, 16 Jan 2019 at 15:36, Lionel Landwerlin wrote: > > No issues have been raised about this yet, but this should be reset > every time we enable the stream, otherwise we might have a stale value > from the previous round of enable/disable. > > Signed-off-by: Lionel Landwerlin > --- > driver

Re: [Intel-gfx] [PATCH 03/13] drm/i915: Precompute gamma_mode

2019-01-16 Thread Shankar, Uma
>-Original Message- >From: Roper, Matthew D >Sent: Saturday, January 12, 2019 6:12 AM >To: Ville Syrjala >Cc: intel-gfx@lists.freedesktop.org; Shankar, Uma >Subject: Re: [PATCH 03/13] drm/i915: Precompute gamma_mode > >On Fri, Jan 11, 2019 at 07:08:13PM +0200, Ville Syrjala wrote: >> Fr

Re: [Intel-gfx] [PATCH 04/13] drm/i915: Constify the state arguments to the color management stuff

2019-01-16 Thread Shankar, Uma
>-Original Message- >From: Roper, Matthew D >Sent: Saturday, January 12, 2019 6:12 AM >To: Ville Syrjala >Cc: intel-gfx@lists.freedesktop.org; Shankar, Uma >Subject: Re: [PATCH 04/13] drm/i915: Constify the state arguments to the color >management stuff > >On Fri, Jan 11, 2019 at 07:08:

Re: [Intel-gfx] [PATCH 05/13] drm/i915: Pull GAMMA_MODE write out from haswell_load_luts()

2019-01-16 Thread Shankar, Uma
>-Original Message- >From: Roper, Matthew D >Sent: Saturday, January 12, 2019 6:27 AM >To: Ville Syrjala >Cc: intel-gfx@lists.freedesktop.org; Shankar, Uma >Subject: Re: [PATCH 05/13] drm/i915: Pull GAMMA_MODE write out from >haswell_load_luts() > >On Fri, Jan 11, 2019 at 07:08:15PM +02

Re: [Intel-gfx] [PATCH 07/13] drm/i915: Move LUT programming to happen after vblank waits

2019-01-16 Thread Matt Roper
On Fri, Jan 11, 2019 at 07:08:17PM +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > The LUTs are single buffered so we should program them after > the double buffered pipe updates have been latched by the > hardware. > > We'll also fix up the IPS vs. split gamma w/a to do the IPS > disable

  1   2   >