Re: [Intel-gfx] [PATCH 02/14] drm/i915: Reorganize vlv eDP reboot notifier

2014-08-19 Thread Jani Nikula
On Mon, 18 Aug 2014, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Move the vlv_power_sequencer_pipe() after the IS_VALLEYVIEW() check > and flatten the rest of the function. Please imagine adding another platform there, and realize this just adds unnecessary churn. BR, Jani.

Re: [Intel-gfx] [PATCH 05/14] drm/i915: Add a note explaining vdd on/off handling in intel_dp_aux_ch()

2014-08-19 Thread Jani Nikula
On Mon, 18 Aug 2014, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Add a comment to explain why we care about the current want_panel_vdd > state in intel_dp_aux_ch(). Reviewed-by: Jani Nikula > > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/intel_dp.c | 6 ++

Re: [Intel-gfx] [PATCH 03/14] drm/i915: Use intel_edp_panel_vdd_on() in intel_dp_probe_mst()

2014-08-19 Thread Jani Nikula
On Mon, 18 Aug 2014, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > We want to use the higher level vdd on func here. Not a big deal > yet (we'd just get the warn when things go awry) but when the > locking gets fixed this becomes more important. Reviewed-by: Jani Nikula > > Si

Re: [Intel-gfx] [PATCH 04/14] drm/i915: Rename edp vdd funcs for consistency

2014-08-19 Thread Jani Nikula
On Mon, 18 Aug 2014, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > edp_* are now the lower level functions and intel_edp_* the higher level > ones. One should use them in pairs. Yeah I should've done this when I added the lower level ones. One thing you need to fix below though.

Re: [Intel-gfx] [PATCH 08/14] drm/i915: Flatten intel_edp_panel_vdd_on()

2014-08-19 Thread Jani Nikula
On Mon, 18 Aug 2014, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Less pointless indentation is always nice. There will be a bit more > code in this function once the power sequencer locking is fixed. Reviewed-by: Jani Nikula This could be earlier in the series, right? > > Si

Re: [Intel-gfx] [PATCH 06/14] drm/i915: Replace big nested if block with early return

2014-08-19 Thread Jani Nikula
On Mon, 18 Aug 2014, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Looks nicer. Side note, I kind of like adding "No functional changes." in the commit messages of patches that do not intend to do functional changes. I find it helpful. Reviewed-by: Jani Nikula > > Signed-off-

Re: [Intel-gfx] [PATCH 12/14] drm/i915: Turn on panel power before doing aux transfers

2014-08-19 Thread Jani Nikula
On Mon, 18 Aug 2014, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > On VLV/CHV the panel power sequencer may need to be "kicked" a bit to > lock onto the new port, and that needs to happen before any aux > transfers are attempted if we want the aux transfers to actaully > succeed.

Re: [Intel-gfx] [PATCH 07/14] drm/i915: Warn about want_panel_vdd in edp_panel_vdd_off_sync()

2014-08-19 Thread Jani Nikula
On Mon, 18 Aug 2014, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > If we force vdd off warn if someone is still using it. With this > change the delayed vdd off work needs to check want_panel_vdd > itself to make sure it doesn't try to turn vdd off when someone > is using it. I t

Re: [Intel-gfx] [PATCH 00/14] drm/i915: edp vdd locking and prep for power sequencer kick

2014-08-19 Thread Jani Nikula
On Mon, 18 Aug 2014, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > While wrestling with the VLV/CHV panel power sequencer I noticed the locking > in our edp vdd code was rather broken. This series aims to fix that by > introducing a power seqeuencer mutex. I was already thinking a

Re: [Intel-gfx] [PATCH 00/14] drm/i915: edp vdd locking and prep for power sequencer kick

2014-08-19 Thread Jani Nikula
On Mon, 18 Aug 2014, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > While wrestling with the VLV/CHV panel power sequencer I noticed the locking > in our edp vdd code was rather broken. This series aims to fix that by > introducing a power seqeuencer mutex. I was already thinking a

Re: [Intel-gfx] [PATCH v2 0/7] Rename DP training vswing/pre-emph defines

2014-08-19 Thread Jindal, Sonika
Hi, Did anybody get a chance to review other patches in this series? I got r-b for 2 patches (patches with changes in drm and i915) from Damien. Thanks, Sonika -Original Message- From: Jindal, Sonika Sent: Friday, August 8, 2014 4:24 PM To: intel-gfx@lists.freedesktop.org Cc: dri-de...@

[Intel-gfx] [PATCH] drm/i915: Handle i915_ppgtt_put correctly

2014-08-19 Thread Michel Thierry
Unfortunately, the gem_obj/vma relationship is not symmetrical; a gem_obj can look up for the same vma more than once (where the ppgtt refcount is incremented), but will free the vma only once (i915_gem_free_object). This difference in refcount get/put means that the ppgtt is not removed after the

[Intel-gfx] [PATCH] drm/i915/bdw: Populate lrc with aliasing ppgtt if required

2014-08-19 Thread Thomas Daniel
A previous commit broke aliasing PPGTT for lrc, resulting in a kernel oops on boot. Add a check so that is full PPGTT is not in use the context is populated with the aliasing PPGTT. Issue: VIZ-4278 Signed-off-by: Thomas Daniel --- drivers/gpu/drm/i915/intel_lrc.c |5 + 1 file changed, 5

Re: [Intel-gfx] [PATCH] drm/i915/bdw: Populate lrc with aliasing ppgtt if required

2014-08-19 Thread Damien Lespiau
On Tue, Aug 19, 2014 at 10:13:36AM +0100, Thomas Daniel wrote: > A previous commit broke aliasing PPGTT for lrc, resulting in a kernel oops > on boot. Add a check so that is full PPGTT is not in use the context is > populated with the aliasing PPGTT. Usually, we add a bit of history to the patch (

Re: [Intel-gfx] [REGRESSION BISECTED] backlight control stops workin with 3.14 and later

2014-08-19 Thread Bertrik Sikken
> On Sun, 17 Aug 2014, Bertrik Sikken wrote: >> On 15-8-2014 3:43, Jani Nikula wrote: >>> On Thu, 14 Aug 2014, Bertrik Sikken wrote: >> Attached is dmesg output from booting kernel 3.14-2 (debian unstable) with drm.debug=0xe and the samsung_laptop module enabled, from my Samsung N1

Re: [Intel-gfx] [PATCH v3] drm/i915: Rework GPU reset sequence to match driver load & thaw

2014-08-19 Thread Mcaulay, Alistair
Hi Mika, can you please review this patch, and verify it fixes the issues in your previous review. Thanks, Alistair. > -Original Message- > From: Mcaulay, Alistair > Sent: Friday, August 15, 2014 6:52 PM > To: intel-gfx@lists.freedesktop.org > Cc: Mcaulay, Alistair > Subject: [PATCH v3]

[Intel-gfx] [PATCH v2 04/14] drm/i915: Rename edp vdd funcs for consistency

2014-08-19 Thread ville . syrjala
From: Ville Syrjälä edp_* are now the lower level functions and intel_edp_* the higher level ones. One should use them in pairs. v2: Don't return void (Jani) Reviewed-by: Jani Nikula Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_dp.c | 21 + 1 file changed,

Re: [Intel-gfx] [PATCH 07/14] drm/i915: Warn about want_panel_vdd in edp_panel_vdd_off_sync()

2014-08-19 Thread Ville Syrjälä
On Tue, Aug 19, 2014 at 10:36:52AM +0300, Jani Nikula wrote: > On Mon, 18 Aug 2014, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > If we force vdd off warn if someone is still using it. With this > > change the delayed vdd off work needs to check want_panel_vdd > > itself to

Re: [Intel-gfx] [PATCH v2 i-g-t 1/1] tests: Fix seg fault when gem_mmap is run without specifying a subtest

2014-08-19 Thread Thomas Wood
On 18 August 2014 18:43, Mike Mason wrote: > gem_mmap seg faults when all tests are run together. This occurs because > the new-object subtest closes the gem object, but short-mmap assumes > it still exists. Thus gem_mmap__cpu() returns nil for addr and memset() > seg faults. This patch makes new-

Re: [Intel-gfx] [PATCH 00/14] drm/i915: edp vdd locking and prep for power sequencer kick

2014-08-19 Thread Ville Syrjälä
On Tue, Aug 19, 2014 at 11:08:33AM +0300, Jani Nikula wrote: > On Mon, 18 Aug 2014, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > While wrestling with the VLV/CHV panel power sequencer I noticed the locking > > in our edp vdd code was rather broken. This series aims to fix t

Re: [Intel-gfx] [PATCH 08/14] drm/i915: Flatten intel_edp_panel_vdd_on()

2014-08-19 Thread Ville Syrjälä
On Tue, Aug 19, 2014 at 10:30:25AM +0300, Jani Nikula wrote: > On Mon, 18 Aug 2014, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > Less pointless indentation is always nice. There will be a bit more > > code in this function once the power sequencer locking is fixed. > > Rev

Re: [Intel-gfx] [PATCH 12/14] drm/i915: Turn on panel power before doing aux transfers

2014-08-19 Thread Ville Syrjälä
On Tue, Aug 19, 2014 at 10:33:15AM +0300, Jani Nikula wrote: > On Mon, 18 Aug 2014, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > On VLV/CHV the panel power sequencer may need to be "kicked" a bit to > > lock onto the new port, and that needs to happen before any aux > > tra

Re: [Intel-gfx] [PATCH v3] drm/i915: Rework GPU reset sequence to match driver load & thaw

2014-08-19 Thread Mika Kuoppala
"Mcaulay, Alistair" writes: > Hi Mika, > > can you please review this patch, and verify it fixes the issues in your > previous review. > > Thanks, > Alistair. > >> -Original Message- >> From: Mcaulay, Alistair >> Sent: Friday, August 15, 2014 6:52 PM >> To: intel-gfx@lists.freedesktop.or

Re: [Intel-gfx] [REGRESSION BISECTED] backlight control stops workin with 3.14 and later

2014-08-19 Thread Jani Nikula
On Tue, 19 Aug 2014, Bertrik Sikken wrote: >> On Sun, 17 Aug 2014, Bertrik Sikken wrote: >>> On 15-8-2014 3:43, Jani Nikula wrote: On Thu, 14 Aug 2014, Bertrik Sikken wrote: >>> > Attached is dmesg output from booting kernel 3.14-2 (debian unstable) > with drm.debug=0xe and the sams

Re: [Intel-gfx] [PATCH 07/14] drm/i915: Warn about want_panel_vdd in edp_panel_vdd_off_sync()

2014-08-19 Thread Jani Nikula
On Tue, 19 Aug 2014, Ville Syrjälä wrote: > On Tue, Aug 19, 2014 at 10:36:52AM +0300, Jani Nikula wrote: >> On Mon, 18 Aug 2014, ville.syrj...@linux.intel.com wrote: >> > From: Ville Syrjälä >> > >> > If we force vdd off warn if someone is still using it. With this >> > change the delayed vdd off

Re: [Intel-gfx] [PATCH] drm/i915: Handle i915_ppgtt_put correctly

2014-08-19 Thread Daniel Vetter
On Tue, Aug 19, 2014 at 10:50 AM, Michel Thierry wrote: > --- a/drivers/gpu/drm/i915/i915_gem_gtt.c > +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c > @@ -2223,6 +2223,7 @@ static struct i915_vma *__i915_gem_vma_create(struct > drm_i915_gem_object *obj, > INIT_LIST_HEAD(&vma->exec_list); >

Re: [Intel-gfx] [PATCH] drm/i915/bdw: Disable execlists by default

2014-08-19 Thread Daniel Vetter
On Mon, Aug 18, 2014 at 4:55 PM, Paulo Zanoni wrote: > 2014-08-18 5:29 GMT-03:00 Jani Nikula : >> On Fri, 15 Aug 2014, Damien Lespiau wrote: >>> We still have a few missing bits and pieces to have execlists enabled by >>> default eg. the error capture or the render state initialization and so >>>

Re: [Intel-gfx] [PATCH] drm/i915: don't warn if backlight unexpectedly enabled

2014-08-19 Thread Daniel Vetter
On Tue, Aug 19, 2014 at 4:07 AM, Scot Doyle wrote: > BIOS or firmware can modify hardware state during suspend/resume, > for example on the Toshiba CB35 or Lenovo T400, so log a debug message > instead of a warning if the backlight is unexpectedly enabled. > > Bugzilla: https://bugs.freedesktop.or

Re: [Intel-gfx] [PATCH] drm/i915/bdw: Populate lrc with aliasing ppgtt if required

2014-08-19 Thread Daniel Vetter
Ok, things start to dawn upon me - let's blame it on the lack of decent coffee here ;-) I mixed up USES_PPGTT with USES_FULL_PPGTT (again) so didn't realize that execlist works with just aliasing ppgtt. So I guess there's still room to clean up these macros a bit, maybe do an s/USES_PPGTT/USES_HW_

[Intel-gfx] [PATCH v2] drm/i915: Handle i915_ppgtt_put correctly

2014-08-19 Thread Michel Thierry
Unfortunately, the gem_obj/vma relationship is not symmetrical; a gem_obj can look up for the same vma more than once (where the ppgtt refcount is incremented), but will free the vma only once (i915_gem_free_object). This difference in refcount get/put means that the ppgtt is not removed after the

[Intel-gfx] [PATCH v2 09/14] drm/i915: Fix edp vdd locking

2014-08-19 Thread ville . syrjala
From: Ville Syrjälä Introduce a new mutex (pps_mutex) to protect the power sequencer state. For now this state includes want_panel_vdd as well as the power sequencer registers. We need a single mutex (as opposed to per port) because later on we will need to deal with VLV/CHV which have multiple

[Intel-gfx] [PATCH 10.1/14] drm/i915: Reset power sequencer pipe tracking when disp2d is off

2014-08-19 Thread ville . syrjala
From: Ville Syrjälä The power sequencer loses its state when the disp2d power well is down. Clear the dev_priv->pps_pipe tracking so that the power sequencer state gets reinitialized the next time it's needed. Signed-off-by: Ville Syrjälä --- Might be this should be squashed with '[PATCH] drm/i

[Intel-gfx] [PATCH 15/14] drm/i915: Add comments explaining the vdd on/off functions

2014-08-19 Thread ville . syrjala
From: Ville Syrjälä Jani wanted some comments to explain why we call certain vdd on/off functions in certain places. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_dp.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/

Re: [Intel-gfx] Graphics driver Init code

2014-08-19 Thread Dushyant Behl
Ping. On Thu, Aug 14, 2014 at 2:55 AM, Dushyant Behl wrote: > Hi Everyone, > > I am an Operating system developer and I'm working on a project for > which I wanted to understand the working of Intel Graphics Driver. > Being somewhat new in this field, Can I ask anyone to point me where > should

Re: [Intel-gfx] [PATCH] drm/i915: FBC flush nuke for BDW

2014-08-19 Thread Daniel Vetter
Readding intel-gfx. Please don't drop mailing lists cc's without telling me. Thanks, Daniel On Tue, Aug 19, 2014 at 8:57 PM, Daniel Vetter wrote: > Yeah, that does a lot too much flushing - you need to track relevant > dirty bits like psr does, and then only flush when there has been a > preceed

Re: [Intel-gfx] Graphics driver Init code

2014-08-19 Thread Matt Turner
On Tue, Aug 19, 2014 at 11:29 AM, Dushyant Behl wrote: > Ping. > > > On Thu, Aug 14, 2014 at 2:55 AM, Dushyant Behl > wrote: >> >> Hi Everyone, >> >> I am an Operating system developer and I'm working on a project for >> which I wanted to understand the working of Intel Graphics Driver. >> Being

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Updating plane parameters for primary plane in setplane

2014-08-19 Thread Matt Roper
On Tue, Aug 19, 2014 at 11:56:42AM +0530, sonika.jin...@intel.com wrote: > From: Sonika Jindal > > Signed-off-by: Sonika Jindal > --- > drivers/gpu/drm/i915/intel_display.c | 24 > 1 file changed, 24 insertions(+) > > diff --git a/drivers/gpu/drm/i915/intel_display.c

[Intel-gfx] [PATCH] drm/edid: Reduce horizontal timings for pixel replicated modes

2014-08-19 Thread clinton . a . taylor
From: Clint Taylor Pixel replicated modes should be 720 horizontal pixel and pixel replicated by the HW across the HDMI cable at 2X pixel clock. Current horizontal resolution of 1440 does not allow pixel duplication to occur and scaling artifacts occur on the TV. HDMI certification 7-26 currently

Re: [Intel-gfx] How to create PCH to support those existing driver

2014-08-19 Thread Kay, Allen M
> Allen, > > Could you reply this? Let me summarized what we have discussed and learned so far: 1) Future Windows/Linux IGD drivers will be modified to restrain from accessing MCH/PCH devices. We are prototyping this in Windows driver right now and will pass the same methodology to Linux driv

Re: [Intel-gfx] Responsiveness Changes to i915 Driver

2014-08-19 Thread Wilde, Martin
Greetings - after reviewing Chris¹s feedback below and some thought, I most likely do not need to add another trace message and the existing ³i915_flip_complete² trace message can be used. Thus the only change requested is to have the T1_T3 value printed out during driver init/re-init. Here is th

Re: [Intel-gfx] How to create PCH to support those existing driver

2014-08-19 Thread Michael S. Tsirkin
On Tue, Aug 19, 2014 at 09:24:03PM +, Kay, Allen M wrote: > > Allen, > > > > Could you reply this? > > Let me summarized what we have discussed and learned so far: > > 1) Future Windows/Linux IGD drivers will be modified to restrain from > accessing MCH/PCH devices. We are prototyping this

Re: [Intel-gfx] How to create PCH to support those existing driver

2014-08-19 Thread Kay, Allen M
> -Original Message- > From: Michael S. Tsirkin [mailto:m...@redhat.com] > Sent: Tuesday, August 19, 2014 2:51 PM > To: Kay, Allen M > Cc: Chen, Tiejun; Paolo Bonzini; Wang, Yong Y; Don Dutile; Jesse Barnes; > Konrad Rzeszutek Wilk; qemu-de...@nongnu.org; xen- > de...@lists.xensource.com;

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Add 180 degree primary plane rotation support

2014-08-19 Thread Matt Roper
On Tue, Aug 19, 2014 at 11:56:43AM +0530, sonika.jin...@intel.com wrote: > From: Sonika Jindal > > Primary planes support 180 degree rotation. Expose the feature > through rotation drm property. > > v2: Calculating linear/tiled offsets based on pipe source width and > height. Added 180 degree ro

Re: [Intel-gfx] [PATCH 1/4] drm/i915/dp: split up panel power control from backlight pwm control

2014-08-19 Thread Clint Taylor
On 08/12/2014 07:11 AM, Jani Nikula wrote: Make it possible to change panel power control backlight state without touching the PWM. No functional changes. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/intel_dp.c | 39 ++- 1 file changed, 26 insertion

Re: [Intel-gfx] [PATCH 3/4] drm/i915/dp: make backlight bl_power control power sequencer backlight

2014-08-19 Thread Clint Taylor
On 08/12/2014 07:11 AM, Jani Nikula wrote: This lets the userspace switch off the backlight using the backlight class sysfs bl_power file. The switch is done using the power sequencer; the backlight PWM, and everything else, remains enabled. The display backlight won't draw power, but for maximum

Re: [Intel-gfx] [PATCH v2 2/4] drm/i915: add some framework for backlight bl_power support

2014-08-19 Thread Clint Taylor
On 08/13/2014 02:10 AM, Jani Nikula wrote: Make backlight class sysfs bl_power a sub-state of backlight enabled, if a backlight power connector callback is defined. It's up to the connector callback to handle the sub-state, typically in a way that respects panel power sequencing. v2: Post the ve

Re: [Intel-gfx] [PATCH 4/4] drm/i915: switch off backlight for backlight class 0 brightness

2014-08-19 Thread Clint Taylor
On 08/12/2014 07:11 AM, Jani Nikula wrote: Make backlight class sysfs brightness 0 value switch off the backlight for connectors that have the backlight_power callback defined. For eDP, this has the similar caveats regarding power savings as bl_power as only the power sequencer backlight control

Re: [Intel-gfx] How to create PCH to support those existing driver

2014-08-19 Thread Chen, Tiejun
On 2014/8/20 5:51, Michael S. Tsirkin wrote: On Tue, Aug 19, 2014 at 09:24:03PM +, Kay, Allen M wrote: Allen, Could you reply this? Let me summarized what we have discussed and learned so far: 1) Future Windows/Linux IGD drivers will be modified to restrain from accessing MCH/PCH device

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Add 180 degree primary plane rotation support

2014-08-19 Thread Jindal, Sonika
On 8/20/2014 4:21 AM, Matt Roper wrote: On Tue, Aug 19, 2014 at 11:56:43AM +0530, sonika.jin...@intel.com wrote: From: Sonika Jindal Primary planes support 180 degree rotation. Expose the feature through rotation drm property. v2: Calculating linear/tiled offsets based on pipe source width

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Updating plane parameters for primary plane in setplane

2014-08-19 Thread Jindal, Sonika
On 8/20/2014 2:20 AM, Matt Roper wrote: On Tue, Aug 19, 2014 at 11:56:42AM +0530, sonika.jin...@intel.com wrote: From: Sonika Jindal Signed-off-by: Sonika Jindal --- drivers/gpu/drm/i915/intel_display.c | 24 1 file changed, 24 insertions(+) diff --git a/drive