Re: [Intel-gfx] [PATCH 03/18] drm/i915: Add atomic get property interface for CRTC

2015-08-25 Thread Daniel Vetter
On Sat, Aug 22, 2015 at 11:30:44AM +0530, Sharma, Shashank wrote: > Thanks for the review Matt. > > Regards > Shashank > On 8/22/2015 4:10 AM, Matt Roper wrote: > >On Thu, Aug 06, 2015 at 10:08:12PM +0530, Shashank Sharma wrote: > >>From: Kausal Malladi > >> > >>This patch adds atomic get propert

Re: [Intel-gfx] [PATCH 08/18] drm/i915: Add pipe gamma correction handlers

2015-08-25 Thread Daniel Vetter
On Sat, Aug 22, 2015 at 11:41:45AM +0530, Sharma, Shashank wrote: > Regards > Shashank > > On 8/22/2015 4:10 AM, Matt Roper wrote: > >On Thu, Aug 06, 2015 at 10:08:17PM +0530, Shashank Sharma wrote: > >>From: Kausal Malladi > >> > >>I915 driver registers gamma correction as palette correction > >

Re: [Intel-gfx] [PATCH 1/7] prime_mmap: Add new test for calling mmap() on dma-buf fds

2015-08-25 Thread Daniel Vetter
On Fri, Aug 14, 2015 at 07:17:05PM -0300, Tiago Vignatti wrote: > Hi Daniel, > > On 08/13/2015 04:04 AM, Daniel Vetter wrote: > >On Wed, Aug 12, 2015 at 08:29:14PM -0300, Tiago Vignatti wrote: > >>+ /* Map too big */ > >>+ handle = gem_create(fd, BO_SIZE); > >>+ fill_bo(handle, BO_SIZE); > >

Re: [Intel-gfx] [PATCH 4/7] lib: Add gem_userptr helpers

2015-08-25 Thread Daniel Vetter
On Sun, Aug 23, 2015 at 01:10:42PM +0100, Chris Wilson wrote: > On Wed, Aug 12, 2015 at 08:29:17PM -0300, Tiago Vignatti wrote: > > This patch moves userptr definitions and helpers implementation that were > > locally in gem_userptr_benchmark and gem_userptr_blits to the library, so > > other > >

[Intel-gfx] Still time for v4.2? - c0165304e10f ("drm/i915: Only enable cursor if it can be enabled.")

2015-08-25 Thread Bjørn Mork
Hello, I see that I consistently get the warning below on v4.2-rc8. I believe you already fixed this a long time ago by commit c0165304e10f ("drm/i915: Only enable cursor if it can be enabled."), which I assume is a stable candidate for v4.2.y. But wouldn't it look better if you managed to squeez

Re: [Intel-gfx] [PATCH] drm/mm: Do DRM_MM_CREATE_TOP adj_start calculation after color_adjust

2015-08-25 Thread Daniel Vetter
On Sun, Aug 16, 2015 at 08:52:54AM +0100, Chris Wilson wrote: > On Sun, Aug 16, 2015 at 04:02:28AM +0100, Michel Thierry wrote: > > The adj_start calculation for DRM_MM_CREATE_TOP should happen after > > mm->color_adjust. There was an inconsistency between > > drm_mm_insert_helper_range > > and drm

[Intel-gfx] [PATCH] drm/i915: Unhook legacy suspend/resume when KMS is enabled

2015-08-25 Thread Patrik Jakobsson
It's not allowed to have legacy suspend/resume hooked up when DRIVER_MODESET is set. Doing so results in a warning introduced by the commit below. commit e8b4855b5dd3e285d0ec18ed15468025abc1be9a Author: Gustavo Padovan Date: Thu Aug 13 17:06:39 2015 -0300 drm: WARN_ON if a modeset driver u

Re: [Intel-gfx] [PATCH] drm/doc: Fixing xml documentation warning

2015-08-25 Thread Daniel Vetter
On Fri, Aug 21, 2015 at 04:46:14PM -0300, Danilo Cesar Lemes de Paula wrote: > "/**" should be used for kernel-doc documentation only. > It causes a warning with the new "in struct body" format. > > Signed-off-by: Danilo Cesar Lemes de Paula > Cc: Randy Dunlap > Cc: Daniel Vetter > Cc: Laurent

