Re: [Intel-gfx] [PATCH 5/5] drm/i915: Use partial view in mmap fault handler

2015-04-27 Thread Chris Wilson
On Mon, Apr 27, 2015 at 02:01:59PM +0300, Joonas Lahtinen wrote: On pe, 2015-04-24 at 13:33 +0100, Chris Wilson wrote: On Fri, Apr 24, 2015 at 03:10:20PM +0300, Joonas Lahtinen wrote: Use partial view for huge BOs (bigger than half the mappable aperture) in fault handler so that they can

Re: [Intel-gfx] [PATCH 5/5] drm/i915: Use partial view in mmap fault handler

2015-04-27 Thread Joonas Lahtinen
On pe, 2015-04-24 at 13:33 +0100, Chris Wilson wrote: On Fri, Apr 24, 2015 at 03:10:20PM +0300, Joonas Lahtinen wrote: Use partial view for huge BOs (bigger than half the mappable aperture) in fault handler so that they can be accessed withough trying to make room for them by evicting other

Re: [Intel-gfx] [PATCH v9] drm/i915/skl: Add support for SKL background color

2015-04-27 Thread Konduru, Chandra
-Original Message- From: Ville Syrjälä [mailto:ville.syrj...@linux.intel.com] Sent: Monday, April 27, 2015 8:28 AM On Fri, Feb 20, 2015 at 04:11:33PM -0800, Chandra Konduru wrote: This patch adds support for Skylake display pipe background color. + td valign=top Background color

Re: [Intel-gfx] [PATCH v2 i-g-t] kms_atomic: Measure speed of some plane ioctls

