[Intel-gfx] [PATCH 2/2] drm/i915/bxt: WA for swapped HPD pins in A stepping

2015-07-13 Thread Sonika Jindal
As per bspec, on BXT A0/A1, sw needs to activate DDIA HPD logic and interrupts to check the external panel connection and DDIC HPD logic for edp panel. Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/intel_dp.c | 18 -- drivers/gpu/drm/i915/intel_hdmi.c |9 -

[Intel-gfx] [PATCH 1/2] drm/i915/bxt: Add HPD support for DDIA

2015-07-13 Thread Sonika Jindal
Also remove redundant comments. Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/i915_irq.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index a897f68..63137dd 100644 --- a/drivers/gpu/drm/

Re: [Intel-gfx] [PATCH] drm/i915: Check live status before reading edid

2015-07-13 Thread Jindal, Sonika
On 7/13/2015 8:25 PM, Daniel Vetter wrote: On Mon, Jul 13, 2015 at 04:35:00PM +0530, Sonika Jindal wrote: Adding this for SKL onwards. v2: Adding checks for VLV/CHV as well. Reusing old ibx and g4x functions to check digital port status. Adding a separate function to get bxt live status (Dani

Re: [Intel-gfx] [PATCH] drm/i915: Set edid from init and not from detect

2015-07-13 Thread Sharma, Shashank
Hi Daniel, Chris Gen7 and Gen8 platforms have a different live status register (0x61114) and we need not to rely on ISR on that. As Sonika mentioned, We have been using this register for our commercial releases, and found them reliable across a wide range of monitors. On the other hand, Bse

[Intel-gfx] linux-next: build warnings after merge of the drm-misc tree

2015-07-13 Thread Stephen Rothwell
Hi all, After merging the drm-misc tree, today's linux-next build (x86_64 allmodconfig) produced these warnings: drivers/gpu/drm/bochs/bochs_fbdev.c: In function 'bochsfb_create': drivers/gpu/drm/bochs/bochs_fbdev.c:63:17: warning: unused variable 'device' [-Wunused-variable] struct device *de

[Intel-gfx] linux-next: build failure after merge of the drm-misc tree

2015-07-13 Thread Stephen Rothwell
on of function 'drm_fb_helper_remove_conflicting_framebuffers' [-Werror=implicit-function-declaration] drm_fb_helper_remove_conflicting_framebuffers(ap, "virtiodrmfb", ^ Caused by commit 7bd870e7b1c8 ("drm/virtio: Use new drm_fb_helper functions") I have used the drm-m

[Intel-gfx] linux-next: manual merge of the drm-intel tree with the drm-intel-fixes tree

2015-07-13 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-intel tree got a conflict in: drivers/gpu/drm/i915/intel_display.c between commit: 8aa3053bf731 ("drm/i915: fix oops in primary_check_plane") from the drm-intel-fixes tree and commit: da20eabd2c69 ("drm/i915: Split plane updates of crtc->atomi

[Intel-gfx] [drm-intel:drm-intel-nightly 9/12] drivers/gpu/drm/exynos/exynos_drm_fbdev.c:192:1: warning: label 'err_dealloc_cmap' defined but not used

2015-07-13 Thread kbuild test robot
tree: git://anongit.freedesktop.org/drm-intel drm-intel-nightly head: 39c8d0f886e9496eba420b1b5554bd1fa0c5c337 commit: 76c6e302feb1d6451c6bf4676fd1e98dfcd31316 [9/12] Merge remote-tracking branch 'origin/topic/drm-misc' into drm-intel-nightly config: arm-multi_v7_defconfig (attached as .config

[Intel-gfx] [PATCH v3] scripts/kernel-doc: Adding cross-reference links to html documentation.

2015-07-13 Thread Danilo Cesar Lemes de Paula
Functions, Structs and Parameters definitions on kernel documentation are pure cosmetic, it only highlights the element. To ease the navigation in the documentation we should use inside those tags so readers can easily jump between methods directly. This was discussed in 2014[1] and is implement

Re: [Intel-gfx] [PATCH v2] scripts/kernel-doc: Adding cross-reference links to html documentation.

2015-07-13 Thread Danilo Cesar Lemes de Paula
On 07/09/2015 08:56 PM, Jonathan Corbet wrote: > On Fri, 26 Jun 2015 12:08:57 -0300 > Danilo Cesar Lemes de Paula wrote: > >> To ease the navigation in the documentation we should use inside >> those tags so readers can easily jump between methods directly. >> >> This was discussed in 2014[1] an

Re: [Intel-gfx] [PATCH v4 03/18] drm/i915/gen8: Add PML4 structure

2015-07-13 Thread Chris Wilson
On Mon, Jul 13, 2015 at 03:41:38PM +0100, Michel Thierry wrote: > On 7/11/2015 9:02 PM, Chris Wilson wrote: > >On Tue, Jul 07, 2015 at 04:14:48PM +0100, Michel Thierry wrote: > >>Introduces the Page Map Level 4 (PML4), ie. the new top level structure > >>of the page tables. > >> > >>To facilitate t

Re: [Intel-gfx] [RFC 0/2] Add Pooled EU support

2015-07-13 Thread Chris Wilson
On Mon, Jul 13, 2015 at 04:00:08PM +0100, Siluvery, Arun wrote: > On 11/07/2015 20:09, Chris Wilson wrote: > >On Sat, Jul 11, 2015 at 08:05:05PM +0100, Chris Wilson wrote: > >>On Fri, Jul 10, 2015 at 06:35:18PM +0100, Arun Siluvery wrote: > >>>These patches enabled Pooled EU support for BXT, they a

Re: [Intel-gfx] [PATCH v3 00/20] Convert to atomic, part 4.

2015-07-13 Thread Daniel Stone
Hi, On Monday, July 13, 2015, Maarten Lankhorst < maarten.lankho...@linux.intel.com> wrote: > Atomic suspend/resume, full hardware readout and atomic ioctl support. > > Changes from the previous version: > - The fastboot changes from the previous patch have been removed, > fastboot will have to

Re: [Intel-gfx] [PATCH] drm/i915: Adjust BXT HDMI port clock limits

2015-07-13 Thread Bish, Jim
On Mon, 2015-07-13 at 11:05 +0200, Daniel Vetter wrote: > On Fri, Jul 10, 2015 at 02:27:48PM +0100, Damien Lespiau wrote: > > On Fri, Jul 10, 2015 at 04:21:27PM +0300, Ville Syrjälä wrote: > > > On Fri, Jul 10, 2015 at 02:18:57PM +0100, Damien Lespiau wrote: > > > > On Fri, Jul 10, 2015 at 04:09:42

Re: [Intel-gfx] [PATCH] drm: Provide compat ioctl for addfb2.1

2015-07-13 Thread Rob Clark
btw, I mentioned on irc, but someone *really* ought to go through the ioclt structs and split each struct member into it's own line, so things like '__u32 width, height' aren't so sneaky ;-) On Mon, Jul 13, 2015 at 11:56 AM, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > Frame buffer modifiers

Re: [Intel-gfx] [PATCH v3 19/20] drm/i915: always disable irqs in intel_pipe_update_start

2015-07-13 Thread Daniel Stone
Hi, On 13 July 2015 at 15:30, Maarten Lankhorst wrote: > @@ -13649,9 +13647,7 @@ static void intel_begin_crtc_commit(struct drm_crtc > *crtc) > > /* Perform vblank evasion around commit operation */ > if (crtc->state->active) > - intel_crtc->atomic.evade = > -

[Intel-gfx] [RFC 0/1] drm/i915 : Wait until SYSTEM_RUNNING before loading CSR firmware

2015-07-13 Thread jay . p . patel
From: jay Chrome OS is "noinitrd" OS. It does not normally allow in-built firmware in kernel. i915 driver initialization precedes the initialization of file system. Hence, loading fails whenever driver tries to load CSR firmware from file system. The current implementation uses "request_firmwa

[Intel-gfx] [RFC 1/1] drm/i915 : Wait until SYSTEM_RUNNING before loading CSR firmware

2015-07-13 Thread jay . p . patel
From: Jay Patel NOTE: This is an interim solution which is targeted towards Chrome OS/Android to be used until a long term solution is available. In this patch, request_firmware() is called in a worker thread which initially waits for file system to be initialized and then attempts to load the f

Re: [Intel-gfx] [PATCH v3 06/20] drm/i915: Remove plane_config from struct intel_crtc.

2015-07-13 Thread Daniel Stone
Hi, On 13 July 2015 at 15:30, Maarten Lankhorst wrote: > diff --git a/drivers/gpu/drm/i915/intel_display.c > b/drivers/gpu/drm/i915/intel_display.c > index 037a85f1b127..e4d8acc63823 100644 > --- a/drivers/gpu/drm/i915/intel_display.c > +++ b/drivers/gpu/drm/i915/intel_display.c > @@ -15204,7 +1

Re: [Intel-gfx] [PATCH v3 10/20] drm/i915: Set csc coefficients in intel_sanitize_crtc.

2015-07-13 Thread Daniel Stone
Hi, On 13 July 2015 at 15:30, Maarten Lankhorst wrote: > This might not have been set during boot, and when we preserve > the initial mode this can result in a black screen. > > Cc: Daniel Stone > Signed-off-by: Maarten Lankhorst > --- > drivers/gpu/drm/i915/intel_display.c | 3 +++ > 1 file c

Re: [Intel-gfx] [PATCH i-g-t] lib/igt_gt.c : allow changes to stop_rings mode bits

2015-07-13 Thread Gore, Tim
Tim Gore  Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ > -Original Message- > From: Daniel Vetter [mailto:daniel.vet...@ffwll.ch] On Behalf Of Daniel > Vetter > Sent: Monday, July 13, 2015 3:59 PM > To: Gore, Tim > Cc: Daniel Vetter; intel-gfx@lists.free

[Intel-gfx] [PATCH] drm: Provide compat ioctl for addfb2.1

2015-07-13 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Frame buffer modifiers extensions provided in; commit e3eb3250d84ef97b766312345774367b6a310db8 Author: Rob Clark Date: Thu Feb 5 14:41:52 2015 + drm: add support for tiled/compressed/etc modifier in addfb2 Missed the structure packing/alignment problem w

[Intel-gfx] [PATCH] drm/i915: Forward all core DRM ioctls to core compat handling

2015-07-13 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Previously only core DRM ioctls under the DRM_COMMAND_BASE were being forwarded, but the drm.h header suggests (and reality confirms) ones after (and including) DRM_COMMAND_END should be forwarded as well. Signed-off-by: Tvrtko Ursulin Cc: Daniel Vetter --- drivers/gpu/dr

Re: [Intel-gfx] [PATCH 04/13 v4] drm/i915: GuC-specific firmware loader

2015-07-13 Thread Daniel Vetter
On Thu, Jul 09, 2015 at 07:29:05PM +0100, Dave Gordon wrote: > From: Alex Dai > > This fetches the required firmware image from the filesystem, > then loads it into the GuC's memory via a dedicated DMA engine. > > This patch is derived from GuC loading work originally done by > Vinit Azad and Be

Re: [Intel-gfx] [-next] WARNING at i915_gem_track_fb

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 11:44:15PM +0900, Sergey Senozhatsky wrote: > On (07/13/15 16:35), Daniel Vetter wrote: > > On Mon, Jul 13, 2015 at 09:51:39PM +0900, Sergey Senozhatsky wrote: > > > 4.2.0-rc2-next-20150713 > > > > Is this also an issue in the 4.2-rc serie

Re: [Intel-gfx] [RFC 0/2] Add Pooled EU support

2015-07-13 Thread Siluvery, Arun
On 11/07/2015 20:09, Chris Wilson wrote: On Sat, Jul 11, 2015 at 08:05:05PM +0100, Chris Wilson wrote: On Fri, Jul 10, 2015 at 06:35:18PM +0100, Arun Siluvery wrote: These patches enabled Pooled EU support for BXT, they are implemented by Armin Reese. I am sending these patches in its current f

Re: [Intel-gfx] [-next] WARNING at i915_gem_track_fb

2015-07-13 Thread Sergey Senozhatsky
On (07/13/15 16:46), Maarten Lankhorst wrote: > > [ 1239.783961] [] dump_stack+0x4c/0x65 > > [ 1239.783965] [] ? up+0x39/0x3e > > [ 1239.783968] [] warn_slowpath_common+0x9b/0xb5 > > [ 1239.783986] [] ? i915_gem_track_fb+0xdc/0x106 [i915] > > [ 1239.783987] [] warn_slowpath_fmt+0x46/0x48 > > [

Re: [Intel-gfx] [PATCH i-g-t] tests/gem_reset_stats.c: fix "ban" tests with scheduler

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 10:09:59AM +, Gore, Tim wrote: > > > Tim Gore  > Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ > > > > -Original Message- > > From: Daniel Vetter [mailto:daniel.vet...@ffwll.ch] On Behalf Of Daniel > > Vetter > > Sent: Monday,

Re: [Intel-gfx] [PATCH i-g-t] lib/igt_gt.c : allow changes to stop_rings mode bits

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 09:43:11AM +, Gore, Tim wrote: > > > Tim Gore  > Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ > > > -Original Message- > > From: Daniel Vetter [mailto:daniel.vet...@ffwll.ch] On Behalf Of Daniel > > Vetter > > Sent: Monday, Jul

Re: [Intel-gfx] [PATCH] drm/i915: Set edid from init and not from detect

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 05:29:12PM +0530, Jindal, Sonika wrote: > > > On 7/13/2015 5:10 PM, Chris Wilson wrote: > >On Mon, Jul 13, 2015 at 04:19:15PM +0530, Sonika Jindal wrote: > >>During init_connector set the edid, then edid will be set/unset only during > >>hotplug. For the sake of older plat

Re: [Intel-gfx] [PATCH] drm/i915: Check live status before reading edid

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 04:35:00PM +0530, Sonika Jindal wrote: > Adding this for SKL onwards. > > v2: Adding checks for VLV/CHV as well. Reusing old ibx and g4x functions > to check digital port status. Adding a separate function to get bxt live > status (Daniel) > > Signed-off-by: Sonika Jindal

Re: [Intel-gfx] [PATCH v2] drm/i915: Don't forget to mark crtc as inactive after disable

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 11:42:34AM +0100, Damien Lespiau wrote: > On Mon, Jul 13, 2015 at 11:49:49AM +0200, Daniel Vetter wrote: > > On Mon, Jul 13, 2015 at 11:10:51AM +0200, Maarten Lankhorst wrote: > > > Op 10-07-15 om 13:22 schreef Damien Lespiau: > > > > Hi Patrik, > > > > > > > > Please do Cc

Re: [Intel-gfx] [PATCH v2 2/4] drm/i915/gen9: Add WaDisableCtxRestoreArbitration workaround

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 04:49:37PM +0200, Daniel Vetter wrote: > On Mon, Jul 13, 2015 at 03:31:45PM +0300, Mika Kuoppala wrote: > > Arun Siluvery writes: > > > > > In Indirect and Per context w/a batch buffer, > > > +WaDisableCtxRestoreArbitration > > > > > > v2: SKL revision id was used for BXT,

Re: [Intel-gfx] [PATCH v2 2/4] drm/i915/gen9: Add WaDisableCtxRestoreArbitration workaround

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 03:31:45PM +0300, Mika Kuoppala wrote: > Arun Siluvery writes: > > > In Indirect and Per context w/a batch buffer, > > +WaDisableCtxRestoreArbitration > > > > v2: SKL revision id was used for BXT, copy paste error found during > > internal review (Bob Beckett). > > > > Cc:

Re: [Intel-gfx] [-next] WARNING at i915_gem_track_fb

2015-07-13 Thread Maarten Lankhorst
Op 13-07-15 om 14:51 schreef Sergey Senozhatsky: > 4.2.0-rc2-next-20150713 > > [ 1239.783862] [ cut here ] > [ 1239.783892] WARNING: CPU: 0 PID: 364 at > drivers/gpu/drm/i915/i915_gem.c:5368 i915_gem_track_fb+0xdc/0x106 [i915]() > [ 1239.7

Re: [Intel-gfx] [-next] WARNING at i915_gem_track_fb

2015-07-13 Thread Sergey Senozhatsky
On (07/13/15 16:35), Daniel Vetter wrote: > On Mon, Jul 13, 2015 at 09:51:39PM +0900, Sergey Senozhatsky wrote: > > 4.2.0-rc2-next-20150713 > > Is this also an issue in the 4.2-rc series or only in -next? don't know how to reproduce this, but I'll check. -s

Re: [Intel-gfx] [PATCH 2/2] drm/i915: remove unused has_dma_mapping flag

2015-07-13 Thread Daniel Vetter
On Wed, Jul 08, 2015 at 06:43:23PM +0100, Chris Wilson wrote: > On Wed, Jul 08, 2015 at 07:18:59PM +0300, Imre Deak wrote: > > After the previous patch this flag will check always clear, as it's > > never set for shmem backed and userptr objects, so we can remove it. > > > > Signed-off-by: Imre De

Re: [Intel-gfx] [PATCH v4 03/18] drm/i915/gen8: Add PML4 structure

2015-07-13 Thread Michel Thierry
On 7/11/2015 9:02 PM, Chris Wilson wrote: On Tue, Jul 07, 2015 at 04:14:48PM +0100, Michel Thierry wrote: Introduces the Page Map Level 4 (PML4), ie. the new top level structure of the page tables. To facilitate testing, 48b mode will be available on Broadwell and GEN9+, when i915.enable_ppgtt

Re: [Intel-gfx] [PATCH 5/9] drm/i915: Clear out DPLL state from pipe config in DSI get config

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 03:49:44PM +0530, Sivakumar Thulasimani wrote: > > > On 7/13/2015 2:21 PM, Daniel Vetter wrote: > >On Fri, Jul 10, 2015 at 05:37:07PM +0530, Sivakumar Thulasimani wrote: > >> > >>On 7/1/2015 6:12 PM, Daniel Vetter wrote: > >>>On Tue, Jun 30, 2015 at 02:50:33PM +0300, Ville

[Intel-gfx] [PATCH v3 17/20] drm/i915: Use full atomic modeset.

2015-07-13 Thread Maarten Lankhorst
Huzzah! \o/ Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/i915_drv.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 1 - drivers/gpu/drm/i915/i915_params.c | 5 - drivers/gpu/drm/i915/intel_atomic.c | 123 --- drivers/gpu/drm/i915/intel_display.c | 279 +

Re: [Intel-gfx] [-next] WARNING at i915_gem_track_fb

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 09:51:39PM +0900, Sergey Senozhatsky wrote: > 4.2.0-rc2-next-20150713 Is this also an issue in the 4.2-rc series or only in -next? -Daniel > > [ 1239.783862] [ cut here ] > [ 1239.783892] WARNING: CPU: 0 PID: 364 at > drive

[Intel-gfx] [PATCH v3 03/20] drm/i915: Do not use plane_config in intel_fbdev.c

2015-07-13 Thread Maarten Lankhorst
Use the atomic state instead, this allows removing plane_config from the crtc after the full hw readout is completed. The size can be found in the fb, no need for the plane_config. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_fbdev.c | 14 ++ 1 file changed, 6 ins

[Intel-gfx] [PATCH v3 16/20] drm/i915: Make intel_display_suspend atomic, try 2.

2015-07-13 Thread Maarten Lankhorst
Calculate all state using a normal transition, but afterwards fudge crtc->state->active back to its old value. This should still allow state restore in setup_hw_state to work properly. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 52

[Intel-gfx] [PATCH v3 07/20] drm/i915: Rework plane readout.

2015-07-13 Thread Maarten Lankhorst
All non-primary planes get disabled during hw readout, this reduces complexity and means not having to do some plane visibility checks during the first commit. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_atomic.c | 7 --- drivers/gpu/drm/i915/intel_display.c | 86 --

[Intel-gfx] [PATCH v3 09/20] drm/i915: Fill in more crtc state, v3.

2015-07-13 Thread Maarten Lankhorst
There is a small memory leak in intel_modeset_readout_hw_state, plug it. intel_sanitize_crtc should set a null mode when disabling the crtc, this updates crtc_state->enable too. intel_sanitize_crtc also needs to update the vblank timestamps before enabling vblank to make it work right. Changes s

[Intel-gfx] [PATCH v3 18/20] drm/i915: Call plane update functions directly from intel_atomic_commit.

2015-07-13 Thread Maarten Lankhorst
Now that there's only a single path for all atomic updates we can call intel_(pre/post)_plane_update from intel_atomic_commit directly. This makes the intention more clear. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 14 -- 1 file changed, 8 insertions

[Intel-gfx] [PATCH v3 15/20] drm/i915: Always reset in intel_crtc_restore_mode

2015-07-13 Thread Maarten Lankhorst
And get rid of things that are no longer true. This function is only used for forcing a modeset when encoder properties are changed. Because this is not yet done atomically, assume a full modeset is needed and reset the crtc. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_displ

[Intel-gfx] [PATCH v3 12/20] drm/i915: Convert resume to atomic.

2015-07-13 Thread Maarten Lankhorst
Instead of all the ad-hoc updating, duplicate the old state first before reading out the hw state, then restore it. intel_display_resume is a new function that duplicates the sw state, then reads out the hw state, and commits the old state. intel_display_setup_hw_state now only reads out the atom

[Intel-gfx] [PATCH v3 05/20] drm/i915: Update missing properties in find_initial_plane_obj

2015-07-13 Thread Maarten Lankhorst
The src and crtc rectangles were never set, resulting in the primary plane being made invisible on first atomic update. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i91

[Intel-gfx] [PATCH v3 20/20] drm/i915: Remove use of runtime pm in atomic commit functions

2015-07-13 Thread Maarten Lankhorst
We needed this originally for updating pagetables in plane commit functions. But that's extracted into prepare/cleanup now. The other issue was running updates when the pipe was off. That's also now fixed. Suggested-by: Daniel Vetter Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/int

[Intel-gfx] [PATCH v3 19/20] drm/i915: always disable irqs in intel_pipe_update_start

2015-07-13 Thread Maarten Lankhorst
This can only fail because of a bug in the code. Suggested-by: Daniel Vetter Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 15 +-- drivers/gpu/drm/i915/intel_drv.h | 2 +- drivers/gpu/drm/i915/intel_sprite.c | 17 +++-- 3 files changed

[Intel-gfx] [PATCH v3 13/20] drm/i915: Get rid of unused transitional members.

2015-07-13 Thread Maarten Lankhorst
The previous commit converted hw readout to atomic, all the new_* members were used for restoring the old state, but with the conversion of suspend to atomic there's no use left for them. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 80 -

[Intel-gfx] [PATCH v3 00/20] Convert to atomic, part 4.

2015-07-13 Thread Maarten Lankhorst
Atomic suspend/resume, full hardware readout and atomic ioctl support. Changes from the previous version: - The fastboot changes from the previous patch have been removed, fastboot will have to be a separate patch because of the testing it needs. - I've cleaned up the changes to planes and split

[Intel-gfx] [PATCH v3 10/20] drm/i915: Set csc coefficients in intel_sanitize_crtc.

2015-07-13 Thread Maarten Lankhorst
This might not have been set during boot, and when we preserve the initial mode this can result in a black screen. Cc: Daniel Stone Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_display

[Intel-gfx] [PATCH v3 14/20] drm/i915: Update power domains on readout.

2015-07-13 Thread Maarten Lankhorst
This allows us to get rid of the set_init_power in modeset_update_crtc_domains. The state should be sanitized enough after setup_hw_state to not need the init power. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 76 1 file change

[Intel-gfx] [PATCH v3 04/20] drm/i915: Allow fuzzy matching in pipe_config_compare, v2.

2015-07-13 Thread Maarten Lankhorst
Instead of doing ad-hoc checks we already have a way of checking if the state is compatible or not. Use this to force a modeset. Only during modesets, or with PIPE_CONFIG_QUIRK_INHERITED_MODE we should check if a full modeset is really needed. Fastboot will allow the adjust parameter to ignore so

[Intel-gfx] [PATCH v3 08/20] drm/i915: fill in more mode members

2015-07-13 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 118187dc76be..d37f6a93b094 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/

[Intel-gfx] [PATCH v3 02/20] drm/i915: Do not update pfit state when toggling crtc enabled.

2015-07-13 Thread Maarten Lankhorst
There's not much point for calculating the changes for the old state. Instead just disable all scalers when disabling. It's probably good enough to just disable the crtc_scaler, but just in case there's a bug disable all scalers. This means intel_atomic_setup_scalers is only called in the crtc che

[Intel-gfx] [PATCH v3 11/20] drm/i915: Readout initial hw mode.

2015-07-13 Thread Maarten Lankhorst
Atomic requires a mode blob when crtc_state->enable is true. With a few tweaks the mode we read out from hardware could be used as the real mode without a modeset, but this requires too much testing, so force a modeset the first time the mode blob's updated. This preserves the old behavior, becau

[Intel-gfx] [PATCH v3 06/20] drm/i915: Remove plane_config from struct intel_crtc.

2015-07-13 Thread Maarten Lankhorst
Nothing depends on this outside initial hw readout, so keep this struct on the stack instead. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 25 +++-- drivers/gpu/drm/i915/intel_drv.h | 1 - 2 files changed, 15 insertions(+), 11 deletions(-)

[Intel-gfx] [PATCH v3 01/20] drm/i915: Only update state on crtc's that are part of the atomic state.

2015-07-13 Thread Maarten Lankhorst
This is probably hard to hit right now because in most cases all atomic locks are taken, but after conversion to atomic this will make it more likely to corrupt the crtc->config pointer, resulting in hard to find bugs. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 3

Re: [Intel-gfx] [PATCH v2 00/10] Color Manager Implementation

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 12:11:08PM +0200, Hans Verkuil wrote: > On 07/13/2015 11:54 AM, Daniel Vetter wrote: > > On Mon, Jul 13, 2015 at 11:43:31AM +0200, Hans Verkuil wrote: > >> On 07/13/2015 11:18 AM, Daniel Vetter wrote: > >>> On Mon, Jul 13, 2015 at 10:29:32AM +0200, Hans Verkuil wrote: >

Re: [Intel-gfx] [PATCH v2 4/4] drm/i915/gen9: Add WaSetDisablePixMaskCammingAndRhwoInCommonSliceChicken

2015-07-13 Thread Mika Kuoppala
Arun Siluvery writes: > In Indirect context w/a batch buffer, > +WaSetDisablePixMaskCammingAndRhwoInCommonSliceChicken > > v2: SKL revision id was used for BXT, copy paste error found during > internal review (Bob Beckett). > > Cc: Robert Beckett > Cc: Imre Deak > Signed-off-by: Arun Siluvery

Re: [Intel-gfx] [PATCH v2 3/4] drm/i915/gen9: Add WaFlushCoherentL3CacheLinesAtContextSwitch workaround

2015-07-13 Thread Mika Kuoppala
Arun Siluvery writes: > In Indirect context w/a batch buffer, > +WaFlushCoherentL3CacheLinesAtContextSwitch:bdw s/bdw/skl ? > > v2: address static checker warning where unsigned value was checked for > less than zero which is never true. > Add ^^ (Dan Carpenter

[Intel-gfx] [-next] WARNING at i915_gem_track_fb

2015-07-13 Thread Sergey Senozhatsky
4.2.0-rc2-next-20150713 [ 1239.783862] [ cut here ] [ 1239.783892] WARNING: CPU: 0 PID: 364 at drivers/gpu/drm/i915/i915_gem.c:5368 i915_gem_track_fb+0xdc/0x106 [i915]() [ 1239.783894] WARN_ON(new->frontbuffer_bits & frontbuffer_bits) [ 1239.783895] Modules li

Re: [Intel-gfx] [PATCH v2 2/4] drm/i915/gen9: Add WaDisableCtxRestoreArbitration workaround

2015-07-13 Thread Mika Kuoppala
Arun Siluvery writes: > In Indirect and Per context w/a batch buffer, > +WaDisableCtxRestoreArbitration > > v2: SKL revision id was used for BXT, copy paste error found during > internal review (Bob Beckett). > > Cc: Robert Beckett > Cc: Imre Deak > Signed-off-by: Arun Siluvery Reviewed-by: M

Re: [Intel-gfx] [PATCH v3 1/2] drm/i915: avoid leaking DMA mappings

2015-07-13 Thread Imre Deak
On la, 2015-07-11 at 21:54 +0100, Chris Wilson wrote: > On Thu, Jul 09, 2015 at 12:59:05PM +0300, Imre Deak wrote: > > +static int > > +__i915_gem_userptr_set_pages(struct drm_i915_gem_object *obj, > > +struct page **pvec, int num_pages) > > +{ > > + int ret; > > + > > +

Re: [Intel-gfx] [PATCH] drm/i915: Set edid from init and not from detect

2015-07-13 Thread Jindal, Sonika
On 7/13/2015 5:10 PM, Chris Wilson wrote: On Mon, Jul 13, 2015 at 04:19:15PM +0530, Sonika Jindal wrote: During init_connector set the edid, then edid will be set/unset only during hotplug. For the sake of older platforms where HPD is not stable, let edid read happen from detect as well only i

[Intel-gfx] [drm-intel:topic/drm-misc 35/36] drivers/gpu/drm/virtio/virtgpu_drm_bus.c:55:2: error: implicit declaration of function 'drm_fb_helper_remove_conflicting_framebuffers'

2015-07-13 Thread Fengguang Wu
tree: git://anongit.freedesktop.org/drm-intel topic/drm-misc head: 6198447760ed3c684fbcc93b5f91b4e84861e8f3 commit: 7bd870e7b1c8b4ff0b1624778d9ab17bfe6b903d [35/36] drm/virtio: Use new drm_fb_helper functions config: x86_64-randconfig-i0-201528 (attached as .config) reproduce: git checkout 7

Re: [Intel-gfx] [PATCH] drm/i915: Set edid from init and not from detect

2015-07-13 Thread Chris Wilson
On Mon, Jul 13, 2015 at 04:19:15PM +0530, Sonika Jindal wrote: > During init_connector set the edid, then edid will be set/unset only during > hotplug. For the sake of older platforms where HPD is not stable, let edid > read happen from detect as well only if it is forced to do so. > > v2: Removin

[Intel-gfx] [PATCH] drm/i915: Check live status before reading edid

2015-07-13 Thread Sonika Jindal
Adding this for SKL onwards. v2: Adding checks for VLV/CHV as well. Reusing old ibx and g4x functions to check digital port status. Adding a separate function to get bxt live status (Daniel) Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/intel_dp.c |4 ++-- drivers/gpu/drm/i915/int

[Intel-gfx] [PATCH] drm/i915: Set edid from init and not from detect

2015-07-13 Thread Sonika Jindal
During init_connector set the edid, then edid will be set/unset only during hotplug. For the sake of older platforms where HPD is not stable, let edid read happen from detect as well only if it is forced to do so. v2: Removing the 'force' check, instead let detect call read the edid for platforms

Re: [Intel-gfx] [PATCH] drm/i915/bxt: WA for swapped HPD pins in A stepping

2015-07-13 Thread Sivakumar Thulasimani
On 7/13/2015 3:10 PM, Daniel Vetter wrote: On Mon, Jul 13, 2015 at 02:10:09PM +0530, Sonika Jindal wrote: As per bspec, on BXT A0/A1, sw needs to activate DDIA HPD logic and interrupts to check the external panel connection. And remove the redundant comment. v2: Remove redundant IS_BROXTON ch

Re: [Intel-gfx] [PATCH v2] drm/i915: Don't forget to mark crtc as inactive after disable

2015-07-13 Thread Damien Lespiau
On Mon, Jul 13, 2015 at 11:49:49AM +0200, Daniel Vetter wrote: > On Mon, Jul 13, 2015 at 11:10:51AM +0200, Maarten Lankhorst wrote: > > Op 10-07-15 om 13:22 schreef Damien Lespiau: > > > Hi Patrik, > > > > > > Please do Cc the patch author and reviewer when finding a regression, > > > they are supe

[Intel-gfx] [PATCH v2 3/4] drm/i915/gen9: Add WaFlushCoherentL3CacheLinesAtContextSwitch workaround

2015-07-13 Thread Arun Siluvery
In Indirect context w/a batch buffer, +WaFlushCoherentL3CacheLinesAtContextSwitch:bdw v2: address static checker warning where unsigned value was checked for less than zero which is never true. Reported-by: Dan Carpenter Cc: Imre Deak Signed-off-by: Arun Siluvery --- drivers/gpu/drm/i915/inte

Re: [Intel-gfx] [PATCH v4 14/18] drm/i915: object size needs to be u64

2015-07-13 Thread Michel Thierry
On 7/8/2015 6:03 PM, Chris Wilson wrote: On Wed, Jul 08, 2015 at 05:42:17PM +0100, Michel Thierry wrote: WARN_ON(vma->node.size != obj->base.size) ? Feel free to get the casting right - I suck at implicit C integer conversion rules ... -Daniel Thanks, if there's no objections, I'll change it t

Re: [Intel-gfx] [PATCH 5/9] drm/i915: Clear out DPLL state from pipe config in DSI get config

2015-07-13 Thread Sivakumar Thulasimani
On 7/13/2015 2:21 PM, Daniel Vetter wrote: On Fri, Jul 10, 2015 at 05:37:07PM +0530, Sivakumar Thulasimani wrote: On 7/1/2015 6:12 PM, Daniel Vetter wrote: On Tue, Jun 30, 2015 at 02:50:33PM +0300, Ville Syrjälä wrote: On Tue, Jun 30, 2015 at 12:13:37PM +0200, Daniel Vetter wrote: On Mon,

Re: [Intel-gfx] [RFC 0/2] Add Pooled EU support

2015-07-13 Thread Mika Kuoppala
Arun Siluvery writes: > These patches enabled Pooled EU support for BXT, they are implemented > by Armin Reese. I am sending these patches in its current form for comments. > > These patches modify Golden batch to have a set of modification values > where we can change the commands based on Gen.

Re: [Intel-gfx] [PATCH v2 00/10] Color Manager Implementation

2015-07-13 Thread Hans Verkuil
On 07/13/2015 11:54 AM, Daniel Vetter wrote: > On Mon, Jul 13, 2015 at 11:43:31AM +0200, Hans Verkuil wrote: >> On 07/13/2015 11:18 AM, Daniel Vetter wrote: >>> On Mon, Jul 13, 2015 at 10:29:32AM +0200, Hans Verkuil wrote: On 06/15/2015 08:53 AM, Daniel Vetter wrote: > On Tue, Jun 09, 2015

Re: [Intel-gfx] [PATCH i-g-t] tests/gem_reset_stats.c: fix "ban" tests with scheduler

2015-07-13 Thread Gore, Tim
Tim Gore  Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ > -Original Message- > From: Daniel Vetter [mailto:daniel.vet...@ffwll.ch] On Behalf Of Daniel > Vetter > Sent: Monday, July 13, 2015 10:35 AM > To: Gore, Tim > Cc: intel-gfx@lists.freedesktop.org; W

Re: [Intel-gfx] [PATCH v2 02/20] drm: Don't update plane properties for atomic planes if it stays the same

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 11:49:01AM +0200, Maarten Lankhorst wrote: > Op 13-07-15 om 11:45 schreef Daniel Vetter: > > On Mon, Jul 13, 2015 at 11:23:45AM +0200, Maarten Lankhorst wrote: > >> Op 13-07-15 om 11:13 schreef Daniel Vetter: > >>> On Mon, Jul 13, 2015 at 10:59:32AM +0200, Maarten Lankhorst

[Intel-gfx] [PATCH] drm/i915: Fix noatomic crtc disabling, v2.

2015-07-13 Thread Maarten Lankhorst
This fixes the breakage caused by commit eddfcbcdc27fbecb33bff098967bbdd7ca75bfa6 Author: Maarten Lankhorst Date: Mon Jun 15 12:33:53 2015 +0200 drm/i915: Update less state during modeset. No need to repeatedly call update_watermarks, or update_fbc. Down to a single call to update

Re: [Intel-gfx] [PATCH v2 00/10] Color Manager Implementation

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 11:43:31AM +0200, Hans Verkuil wrote: > On 07/13/2015 11:18 AM, Daniel Vetter wrote: > > On Mon, Jul 13, 2015 at 10:29:32AM +0200, Hans Verkuil wrote: > >> On 06/15/2015 08:53 AM, Daniel Vetter wrote: > >>> On Tue, Jun 09, 2015 at 01:50:48PM +0100, Damien Lespiau wrote: > >>

Re: [Intel-gfx] [PATCH v2 02/20] drm: Don't update plane properties for atomic planes if it stays the same

2015-07-13 Thread Maarten Lankhorst
Op 13-07-15 om 11:45 schreef Daniel Vetter: > On Mon, Jul 13, 2015 at 11:23:45AM +0200, Maarten Lankhorst wrote: >> Op 13-07-15 om 11:13 schreef Daniel Vetter: >>> On Mon, Jul 13, 2015 at 10:59:32AM +0200, Maarten Lankhorst wrote: Op 08-07-15 om 22:12 schreef Daniel Vetter: > On Wed, Jul 0

Re: [Intel-gfx] [PATCH i-g-t] lib/igt_gt.c : allow changes to stop_rings mode bits

2015-07-13 Thread Gore, Tim
Tim Gore  Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ > -Original Message- > From: Daniel Vetter [mailto:daniel.vet...@ffwll.ch] On Behalf Of Daniel > Vetter > Sent: Monday, July 13, 2015 10:30 AM > To: Gore, Tim > Cc: intel-gfx@lists.freedesktop.org; Wo

Re: [Intel-gfx] [PATCH v2] drm/i915: Don't forget to mark crtc as inactive after disable

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 11:10:51AM +0200, Maarten Lankhorst wrote: > Op 10-07-15 om 13:22 schreef Damien Lespiau: > > Hi Patrik, > > > > Please do Cc the patch author and reviewer when finding a regression, > > they are superb candidates for the review, especially when they are busy > > rewriting t

Re: [Intel-gfx] [PATCH v2 09/20] drm/i915: Fill in more crtc state, v2.

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 11:32:09AM +0200, Maarten Lankhorst wrote: > Op 07-07-15 om 12:28 schreef Daniel Vetter: > > On Tue, Jul 07, 2015 at 09:08:20AM +0200, Maarten Lankhorst wrote: > >> Perform a full readout of the state by making sure the mode is set > >> up correctly atomically. > >> > >> Als

Re: [Intel-gfx] [PATCH v2 00/10] Color Manager Implementation

2015-07-13 Thread Hans Verkuil
On 07/13/2015 11:18 AM, Daniel Vetter wrote: > On Mon, Jul 13, 2015 at 10:29:32AM +0200, Hans Verkuil wrote: >> On 06/15/2015 08:53 AM, Daniel Vetter wrote: >>> On Tue, Jun 09, 2015 at 01:50:48PM +0100, Damien Lespiau wrote: On Thu, Jun 04, 2015 at 07:12:31PM +0530, Kausal Malladi wrote: >

Re: [Intel-gfx] [PATCH v2 02/20] drm: Don't update plane properties for atomic planes if it stays the same

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 11:23:45AM +0200, Maarten Lankhorst wrote: > Op 13-07-15 om 11:13 schreef Daniel Vetter: > > On Mon, Jul 13, 2015 at 10:59:32AM +0200, Maarten Lankhorst wrote: > >> Op 08-07-15 om 22:12 schreef Daniel Vetter: > >>> On Wed, Jul 08, 2015 at 08:25:07PM +0200, Maarten Lankhorst

Re: [Intel-gfx] [PATCH] drm/i915/bxt: WA for swapped HPD pins in A stepping

2015-07-13 Thread Daniel Vetter
On Mon, Jul 13, 2015 at 02:10:09PM +0530, Sonika Jindal wrote: > As per bspec, on BXT A0/A1, sw needs to activate DDIA HPD logic > and interrupts to check the external panel connection. > And remove the redundant comment. > > v2: Remove redundant IS_BROXTON check, Add comment about port C not > co

Re: [Intel-gfx] [PATCH i-g-t] tests/gem_reset_stats.c: fix "ban" tests with scheduler

2015-07-13 Thread Daniel Vetter
On Fri, Jul 10, 2015 at 02:26:59PM +0100, tim.g...@intel.com wrote: > From: Tim Gore > > The tests for context banning fail when the gpu scheduler > is enabled. The test causes a hang (using an infinite loop > batch) and then queues up some work behind it on both the > hanging context and also on

Re: [Intel-gfx] [PATCH v2 09/20] drm/i915: Fill in more crtc state, v2.

2015-07-13 Thread Maarten Lankhorst
Op 07-07-15 om 12:28 schreef Daniel Vetter: > On Tue, Jul 07, 2015 at 09:08:20AM +0200, Maarten Lankhorst wrote: >> Perform a full readout of the state by making sure the mode is set >> up correctly atomically. >> >> Also there was a small memory leak by doing the memset, fix this >> by calling __d

Re: [Intel-gfx] [PATCH i-g-t] lib/igt_gt.c : allow changes to stop_rings mode bits

2015-07-13 Thread Daniel Vetter
On Fri, Jul 10, 2015 at 02:06:06PM +0100, tim.g...@intel.com wrote: > From: Tim Gore > > In function igt_set_stop_rings, the test > igt_assert_f(flags == 0 || current == 0, .. > > will fail if we are trying to force a hang but the > STOP_RINGS_ALLOW_BAN or STOP_RINGS_ALLOW_ERROR bit is set. >

Re: [Intel-gfx] [PATCH] drm/i915: Update PM interrupts before updating the freq

2015-07-13 Thread Daniel Vetter
On Sat, Jul 11, 2015 at 05:46:37PM +0100, Chris Wilson wrote: > On Fri, Jul 10, 2015 at 06:31:40PM +0530, Praveen Paneri wrote: > > From: Deepak S > > > > Currently we update the freq before masking the interrupts, which can > > allow new interrupts to occur before the frequency has changed. Thes

[Intel-gfx] [drm-intel:topic/drm-misc 34/36] drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c:205:5-11: inconsistent IS_ERR and PTR_ERR, PTR_ERR on line 206

2015-07-13 Thread kbuild test robot
tree: git://anongit.freedesktop.org/drm-intel topic/drm-misc head: 6198447760ed3c684fbcc93b5f91b4e84861e8f3 commit: 9d70561ba3b129ae7bc052a9f73812bc3b7ad91a [34/36] drm/amdgpu: Use new drm_fb_helper functions coccinelle warnings: (new ones prefixed by >>) >> drivers/gpu/drm/amd/amdgpu/amdgp

[Intel-gfx] [PATCH] drm/amdgpu: fix odd_ptr_err.cocci warnings

2015-07-13 Thread kbuild test robot
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c:205:5-11: inconsistent IS_ERR and PTR_ERR, PTR_ERR on line 206 PTR_ERR should access the value just tested by IS_ERR Semantic patch information: There can be false positives in the patch case, where it is the call IS_ERR that is wrong. Generated by: scr

Re: [Intel-gfx] [PATCH v2 02/20] drm: Don't update plane properties for atomic planes if it stays the same

2015-07-13 Thread Maarten Lankhorst
Op 13-07-15 om 11:13 schreef Daniel Vetter: > On Mon, Jul 13, 2015 at 10:59:32AM +0200, Maarten Lankhorst wrote: >> Op 08-07-15 om 22:12 schreef Daniel Vetter: >>> On Wed, Jul 08, 2015 at 08:25:07PM +0200, Maarten Lankhorst wrote: Op 08-07-15 om 19:52 schreef Daniel Vetter: > On Wed, Jul 0

Re: [Intel-gfx] [RFC] drm/i915: Add gen check for fb size

2015-07-13 Thread Daniel Vetter
On Fri, Jul 10, 2015 at 04:45:12PM +0530, Vandana Kannan wrote: > From gen7, the platform can support fb of size < 3x3. > Adding this check for gen along with fb width & height. > Note: IVB is gen7 but its not clear if it can support width < 3 and > height < 3. > > This patch has been tested in An

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Allow parsing of variable size child device entries from VBT

2015-07-13 Thread Daniel Vetter
On Fri, Jul 10, 2015 at 02:10:54PM +0300, Antti Koskipaa wrote: > VBT version 196 increased the size of common_child_dev_config. The parser > code assumed that the size of this structure would not change. > > So now, instead of checking for smaller size, check that the VBT entry is > not too large

Re: [Intel-gfx] [PATCH] drm/i915: storm detection documentation update

2015-07-13 Thread Daniel Vetter
On Fri, Jul 10, 2015 at 12:30:43PM +0530, Sivakumar Thulasimani wrote: > From: "Thulasimani,Sivakumar" > > Update the hotplug documentation to explain that hotplug storm > is not expected for Display port panels and hence is not handled > in current code. > > v2: update the statements as recomme

  1   2   >