Re: [Intel-gfx] [PATCH] doc: drm: Fix mis-spelling of i915_guc_submission includes

2015-08-25 Thread Daniel Vetter
On Mon, Aug 24, 2015 at 02:41:21PM +0100, Graham Whaley wrote: > In commit > d1675198e: drm/i915: Integrate GuC-based command submission > > the drm.tmpl include lines reference the intel_guc_submission.c but the > patch adds the file i915_guc_submission.c. drm.tmpl fails to build with: > docpro

[Intel-gfx] [PATCH 1/5] Documentation: drm: Fix pdfdocs sect/title tags

2015-08-25 Thread Graham Whaley
Building pdfdocs shows errors with !includes and s such as: jade:/Documentation/DocBook/drm.xml:666:11:E: document type does not allow element "para" here; missing one of "glossary", "bibliography", "index" start-tag Fix by adding items and add/shuffle , and !include items. Signed-off-by: Gra

[Intel-gfx] [PATCH 3/5] Documentation: drm: Change to

2015-08-25 Thread Graham Whaley
Fix pdfdocs errors such as: jade:/Documentation/DocBook/drm.xml:10084:13:E: element "code" undefined by changing tags to tags. It looks like tags were introduced in DocBook v4.3, and kernel DocBook is v4.1.2. I would have used , but that introduces undesirable breaks into the paragraph flow.

[Intel-gfx] [PATCH 0/5] Documentation: drm: Make drm.tmpl build as pdfdoc

2015-08-25 Thread Graham Whaley
A series of patches to make drm.tmpl build under 'make pdfdocs'. The biggest change is patch4 which converts a large HTML table into a CALS one. It should be noted, that table renders less than ideal in the PDF - something I have not figured out how to fix. Patch1 required some changes that then

[Intel-gfx] [PATCH 5/5] Documentation: drm: Unify quoting methods

2015-08-25 Thread Graham Whaley
There is a mixture of ", " and extended character quotes through the document - unify on ". Note, the extended character quotes caused pdfdoc build errors such as: jade:/Documentation/DocBook/drm.xml:34432:20:E: non SGML character number 128 jade:/Documentation/DocBook/drm.xml:34432:21:E: non S

[Intel-gfx] [PATCH 4/5] Documentation: drm: Convert KMS Properties HTML table to CALS

2015-08-25 Thread Graham Whaley
The KMS Properties table is in HTML format, which is not supported for building pdfdocs, resulting in the following types of errors: jade:/Documentation/DocBook/drm.xml:34413:15:E: there is no attribute "border" jade:/Documentation/DocBook/drm.xml:34413:31:E: there is no attribute "cellpadding

[Intel-gfx] [PATCH 2/5] Documentation: drm: Fix pdfdocs listitem and abstract s

2015-08-25 Thread Graham Whaley
Fix pdfdocs errors such as: jade:/Documentation/DocBook/drm.xml:1348:20:E: character data is not allowed here by adding tags to listitems and abstracts Signed-off-by: Graham Whaley --- Documentation/DocBook/drm.tmpl | 87 +++--- 1 file changed, 48 insertion

Re: [Intel-gfx] Still time for v4.2? - c0165304e10f ("drm/i915: Only enable cursor if it can be enabled.")

2015-08-25 Thread Maarten Lankhorst
Hey, Op 25-08-15 om 09:45 schreef Bjørn Mork: > Hello, I see that I consistently get the warning below on v4.2-rc8. I > believe you already fixed this a long time ago by commit c0165304e10f > ("drm/i915: Only enable cursor if it can be enabled."), which I assume is > a stable candidate for v4.2.y

Re: [Intel-gfx] Still time for v4.2? - c0165304e10f ("drm/i915: Only enable cursor if it can be enabled.")

2015-08-25 Thread Bjørn Mork
Maarten Lankhorst writes: > Hey, > > Op 25-08-15 om 09:45 schreef Bjørn Mork: >> Hello, I see that I consistently get the warning below on v4.2-rc8. I >> believe you already fixed this a long time ago by commit c0165304e10f >> ("drm/i915: Only enable cursor if it can be enabled."), which I assum

Re: [Intel-gfx] [PATCH 1/3] drm/i915: Support for pre-populating the object with system pages

