[Intel-gfx] [PATCH FOR CI 2/5] drm/i915: Remove I915_MAX_PIPES dependency for DDB allocation

2017-10-10 Thread Mika Kahola
Remove dependency for I915_MAX_PIPES by replacing it with for_each_pipe() macro. v2: use 'enum pipe pipe' instead of 'i' Reviewed-by: Ville Syrjälä Signed-off-by: Ramalingam C Signed-off-by: Mika Kahola --- drivers/gpu/drm/i915/intel_display.c | 5 - drivers/gpu/

[Intel-gfx] [PATCH FOR CI 3/5] drm/i915: Fold IRQ pipe masks

2017-10-10 Thread Mika Kahola
Fold IRQ pipe masks into one loop instead of hardcoding per pipe. Reviewed-by: Ville Syrjälä Signed-off-by: Mika Kahola --- drivers/gpu/drm/i915/i915_irq.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915

[Intel-gfx] [PATCH FOR CI 4/5] drm/i915: Favor for_each_pipe() macro

2017-10-10 Thread Mika Kahola
Favor for_each_pipe() macro when looping through pipes. v2: use 'enum pipe pipe' instead of 'i' Reviewed-by: Ville Syrjälä Signed-off-by: Mika Kahola --- drivers/gpu/drm/i915/intel_pipe_crc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/

Re: [Intel-gfx] [PATCH] drm/i915/cnl: Symmetric scalers for each pipe

2017-10-11 Thread Mika Kahola
On Wed, 2017-10-11 at 15:43 +0300, Ville Syrjälä wrote: > On Mon, Oct 09, 2017 at 03:26:07PM +0300, Mika Kahola wrote: > > > > For Cannonlake the number of scalers for each pipe is 2. Let's > > increase > > the number of scalers for pipe C. >

[Intel-gfx] [PATCH] drm/i915: Cache max number of pipes

2017-10-11 Thread Mika Kahola
pipes' variable which caches the maximum number of available pipes. Reference: https://bugs.freedesktop.org/show_bug.cgi?id=103206 Signed-off-by: Mika Kahola --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/intel_audio.c | 2 +- drivers/gpu/drm/i915/intel_device_

[Intel-gfx] [PATCH] drm/i915: Get rid of hardcoded pipes

2017-10-13 Thread Mika Kahola
Favor for_each_pipe() macro when looping through pipes. This patch is related to miscellenous fixes to reduce dependency on I915_MAX_PIPES. https://patchwork.freedesktop.org/series/30336/ Signed-off-by: Mika Kahola --- drivers/gpu/drm/i915/intel_dp_mst.c | 14 -- 1 file changed, 8

Re: [Intel-gfx] [PATCH] drm/i915: Cache max number of pipes

2017-10-16 Thread Mika Kahola
On Thu, 2017-10-12 at 09:55 +0300, Jani Nikula wrote: > On Thu, 12 Oct 2017, Mika Kahola wrote: > > > > CI system spotted an error on CFL system when running IGT tests > > with > > display disabled. In this case, the 'INTEL_INFO(dev_priv)- > > >num_pipes&

Re: [Intel-gfx] [PATCH 1/8] drm/i915: Clean up some cdclk switch statements

2017-10-19 Thread Mika Kahola
On Wed, 2017-10-18 at 23:48 +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Redo some switch statements in the cdclk code to use a common > fall through for the default case. Makes everything look a bit > more uniform > > Cc: Mika Kahola > Cc: Manasi Navare >

Re: [Intel-gfx] [PATCH i-g-t v2 02/14] lib/igt_kms: Rework plane properties to be more atomic, v5.

2017-10-19 Thread Mika Kahola
IXED(i,f) ((i) << 16 | (f)) >   > -/** > - * igt_atomic_populate_plane_req: > - * @req: A pointer to drmModeAtomicReq > - * @plane: A pointer igt_plane_t > - * @prop: one of igt_atomic_plane_properties > - * @value: the value to add > - */ > -#defi

Re: [Intel-gfx] [PATCH i-g-t v2 03/14] lib/igt_kms: Rework pipe properties to be more atomic, v7.

2017-10-19 Thread Mika Kahola
Reviewed-by: Mika Kahola On Thu, 2017-10-12 at 13:54 +0200, Maarten Lankhorst wrote: > In the future I want to allow tests to commit more properties, > but for this to work I have to fix all properties to work better > with atomic commit. Instead of special casing each > property ma

Re: [Intel-gfx] [PATCH i-g-t v2 04/14] lib/igt_kms: Allow setting any plane property through the universal path

2017-10-19 Thread Mika Kahola
Reviewed-by: Mika Kahola On Thu, 2017-10-12 at 13:54 +0200, Maarten Lankhorst wrote: > Blacklist some explicit atomic properties. We could theoretically set > them but that's not what the legacy path is for. :) > > When adding new properties, this means we could test those thr

Re: [Intel-gfx] [PATCH 7/8] drm/i915: Use cdclk_state->voltage on CNL

