Re: [Intel-gfx] [PATCH] drm/i915: only hook up hpd pulse for DP setups.

2014-08-01 Thread Chris Wilson
On Sat, Aug 02, 2014 at 06:47:10AM +1000, Dave Airlie wrote: > From: Dave Airlie > > On HSW/BDW the VBT can tell us if we need to have DP support for a port, > if we don't have DP this caused an oops in the hpd handling. > > Don't hook up the DP hpd handling if we don't have a DP port. > > Bugz

[Intel-gfx] [PATCH 2/2] drm/i915: Fix DEIER and GTIER collecting for BDW.

2014-08-01 Thread Rodrigo Vivi
BDW has many other Display Engine interrupts and GT interrupts registers. Collecting it properly on gpu_error_state. On debugfs all was properly listed already but besides we were also listing old DEIER and GTIER that doesn't exist on BDW anymore. This was causing unclaimed register messages: htt

[Intel-gfx] [PATCH 1/2] drm/i915: Collect gtier properly on HSW.

2014-08-01 Thread Rodrigo Vivi
GTIER and DEIER doesn't have same interface on HSW so this "or" operation makes the information provided useless. v2: since we have gtier variable already let's split for everybody and avoid the strange | op. Also avoid overriding the value that was set for vlv. In this case I believe that

Re: [Intel-gfx] [PATCH 1/1] Documentation: drm: describing drm properties exposed by various drivers

2014-08-01 Thread Randy Dunlap
On 08/01/14 05:58, Laurent Pinchart wrote: > Hi Randy, > > On Thursday 31 July 2014 15:16:21 Randy Dunlap wrote: >> On 05/12/14 11:04, Randy Dunlap wrote: >>> On 05/12/2014 08:54 AM, Daniel Vetter wrote: On Mon, May 12, 2014 at 08:23:45AM -0700, Randy Dunlap wrote: > On 05/12/2014 01:58 A

Re: [Intel-gfx] [PATCH] drm/i915: only hook up hpd pulse for DP setups.

2014-08-01 Thread Dave Airlie
On 2 August 2014 07:38, Paulo Zanoni wrote: > 2014-08-01 17:47 GMT-03:00 Dave Airlie : >> From: Dave Airlie >> >> On HSW/BDW the VBT can tell us if we need to have DP support for a port, >> if we don't have DP this caused an oops in the hpd handling. >> >> Don't hook up the DP hpd handling if we

Re: [Intel-gfx] [PATCH] drm/i915: only hook up hpd pulse for DP setups.

2014-08-01 Thread Paulo Zanoni
2014-08-01 17:47 GMT-03:00 Dave Airlie : > From: Dave Airlie > > On HSW/BDW the VBT can tell us if we need to have DP support for a port, > if we don't have DP this caused an oops in the hpd handling. > > Don't hook up the DP hpd handling if we don't have a DP port. > > Bugzilla: https://bugs.free

[Intel-gfx] [PATCH] drm/i915: fix i915_frequency_info on BDW

2014-08-01 Thread Paulo Zanoni
From: Paulo Zanoni The GEN6_PM* registers don't exist on BDW anymore, so when we read this file we trigger unclaimed register errors. The equivalent BDW register for PMs is GEN8_GT_I*R(2), so use it. Testcase: igt/pm_rpm/debugfs-read Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_de

[Intel-gfx] [PATCH] drm/i915: only hook up hpd pulse for DP setups.

2014-08-01 Thread Dave Airlie
From: Dave Airlie On HSW/BDW the VBT can tell us if we need to have DP support for a port, if we don't have DP this caused an oops in the hpd handling. Don't hook up the DP hpd handling if we don't have a DP port. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=81856 Reported-by: Intel Q

[Intel-gfx] [PATCH] drm/i915: remove duplicate register defines

2014-08-01 Thread Paulo Zanoni
From: Paulo Zanoni cat i915_reg.h | sort | uniq -d | grep define Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_reg.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 28e21ed..c45b679 100644 --- a/drivers/gp

[Intel-gfx] [PATCH] drm/i915: Fix error state collecting