2015-08-25 Thread Siluvery, Arun
On 24/08/2015 12:58, ankitprasad.r.sha...@intel.com wrote: From: Ankitprasad Sharma This patch provides support for the User to populate the object with system pages at its creation time. Since this can be safely performed without holding the 'struct_mutex', it would help to reduce the time 'st

Re: [Intel-gfx] [PATCH 1/5] Documentation: drm: Fix pdfdocs sect/title tags

2015-08-25 Thread Daniel Vetter
On Tue, Aug 25, 2015 at 10:26:41AM +0100, Graham Whaley wrote: > Building pdfdocs shows errors with !includes and s such as: > jade:/Documentation/DocBook/drm.xml:666:11:E: document type does not > allow element "para" here; missing one of "glossary", "bibliography", > "index" start-tag > Fix by

[Intel-gfx] [PATCH 0/3] Detect DP displays based on sink count change

2015-08-25 Thread Sivakumar Thulasimani
From: "Thulasimani,Sivakumar" These patches together help detect DP displays on short pulse HPD and pass the respective compliance test case (4.2.2.8) v2: modifed first patch so we will read sink_count independent of downstream ports availablility. Thulasimani,Sivakumar (3): drm/i915: read s

[Intel-gfx] [PATCH 1/3] drm/i915: read sink_count dpcd always

2015-08-25 Thread Sivakumar Thulasimani
From: "Thulasimani,Sivakumar" This patch reads sink_count dpcd always and removes its read operation based on values in downstream port dpcd. Also we should read it irrespective of current status of sink. SINK_COUNT dpcd is not dependent on DOWNSTREAM_PORT_PRESENT dpcd. SINK_COUNT denotes if a d

[Intel-gfx] [PATCH 2/3] drm/i915: Save sink_count for tracking changes to it

2015-08-25 Thread Sivakumar Thulasimani
From: "Thulasimani,Sivakumar" Sink count can change between short pulse hpd hence this patch adds a member variable to intel_dp so we can track any changes between short pulse interrupts. Signed-off-by: Sivakumar Thulasimani --- drivers/gpu/drm/i915/intel_dp.c |5 ++--- drivers/gpu/drm/i9

[Intel-gfx] [PATCH 3/3] drm/i915: force full detect on sink count change

2015-08-25 Thread Sivakumar Thulasimani
From: "Thulasimani,Sivakumar" This patch checks for changes in sink count between short pulse hpds and forces full detect when there is a change. This will result in compliance test case 4.2.2.8 passing since it tests for this behavior. This will allow both detection of hotplug and unplug of pan

[Intel-gfx] [PATCH 1/4] drm/i915: add attached connector to hdmi container

2015-08-25 Thread Sonika Jindal
From: Shashank Sharma This patch adds the intel_connector initialized to intel_hdmi display, during the init phase, just like the other encoders do. This attachment is very useful when we need to extract the connector pointer during the hotplug handler function Signed-off-by: Shashank Sharma --

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

2015-08-25 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) v3: Using intel_encoder->hpd_pin to check the live status (Siva) Moving the live status read to intel_hdmi_

[Intel-gfx] [PATCH 2/4] drm/i915: Add HDMI probe function

2015-08-25 Thread Sonika Jindal
From: Shashank Sharma This patch adds a separate probe function for HDMI EDID read over DDC channel. This function has been registered as a .hot_plug handler for HDMI encoder. The current implementation of hdmi_detect() function re-sets the cached HDMI edid (in connector->detect_edid) in every d

[Intel-gfx] [PATCH 0/4] HDMI optimization series

2015-08-25 Thread Sonika Jindal
This series adds some optimization related to reading of edid only when required and when live status says so. The comments in the patches explain more. v2: Some refactoring is with this series. Also, right now this is done for platforms gen7 and above because we couldn't test with older

[Intel-gfx] [PATCH 4/4] drm/i915: Retry for live status

2015-08-25 Thread Sonika Jindal
Some monitors take time in setting the live status. So retry for few times if this is a connect HPD Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/intel_hdmi.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/

Re: [Intel-gfx] Adding custom bugzilla fields