2017-10-19 Thread Mika Kahola
tage(dev_priv); > >  } > >   > >  static void cnl_cdclk_pll_disable(struct drm_i915_private > > *dev_priv) > > @@ -1594,8 +1600,7 @@ static void cnl_set_cdclk(struct > > drm_i915_private *dev_priv, > >   > > intel_update_cdclk(dev_priv); > >   > > +   dev_pri

Re: [Intel-gfx] [PATCH i-g-t v2 06/14] lib/igt_kms: Export property blob functions for output/pipe/plane, v2.

2017-10-19 Thread Mika Kahola
Reviewed-by: Mika Kahola On Thu, 2017-10-12 at 13:54 +0200, Maarten Lankhorst wrote: > With the replace_prop_blob functions we can safely replace the blob > for > any property, without having to care about error handling ourselves. > > This will for example allow overriding c

Re: [Intel-gfx] [PATCH i-g-t v2 07/14] lib/igt_kms: Unexport broadcast rgb API.

2017-10-19 Thread Mika Kahola
Reviewed-by: Mika Kahola On Thu, 2017-10-12 at 13:54 +0200, Maarten Lankhorst wrote: > Setting broadcast rgb was only used by chamelium, but is now handled > in igt_display by default. This means that chamelium doesn't need to > set it, and this can be hidden. The broadcast RGB pro

Re: [Intel-gfx] [PATCH i-g-t v2] lib/igt_kms: Add igt_$obj_has_prop functions, v2.

2017-10-19 Thread Mika Kahola
Reviewed-by: Mika Kahola On Thu, 2017-10-12 at 17:33 +0200, Maarten Lankhorst wrote: > This allows test to test whether a property is supported, in > a nice and clean way. It removes the need for special case > functions like igt_plane_supports_rotation. > > Conve

Re: [Intel-gfx] [PATCH i-g-t v2 09/14] lib/igt_kms: Add igt_$obj_get_prop functions

2017-10-19 Thread Mika Kahola
Reviewed-by: Mika Kahola On Thu, 2017-10-12 at 13:54 +0200, Maarten Lankhorst wrote: > Some tests need to get the current kernel value for properties > as part of the test. Add get_prop functions that will retrieve > the current kernel value. > > Signed-off-by: Maarten Lankhors

Re: [Intel-gfx] [PATCH i-g-t v2 10/14] lib/igt_kms: Remove igt_pipe_get_property

2017-10-19 Thread Mika Kahola
Reviewed-by: Mika Kahola On Thu, 2017-10-12 at 13:54 +0200, Maarten Lankhorst wrote: > igt_pipe_get_property has been replaced by igt_pipe_obj_get_prop. > > Signed-off-by: Maarten Lankhorst > --- >  lib/igt_kms.c | 10 -- >  lib/igt_kms.h |  3 --- >  2 files

Re: [Intel-gfx] [PATCH i-g-t v2 11/14] lib/igt_kms: Remove igt_crtc_set_background()

2017-10-19 Thread Mika Kahola
Reviewed-by: Mika Kahola On Thu, 2017-10-12 at 13:54 +0200, Maarten Lankhorst wrote: > This can be handled by generic properties. > > Signed-off-by: Maarten Lankhorst > --- >  lib/igt_kms.c | 21 - >  lib/igt_kms.h  

Re: [Intel-gfx] [PATCH i-g-t v2 13/14] tests/chamelium: Remove reliance on output->config.pipe

2017-10-20 Thread Mika Kahola
Reviewed-by: Mika Kahola On Thu, 2017-10-12 at 13:54 +0200, Maarten Lankhorst wrote: > IGT has an api that can find a matching pipe for a given connector, > so use that. > > igt_output_override_mode already forces a modeset on an affected pipe > since an earlier commit, so the

Re: [Intel-gfx] [PATCH i-g-t v2 12/14] tests/kms_color: Rework tests slightly to work better with new atomic api

2017-10-20 Thread Mika Kahola
Reviewed-by: Mika Kahola On Thu, 2017-10-12 at 13:54 +0200, Maarten Lankhorst wrote: > igt_pipe_get_property is about to be removed, so use > igt_pipe_obj_get_prop instead. This requires adding 2 more properties > to the crtc property list. Also get rid of the Broadcast RGB call,

Re: [Intel-gfx] [PATCH i-g-t v2 02/14] lib/igt_kms: Rework plane properties to be more atomic, v5.

2017-10-20 Thread Mika Kahola
On Thu, 2017-10-19 at 11:44 +0200, Maarten Lankhorst wrote: > Op 19-10-17 om 11:08 schreef Mika Kahola: > > > > On Thu, 2017-10-12 at 13:54 +0200, Maarten Lankhorst wrote: > > > > > > In the future I want to allow tests to commit more properties, > > &

Re: [Intel-gfx] [PATCH i-g-t v2 05/14] lib/igt_kms: Allow setting any output property through the !atomic paths

2017-10-20 Thread Mika Kahola
Reviewed-by: Mika Kahola On Thu, 2017-10-12 at 13:54 +0200, Maarten Lankhorst wrote: > Everything except CRTC_ID can be set in the legacy paths, > we even have 2, the legacy and universal path. Excercise both. :D > > Signed-off-by: Maarten Lankhorst > --- >  

Re: [Intel-gfx] [PATCH i-g-t v2] tests/kms_atomic: Convert/rewrite tests to use igt_kms framework, v2.

2017-10-20 Thread Mika Kahola
On Thu, 2017-10-12 at 17:33 +0200, Maarten Lankhorst wrote: > Now that we can set individual properties through the igt_kms api, > we no longer need to duplicate functionality from igt_kms. Set > invalid > properties directly, and rewrite kms_atomic.c to use igt_display. > This will allow us to rem

Re: [Intel-gfx] [PATCH i-g-t] tests/kms_concurrent: Fix testcase fails.

2017-10-20 Thread Mika Kahola
Reviewed-by: Mika Kahola On Thu, 2017-10-19 at 13:15 +0200, Maarten Lankhorst wrote: > igt_pipe_refresh was added for the forked helper, we could just call > it > from the fork to prevent races against MODE_ID. > > The static 1024x768 mode is allocated on the stack and returne

Re: [Intel-gfx] [PATCH i-g-t v2] tests/kms_atomic: Convert/rewrite tests to use igt_kms framework, v2.

2017-10-20 Thread Mika Kahola
On Fri, 2017-10-20 at 12:08 +0200, Maarten Lankhorst wrote: > Op 20-10-17 om 12:02 schreef Mika Kahola: > > > > On Thu, 2017-10-12 at 17:33 +0200, Maarten Lankhorst wrote: > > > > > > Now that we can set individual properties through the igt_kms > > >

Re: [Intel-gfx] [PATCH i-g-t] tests/kms_plane_lowres: Rework tests to work without fbcon.

2017-10-23 Thread Mika Kahola
Reviewed-by: Mika Kahola On Fri, 2017-10-13 at 16:58 +0200, Maarten Lankhorst wrote: > kmstest_get_crtc was skipping because at that point the crtc was not > active yet, instead we should only use igt_assert_plane_visible > directly. Unexport kmstest_get_crtc, since nothing here should

Re: [Intel-gfx] [PATCH] drm/i915/audio: fix check for av_enc_map overflow

2018-02-14 Thread Mika Kahola
sed or unused pipes") > Fixes: 0b7029b7e43f ("drm/i915: Check for fused or unused pipes") > Cc: # v4.10+ > Cc: Mika Kahola > Cc: Rodrigo Vivi > Cc: Jani Nikula > Cc: Joonas Lahtinen > Cc: intel-gfx@lists.freedesktop.org Reviewed-by: Mika Kahola > Signed-

Re: [Intel-gfx] [PATCH i-g-t] tests/kms_plane_multiple: Fix reference CRC

2017-08-02 Thread Mika Kahola
t; > > Daniel Vetter > > > Sent: Monday, July 31, 2017 11:13 AM > > > To: Kahola, Mika > > > Cc: intel-gfx > > > Subject: Re: [Intel-gfx] [PATCH i-g-t] tests/kms_plane_multiple: > > > Fix reference > > > CRC > > >

Re: [Intel-gfx] [PATCH i-g-t] tests/kms_plane_multiple: Fix reference CRC

2017-08-02 Thread Mika Kahola
On Wed, 2017-08-02 at 14:16 +0200, Daniel Vetter wrote: > On Wed, Aug 2, 2017 at 2:06 PM, Mika Kahola > wrote: > > > > On Wed, 2017-08-02 at 13:36 +0200, Daniel Vetter wrote: > > > > > > On Mon, Jul 31, 2017 at

Re: [Intel-gfx] [PATCH i-g-t] tests/kms_plane_multiple: Fix reference CRC

2017-08-02 Thread Mika Kahola
On Wed, 2017-08-02 at 15:42 +0300, Petri Latvala wrote: > After a bit of digging into this n_words conundrum that I also could > not understand, I found the issue Mika described. > > kms_plane_multiple et al basically do > > igt_crc_t crc; > > > and then they pass &crc to test-internal helper f

[Intel-gfx] [PATCH i-g-t v2] tests/kms_plane_multiple: Fix reference CRC

2017-08-02 Thread Mika Kahola
system and at least affects on HSW platform. V2: Don't change function that collects CRC for reference CRC Fix CRC pointers Remove unnecessary struct for holding test data Signed-off-by: Mika Kahola --- tests/kms_plane_multiple.c | 25 + 1 file chang

Re: [Intel-gfx] [PATCH i-g-t v2] tests/kms_plane_multiple: Fix reference CRC

2017-08-03 Thread Mika Kahola
y struct for test data as we only need > > reference CRC here. > > > > The problem was caught by CI system and at least affects on HSW > > platform. > > > > V2: Don't change function that collects CRC for reference CRC > > Fix CRC pointers > >

Re: [Intel-gfx] [PATCH i-g-t 1/3] lib/igt_aux: Export statistics of signal helper.

2017-08-04 Thread Mika Kahola
.h b/lib/igt_aux.h > index 499a16796ebb..7e080089dcbc 100644 > --- a/lib/igt_aux.h > +++ b/lib/igt_aux.h > @@ -55,6 +55,8 @@ extern int num_trash_bos; >  /* generally useful helpers */ >  void igt_fork_signal_helper(void); >  void igt_stop_signal_helper(void); > +int6

Re: [Intel-gfx] [PATCH i-g-t 3/3] tests: Add kms_atomic_interruptible test.

2017-08-04 Thread Mika Kahola
run_plane_test(&display, pipe, output, > test_setplane, DRM_PLANE_TYPE_CURSOR, COMMIT_LEGACY); > + break; > + } > + > + igt_subtest("universal-setplane-primary") > + for_each_pipe_with_valid_output(&display, pipe, > output) { > + run_plane_test(&display, pipe, output, > test_setplane, DRM_PLANE_TYPE_PRIMARY, COMMIT_UNIVERSAL); > + break; > + } > + > + igt_subtest("universal-setplane-cursor") > + for_each_pipe_with_valid_output(&display, pipe, > output) { > + run_plane_test(&display, pipe, output, > test_setplane, DRM_PLANE_TYPE_CURSOR, COMMIT_UNIVERSAL); > + break; > + } > + > + /* TODO: DPMS, gamma_set, setprop, getprop */ > + igt_fixture { > + igt_display_fini(&display); > + } > +} Otherwise looks good to me. -- Mika Kahola - Intel OTC ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH i-g-t 2/3] lib/igt_kms: Remove vblank wait after plane update.