2014-08-01 Thread Rodrigo Vivi
Fix signal_offset when recording semaphore state on BDW. Reviewed-by: Ben Widawsky Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/i915/i915_gpu_error.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_gpu_error.c b/drivers/gpu/drm/i915/i915_gpu_e

[Intel-gfx] [PATCH] drm/i915: grab struct_mutex at intel_edp_psr_enable()

2014-08-01 Thread Paulo Zanoni
From: Paulo Zanoni Otherwise we will hit "lockdep_assert_held(&dev->struct_mutex)" from intel_edp_psr_match_conditions(). This happens all the time on my BDW machine: just boot it and you'll get it. In this patch I just grab struct_mutex in the deepest possible place (around psr.lock, otherwise

[Intel-gfx] [PATCH 2/5] lib/rendercopy: fix a typo in define

2014-08-01 Thread Mika Kuoppala
No functional changes Signed-off-by: Mika Kuoppala --- lib/gen6_render.h |2 +- lib/rendercopy_gen8.c |2 +- tools/null_state_gen/intel_renderstate_gen8.c |2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/gen

[Intel-gfx] [PATCH 4/5] lib: Add MI_LOAD_REGISTER_IMM

2014-08-01 Thread Mika Kuoppala
Signed-off-by: Mika Kuoppala --- lib/intel_reg.h |1 + tests/gem_exec_parse.c |1 - tests/gem_non_secure_batch.c |4 +--- tests/gen7_forcewake_mt.c|5 ++--- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/intel_reg.h b/lib/intel_reg.h inde

[Intel-gfx] [PATCH 1/5] tools/null_state_gen: terminate relocs with -1

2014-08-01 Thread Mika Kuoppala
as this was already changed in kernel. Signed-off-by: Mika Kuoppala --- tools/null_state_gen/intel_null_state_gen.c |1 + 1 file changed, 1 insertion(+) diff --git a/tools/null_state_gen/intel_null_state_gen.c b/tools/null_state_gen/intel_null_state_gen.c index 14f45d3..945926f 100644 ---

[Intel-gfx] [PATCH 5/5] tools/null_state_gen: build cmd and state space separately

2014-08-01 Thread Mika Kuoppala
Instead of building batch directly to memory, build into cmd and state arrays. This representation allows us more flexibility in batch state expression and batch generation/relocation. As a bonus, we can also attach the line information that produced the batch data to help debugging. There is no

[Intel-gfx] [PATCH 3/5] lib/gen6_render: fix GEN6_3DSTATE_VF_STATISTICS define

2014-08-01 Thread Mika Kuoppala
We dont use this pre CTG and we will need it for gen8 golden state. Signed-off-by: Mika Kuoppala --- lib/gen6_render.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gen6_render.h b/lib/gen6_render.h index dfee6e7..c3e85eb 100644 --- a/lib/gen6_render.h +++ b/lib/gen6

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Fix DEIER and GTIER collecting for BDW.

2014-08-01 Thread Paulo Zanoni
2014-08-01 6:14 GMT-03:00 Rodrigo Vivi : > BDW has many other Display Engine interrupts and GT interrupts registers. > Collecting it properly on gpu_error_state. > > On debugfs all was properly listed already but besides we were also listing > old > DEIER and GTIER that doesn't exist on BDW anymor

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Collect gtier properly on HSW.

2014-08-01 Thread Paulo Zanoni
2014-08-01 6:13 GMT-03:00 Rodrigo Vivi : > GTIER and DEIER doesn't have same interface on HSW so this "or" operation > makes the information provided useless. > > v2: since we have gtier variable already let's split for everybody > and avoid the strange | op. > Also avoid overriding the value t

[Intel-gfx] [PATCH] igt: Add drv_workarounds

2014-08-01 Thread Mika Kuoppala
Hi, With ivb we currently drop 5 out of 11 static workarounds due to hang/reset recovery. With bdw we see that some workarounds wont stick even after init, due to rc6 entry dropping some regs that are not part of power context? Mika Kuoppala (1): tests: Add drv_workarounds lib/intel_chipset.

[Intel-gfx] [PATCH] tests: Add drv_workarounds