2015-08-25 Thread Daniel Vetter
On Fri, Aug 21, 2015 at 11:41:45AM +0300, Jani Nikula wrote: > On Tue, 30 Jun 2015, Ander Conselvan De Oliveira wrote: > > On Mon, 2015-06-29 at 14:31 +0300, Ander Conselvan De Oliveira wrote: > >> On Fri, 2015-06-26 at 18:28 +0300, Ander Conselvan De Oliveira wrote: > >> > Hi all, > >> > > >> >

Re: [Intel-gfx] [PATCH 0/7] drm/i915: Move DP link parameters out from intel_dp

2015-08-25 Thread Daniel Vetter
On Mon, Aug 17, 2015 at 03:03:10PM +0300, Ville Syrjälä wrote: > On Mon, Aug 17, 2015 at 10:42:23AM +0200, Maarten Lankhorst wrote: > > Hey, > > > > Op 06-07-15 om 14:09 schreef ville.syrj...@linux.intel.com: > > > From: Ville Syrjälä > > > > > > While working on CHV DPIO powergating I relized DP

Re: [Intel-gfx] [PATCH] drm/doc: Fixing xml documentation warning

2015-08-25 Thread Daniel Vetter
On Fri, Aug 21, 2015 at 04:46:14PM -0300, Danilo Cesar Lemes de Paula wrote: > "/**" should be used for kernel-doc documentation only. > It causes a warning with the new "in struct body" format. > > Signed-off-by: Danilo Cesar Lemes de Paula > Cc: Randy Dunlap > Cc: Daniel Vetter > Cc: Laurent

[Intel-gfx] [PATCH 2/4] drm/fb-helper: Use -errno return in restore_mode_unlocked

2015-08-25 Thread Daniel Vetter
Using bool and returning true upon error is very uncommon. Also an int return value is actually what all the callers which did check it seem to have expected. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_fb_helper.c | 19 +++ include/drm/drm_fb_helper.h | 6 +++--- 2

[Intel-gfx] [PATCH 3/4] drm/fb-helper: Add module option to disable fbdev emulation

2015-08-25 Thread Daniel Vetter
Faster than recompiling. Note that restore_fbdev_mode_unlocked is a bit special and the only one which returns an error code when fbdev isn't there - i915 needs that one to not fall over with some additional fbcon related restore code. Everyone else just ignores the return value or only prints a D

[Intel-gfx] [PATCH 1/4] drm: Make drm_fb_unregister/remove accept NULL fb

2015-08-25 Thread Daniel Vetter
These functions are used by drivers to release fbdev emulation buffers. We need to make them resilient to NULL pointers to make the fbdev compile/runtime knobs not cause Oopses on module unload. Cc: Archit Taneja Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_crtc.c | 14 -- 1

[Intel-gfx] [PATCH 4/4] fbdev: Debug knob to register without holding console_lock

2015-08-25 Thread Daniel Vetter
When the usual fbcon legacy options are enabled we have ->register_framebuffer ->fb notifier chain calls into fbcon ->fbcon sets up console on new fbi ->fbi->set_par ->drm_fb_helper_set_par exercises full kms api And because of locking inversion hilarity all of register_framebu

Re: [Intel-gfx] [PATCH 0/7] drm/i915: Move DP link parameters out from intel_dp

2015-08-25 Thread Ville Syrjälä
On Tue, Aug 25, 2015 at 02:57:45PM +0200, Daniel Vetter wrote: > On Mon, Aug 17, 2015 at 03:03:10PM +0300, Ville Syrjälä wrote: > > On Mon, Aug 17, 2015 at 10:42:23AM +0200, Maarten Lankhorst wrote: > > > Hey, > > > > > > Op 06-07-15 om 14:09 schreef ville.syrj...@linux.intel.com: > > > > From: Vi

[Intel-gfx] [PATCH] drm/atomic-helper: properly annotate functions in kerneldoc

2015-08-25 Thread Daniel Vetter
Without the () the markup and more important hyperlinking wont happen. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_atomic_helper.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c

Re: [Intel-gfx] [PATCH 4/5] Documentation: drm: Convert KMS Properties HTML table to CALS

2015-08-25 Thread Daniel Vetter
On Tue, Aug 25, 2015 at 10:26:44AM +0100, Graham Whaley wrote: > The KMS Properties table is in HTML format, which is not supported > for building pdfdocs, resulting in the following types of errors: > > jade:/Documentation/DocBook/drm.xml:34413:15:E: there is no attribute > "border" > jade:/Do