2015-04-27 Thread Chris Wilson
On Mon, Apr 27, 2015 at 04:34:05PM +0100, Tvrtko Ursulin wrote: +static void prepare_crtc(data_t *data, igt_output_t *output, enum pipe pipe, + igt_plane_t *plane) +{ + drmModeModeInfo *mode; + igt_display_t *display = data-display; + int fb_id,

[Intel-gfx] [PATCH 13/14] drm/i915: skylake primary plane scaling using shared scalers

2015-04-27 Thread Chandra Konduru
This patch enables skylake primary plane scaling using shared scalers atomic desgin. v2: -use single copy of scaler limits (Matt) v3: -move detach_scalers to crtc commit path (Matt) -use values in plane_state-src as regular integers (me) v4: -changes to align with updated scaler structures

Re: [Intel-gfx] [PATCH i-g-t] tests/gem_mmap_gtt: Use PAGE_SIZE instead of hard coded value

2015-04-27 Thread Chris Wilson
On Mon, Apr 27, 2015 at 06:35:54PM +0100, Thomas Wood wrote: On 24 April 2015 at 08:38, Joonas Lahtinen joonas.lahti...@linux.intel.com wrote: Now that there is PAGE_SIZE define, use it. Thanks, I've pushed this patch. I also noticed PAGE_SIZE gets defined in several tests, so at some

Re: [Intel-gfx] [PATCH 1/1 linux-next] drm/i915: use ERR_CAST instead of ERR_PTR/PTR_ERR

2015-04-27 Thread Jani Nikula
On Sat, 25 Apr 2015, Fabian Frederick f...@skynet.be wrote: Inspired by scripts/coccinelle/api/err_cast.cocci Signed-off-by: Fabian Frederick f...@skynet.be Reviewed-by: Jani Nikula jani.nik...@intel.com --- drivers/gpu/drm/i915/intel_drv.h | 2 +- 1 file changed, 1 insertion(+), 1

[Intel-gfx] [PATCH 1/1 linux-next] drm/i915: use ERR_CAST instead of ERR_PTR/PTR_ERR

2015-04-27 Thread Fabian Frederick
Inspired by scripts/coccinelle/api/err_cast.cocci Signed-off-by: Fabian Frederick f...@skynet.be --- drivers/gpu/drm/i915/intel_drv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index 897f17d..d52f267

[Intel-gfx] [PATCH 10/16] drm/i915: Limit mmio flip RPS boosts

2015-04-27 Thread Chris Wilson
Since we will often pageflip to an active surface, we will often have to wait for the surface to be written before issuing the flip. Also we are likely to wait on that surface in plenty of time before the vblank. Since we have a mechanism for boosting when a flip misses the expected vblank,

[Intel-gfx] [PATCH 16/16] drm/i915: Allow RPS waitboosting to use max GPU frequency

2015-04-27 Thread Chris Wilson
Ignore the restriction imposed by the user for when the GPU is stalling the clients and dropping frames. We will return back to the user limits immediately once the stall is over. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk --- drivers/gpu/drm/i915/intel_pm.c | 2 +- 1 file changed, 1

[Intel-gfx] [PATCH 03/16] drm/i915: Remove domain flubbing from i915_gem_object_finish_gpu()

2015-04-27 Thread Chris Wilson
We no longer interpolate domains in the same manner, and even if we did, we should trust setting either of the other write domains would trigger an invalidation rather than force it. Remove the tweaking of the read_domains since it serves no purpose and use i915_gem_object_wait_rendering()

[Intel-gfx] [PATCH 11/16] drm/i915: Convert RPS tracking to a intel_rps_client struct

2015-04-27 Thread Chris Wilson
Now that we have internal clients, rather than faking a whole drm_i915_file_private just for tracking RPS boosts, create a new struct intel_rps_client and pass it along when waiting. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk --- drivers/gpu/drm/i915/i915_debugfs.c | 12

[Intel-gfx] [PATCH 15/16] drm/i915, intel_ips: Enable GPU wait-boosting with IPS

2015-04-27 Thread Chris Wilson
Refactor the reclocking logic used by RPS on Ironlake to reuse the infrastructure developed for RPS on Sandybridge+, along with the waitboosting support for stalled clients and missed frames. Reported-by: di...@gmx.net Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90137 Signed-off-by:

[Intel-gfx] [PATCH 07/16] drm/i915: Inline check required for object syncing prior to execbuf

2015-04-27 Thread Chris Wilson
This trims a little overhead from the common case of not needing to synchronize between rings. v2: execlists is special and likes to duplicate code. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk --- drivers/gpu/drm/i915/i915_gem_execbuffer.c | 10 +++---

[Intel-gfx] [PATCH 04/16] drm/i915: Ensure cache flushes prior to doing CS flips

2015-04-27 Thread Chris Wilson
Synchronising to an object active on the same ring is a no-op, for the benefit of execbuffer scheduler. However, for CS flips this means that we can forgo checking whether the last write request of the object is actually queued and more importantly whether the cache flush for the write was

[Intel-gfx] [PATCH 06/16] drm/i915: Implement inter-engine read-read optimisations

2015-04-27 Thread Chris Wilson
Currently, we only track the last request globally across all engines. This prevents us from issuing concurrent read requests on e.g. the RCS and BCS engines (or more likely the render and media engines). Without semaphores, we incur costly stalls as we synchronise between rings - greatly

[Intel-gfx] [PATCH 05/16] drm/i915: Fix race on unreferencing the wrong mmio-flip-request

2015-04-27 Thread Chris Wilson
As we perform the mmio-flip without any locking and then try to acquire the struct_mutex prior to dereferencing the request, it is possible for userspace to queue a new pageflip before the worker can finish clearing the old state - and then it will clear the new flip request. The result is that

[Intel-gfx] [PATCH 01/16] drm/i915: Drop i915_gem_obj_is_pinned() from set-cache-level

2015-04-27 Thread Chris Wilson
Since the remove of the pin-ioctl, we only care about not changing the cache level on buffers pinned to the hardware as indicated by obj-pin_display. So we can safely replace i915_gem_object_is_pinned() here with a plain obj-pin_display check. During rebinding, we will check sanity checks in case

[Intel-gfx] [PATCH 14/16] drm/i915: Make the RPS interface gen agnostic

2015-04-27 Thread Chris Wilson
This is a preparation patch to change the interface over from gen6+ to any so that we can extend the RPS infrastructure to support earlier generations in subsequent patches. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk --- drivers/gpu/drm/i915/i915_debugfs.c | 4 +--

Re: [Intel-gfx] [PATCH 3/5] drm/i915: Consider object pinned if any VMA is pinned

2015-04-27 Thread Joonas Lahtinen
On pe, 2015-04-24 at 13:29 +0100, Chris Wilson wrote: On Fri, Apr 24, 2015 at 03:09:39PM +0300, Joonas Lahtinen wrote: Do not skip special GGTT views when considering whether an object is pinned or not. Wrong behaviour was introduced in; commit

Re: [Intel-gfx] Intel Driver and 4K video output

2015-04-27 Thread Chris Wilson
On Mon, Apr 27, 2015 at 01:19:01PM +0200, Lukas Hejtmanek wrote: On Fri, Apr 24, 2015 at 02:15:09PM +0100, Chris Wilson wrote: Check panning afterwards? What does xrandr --verbose say before/after? even with explicit: xrandr --output eDP1 --off --fb 3840x2160 --panning 3840x2160 no luck.

Re: [Intel-gfx] [PATCH 1/5] drm/i915: Do not clear mappings beyond VMA size

2015-04-27 Thread Tvrtko Ursulin
On 04/24/2015 01:09 PM, Joonas Lahtinen wrote: Do not to clear mappings outside the allocated VMA under any circumstances. Only clear the smaller of VMA or object page count. This is required to allow creating partial object VMAs which in turn are needed for partial GGTT views. Signed-off-by:

[Intel-gfx] [PATCH] drm/i915: Remove unnecessary null check in execlists_context_unqueue

2015-04-27 Thread Michel Thierry
commit 53292cdb066950611e5bc2e0eb109c7edb42af78 (drm/i915: Workaround to avoid lite restore with HEAD==TAIL) added a check for req0 != null which is unnecessary. The only way req0 could be null is if the list was empty, and this is already addressed at the beginning of

[Intel-gfx] [PATCH i-g-t] kms_rotation_crc: Do not leak framebuffers during test duration

2015-04-27 Thread Tvrtko Ursulin
From: Tvrtko Ursulin tvrtko.ursu...@intel.com Test used to call prepare_crtc twice in the plane loop and leaked two framebuffers per [subtest]x[pipe]x[plane]. What the loops really wants to do, instead of second invocation of prepare_crtc, is to just turn on the display with the unrotated fb to

Re: [Intel-gfx] [PATCH 5/5] drm/i915: Use partial view in mmap fault handler

2015-04-27 Thread Joonas Lahtinen
On ma, 2015-04-27 at 12:21 +0100, Chris Wilson wrote: On Mon, Apr 27, 2015 at 02:01:59PM +0300, Joonas Lahtinen wrote: On pe, 2015-04-24 at 13:33 +0100, Chris Wilson wrote: On Fri, Apr 24, 2015 at 03:10:20PM +0300, Joonas Lahtinen wrote: Use partial view for huge BOs (bigger than half

Re: [Intel-gfx] [PATCH 5/5] drm/i915: Use partial view in mmap fault handler

2015-04-27 Thread Chris Wilson
On Mon, Apr 27, 2015 at 03:12:01PM +0300, Joonas Lahtinen wrote: On ma, 2015-04-27 at 12:21 +0100, Chris Wilson wrote: On Mon, Apr 27, 2015 at 02:01:59PM +0300, Joonas Lahtinen wrote: On pe, 2015-04-24 at 13:33 +0100, Chris Wilson wrote: On Fri, Apr 24, 2015 at 03:10:20PM +0300, Joonas

[Intel-gfx] [PATCH 09/16] drm/i915: Limit ring synchronisation (sw sempahores) RPS boosts

2015-04-27 Thread Chris Wilson
Ring switches can occur many times per frame, and are often out of control, causing frequent RPS boosting for no practical benefit. Treat the sw semaphore synchronisation as a separate client and only allow it to boost once per busy/idle cycle. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk

[Intel-gfx] [PATCH 08/16] drm/i915: Add RPS thresholds to debugfs/i915_frequency_info

2015-04-27 Thread Chris Wilson
Expose some more of our internal RPS bookkeeping for debugging. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk --- drivers/gpu/drm/i915/i915_debugfs.c | 25 + 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c

[Intel-gfx] RPS tuning

2015-04-27 Thread Chris Wilson
I have so many outstanding patches, that my smtp relay reject them for being a spamhost... These are the simple patches for further tuning RPS to begin with. 5 trivial/bug fixes, a couple of patches for read-read concurrency, and then 8 patches to both limit the number of RPS boosts on systems

[Intel-gfx] [PATCH 12/16] drm/i915: Don't downclock whilst we have clients waiting for GPU results

2015-04-27 Thread Chris Wilson
If we have clients stalled waiting for requests, ignore the GPU if it signals that it should downclock due to low load. This helps prevent the automatic timeout from causing extremely long running batches from taking even longer. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk ---

Re: [Intel-gfx] Intel Driver and 4K video output

2015-04-27 Thread Lukas Hejtmanek
On Fri, Apr 24, 2015 at 02:15:09PM +0100, Chris Wilson wrote: Check panning afterwards? What does xrandr --verbose say before/after? even with explicit: xrandr --output eDP1 --off --fb 3840x2160 --panning 3840x2160 no luck. looks like you need at least one outout that keeps fb/panning,

Re: [Intel-gfx] [PATCH 5/5] drm/i915: Use partial view in mmap fault handler

2015-04-27 Thread Chris Wilson
On Mon, Apr 27, 2015 at 04:46:20PM +0300, Joonas Lahtinen wrote: In XenGT, when the mappable aperture size is decreased due to slicing of the aperture for different guests, it's not about large objects but small aperture. And that is the reason why the feature was initially implemented, and

Re: [Intel-gfx] PATCH i-g-t Fix a clang compile error.

2015-04-27 Thread Thomas Wood
On 23 April 2015 at 17:54, Yunlian Jiang yunl...@chromium.org wrote: The bug entry is at https://code.google.com/p/chromium/issues/detail?id=476001 The patch below makes clang happy. Thanks for the patch; Ben Widawsky reviewed it and added his reviewed-by tag. Unfortunately it doesn't apply

Re: [Intel-gfx] [PATCH 5/5] drm/i915: Use partial view in mmap fault handler

2015-04-27 Thread Joonas Lahtinen
On ma, 2015-04-27 at 13:25 +0100, Chris Wilson wrote: On Mon, Apr 27, 2015 at 03:12:01PM +0300, Joonas Lahtinen wrote: On ma, 2015-04-27 at 12:21 +0100, Chris Wilson wrote: On Mon, Apr 27, 2015 at 02:01:59PM +0300, Joonas Lahtinen wrote: On pe, 2015-04-24 at 13:33 +0100, Chris Wilson

Re: [Intel-gfx] [PATCH i-g-t] kms_atomic: Measure speed of some plane ioctls

2015-04-27 Thread Thomas Wood
On 24 April 2015 at 16:27, Tvrtko Ursulin tvrtko.ursu...@linux.intel.com wrote: From: Tvrtko Ursulin tvrtko.ursu...@intel.com Measures DRM_IOCTL_MODE_SETCRTC and DRM_IOCTL_MODE_SETPLANE as proxy for drm_atomic_helper_update_plane if I got it right. Discovered some slow cursor updates (1.6ms)

Re: [Intel-gfx] [PATCH 4/5] drm/i915: Add a partial GGTT view type

2015-04-27 Thread Tvrtko Ursulin
Hi, On 04/24/2015 01:09 PM, Joonas Lahtinen wrote: Partial view type allows manipulating parts of huge BOs through the GGTT, which was not previously possible due to constraint that whole object had to be mapped for any access to it through GGTT. Signed-off-by: Joonas Lahtinen

[Intel-gfx] New driver causes enlightenment to resize display to 8x8?

2015-04-27 Thread Marc MERLIN
After upgrading to xserver-xorg-video-intel 2:2.99.917-1~exp1 , the performance did improve, but twice, I had e18 crash (its fault, not X's fault), give me a window that it was going to restart, and when it restarted the screen went dark. I went to a text console, and xrandr said this: Screen 0:

[Intel-gfx] [PATCH] drm/i915: Avoid GPU hang when coming out of P3 or P4

2015-04-27 Thread Peter Antoine
This patch fixed a timing issue that causes a GPU hang when a the system comes out of power saving. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89600 Signed-off-by: Peter Antoine peter.anto...@intel.com --- drivers/gpu/drm/i915/i915_drv.c | 10 +- 1 file changed, 5

Re: [Intel-gfx] New driver causes enlightenment to resize display to 8x8?

2015-04-27 Thread Marc MERLIN
On Mon, Apr 27, 2015 at 03:37:30PM +0100, Chris Wilson wrote: I've used e18 for over a year and I never had this problem until the exact moment I upgraded the intel driver. Out of curiosity, even if the bug was with enlightenment, how do I resize my screen once it's been mistakenly resized

Re: [Intel-gfx] [PATCH] drm/i915: Avoid GPU hang when coming out of P3 or P4

2015-04-27 Thread Antoine, Peter
Ignore this. I mean S3/S4 not P3/P4. -Original Message- From: Antoine, Peter Sent: Monday, April 27, 2015 3:25 PM To: intel-gfx@lists.freedesktop.org Cc: S, Deepak; Weinehall, David; Tian, YeX; Antoine, Peter Subject: [PATCH] drm/i915: Avoid GPU hang when coming out of P3 or P4 This

[Intel-gfx] [PATCH] drm/i915: Avoid GPU hang when coming out of P3 or P4

2015-04-27 Thread Peter Antoine
This patch fixed a timing issue that causes a GPU hang when a the system comes out of power saving. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89600 Signed-off-by: Peter Antoine peter.anto...@intel.com --- drivers/gpu/drm/i915/i915_drv.c | 10 +- 1 file changed, 5

Re: [Intel-gfx] Intel Driver and 4K video output

2015-04-27 Thread Lukas Hejtmanek
On Mon, Apr 27, 2015 at 02:26:36PM +0100, Chris Wilson wrote: Hmm, you probably could... Try xrandr --newmode v4k 712.34 3840 4152 4576 5312 2160 2161 2164 2235 -HSync +Vsync xrandr --addmode VIRTUAL1 v4k xrandr --output VIRTUAL1 --mode v4k well, this is a half way through ;)

Re: [Intel-gfx] [PATCH 2/5] drm/i915: Do not make assumptions on GGTT VMA sizes

2015-04-27 Thread Tvrtko Ursulin
Hi, On 04/24/2015 01:09 PM, Joonas Lahtinen wrote: GGTT VMA sizes might be smaller than the whole object size due to different GGTT views. v2: - Separate GGTT view constraint calculations from normal view constraint calculations (Chris Wilson) Cc: Chris Wilson ch...@chris-wilson.co.uk

[Intel-gfx] [PATCH] drm/i915: Avoid GPU hang when coming out of S3 or S4

2015-04-27 Thread Peter Antoine
This patch fixed a timing issue that causes a GPU hang when a the system comes out of power saving. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89600 Signed-off-by: Peter Antoine peter.anto...@intel.com --- drivers/gpu/drm/i915/i915_drv.c | 10 +- 1 file changed, 5

Re: [Intel-gfx] [PATCH] drm/i915: Avoid GPU hang when coming out of P3 or P4

2015-04-27 Thread Chris Wilson
On Mon, Apr 27, 2015 at 03:25:14PM +0100, Peter Antoine wrote: This patch fixed a timing issue that causes a GPU hang when a the system comes out of power saving. A few more details to explain the timing issue and why this is a fix and not just papering over the bug. Bugzilla:

Re: [Intel-gfx] New driver causes enlightenment to resize display to 8x8?

2015-04-27 Thread Chris Wilson
On Mon, Apr 27, 2015 at 07:27:20AM -0700, Marc MERLIN wrote: After upgrading to xserver-xorg-video-intel 2:2.99.917-1~exp1 , the performance did improve, but twice, I had e18 crash (its fault, not X's fault), give me a window that it was going to restart, and when it restarted the screen went

[Intel-gfx] [PATCH] drm/i915: Adding dbuf support for skl nv12 format.

2015-04-27 Thread Chandra Konduru
Skylake nv12 format requires dbuf (aka. ddb) calculations and programming for each of y and uv sub-planes. Made minor changes to reuse current dbuf calculations and programming for uv plane. i.e., with this change, existing computation is used for either packed format or uv portion of nv12

[Intel-gfx] [PATCH v2 i-g-t] kms_atomic: Measure speed of some plane ioctls

2015-04-27 Thread Tvrtko Ursulin
From: Tvrtko Ursulin tvrtko.ursu...@intel.com Measures DRM_IOCTL_MODE_SETCRTC and DRM_IOCTL_MODE_SETPLANE as proxy for drm_atomic_helper_update_plane if I got it right. Discovered some slow cursor updates (1.6ms) so needed something to test different kernel configs etc. v2: * Move to a test

Re: [Intel-gfx] [PATCH i-g-t] tests/drm_hw_lock: Tests for hw_lock fixes.

2015-04-27 Thread Thomas Wood
On 23 April 2015 at 15:07, Peter Antoine peter.anto...@intel.com wrote: There are several issues with the hardware locks functions that stretch from kernel crashes to priority escalations. This new test will test the the fixes for these features. This test will cause a driver/kernel crash on

Re: [Intel-gfx] [PATCH v9] drm/i915/skl: Add support for SKL background color

2015-04-27 Thread Ville Syrjälä
On Fri, Feb 20, 2015 at 04:11:33PM -0800, Chandra Konduru wrote: This patch adds support for Skylake display pipe background color. v2: - added property documentation to drm DocBook (Daniel Vetter) - moved property to drm_mode_config (Daniel Vetter) - change to set property to NULL once it

Re: [Intel-gfx] [PATCH i-g-t] tests/drm_hw_lock: Tests for hw_lock fixes.

2015-04-27 Thread Chris Wilson
On Mon, Apr 27, 2015 at 04:24:37PM +0100, Thomas Wood wrote: On 23 April 2015 at 15:07, Peter Antoine peter.anto...@intel.com wrote: There are several issues with the hardware locks functions that stretch from kernel crashes to priority escalations. This new test will test the the fixes for

[Intel-gfx] [PATCH] drm/i915: Silence compiler warning in dvo

2015-04-27 Thread Chris Wilson
drivers/gpu/drm/i915/intel_dvo.c: In function ‘intel_dvo_init’: drivers/gpu/drm/i915/intel_dvo.c:531:8: warning: array subscript is above array bounds [-Warray-bounds] gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper Target:

Re: [Intel-gfx] [PATCH 3/5] drm: Possible lock priority escalation.

2015-04-27 Thread Ville Syrjälä
On Thu, Apr 23, 2015 at 03:07:56PM +0100, Peter Antoine wrote: If an application that has a driver lock created, wants the lock the kernel context, it is not allowed to. If the call to drm_lock has a context of 0, it is rejected. If you set the context to _DRM_LOCK_CONT then call drm lock, it

Re: [Intel-gfx] [PATCH 4/5] drm: Make HW_LOCK access functions optional.

2015-04-27 Thread Ville Syrjälä
On Thu, Apr 23, 2015 at 03:07:57PM +0100, Peter Antoine wrote: As these functions are only used by one driver and there are security holes in these functions. Make the functions optional. Issue: VIZ-5485 Signed-off-by: Peter Antoine peter.anto...@intel.com --- drivers/gpu/drm/drm_lock.c

Re: [Intel-gfx] [PATCH] drm/i915: fix for_each_digital_port

2015-04-27 Thread Damien Lespiau
On Fri, Apr 17, 2015 at 02:58:10PM +0300, Imre Deak wrote: We should check if a given encoder is of a digital type before casting it to a digital port object. This broke on HSW when iterating the VGA encoder. Introduced in commit b403745c84592b26a0713e6944c2b109f6df5c82 Author: Damien

Re: [Intel-gfx] [PATCH v2 1/2] drm/i915: factor out ddi_get_encoder_port

2015-04-27 Thread Damien Lespiau
On Fri, Apr 17, 2015 at 07:31:21PM +0300, Imre Deak wrote: In the next patch we'll need to get at both the encoder's intel_digital_port object - which maybe NULL for a CRT - and it's port, so factor out this functionality. No functional change. Bugzilla:

Re: [Intel-gfx] [PATCH i-g-t 7/7] kms_rotation_crc: Use main test for negative cases

2015-04-27 Thread Thomas Wood
On 23 April 2015 at 10:41, Jindal, Sonika sonika.jin...@intel.com wrote: Thanks Tvrtko. This series makes kms_rotation_crc much cleaner :) Reviewed-by: Sonika Jindal sonika.jin...@intel.com Thanks, I've pushed the whole series. On 4/22/2015 9:16 PM, Tvrtko Ursulin wrote: From: Tvrtko

Re: [Intel-gfx] [PATCH] drm/i915: fix for_each_digital_port

2015-04-27 Thread Damien Lespiau
On Mon, Apr 27, 2015 at 06:05:31PM +0100, Damien Lespiau wrote: On Fri, Apr 17, 2015 at 02:58:10PM +0300, Imre Deak wrote: We should check if a given encoder is of a digital type before casting it to a digital port object. This broke on HSW when iterating the VGA encoder. Introduced in

Re: [Intel-gfx] [PATCH] drm/i915: fix for_each_digital_port

2015-04-27 Thread Damien Lespiau
On Mon, Apr 27, 2015 at 06:15:45PM +0100, Damien Lespiau wrote: On Mon, Apr 27, 2015 at 06:05:31PM +0100, Damien Lespiau wrote: On Fri, Apr 17, 2015 at 02:58:10PM +0300, Imre Deak wrote: We should check if a given encoder is of a digital type before casting it to a digital port object.

Re: [Intel-gfx] [PATCH v2 2/2] drm/i915: fix intel_prepare_ddi

2015-04-27 Thread Damien Lespiau
On Fri, Apr 17, 2015 at 07:31:22PM +0300, Imre Deak wrote: At the moment intel_prepare_ddi buffer will iterate through both MST and CRT encoders, which is incorrect. Neither of these encoder types have an embedding intel_digital_port object, so for these encoder types we will use random data

Re: [Intel-gfx] [PATCH i-g-t] tests/gem_mmap_gtt: Use PAGE_SIZE instead of hard coded value

2015-04-27 Thread Thomas Wood
On 24 April 2015 at 08:38, Joonas Lahtinen joonas.lahti...@linux.intel.com wrote: Now that there is PAGE_SIZE define, use it. Thanks, I've pushed this patch. I also noticed PAGE_SIZE gets defined in several tests, so at some point it might be worth moving it into the library. Signed-off-by:

Re: [Intel-gfx] PATCH i-g-t Fix a clang compile error.

2015-04-27 Thread Dave Gordon
On 23/04/15 17:54, Yunlian Jiang wrote: The bug entry is at https://code.google.com/p/chromium/issues/detail?id=476001 The patch below makes clang happy. debugger/eudb.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/debugger/eudb.c b/debugger/eudb.c index

Re: [Intel-gfx] [PATCH 4/5] drm: Make HW_LOCK access functions optional.

2015-04-27 Thread Antoine, Peter
Hi, (replies inline) -Original Message- From: Ville Syrjälä [mailto:ville.syrj...@linux.intel.com] Sent: Monday, April 27, 2015 6:04 PM To: Antoine, Peter Cc: intel-gfx@lists.freedesktop.org; airl...@redhat.com; dri-de...@lists.freedesktop.org; daniel.vet...@ffwll.ch Subject: Re:

Re: [Intel-gfx] [PATCH] drm/i915: Silence compiler warning in dvo

2015-04-27 Thread Dave Gordon
On 27/04/15 16:32, Chris Wilson wrote: drivers/gpu/drm/i915/intel_dvo.c: In function ‘intel_dvo_init’: drivers/gpu/drm/i915/intel_dvo.c:531:8: warning: array subscript is above array bounds [-Warray-bounds] I found this one too, so: Reviewed-by: Dave Gordon david.s.gor...@intel.com

[Intel-gfx] Intel IVCH, Bug 49838

2015-04-27 Thread Thomas Richter
Hi Daniel, hi Ville, as promised, I was recently able to borrow an X30 that - similar to the R31 - features the intel DVO VCH. As Ville mentioned, this notebook suffers from bug #49838, namely the screen is blank after a resume from suspend. With some debugging, I was able to resolve this