2014-08-01 Thread Mika Kuoppala
To check that static workarounds are set and stay after init, hang and suspend/restore. Checks are currently provided for ivb and bdw only. Signed-off-by: Mika Kuoppala --- lib/intel_chipset.h |4 + lib/intel_workaround.h | 142 +++ tests/Makefile.sources |

Re: [Intel-gfx] [IGT 1/2] intel_bios_reader: Add support to dump MIPI Configuration Block #52

2014-08-01 Thread Damien Lespiau
Hi, I've pushed these two patches to i-g-t, they definitely are an improvement and look good to me. Thanks! -- Damien On Wed, Jul 16, 2014 at 07:39:32PM +0530, Gaurav K Singh wrote: > Signed-off-by: Gaurav K Singh > --- > tools/intel_bios.h| 132 > ++

Re: [Intel-gfx] [PATCH] drm/i915: Skip Stolen Memory first page.

2014-08-01 Thread Jesse Barnes
On Thu, 31 Jul 2014 12:08:20 -0700 Rodrigo Vivi wrote: > WA to skip the first page of stolen memory due to sporadic HW write on *CS > Idle > > v2: Improve variable names and fix allocated size. > > Reviewed-by: Ben Widawsky > Signed-off-by: Rodrigo Vivi > --- > drivers/gpu/drm/i915/i915_gem

Re: [Intel-gfx] [PATCH 00/43] Execlists v5