Re: [Intel-gfx] [PATCH] drm/i915: Enabling RC6 immediately during init/resume

2015-08-25 Thread Daniel Vetter
On Fri, Aug 21, 2015 at 01:41:26PM +0100, Chris Wilson wrote: > On Sat, Aug 22, 2015 at 02:19:48AM +0530, Namrta Salonie wrote: > > Since RC6 enabling does not involve PCU communication overhead, > > it can be enabled immediately during the resume time. > > This will help save additional power & me

Re: [Intel-gfx] [PATCH] drm/i915: Unhook legacy suspend/resume when KMS is enabled

2015-08-25 Thread Daniel Vetter
On Tue, Aug 25, 2015 at 10:51:10AM +0200, Patrik Jakobsson wrote: > It's not allowed to have legacy suspend/resume hooked up when > DRIVER_MODESET is set. Doing so results in a warning introduced by the > commit below. > > commit e8b4855b5dd3e285d0ec18ed15468025abc1be9a > Author: Gustavo Padovan

Re: [Intel-gfx] [PATCH 1/5] Documentation: drm: Fix pdfdocs sect/title tags

2015-08-25 Thread Graham Whaley
On Tue, 2015-08-25 at 13:34 +0200, Daniel Vetter wrote: > On Tue, Aug 25, 2015 at 10:26:41AM +0100, Graham Whaley wrote: > > Building pdfdocs shows errors with !includes and s such as: > > jade:/Documentation/DocBook/drm.xml:666:11:E: document type does > > not > > allow element "para" here; miss

Re: [Intel-gfx] [PATCH] drm/atomic-helper: properly annotate functions in kerneldoc

2015-08-25 Thread Laurent Pinchart
Hi Daniel, Thank you for the patch. On Tuesday 25 August 2015 16:26:03 Daniel Vetter wrote: > Without the () the markup and more important hyperlinking wont happen. > > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/drm_atomic_helper.c | 12 ++-- > 1 file changed, 6 insertions(+)

Re: [Intel-gfx] [PATCH] drm/atomic-helper: properly annotate functions in kerneldoc

2015-08-25 Thread Daniel Vetter
On Tue, Aug 25, 2015 at 06:00:26PM +0300, Laurent Pinchart wrote: > Hi Daniel, > > Thank you for the patch. > > On Tuesday 25 August 2015 16:26:03 Daniel Vetter wrote: > > Without the () the markup and more important hyperlinking wont happen. > > > > Signed-off-by: Daniel Vetter > > --- > > dr

[Intel-gfx] [PATCH] drm/fb-helper: Use -errno return in restore_mode_unlocked

2015-08-25 Thread Daniel Vetter
Using bool and returning true upon error is very uncommon. Also an int return value is actually what all the callers which did check it seem to have expected. v2: Restore hunk misplaced in a rebase, spotted by Rob. Cc: Rob Clark Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_fb_helper.c

Re: [Intel-gfx] Adding custom bugzilla fields

2015-08-25 Thread Jani Nikula
On Tue, 25 Aug 2015, Daniel Vetter wrote: > On Fri, Aug 21, 2015 at 11:41:45AM +0300, Jani Nikula wrote: >> On Tue, 30 Jun 2015, Ander Conselvan De Oliveira >> wrote: >> > On Mon, 2015-06-29 at 14:31 +0300, Ander Conselvan De Oliveira wrote: >> >> On Fri, 2015-06-26 at 18:28 +0300, Ander Conselv

Re: [Intel-gfx] [PATCH 4/5] Documentation: drm: Convert KMS Properties HTML table to CALS

2015-08-25 Thread Graham Whaley
On Tue, 2015-08-25 at 16:29 +0200, Daniel Vetter wrote: > On Tue, Aug 25, 2015 at 10:26:44AM +0100, Graham Whaley wrote: > > The KMS Properties table is in HTML format, which is not supported > > for building pdfdocs, resulting in the following types of errors: > > > > jade:/Documentation/DocBook

Re: [Intel-gfx] [PATCH] drm/i915: Unhook legacy suspend/resume when KMS is enabled