2017-08-04 Thread Mika Kahola
 } >   > diff --git a/lib/igt_kms.h b/lib/igt_kms.h > index 35428f3e9675..d18a92600933 100644 > --- a/lib/igt_kms.h > +++ b/lib/igt_kms.h > @@ -323,7 +323,6 @@ typedef struct { >  struct igt_pipe { >   igt_display_t *display; >   enum pipe pipe; > - bool enabled; >   >   int n_planes; >   int plane_cursor; -- Mika Kahola - Intel OTC ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH i-g-t 2/3] lib/igt_kms: Remove vblank wait after plane update.

2017-08-08 Thread Mika Kahola
On Mon, 2017-08-07 at 10:42 +0200, Maarten Lankhorst wrote: > Op 04-08-17 om 10:07 schreef Mika Kahola: > > > > On Wed, 2017-08-02 at 12:29 +0200, Maarten Lankhorst wrote: > > > > > > With the conversion to atomic, this is already handled in the > > >

Re: [Intel-gfx] [PATCH 1/3] drm/i915/cnl: Add allowed DP rates for Cannonlake.

2017-08-10 Thread Mika Kahola
equencies over 5.4 GHz only supported on certain DDI ports and SKUs" The only difference between SKUs that I spotted was related to DDI D port speeds. If BSpec is correct, then we should somehow separate the max port speeds for DDI D port. > > v2: Rebase on top of source_rates changes. &g

Re: [Intel-gfx] [PATCH 2/3] drm/i915/cnl: Dump the right pll registers when dumping pipe config.

2017-08-10 Thread Mika Kahola
On Thu, 2017-07-06 at 13:54 -0700, Rodrigo Vivi wrote: > Different from SKL we don't need ctrl1 and cfgcr2, but > we need to dump cfgcr0 amd cfgcr1 instead. With minor typo fixed in commit message, this is Reviewed-by: Mika Kahola > > v2: rebase and commit message > >

Re: [Intel-gfx] [PATCH v2] drm/i915/bxt: use NULL for GPIO connection ID

2017-08-17 Thread Mika Kahola
Tested with GLK + MIPI/DSI panel (AU Optronics B101UAN01) Tested-by: Mika Kahola On Thu, 2017-08-17 at 13:55 +0300, Andy Shevchenko wrote: > The commit 213e08ad60ba > ("drm/i915/bxt: add bxt dsi gpio element support") > enables GPIO support for Broxton based platform

Re: [Intel-gfx] [PATCH 3/3] drm/i915/cnl: Avoid old DDI translation functions on Cannonlake.

2017-08-17 Thread Mika Kahola
r Cannonlake. > This patch only removes unecessary steps probably saving > us from some useless warnings. > > Cc: Clint Taylor > Cc: Mika Kahola > Signed-off-by: Rodrigo Vivi > --- >  drivers/gpu/drm/i915/intel_ddi.c | 6 +++--- >  1 file changed, 3 insertions(+), 3 dele

Re: [Intel-gfx] [PATCH v2] drm/i915/bxt: use NULL for GPIO connection ID

2017-08-18 Thread Mika Kahola
On Thu, 2017-08-17 at 14:06 +0300, Mika Kahola wrote: > Tested with GLK + MIPI/DSI panel (AU Optronics B101UAN01) Tested also with APL + MIPI/DSI setup. > > Tested-by: Mika Kahola > > On Thu, 2017-08-17 at 13:55 +0300, Andy Shevchenko wrote: > > > > The commit 213e

Re: [Intel-gfx] [PATCH i-g-t] tests/kms_atomic: subtest atomic_invalid_params requires CRTC

2017-08-29 Thread Mika Kahola
In my view, this is a valid check. Reviewed-by: Mika Kahola On Tue, 2017-08-29 at 13:32 +0300, Marta Lofstedt wrote: > Check for valid crtc is missing in igt@kms_atomic@atomic_invalid_para > ms. > This leads to segfault on machines where the subtest should be > skipped. >

[Intel-gfx] [PATCH 1/2] drm/i915/dsi: Send SHUTDOWN only for v3+ VBT's

2017-09-01 Thread Mika Kahola
versions 3 or higher. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102404 Signed-off-by: Mika Kahola --- drivers/gpu/drm/i915/intel_dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_dsi.c b/drivers/gpu/drm/i915/intel_dsi.c index 2a0f5d

[Intel-gfx] [PATCH 2/2] drm/i915/dsi: Replace MIPI command error message with debug message

2017-09-01 Thread Mika Kahola
Error message indicating that the same MIPI command is sent consecutively is perhaps too strongly said. Let's replace that as a debug message instead. Signed-off-by: Mika Kahola --- drivers/gpu/drm/i915/intel_dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver

[Intel-gfx] [PATCH 0/2] drm/i915/dsi: Fix error on DSI video mode command

2017-09-01 Thread Mika Kahola
02404 Mika Kahola (2): drm/i915/dsi: Send SHUTDOWN only for v3+ VBT's drm/i915/dsi: Replace MIPI command error message with debug message drivers/gpu/drm/i915/intel_dsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 ___

Re: [Intel-gfx] [PATCH 1/2] drm/i915/dsi: Send SHUTDOWN only for v3+ VBT's

2017-09-04 Thread Mika Kahola
On Fri, 2017-09-01 at 16:43 +0300, Ville Syrjälä wrote: > On Fri, Sep 01, 2017 at 10:51:00AM +0300, Mika Kahola wrote: > > > > According to spec we should send SHUTDOWN before > > MIPI_SEQ_DISPLAY_OFF for > > v3+ VBT's. Testing with VBT v3 the current implementat

Re: [Intel-gfx] [PATCH 1/2] drm/i915/dsi: Send SHUTDOWN only for v3+ VBT's

2017-09-05 Thread Mika Kahola
On Mon, 2017-09-04 at 18:04 +0300, Ville Syrjälä wrote: > On Mon, Sep 04, 2017 at 10:59:32AM +0300, Mika Kahola wrote: > > > > On Fri, 2017-09-01 at 16:43 +0300, Ville Syrjälä wrote: > > > > > > On Fri, Sep 01, 2017 at 10:51:00AM +0300, Mika Kahola wrote: >

Re: [Intel-gfx] [PATCH] Revert "drm/i915/bxt: Disable device ready before shutdown command"

2017-09-05 Thread Mika Kahola
The revert patch solved the issue *ERROR* Video mode command 0x0041 send failed. on my setup with APL+MIPI/DSI single link combo. Tested-by: Mika Kahola On Tue, 2017-09-05 at 15:14 +0530, Vidya Srinivas wrote: > From: Uma Shankar > > This rever

[Intel-gfx] [PATCH] drm/i915/dsi: Silence atomic update failure with DSI panel

2017-09-05 Thread Mika Kahola
https://bugs.freedesktop.org/show_bug.cgi?id=102403 Signed-off-by: Mika Kahola --- drivers/gpu/drm/i915/intel_sprite.c | 32 +--- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c index b0d6e3e..85

Re: [Intel-gfx] [PATCH] drm/i915/dsi: Silence atomic update failure with DSI panel

2017-09-06 Thread Mika Kahola
On Tue, 2017-09-05 at 18:11 +0200, Daniel Vetter wrote: > On Tue, Sep 05, 2017 at 04:35:04PM +0300, Mika Kahola wrote: > > > > It appears that we cannot trust scanline counters when MIPI/DSI > > display is > > connected. In CI system this appears as flickering errors t

Re: [Intel-gfx] [PATCH] drm/i915/dsi: Silence atomic update failure with DSI panel

2017-09-07 Thread Mika Kahola
On Thu, 2017-09-07 at 13:29 +0200, Maarten Lankhorst wrote: > Op 05-09-17 om 15:35 schreef Mika Kahola: > > > > It appears that we cannot trust scanline counters when MIPI/DSI > > display is > > connected. In CI system this appears as flickering errors that > >

Re: [Intel-gfx] [PATCH i-g-t 1/1] tools: Update .gitignore

2018-01-11 Thread Mika Kahola
On Thu, 2018-01-11 at 11:27 +0200, Petri Latvala wrote: > Fixes: 834321a5d76a ("tools: Cannonlake port clock programming") Reviewed-by: Mika Kahola > Signed-off-by: Petri Latvala > Cc: Mika Kahola > --- >  tools/.gitignore | 1 + >  1 file changed, 1 insertio

Re: [Intel-gfx] [PATCH i-g-t v2 1/9] tests/kms_plane: Run test for all supported pixel formats, v2.

2018-01-12 Thread Mika Kahola
ommits the same on display. > > Changes since v1: > - Make the test more generic and try on all planes, including legacy > cursor. > Reviewed-by: Mika Kahola > Signed-off-by: Mahesh Kumar > Signed-off-by: Jyoti Yadav > Signed-off-by: Vidya Srinivas > Signed-off-by:

Re: [Intel-gfx] [PATCH i-g-t v2 2/9] tests/kms_plane_scaling: Move the actual test to its own function.

2018-01-15 Thread Mika Kahola
On Fri, 2018-01-12 at 11:21 +0100, Maarten Lankhorst wrote: > We will add more subtests in the future, it's more clear if we split > out the actual test to its own function first. > Reviewed-by: Mika Kahola > Signed-off-by: Maarten Lankhorst > --- >  tests/km

Re: [Intel-gfx] [PATCH i-g-t v2 3/9] tests/kms_plane_scaling: Fix basic scaling test, v2.

2018-01-15 Thread Mika Kahola
the > image to avoid "Max pixel rate limitation" of the hardware. > > Later patches in this series will cover corner cases of > scaling. > > Changes since v1: > - Move out the code reshuffle to a separate commit. (Maarten) >   This makes it more clear what's f

Re: [Intel-gfx] [PATCH i-g-t v2 4/9] tests/kms_plane_scaling: Convert from simple test to full test

2018-01-15 Thread Mika Kahola
On Fri, 2018-01-12 at 11:21 +0100, Maarten Lankhorst wrote: > Convert the test to run subtests per pipe, before we start adding > more subtests. > Reviewed-by: Mika Kahola > Signed-off-by: Maarten Lankhorst > --- >  tests/kms_pl

Re: [Intel-gfx] [PATCH i-g-t v2 8/9] lib/igt_kms: Add more braces around macros

2018-01-15 Thread Mika Kahola
On Fri, 2018-01-12 at 11:21 +0100, Maarten Lankhorst wrote: > The next patch wants to call for_each_pipe_with_valid_output > with *pipe and *output, this fails miserably without these braces. > Reviewed-by: Mika Kahola > Signed-off-by: Maarten Lankhorst > --- >  

Re: [Intel-gfx] [PATCH i-g-t v3 4/8] tests/kms_plane_scaling: Move get_num_scalers to a function.

2018-01-16 Thread Mika Kahola
utput_on_pipe(&data.dis > play, pipe); >   > + igt_require(get_num_scalers(data.devid, > pipe) > 0); > + } > + >   igt_subtest_f("pipe-%s-plane-scaling", > kmstest_pipe_name(pipe)) >   for_each_valid_