2014-08-01 Thread Jesse Barnes
On Fri, 1 Aug 2014 17:09:50 +0100 Damien Lespiau wrote: > On Thu, Jul 24, 2014 at 05:04:08PM +0100, Thomas Daniel wrote: > > All patches can have my r-b tag but patches 12, 34, 37, 39 which have > minor comments (in terms of code changes) to address. I did look more at > the low-level stuff (Vs

[Intel-gfx] [PATCH 2/2] drm/i915: Fix DEIER and GTIER collecting for BDW.

2014-08-01 Thread Rodrigo Vivi
BDW has many other Display Engine interrupts and GT interrupts registers. Collecting it properly on gpu_error_state. On debugfs all was properly listed already but besides we were also listing old DEIER and GTIER that doesn't exist on BDW anymore. This was causing unclaimed register messages: htt

[Intel-gfx] [PATCH 1/2] drm/i915: Collect gtier properly on HSW.

2014-08-01 Thread Rodrigo Vivi
GTIER and DEIER doesn't have same interface on HSW so this "or" operation makes the information provided useless. v2: since we have gtier variable already let's split for everybody and avoid the strange | op. Also avoid overriding the value that was set for vlv. In this case I believe that

Re: [Intel-gfx] [PATCH 00/43] Execlists v5

2014-08-01 Thread Damien Lespiau
On Thu, Jul 24, 2014 at 05:04:08PM +0100, Thomas Daniel wrote: All patches can have my r-b tag but patches 12, 34, 37, 39 which have minor comments (in terms of code changes) to address. I did look more at the low-level stuff (Vs the higher level abstractions). At this point, I believe the way fo

[Intel-gfx] [PATCH] drm/i915: Introduce FBC False Color for debug purposes.

2014-08-01 Thread Rodrigo Vivi
With this bit enabled, HW changes the color when compressing frames for debug purposes. ALthough the simple way to enable a single bit is over intel_reg_write, this value is overwriten on next update_fbc so depending on the workload it is not possible to set this bit with intel-gpu-tools. So this

Re: [Intel-gfx] [PATCH] drm/i915: Android sync points for i915

2014-08-01 Thread Jesse Barnes
On Fri, 01 Aug 2014 10:04:55 +0100 Tvrtko Ursulin wrote: > Hi Jesse, > > On 07/31/2014 07:58 PM, Jesse Barnes wrote: > > Expose an ioctl to create Android fences based on the Android sync point > > infrastructure (which in turn is based on DMA-buf fences). Just a > > sketch at this point, no te

Re: [Intel-gfx] [PATCH 39/43] drm/i915/bdw: Print context state in debugfs

2014-08-01 Thread Damien Lespiau
On Thu, Jul 24, 2014 at 05:04:47PM +0100, Thomas Daniel wrote: > From: Ben Widawsky > > This has turned out to be really handy in debug so far. > > Update: > Since writing this patch, I've gotten similar code upstream for error > state. I've used it quite a bit in debugfs however, and I'd like t

Re: [Intel-gfx] [PATCH 4/4] drm/i915: Remove now useless comments about the translation values

2014-08-01 Thread Paulo Zanoni
2014-08-01 7:07 GMT-03:00 Damien Lespiau : > We used to carry a default HDMI value in entry 9, but this entry got > removed for both HSW and BDW. > Reviewed-by: Paulo Zanoni > Signed-off-by: Damien Lespiau > --- > drivers/gpu/drm/i915/intel_ddi.c | 10 +- > 1 file changed, 5 insertions

Re: [Intel-gfx] [PATCH 3/4] drm/i915/bdw: Remove the HDMI/DVI entry from the DP/eDP/FDI tables

2014-08-01 Thread Paulo Zanoni
2014-08-01 7:07 GMT-03:00 Damien Lespiau : > We always write entries 0 to 8 from the DDI translation tables and then > entry 9 for HDMI/DVI with the help of the VBT. We then don't need the > failsafe HDMI entry in the DP/eDP/FDI tables. And it seems we were not even using these values anyway... R

Re: [Intel-gfx] [PATCH 2/4] drm/i915/bdw: Provide the BDW specific HDMI buffer translation table

2014-08-01 Thread Paulo Zanoni
2014-08-01 7:07 GMT-03:00 Damien Lespiau : > Among the changes, the tables has only 10 entries instead of 12 on HSW > and the index the the 800mV/0dB entry has changed. > And now your HDMI monitors on BDW will look better if you have eagle eyes. Reviewed-by: Paulo Zanoni > Signed-off-by: Damien

Re: [Intel-gfx] [PATCH 1/4] drm/i915: Gather the HDMI level shifter logic into one place

2014-08-01 Thread Paulo Zanoni
2014-08-01 7:07 GMT-03:00 Damien Lespiau : > The knowledge about the HDMI/DVI DDI translation table was scattered > around. > - info->hdmi_level_shift was initialized with 6, the index of the 800 > mV, 0dB translation > - A check on the VBT value was done to ensure it wasn't overflowing >

Re: [Intel-gfx] [PATCH 37/43] drm/i915/bdw: Display execlists info in debugfs

2014-08-01 Thread Damien Lespiau
On Thu, Jul 24, 2014 at 05:04:45PM +0100, Thomas Daniel wrote: > From: Oscar Mateo > > v2: Warn and return if LRCs are not enabled. > > v3: Grab the Execlists spinlock (noticed by Daniel Vetter). > > Signed-off-by: Oscar Mateo This looks like it may be missing a struct_mutex lock to grab a st

Re: [Intel-gfx] [PATCH 34/43] drm/i915/bdw: Make sure gpu reset still works with Execlists

2014-08-01 Thread Damien Lespiau
On Thu, Jul 24, 2014 at 05:04:42PM +0100, Thomas Daniel wrote: > diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c > b/drivers/gpu/drm/i915/intel_ringbuffer.c > index 3188403..6e604c9 100644 > --- a/drivers/gpu/drm/i915/intel_ringbuffer.c > +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c > @@ -15

Re: [Intel-gfx] [PATCH 34/43] drm/i915/bdw: Make sure gpu reset still works with Execlists

2014-08-01 Thread Damien Lespiau
On Thu, Jul 24, 2014 at 05:04:42PM +0100, Thomas Daniel wrote: > From: Oscar Mateo > > If we reset a ring after a hang, we have to make sure that we clear > out all queued Execlists requests. > > v2: The ring is, at this point, already being correctly re-programmed > for Execlists, and the hangc

Re: [Intel-gfx] [PATCH 29/43] drm/i915/bdw: Write the tail pointer, LRC style

2014-08-01 Thread Damien Lespiau
On Thu, Jul 24, 2014 at 05:04:37PM +0100, Thomas Daniel wrote: > From: Oscar Mateo > > Each logical ring context has the tail pointer in the context object, > so update it before submission. > > v2: New namespace. I believe we could just leave the context object mapped for its whole lifetime. S

Re: [Intel-gfx] [PATCH v2 28/40] drm/i915: Add cherryview_update_wm()

2014-08-01 Thread Paulo Zanoni
2014-08-01 9:36 GMT-03:00 : > From: Ville Syrjälä > > CHV has a third pipe so we need to compute the watermarks for its > planes. Add cherryview_update_wm() to do just that. > > v2: Rebase on top of Imre's cxsr changes (Paulo) Reviewed-by: Paulo Zanoni > > Signed-off-by: Ville Syrjälä > --- >

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

2014-08-01 Thread Ville Syrjälä
On Thu, Jul 31, 2014 at 12:07:44PM -0700, Rodrigo Vivi wrote: > According to spec FBC on BDW and HSW are identical without any gaps. > So let's copy the nuke and let FBC really start compressing stuff. > > Without this patch we can verify with false color that nothing is being > compressed. With t

Re: [Intel-gfx] [PATCH 12/43] drm/i915/bdw: Don't write PDP in the legacy way when using LRCs

2014-08-01 Thread Damien Lespiau
On Thu, Jul 24, 2014 at 05:04:20PM +0100, Thomas Daniel wrote: > From: Oscar Mateo > > This is mostly for correctness so that we know we are running the LR > context correctly (this is, the PDPs are contained inside the context > object). > > v2: Move the check to inside the enable PPGTT functio

Re: [Intel-gfx] [BUG?] 3.16-rc6 ... at drivers/gpu/drm/i915/intel_pm.c:5997 intel_display_power_put+0x12d/0x160()

2014-08-01 Thread Ian Kumlien
On Fri, Aug 1, 2014 at 3:16 PM, Imre Deak wrote: [--8<--] > Ok, I see the trace of suspend/resume now, but the bug has vanished.. I > can't see the WARN backtrace in your original report, nor the debug > message from the above fix, that would indicate that it had fixed > anything ("VDD left on b

[Intel-gfx] [PATCH v2 15/40] drm/i915: Clear TX FIFO reset master override bits on chv

2014-08-01 Thread ville . syrjala
From: Ville Syrjälä Clear the override bits to make sure the hardware maanages the TX FIFO reset master on its own. v2: Squash with the earlier attempt at forcing the override bits Signed-off-by: Ville Syrjälä --- Note to maintainer: This supersedes both 14/40 and 15/40 of the original patches

Re: [Intel-gfx] [BUG?] 3.16-rc6 ... at drivers/gpu/drm/i915/intel_pm.c:5997 intel_display_power_put+0x12d/0x160()

2014-08-01 Thread Imre Deak
On Thu, 2014-07-31 at 23:47 +0200, Ian Kumlien wrote: > On tor, 2014-07-31 at 14:39 +0300, Imre Deak wrote: > > On Wed, 2014-07-30 at 22:52 +0200, Ian Kumlien wrote: > > > Sorry for the delay, it's been damned hot - vacation is over and > > > overtime has been all the rage at work... > > > > No pr

Re: [Intel-gfx] [PATCH 14/40] drm/i915: Override display PHY TX FIFO reset master on chv

2014-08-01 Thread Ville Syrjälä
On Tue, Jul 29, 2014 at 09:57:09AM -0700, Jesse Barnes wrote: > On Sat, 28 Jun 2014 02:04:05 +0300 > ville.syrj...@linux.intel.com wrote: > > > From: Ville Syrjälä > > > > Just an attempt to frob these bits. Apparently we should not need to > > touch them (apart from maybe making sure the overri

Re: [Intel-gfx] [PATCH 1/1] Documentation: drm: describing drm properties exposed by various drivers

2014-08-01 Thread Laurent Pinchart
Hi Randy, On Thursday 31 July 2014 15:16:21 Randy Dunlap wrote: > On 05/12/14 11:04, Randy Dunlap wrote: > > On 05/12/2014 08:54 AM, Daniel Vetter wrote: > >> On Mon, May 12, 2014 at 08:23:45AM -0700, Randy Dunlap wrote: > >>> On 05/12/2014 01:58 AM, Daniel Vetter wrote: > On Mon, May 12, 201

[Intel-gfx] [PATCH v2 28/40] drm/i915: Add cherryview_update_wm()

2014-08-01 Thread ville . syrjala
From: Ville Syrjälä CHV has a third pipe so we need to compute the watermarks for its planes. Add cherryview_update_wm() to do just that. v2: Rebase on top of Imre's cxsr changes (Paulo) Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_pm.c | 81

Re: [Intel-gfx] [PATCH 24/40] drm/i915: Fix threshold for choosing 32 vs. 64 precisions for VLV DDL values

2014-08-01 Thread Ville Syrjälä
On Thu, Jul 31, 2014 at 03:08:29PM -0300, Paulo Zanoni wrote: > 2014-06-27 20:04 GMT-03:00 : > > From: Ville Syrjälä > > > > The DDL registers can hold 7bit numbers. Make the most of those seven > > bits by adjusting the threshold where we switch between the 64 vs. 32 > > precision multipliers. >

[Intel-gfx] [PATCH v2 25/40] drm/i915: Fill out the FWx watermark register defines

2014-08-01 Thread ville . syrjala
From: Ville Syrjälä Add defines for all the watermark registers on modernish gmch platforms. VLV has increased the number of bits available for certain watermaks so expand the masks appropriately. Also vlv and chv have added some extra FW registers. Not sure what happened on chv because a new r

Re: [Intel-gfx] [PATCH v3 2/2] drm/i915: fix VDD state tracking after system resume

2014-08-01 Thread Ville Syrjälä
On Thu, Jul 31, 2014 at 02:03:36PM +0300, Imre Deak wrote: > Just like during booting the BIOS can leave the VDD bit enabled after > system resume. So apply the same state sanitization there too. This > fixes a problem where after resume the port power domain refcount gets > unbalanced. > > v2: >

Re: [Intel-gfx] [PATCH] drm/i915: Add a bit of locking to intel_dp_hpd_pulse()

2014-08-01 Thread Ville Syrjälä
On Thu, Jul 31, 2014 at 08:59:08PM +1000, Dave Airlie wrote: > On 31 July 2014 17:37, Daniel Vetter wrote: > > On Thu, Jul 31, 2014 at 1:49 AM, Dave Airlie wrote: > >> Daniel, the only way intel_dp->is_mst can get reset is inside this path. > > > > Ok, so that one should be safe. Then I guess we

Re: [Intel-gfx] [PATCH 28/40] drm/i915: Add cherryview_update_wm()

2014-08-01 Thread Ville Syrjälä
On Thu, Jul 31, 2014 at 05:57:33PM -0300, Paulo Zanoni wrote: > 2014-06-27 20:04 GMT-03:00 : > > From: Ville Syrjälä > > > > CHV has a third pipe so we need to compute the watermarks for its > > planes. Add cherryview_update_wm() to do just that. > > Ok, so basically the only real difference bet

Re: [Intel-gfx] [PATCH 25/40] drm/i915: Fill out the FWx watermark register defines

2014-08-01 Thread Ville Syrjälä
On Thu, Jul 31, 2014 at 05:16:21PM -0300, Paulo Zanoni wrote: > 2014-06-27 20:04 GMT-03:00 : > > From: Ville Syrjälä > > > > Add defines for all the watermark registers on modernish gmch platforms. > > > > VLV has increased the number of bits available for certain watermaks so > > expand the mask

Re: [Intel-gfx] [PATCH] drm/i915: don't try and probe dpcd if we have no dp configured

2014-08-01 Thread Ville Syrjälä
On Fri, Aug 01, 2014 at 08:47:13PM +1000, Dave Airlie wrote: > On hsw/bdw VBT can signal no DP on a digital connector, so when we > get a hotplug irq in that situation, don't continue if we haven't > actually got a DP output register configured. > > This fixes an oops where the aux mutex isn't ini

[Intel-gfx] [PATCH] drm/i915: don't try and probe dpcd if we have no dp configured

2014-08-01 Thread Dave Airlie
On hsw/bdw VBT can signal no DP on a digital connector, so when we get a hotplug irq in that situation, don't continue if we haven't actually got a DP output register configured. This fixes an oops where the aux mutex isn't initialised. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=81856

Re: [Intel-gfx] [PATCH] drm/i915: Introduce FBC False Color for debug purposes.

2014-08-01 Thread Ville Syrjälä
On Thu, Jul 31, 2014 at 12:07:22PM -0700, Rodrigo Vivi wrote: > With this bit enabled, HW changes the color when compressing frames for > debug purposes. > > ALthough the simple way to enable a single bit is over intel_reg_write, > this value is overwriten on next update_fbc so depending on the wo

[Intel-gfx] [PATCH 1/4] drm/i915: Gather the HDMI level shifter logic into one place

2014-08-01 Thread Damien Lespiau
The knowledge about the HDMI/DVI DDI translation table was scattered around. - info->hdmi_level_shift was initialized with 6, the index of the 800 mV, 0dB translation - A check on the VBT value was done to ensure it wasn't overflowing the translation table (< 0xC) - The actual program

[Intel-gfx] [PATCH 3/4] drm/i915/bdw: Remove the HDMI/DVI entry from the DP/eDP/FDI tables

2014-08-01 Thread Damien Lespiau
We always write entries 0 to 8 from the DDI translation tables and then entry 9 for HDMI/DVI with the help of the VBT. We then don't need the failsafe HDMI entry in the DP/eDP/FDI tables. Signed-off-by: Damien Lespiau --- drivers/gpu/drm/i915/intel_ddi.c | 3 --- 1 file changed, 3 deletions(-)

[Intel-gfx] [PATCH 2/4] drm/i915/bdw: Provide the BDW specific HDMI buffer translation table

2014-08-01 Thread Damien Lespiau
Among the changes, the tables has only 10 entries instead of 12 on HSW and the index the the 800mV/0dB entry has changed. Signed-off-by: Damien Lespiau --- drivers/gpu/drm/i915/intel_ddi.c | 28 +++- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/drivers/g

[Intel-gfx] [PATCH 4/4] drm/i915: Remove now useless comments about the translation values

2014-08-01 Thread Damien Lespiau
We used to carry a default HDMI value in entry 9, but this entry got removed for both HSW and BDW. Signed-off-by: Damien Lespiau --- drivers/gpu/drm/i915/intel_ddi.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/

[Intel-gfx] [PATCH 0/4] BDW DDI buffer level shifters for HDMI/DVI

2014-08-01 Thread Damien Lespiau
While cruising through the specs, I noticed that we were missing the BDW HDMI DDI buffer tables. Patch 1: re-factor how we handle the VBT entry as the parsing code made HSW-specific assumptions about the level tables Patch 2: The actual BDW tables Pathes 3 & 4 are trivial clean ups on top

Re: [Intel-gfx] [PATCH 5/7] drm/i915: Initialize the aliasing ppgtt as part of global gtt

2014-08-01 Thread Thierry, Michel
> -Original Message- > From: Intel-gfx [mailto:intel-gfx-boun...@lists.freedesktop.org] On Behalf > Of Ville Syrjälä > Sent: Thursday, July 31, 2014 5:16 PM > To: Daniel Vetter > Cc: Intel Graphics Development > Subject: Re: [Intel-gfx] [PATCH 5/7] drm/i915: Initialize the aliasing ppgtt

Re: [Intel-gfx] [PATCH] drm/i915: Android sync points for i915

2014-08-01 Thread Tvrtko Ursulin
Hi Jesse, On 07/31/2014 07:58 PM, Jesse Barnes wrote: Expose an ioctl to create Android fences based on the Android sync point infrastructure (which in turn is based on DMA-buf fences). Just a sketch at this point, no testing has been done. There are a couple of goals here: 1) allow applica

[Intel-gfx] [PATCH 1/1] drm/i915: Adding Gfx Clock, Wake and Gunit save/restore logic in PM suspend/resume paths.

2014-08-01 Thread sagar . a . kamble
From: Sagar Kamble Sequence to get gfx clocks on/off, allow/disallow wake and save/restore of gunit registers need to be followed in PM suspend and resume path similar to runtime suspend and resume. v2: 1. Keeping GT access, wake, gunit save/restore related helpers static. 2. Moved GT access ch