2015-08-25 Thread Jani Nikula
On Tue, 25 Aug 2015, Daniel Vetter wrote: > On Tue, Aug 25, 2015 at 10:51:10AM +0200, Patrik Jakobsson wrote: >> It's not allowed to have legacy suspend/resume hooked up when >> DRIVER_MODESET is set. Doing so results in a warning introduced by the >> commit below. >> >> commit e8b4855b5dd3e285d0

[Intel-gfx] [PATCH] drm/i915: Pin the ifbdev for the info->system_base GGTT mmapping

2015-08-25 Thread Chris Wilson
A long time ago (before 3.14) we relied on a permanent pinning of the ifbdev to lock the fb in place inside the GGTT. However, the introduction of stealing the BIOS framebuffer and reusing its address in the GGTT for the fbdev has muddied waters and we use an inherited fb. However, the inherited fb

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

2015-08-25 Thread Jani Nikula
On Tue, 25 Aug 2015, 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) > v3: Using intel_encoder->hpd_pin to check the live st

Re: [Intel-gfx] [PATCH] drm/i915: Unhook legacy suspend/resume when KMS is enabled

2015-08-25 Thread Patrik Jakobsson
On Tue, Aug 25, 2015 at 6:41 PM, Jani Nikula wrote: > On Tue, 25 Aug 2015, Daniel Vetter wrote: >> On Tue, Aug 25, 2015 at 10:51:10AM +0200, Patrik Jakobsson wrote: >>> It's not allowed to have legacy suspend/resume hooked up when >>> DRIVER_MODESET is set. Doing so results in a warning introduce

Re: [Intel-gfx] [PATCH 1/4] drm: Make drm_fb_unregister/remove accept NULL fb

2015-08-25 Thread Rob Clark
On Tue, Aug 25, 2015 at 9:45 AM, Daniel Vetter wrote: > These functions are used by drivers to release fbdev emulation > buffers. We need to make them resilient to NULL pointers to > make the fbdev compile/runtime knobs not cause Oopses on module > unload. > > Cc: Archit Taneja > Signed-off-by: D

Re: [Intel-gfx] [PATCH] drm/fb-helper: Use -errno return in restore_mode_unlocked

2015-08-25 Thread Rob Clark
On Tue, Aug 25, 2015 at 11:20 AM, Daniel Vetter wrote: > Using bool and returning true upon error is very uncommon. Also an int > return value is actually what all the callers which did check it seem > to have expected. > > v2: Restore hunk misplaced in a rebase, spotted by Rob. > > Cc: Rob Clark

Re: [Intel-gfx] [PATCH 4/4] fbdev: Debug knob to register without holding console_lock

2015-08-25 Thread Rob Clark
On Tue, Aug 25, 2015 at 9:45 AM, Daniel Vetter wrote: > When the usual fbcon legacy options are enabled we have > ->register_framebuffer > ->fb notifier chain calls into fbcon > ->fbcon sets up console on new fbi > ->fbi->set_par > ->drm_fb_helper_set_par exercises full kms api

[Intel-gfx] [DMC_BUGFIX_SKL_V2 0/5] pc10 entry fixes for skl.

2015-08-25 Thread Animesh Manna
The following patches helps to solve PC10 entry issue for SKL. Detailed description about the changes done to solve the issue is mentioned in commit message of each patch. v1: http://lists.freedesktop.org/archives/intel-gfx/2015-August/072870.html v2: Based on review comments from Daniel, changes

[Intel-gfx] [DMC_BUGFIX_SKL_V2 4/5] drm/i915/skl: Do not disable cdclk PLL if csr firmware is present

2015-08-25 Thread Animesh Manna
While display engine entering into low power state no need to disable cdclk pll as CSR firmware of dmc will take care. If pll is already enabled firmware execution sequence will be blocked. This is one of the criteria for dmc to work properly. v1: Initial version. v2: Based on review comment from

[Intel-gfx] [DMC_BUGFIX_SKL_V2 5/5] drm/i915/skl: Block disable call for pw1 if dmc firmware is present.

2015-08-25 Thread Animesh Manna
Another interesting criteria to work dmc as expected is pw1 to be enabled by driver and dmc will shut it off in its execution sequence. If already disabled by driver dmc will get confuse and behave differently than expected found during pc10 entry issue for skl. So berfore we disable power-well 1,

[Intel-gfx] [DMC_BUGFIX_SKL_V2 2/5] drm/i915/skl Remove the call for csr uninitialization from suspend path