Re: [Intel-gfx] [PATCH i-g-t v3 5/8] tests/kms_plane_scaling: Clean up tests to work better with igt_kms, v2.

2018-01-16 Thread Mika Kahola
se failures in other > subtests. > > Changes since v1: > - Rebase on top of num_scalers changes. > Reviewed-by: Mika Kahola > Signed-off-by: Maarten Lankhorst > --- >  tests/kms_plane_scaling.c | 235 +++- > -- >  1 file changed,

Re: [Intel-gfx] [PATCH i-g-t v3 7/8] tests/kms_plane_scaling: test scaler with clipping clamping, v3.

2018-01-16 Thread Mika Kahola
; Changes since v2: > - Use get_num_scalers() to skip when needed. > Reviewed-by: Mika Kahola > Signed-off-by: Jyoti Yadav > Signed-off-by: Mahesh Kumar > Signed-off-by: Vidya Srinivas > Signed-off-by: Maarten Lankhorst > --- >  tests/kms_plane_scaling.c | 43 > +++

Re: [Intel-gfx] [PATCH i-g-t] tests/kms_plane_scaling: Move get_num_scalers to a function, v2.

2018-01-16 Thread Mika Kahola
On Tue, 2018-01-16 at 11:03 +0100, Maarten Lankhorst wrote: > The number of scalers can depend on the pipe, so require at least 1 > scaler before running any subtests. > > Changes since v1: > - More closely match kernel implementation. (Mika) > Reviewed-by: Mika Kahola