2015-08-25 Thread Animesh Manna
This patch remove the function call to set the firmware loading status as uninitialized during suspend. Dmc firmware will restore the firmware in normal suspend. In previous patch added a check to directly read the hardware status and load the firmware if got reset during resume from suspend-hiber

[Intel-gfx] [DMC_BUGFIX_SKL_V2 3/5] drm/i915/skl: Making DC6 entry is the last call in suspend flow.

2015-08-25 Thread Animesh Manna
Mmio register access after dc6/dc5 entry is not allowed when DC6 power states are enabled according to bspec (bspec-id 0527), so enabling dc6 as the last call in suspend flow. v1: Initial version. v2: Based on review comment from Daniel, - created a seperate patch for csr uninitialization set cal

[Intel-gfx] [DMC_BUGFIX_SKL_V2 1/5] drm/i915/skl: Added a check for the hardware status of csr fw before loading.

2015-08-25 Thread Animesh Manna
Dmc will restore the csr program except DC9, cold boot, warm reset, PCI function level reset, and hibernate/suspend. intel_csr_load_program() function is used to load the firmware data from kernel memory to csr address space. All values of csr address space will be zero if it got reset and the fi

[Intel-gfx] [ANNOUNCE] igt basic tests

2015-08-25 Thread Jesse Barnes
After getting feedback from various people, I've recently pushed a few changes to igt to add/move a 'basic' set of subtests. The intention is that this set of tests always pass, and will be used by the PRTS system on a per-patch basis as a merge criteria. The total runtime for all the basic tests

Re: [Intel-gfx] [PATCH v4 1/5] drm: Add config for detecting libdrm

2015-08-25 Thread Mike Frysinger
On 24 Aug 2015 14:42, Patrik Jakobsson wrote: > +PKG_CHECK_MODULES([LIBDRM], [libdrm], > + [CPPFLAGS="$CPPFLAGS $LIBDRM_CFLAGS" > +AC_CHECK_HEADERS([drm.h i915_drm.h])], > + [AC_CHECK_HEADERS([drm/drm.h drm/i915_drm.h])]) i would make the drm/xxx headers

Re: [Intel-gfx] [PATCH v4 2/5] drm: Add private data field to trace control block

2015-08-25 Thread Mike Frysinger
On 24 Aug 2015 14:42, Patrik Jakobsson wrote: > We need to be able to store private data in the tcb across it's > lifetime. To ensure proper destruction of the data a free_priv_data > callback must be provided if an allocation is stored in priv_data. The > callback is executed automatically when th

[Intel-gfx] [PATCH 2/2] drm/i915: restrict unclaimed register checking

2015-08-25 Thread Paulo Zanoni
The unclaimed register bit is only triggered when someone touches the specified register range. For the normal use case (with i915.mmio_debug=0), this commit will avoid the extra __raw_i915_read32() call for every register outside the specified range, at the expense of a few additional "if" statem

[Intel-gfx] [PATCH 1/2] drm/i915: gen 9 can check for unclaimed registers too

2015-08-25 Thread Paulo Zanoni
Dear git bisect user, Even though this is the patch that introduced the WARN() you're bisecting, please notice that it's very likely that the problem you're facing was already present before this commit. In other words: this commit adds code to detect errors and give WARN()s about them, but the er

[Intel-gfx] [PATCH v4] dma-buf: Add ioctls to allow userspace to flush

2015-08-25 Thread Tiago Vignatti
From: Daniel Vetter The userspace might need some sort of cache coherency management e.g. when CPU and GPU domains are being accessed through dma-buf at the same time. To circumvent this problem there are begin/end coherency markers, that forward directly to existing dma-buf device drivers vfunc

Re: [Intel-gfx] [PATCH 00/13] Atomic watermark updates (v3)

2015-08-25 Thread Hindman, Gavin
Does this series comprehend all of the ddr-dvfs/PM-5 watermark reworks that Ville did towards the end of CHV, or is this series additive to that? Gavin Hindman Senior Program Manager SSG/OTC – Open Source Technology Center -Original Message- From: Intel-gfx [mailto:intel-gfx-boun...@lis

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

2015-08-25 Thread Hindman, Gavin
Jani - do you believe that this series will need to be reworked following merge of your cleanup series? We've got some outstanding CHV hot-plug issues that Sonika's series should fix, so we need to get it in, but should definitely take the path towards longer-term quality. Gavin Hindman Senio

Re: [Intel-gfx] [PATCH v2 1/7] drm/i915: move ibx_digital_port_connected to intel_dp.c

2015-08-25 Thread Jindal, Sonika
Hmm, so we might need to make it global again, because we would want to check the live status for hdmi in the hdmi optimization series: http://lists.freedesktop.org/archives/intel-gfx/2015-August/074306.html Maybe we can drop this patch alone? Regards, Sonika -Original Message- From: In

Re: [Intel-gfx] [PATCH 3/4] drm/fb-helper: Add module option to disable fbdev emulation

2015-08-25 Thread Archit Taneja
On 08/25/2015 07:15 PM, Daniel Vetter wrote: Faster than recompiling. Note that restore_fbdev_mode_unlocked is a bit special and the only one which returns an error code when fbdev isn't there - i915 needs that one to not fall over with some additional fbcon related restore code. Everyone else

Re: [Intel-gfx] [PATCH v2 4/7] drm/i915: add common intel_digital_port_connected function

2015-08-25 Thread Jindal, Sonika
So, looks like I can use intel_digital_port_connected for hdmi case. In that case, we can make this function global and add a case for bxt as well. Regards, Sonika -Original Message- From: Intel-gfx [mailto:intel-gfx-boun...@lists.freedesktop.org] On Behalf Of Jani Nikula Sent: Thursday,

Re: [Intel-gfx] [PATCH v2 7/7] drm/i915/bxt: Use correct live status register for BXT platform

2015-08-25 Thread Jindal, Sonika
Oh, bxt is here..:) Spoke too soon.. But will need to make it based upon intel_encoder->hpd_pin because of the A0/A1 WA for BXT. Also, we need to make intel_digital_port_connected global to be accessed from intel_hdmi.c Regards, Sonika -Original Message- From: Intel-gfx [mailto:intel-gf

Re: [Intel-gfx] [PATCH v2 7/7] drm/i915/bxt: Use correct live status register for BXT platform

2015-08-25 Thread Jani Nikula
On Wed, 26 Aug 2015, "Jindal, Sonika" wrote: > Oh, bxt is here..:) Spoke too soon.. > But will need to make it based upon intel_encoder->hpd_pin because of the > A0/A1 WA for BXT. That should anyway be a separate patch changing the port->port to a port acquired from pin_to_port. We'll take it ou

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

2015-08-25 Thread Jani Nikula
The cleanup series has already been reviewed, this one hasn't. The cleanup series should actually make patch 3/4 simpler to review. Otherwise there really isn't conflict. BR, Jani. On Wed, 26 Aug 2015, "Hindman, Gavin" wrote: > Jani - do you believe that this series will need to be reworked fo

Re: [Intel-gfx] [PATCH v2] drm/i915: Change SRM, LRM instructions to use correct length

2015-08-25 Thread Daniel Vetter
On Wed, Aug 19, 2015 at 04:46:13PM +0300, Mika Kuoppala wrote: > Arun Siluvery writes: > > > MI_STORE_REGISTER_MEM, MI_LOAD_REGISTER_MEM instructions are not really > > variable length instructions unlike MI_LOAD_REGISTER_IMM where it expects > > (reg, addr) pairs so use fixed length for these in

Re: [Intel-gfx] [PATCH] drm/i915: Also call frontbuffer flip when disabling planes.

2015-08-25 Thread Daniel Vetter
On Mon, Aug 24, 2015 at 04:38:23PM -0700, Rodrigo Vivi wrote: > We also need to call the frontbuffer flip to trigger proper > invalidations when disabling planes. Otherwise we will miss > screen updates when disabling sprites or cursor. > > On core platforms where HW tracking also works, this issu

Re: [Intel-gfx] [PATCH v4] dma-buf: Add ioctls to allow userspace to flush

2015-08-25 Thread Thomas Hellstrom
Hi, Tiago. On 08/26/2015 02:02 AM, Tiago Vignatti wrote: > From: Daniel Vetter > > The userspace might need some sort of cache coherency management e.g. when CPU > and GPU domains are being accessed through dma-buf at the same time. To > circumvent this problem there are begin/end coherency marke