Re: [Intel-gfx] [PATCH i-g-t v3 6/8] tests/kms_plane_scaling: test scaling with tiling rotation and pixel formats, v2.

2018-01-16 Thread Mika Kahola
ling on plane2 */ >  static void iterate_plane_scaling(data_t *d, drmModeModeInfo *mode) >  { > @@ -293,6 +443,15 @@ igt_main >   igt_subtest_f("pipe-%s-plane-scaling", > kmstest_pipe_name(pipe)) >   for_each_valid_output_on_pipe(&da

Re: [Intel-gfx] [PATCH i-g-t v3 8/8] tests/kms_plane_scaling: test for multi pipe with scaling, v3.

2018-01-16 Thread Mika Kahola
t; + igt_plane_set_size(d->plane1, mode1->hdisplay, mode1- > >vdisplay); > + igt_plane_set_size(d->plane3, mode2->hdisplay, mode2- > >vdisplay); > + igt_display_commit2(display, COMMIT_ATOMIC); > + > + /* Upscaling Sprites */ > + igt_plane_set_size(d->plane2 ?: d

Re: [Intel-gfx] [PATCH i-g-t v3 8/8] tests/kms_plane_scaling: test for multi pipe with scaling, v3.

2018-01-16 Thread Mika Kahola
On Tue, 2018-01-16 at 14:47 +0100, Maarten Lankhorst wrote: > Op 16-01-18 om 14:46 schreef Mika Kahola: > > > > On Mon, 2018-01-15 at 15:28 +0100, Maarten Lankhorst wrote: > > > > > > From: Jyoti Yadav > > > > > > Add a subtest to display prim

Re: [Intel-gfx] [PATCH i-g-t] tests/kms_plane_scaling: test scaling with tiling rotation and pixel formats, v3.

2018-01-16 Thread Mika Kahola
display, mode->vdisplay); > + igt_plane_set_rotation(plane, rot); > + igt_display_commit2(display, COMMIT_ATOMIC); > + > + igt_plane_set_fb(plane, NULL); > + igt_plane_set_position(plane, 0, 0); > +} > + > +static const igt_rotation_t rotations[] = { > + IGT_R

Re: [Intel-gfx] [PATCH 03/15] drm/i915/skl+: add NV12 in skl_format_to_fourcc

2018-01-17 Thread Mika Kahola
On Sun, 2018-01-21 at 03:15 +0530, Vidya Srinivas wrote: > From: Mahesh Kumar > > Add support of recognizing DRM_FORMAT_NV12 from plane_format > register value. > Reviewed-by: Mika Kahola > Signed-off-by: Mahesh Kumar > --- >  drivers/gpu/drm/i915/intel_display.c | 2

Re: [Intel-gfx] [PATCH 03/16] drm/i915/skl+: add NV12 in skl_format_to_fourcc

2018-01-23 Thread Mika Kahola
On Mon, 2018-01-22 at 17:33 +0530, Vidya Srinivas wrote: > From: Mahesh Kumar > > Add support of recognizing DRM_FORMAT_NV12 from plane_format > register value. > Reviewed-by: Mika Kahola > Signed-off-by: Mahesh Kumar > --- >  drivers/gpu/drm/i915/intel_display.c | 2

Re: [Intel-gfx] [PATCH 6/7] drm/i915: Drop WaDoubleCursorLP3Latency:ivb

2018-01-31 Thread Mika Kahola
On Tue, 2018-01-30 at 22:38 +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > WaDoubleCursorLP3Latency was meant for pre-production hardware. > Drop it. > Reviewed-by: Mika Kahola > Signed-off-by: Ville Syrjälä > --- >  drivers/gpu/drm/i915/intel_pm.c | 4 -

Re: [Intel-gfx] [PATCH 1/7] drm/i915: Don't set cursor pipe select bits on g4x+

2018-02-01 Thread Mika Kahola
te 0 to these bits. Let's > follow that recommendation. On ilk+ the bits become hardwired to 0. > > Also looks like ICL repurposes these bits for some other use, so > we had better stop setting them to bogus values there. > Reviewed-by: Mika Kahola > Signed-off-by: Vil

Re: [Intel-gfx] [PATCH 2/7] drm/i915: Set the primary plane pipe select bits on gen4

2018-02-02 Thread Mika Kahola
re register > would read, should we want to cross check the two. > Reviewed-by: Mika Kahola > Signed-off-by: Ville Syrjälä > --- >  drivers/gpu/drm/i915/intel_display.c | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/intel_disp

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 1/2] lib/igt_kms.c: modify kmstest_dump_mode to print aspect ratio of a mode

2018-02-12 Thread Mika Kahola
 /include/uapi/drm/drm_mode.h? Although, I wasn't able to find these definitions from that file. Do we have a patch under review in drm to fill this gap? Otherwise, the patch looks good. Acked-by: Mika Kahola >  /** >   * SECTION:igt_kms >   * @short_descrip

Re: [Intel-gfx] [PATCH 03/16] drm/i915/skl+: add NV12 in skl_format_to_fourcc

2018-02-13 Thread Mika Kahola
On Tue, 2018-02-13 at 15:22 +0530, Vidya Srinivas wrote: > From: Mahesh Kumar > > Add support of recognizing DRM_FORMAT_NV12 from plane_format > register value. > Reviewed-by: Mika Kahola > Signed-off-by: Mahesh Kumar > --- >  drivers/gpu/drm/i915/intel_display.c | 2

Re: [Intel-gfx] [PATCH i-g-t] tests/kms_plane_lowres: Add DRM_MODE_ATOMIC_ALLOW_MODESET test

2017-03-08 Thread Mika Kahola
On Wed, 2017-03-08 at 13:38 +0100, Maarten Lankhorst wrote: > Hey, > > Op 07-02-17 om 14:33 schreef Mika Kahola: > > > > When doing a full atomic modeset, kernel should fail if the flag > > DRM_MODE_ATOMIC_ALLOW_MODESET is not set. Let's add this test as &

Re: [Intel-gfx] [PATCH i-g-t] tests/kms_atomic: test that TEST_ONLY does not clobber state

2017-03-08 Thread Mika Kahola
On Wed, 2017-03-08 at 15:08 +0100, Maarten Lankhorst wrote: > Op 17-02-17 om 14:39 schreef Mika Kahola: > > > > We need to make sure that TEST_ONLY really only touches the free- > > standing > > state objects and nothing else. Test approach here is the > > foll

Re: [Intel-gfx] [PATCH i-g-t 3/4] tests/testdisplay: Remove unused SPRITE_COLOR_KEY

2017-03-09 Thread Mika Kahola
On Wed, 2017-03-08 at 16:44 +0200, Petri Latvala wrote: > Unused since 99bdf4f0ff3e ("tests/testdisplay: Use cairo helpers to > draw to plane") > > Signed-off-by: Petri Latvala Reviewed-by: Mika Kahola > --- >  tests/testdisplay.c | 1 - >  1 file changed, 1 dele

[Intel-gfx] [PATCH i-g-t v2] tests/kms_atomic: test that TEST_ONLY does not clobber state

2017-03-09 Thread Mika Kahola
none of that is clobbered v2: use ATOMIC_RELAX_NONE instead of CRTC_RELAX_MODE when checking crtc or plane state (Maarten) rename subtest and function that executes this test (Maarten) Signed-off-by: Mika Kahola --- tests/kms_atomic.c | 82

Re: [Intel-gfx] [PATCH i-g-t] tests/kms_concurrent: Concurrent and interruptible subtests for atomic

2017-03-09 Thread Mika Kahola
On Wed, 2017-03-08 at 15:00 +0100, Maarten Lankhorst wrote: > Op 23-02-17 om 14:26 schreef Mika Kahola: > > > > This test case introduces concurrently running test cases for > > atomic > > modesetting. > > > > The first test or thread draws blue backroun

Re: [Intel-gfx] [PATCH i-g-t 4/4] assembler/gen8_disasm.c: Remove unused m_mask_ctrl

2017-03-09 Thread Mika Kahola
On Wed, 2017-03-08 at 16:44 +0200, Petri Latvala wrote: > Signed-off-by: Petri Latvala Reviewed-by: Mika Kahola > --- >  assembler/gen8_disasm.c | 5 - >  1 file changed, 5 deletions(-) > > diff --git a/assembler/gen8_disasm.c b/assembler/gen8_disasm.c > index 7f

Re: [Intel-gfx] [PATCH 2/5] drm/i915: s/__raw_i915_read32/I915_READ_FW/ in the SKL+ scanline read w/a

2017-03-13 Thread Mika Kahola
so let's follow suit. > > Signed-off-by: Ville Syrjälä Reviewed-by: Mika Kahola > --- >  drivers/gpu/drm/i915/i915_irq.c | 3 +-- >  1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/i915/i915_irq.c > b/drivers/gpu/drm/i915/i915_irq

[Intel-gfx] [PATCH i-g-t v2] tests/kms_concurrent: Concurrent and interruptible subtests for atomic

2017-03-15 Thread Mika Kahola
ad changes resolution from higher to lower one and back. The delay between resolution changes is randomly selected between 20 and 50 milliseconds. The test runs by default 32 iterations to increase the coverage. v2: use igt_fork instead of pthreads to create concurrent test runs (Maarten) Signed-of

Re: [Intel-gfx] [PATCH i-g-t v3 1/7] lib/igt_kms: Add forcing TEST_ONLY for atomic commits

2017-03-23 Thread Mika Kahola
On Wed, 2017-03-08 at 15:59 +0100, Maarten Lankhorst wrote: > Op 01-02-17 om 14:18 schreef Mika Kahola: > > > > Add an option to force atomic commits to do commits with TEST_ONLY > > flag > > first before doing the actual commit. > > > > Signed-off-by:

[Intel-gfx] [PATCH i-g-t v4 0/7] Validate TEST_ONLY correctness against full atomic commit

2017-03-23 Thread Mika Kahola
selection in igt core separate test cases for TEST_ONLY atomic commits (Maarten) v4: Clear force_test_atomic flag if atomic commit fails (Maarten) For: VIZ-6956 Mika Kahola (7): lib/igt_kms: Add forcing TEST_ONLY for atomic commits tests/kms_plane_multiple: Add TEST_ONLY flag Cc

[Intel-gfx] [PATCH i-g-t v4 6/7] tests/kms_plane_lowres: Add TEST_ONLY flag

2017-03-23 Thread Mika Kahola
Add TEST_ONLY flag to test atomic modesetting commits without actual real-life commit. Signed-off-by: Mika Kahola --- tests/kms_plane_lowres.c | 40 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/tests/kms_plane_lowres.c b/tests

[Intel-gfx] [PATCH i-g-t v4 5/7] tests/kms_rotation_crc: Add TEST_ONLY flag

2017-03-23 Thread Mika Kahola
Add TEST_ONLY flag to test atomic modesetting commits without actual real-life commit. Signed-off-by: Mika Kahola --- tests/kms_rotation_crc.c | 139 +++ 1 file changed, 139 insertions(+) diff --git a/tests/kms_rotation_crc.c b/tests

[Intel-gfx] [PATCH i-g-t v4 2/7] tests/kms_plane_multiple: Add TEST_ONLY flag Cc: maarten.lankho...@linux.intel.com

2017-03-23 Thread Mika Kahola
Add TEST_ONLY flag to test atomic modesetting commits without actual real-life commit. v2: Use flag to indicate to test with TEST_ONLY flag with atomic commit v3: Moved force_test_atomic flag set to 'test_plane_position()' Signed-off-by: Mika Kahola --- tests/kms_plane_multi

[Intel-gfx] [PATCH i-g-t v4 2/3] tests/kms_plane_multiple: Add TEST_ONLY flag Cc: maarten.lankho...@linux.intel.com

2017-03-23 Thread Mika Kahola
Add TEST_ONLY flag to test atomic modesetting commits without actual real-life commit. v2: Use flag to indicate to test with TEST_ONLY flag with atomic commit v3: Moved force_test_atomic flag set to 'test_plane_position()' Signed-off-by: Mika Kahola --- tests/kms_plane_multi

[Intel-gfx] [PATCH i-g-t v4 4/7] tests/kms_plane_scaling: Add TEST_ONLY flag

2017-03-23 Thread Mika Kahola
Add TEST_ONLY flag to test atomic scaling without actually committing the changes. v2: Create subtests with TEST_ONLY flag and one without v3: Rename subtest 'force-atomic-test' as 'with-atomic-test' Signed-off-by: Mika Kahola --- tests/kms_plane_scaling.c | 28 +++

[Intel-gfx] [PATCH i-g-t v4 1/7] lib/igt_kms: Add forcing TEST_ONLY for atomic commits

2017-03-23 Thread Mika Kahola
Add an option to force atomic commits to do commits with TEST_ONLY flag first before doing the actual commit. v2: Clear force_test_atomic flag if atomic commit with TEST_ONLY flag fails (Maarten) Signed-off-by: Mika Kahola --- lib/igt_kms.c | 22 +- lib/igt_kms.h | 1

[Intel-gfx] [PATCH i-g-t v4 3/7] tests/kms_atomic_transition: Add TEST_ONLY flag

2017-03-23 Thread Mika Kahola
Add TEST_ONLY flag to test atomic transition display commits without actual real-life commit. v2: use flag to force atomic commit with TEST_ONLY flag v3: Rebase Signed-off-by: Mika Kahola --- tests/kms_atomic_transition.c | 72 +++ 1 file changed, 59

[Intel-gfx] [PATCH i-g-t v4 7/7] tests/kms_cursor_legacy: Add TEST_ONLY flag

2017-03-23 Thread Mika Kahola
Add TEST_ONLY flag to test atomic modesetting commits without actual real-life commit. Signed-off-by: Mika Kahola --- tests/kms_cursor_legacy.c | 230 -- 1 file changed, 204 insertions(+), 26 deletions(-) diff --git a/tests/kms_cursor_legacy.c b

[Intel-gfx] [PATCH i-g-t v4 2/7] tests/kms_plane_multiple: Add TEST_ONLY flag

2017-03-23 Thread Mika Kahola
Add TEST_ONLY flag to test atomic modesetting commits without actual real-life commit. v2: Use flag to indicate to test with TEST_ONLY flag with atomic commit v3: Moved force_test_atomic flag set to 'test_plane_position()' v4: Fix typo in subject field Signed-off-by: Mika Kahola

Re: [Intel-gfx] [PATCH v2] drm/i915/bxt: add bxt dsi gpio element support

2016-12-20 Thread Mika Kahola
Hi Bob, On Tue, 2016-12-20 at 09:53 -0800, Bob Paauwe wrote: > On Tue, 13 Dec 2016 16:11:20 +0200 > Jani Nikula wrote: > > > > > On Mon, 05 Dec 2016, Mika Kahola wrote: > > > > > > From: Jani Nikula > > > > > > Request the GPIO by i

[Intel-gfx] [PATCH i-g-t 1/5] tests/kms_plane_multiple: Add TEST_ONLY flag

2016-12-30 Thread Mika Kahola
Add TEST_ONLY flag to test atomic modesetting commits without actual real-life commit. Signed-off-by: Mika Kahola --- tests/kms_plane_multiple.c | 79 -- 1 file changed, 49 insertions(+), 30 deletions(-) diff --git a/tests/kms_plane_multiple.c b

[Intel-gfx] [PATCH i-g-t 0/5] Validate TEST_ONLY correctness against full atomic commit

2016-12-30 Thread Mika Kahola
TEST_ONLY flag the real deal atomic commit is executed and the outcome is verified. For: VIZ-6956 Mika Kahola (5): tests/kms_plane_multiple: Add TEST_ONLY flag tests/kms_atomic_transition: Add TEST_ONLY flag tests/kms_plane_scaling: Add TEST_ONLY flag tests/kms_rotation_crc: Add TEST_ONLY flag

[Intel-gfx] [PATCH i-g-t 4/5] tests/kms_rotation_crc: Add TEST_ONLY flag

2016-12-30 Thread Mika Kahola
Add TEST_ONLY flag to test atomic transition display commits without actual real-life commit. Signed-off-by: Mika Kahola --- tests/kms_rotation_crc.c | 282 +-- 1 file changed, 222 insertions(+), 60 deletions(-) diff --git a/tests/kms_rotation_crc.c

[Intel-gfx] [PATCH i-g-t 5/5] tests/kms_test_only: Validate TEST_ONLY correctness against full atomic commit

2016-12-30 Thread Mika Kahola
TEST_ONLY flag the real deal atomic commit is executed and the outcome is verified. The test runs by default for 64 iterations. Signed-off-by: Mika Kahola --- tests/Makefile.sources | 1 + tests/kms_test_only.c | 455 + 2 files changed, 456 insertions

[Intel-gfx] [PATCH i-g-t 3/5] tests/kms_plane_scaling: Add TEST_ONLY flag

2016-12-30 Thread Mika Kahola
Add TEST_ONLY flag to test atomic scaling without actually committing the changes. Signed-off-by: Mika Kahola --- tests/kms_plane_scaling.c | 152 -- 1 file changed, 135 insertions(+), 17 deletions(-) diff --git a/tests/kms_plane_scaling.c b/tests

[Intel-gfx] [PATCH i-g-t 2/5] tests/kms_atomic_transition: Add TEST_ONLY flag

2016-12-30 Thread Mika Kahola
Add TEST_ONLY flag to test atomic transition display commits without actual real-life commit. Signed-off-by: Mika Kahola --- tests/kms_atomic_transition.c | 227 -- 1 file changed, 152 insertions(+), 75 deletions(-) diff --git a/tests

[Intel-gfx] [PATCH i-g-t v4] tests/kms_plane_lowres: Plane visibility after atomic modesets

2016-12-30 Thread Mika Kahola
ert_plane_visibility() function drop option for multiple test iterations (Daniel Vetter) v4: switch 'for_each_connected_output()' to 'for_each_valid_output_on_pipe()' (Maarten) Cc: Daniel Stone Cc: Maarten Lankhorst Signed-off-by: Mika Kahola --- lib/igt_

[Intel-gfx] [PATCH] drm/i915: Header cleanup for intel_display

2017-01-04 Thread Mika Kahola
Remove reference to drm/drm_edid.h and drm/drmP.h as these are no longer required. Signed-off-by: Mika Kahola --- drivers/gpu/drm/i915/intel_display.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index ab72858

<    1   2   3   4   5   6   7   8   9   10   >