[Intel-gfx] [PATCH 1/2] drm/i915: Check for a stalled page flip after each vblank

2014-09-04 Thread Chris Wilson
Long ago, back in the racy haydays of 915gm interrupt handling, page flips would occasionally go astray and leave the hardware stuck, and the display not updating. This annoyed people who relied on their systems being able to display continuously updating information 24/7, and so some code to detec

[Intel-gfx] Kick stuck flips before modeset

2014-09-04 Thread Chris Wilson
Hi Daniel, these are the first two patches in the flip boosting series pushed ahead of the request rework. These are the interesting ones as they help paper over oddities in our hardware and prevent the driver from wedging itself with a stuck modeset. -Chris __

[Intel-gfx] [PATCH 2/2] drm/i915: Decouple the stuck pageflip on modeset

2014-09-04 Thread Chris Wilson
If we successfully confuse the hardware, and cause it to drop a queued pageflip, we wait for 60s and issue a warning before continuing on with the modeset. However, this leaves the pending pageflip still stuck indefinitely. Pretend to userspace that it does complete, and let us start afresh followi

Re: [Intel-gfx] [PATCH 09/12] tests/kms_psr_sink_crc: Fix all testcases.

2014-09-04 Thread Rodrigo Vivi
adding suspend_autoresume on primary tests like this: @ -470,6 +472,8 @@ igt_main data.test_plane = PRIMARY; data.op = op; run_test(&data); + igt_system_suspend_autoresume(); + run_te

Re: [Intel-gfx] [PATCH 1/4] drm/i915: Increase PSR Idle Frame to 2.

2014-09-04 Thread Rodrigo Vivi
Here goes results on BDW with pure today's nightly (with idle_frame=1) # First run IGT-Version: 1.7-gd4b43f0 (x86_64) (Linux: 3.17.0-rc2+ x86_64) Subtest primary_page_flip: SUCCESS Subtest primary_mmap_gtt: SUCCESS Test assertion failure function test_crc, file kms_psr_sink_crc.c:307: Failed ass

Re: [Intel-gfx] [PATCH 1/5] tests/kms_psr_sink_crc: moving usleep around.

2014-09-04 Thread Rodrigo Vivi
First of all sorry for the huge amount of emails. I don't know what happened with my git send-email and my slow server... Well, this series is one alternative for the debug using igt_core debug helpers. But I'm not confident igt_debug_wait and igt_dry_run are the best way to do that. So please le

[Intel-gfx] [PATCH 8-3/12] igt/kms_psr_sink_crc: Add debug for CRC

2014-09-04 Thread Rodrigo Vivi
This helps to debug and check if the CRC you are reading correspond what you are seeing on the screen Signed-off-by: Rodrigo Vivi --- tests/kms_psr_sink_crc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c index bbe18f0..51e54a7 100644

[Intel-gfx] [PATCH 8-4/12] lib/igt_core: Introduce a dry run debug option

2014-09-04 Thread Rodrigo Vivi
IGT_DRY_RUN allows you to run tests independent of any desired condition. For instance you can allow tests to run with the feature in test disabled in order to compare what results you should expect when the feature is actually enabled. Signed-off-by: Rodrigo Vivi --- lib/igt_core.c | 16 +++

[Intel-gfx] [PATCH 8-2/12] lib/igt_core: add igt_debug_wait

2014-09-04 Thread Rodrigo Vivi
That allows you to read the debug and look to the screen to make sure what is on the screen is what you are expecting on debug line. Signed-off-by: Rodrigo Vivi --- lib/igt_core.h | 13 + 1 file changed, 13 insertions(+) diff --git a/lib/igt_core.h b/lib/igt_core.h index b4eb724..e0

[Intel-gfx] [PATCH 8-5/12] tests/kms_psr_sink_crc: Dry run with PSR disabled.

2014-09-04 Thread Rodrigo Vivi
This allows to run tests with psr disabled and know what to expect when PSR is actually enabled. Signed-off-by: Rodrigo Vivi --- tests/kms_psr_sink_crc.c | 8 1 file changed, 8 insertions(+) diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c index 51e54a7..1380ca4 100644

[Intel-gfx] [PATCH 8-1 (v2) /12] tests/kms_psr_sink_crc: moving usleep around.

2014-09-04 Thread Rodrigo Vivi
Lets just do this small sleep to allow human eyes to see what is happening, but let's avoid any kind of interference on the actual test. Signed-off-by: Rodrigo Vivi --- tests/kms_psr_sink_crc.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/kms_psr_sink_crc.c b/te

[Intel-gfx] [PATCH 8-1 (v2) /12] tests/kms_psr_sink_crc: moving usleep around.

2014-09-04 Thread Rodrigo Vivi
Lets just do this small sleep to allow human eyes to see what is happening, but let's avoid any kind of interference on the actual test. Signed-off-by: Rodrigo Vivi --- tests/kms_psr_sink_crc.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/kms_psr_sink_crc.c b/te

[Intel-gfx] [PATCH 8-3/12] igt/kms_psr_sink_crc: Add debug for CRC

2014-09-04 Thread Rodrigo Vivi
This helps to debug and check if the CRC you are reading correspond what you are seeing on the screen Signed-off-by: Rodrigo Vivi --- tests/kms_psr_sink_crc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c index bbe18f0..51e54a7 100644

[Intel-gfx] [PATCH 8-4/12] lib/igt_core: Introduce a dry run debug option

2014-09-04 Thread Rodrigo Vivi
IGT_DRY_RUN allows you to run tests independent of any desired condition. For instance you can allow tests to run with the feature in test disabled in order to compare what results you should expect when the feature is actually enabled. Signed-off-by: Rodrigo Vivi --- lib/igt_core.c | 16 +++

[Intel-gfx] [PATCH 8-2/12] lib/igt_core: add igt_debug_wait

2014-09-04 Thread Rodrigo Vivi
That allows you to read the debug and look to the screen to make sure what is on the screen is what you are expecting on debug line. Signed-off-by: Rodrigo Vivi --- lib/igt_core.h | 13 + 1 file changed, 13 insertions(+) diff --git a/lib/igt_core.h b/lib/igt_core.h index b4eb724..e0

[Intel-gfx] [PATCH 8-5/12] tests/kms_psr_sink_crc: Dry run with PSR disabled.

2014-09-04 Thread Rodrigo Vivi
This allows to run tests with psr disabled and know what to expect when PSR is actually enabled. Signed-off-by: Rodrigo Vivi --- tests/kms_psr_sink_crc.c | 8 1 file changed, 8 insertions(+) diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c index 51e54a7..1380ca4 100644

[Intel-gfx] [PATCH 5/5] tests/kms_psr_sink_crc: Dry run with PSR disabled.

2014-09-04 Thread Rodrigo Vivi
This allows to run tests with psr disabled and know what to expect when PSR is actually enabled. Signed-off-by: Rodrigo Vivi --- tests/kms_psr_sink_crc.c | 8 1 file changed, 8 insertions(+) diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c index 51e54a7..1380ca4 100644

[Intel-gfx] [PATCH 1/5] tests/kms_psr_sink_crc: moving usleep around.

2014-09-04 Thread Rodrigo Vivi
Lets just do this small sleep to allow human eyes to see what is happening, but let's avoid any kind of interference on the actual test. Signed-off-by: Rodrigo Vivi --- tests/kms_psr_sink_crc.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/kms_psr_sink_crc.c b/te

[Intel-gfx] [PATCH 4/5] lib/igt_core: Introduce a dry run debug option

2014-09-04 Thread Rodrigo Vivi
IGT_DRY_RUN allows you to run tests independent of any desired condition. For instance you can allow tests to run with the feature in test disabled in order to compare what results you should expect when the feature is actually enabled. Signed-off-by: Rodrigo Vivi --- lib/igt_core.c | 16 +++

[Intel-gfx] [PATCH 3/5] igt/kms_psr_sink_crc: Add debug for CRC

2014-09-04 Thread Rodrigo Vivi
This helps to debug and check if the CRC you are reading correspond what you are seeing on the screen Signed-off-by: Rodrigo Vivi --- tests/kms_psr_sink_crc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c index bbe18f0..51e54a7 100644

[Intel-gfx] [PATCH 2/5] lib/igt_core: add igt_debug_wait

2014-09-04 Thread Rodrigo Vivi
That allows you to read the debug and look to the screen to make sure what is on the screen is what you are expecting on debug line. Signed-off-by: Rodrigo Vivi --- lib/igt_core.h | 13 + 1 file changed, 13 insertions(+) diff --git a/lib/igt_core.h b/lib/igt_core.h index b4eb724..e0

[Intel-gfx] [PATCH 4/5] lib/igt_core: Introduce a dry run debug option

2014-09-04 Thread Rodrigo Vivi
IGT_DRY_RUN allows you to run tests independent of any desired condition. For instance you can allow tests to run with the feature in test disabled in order to compare what results you should expect when the feature is actually enabled. Signed-off-by: Rodrigo Vivi --- lib/igt_core.c | 16 +++

[Intel-gfx] [PATCH 5/5] tests/kms_psr_sink_crc: Dry run with PSR disabled.

2014-09-04 Thread Rodrigo Vivi
This allows to run tests with psr disabled and know what to expect when PSR is actually enabled. Signed-off-by: Rodrigo Vivi --- tests/kms_psr_sink_crc.c | 8 1 file changed, 8 insertions(+) diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c index 51e54a7..1380ca4 100644

[Intel-gfx] [PATCH 1/5] tests/kms_psr_sink_crc: moving usleep around.

2014-09-04 Thread Rodrigo Vivi
Lets just do this small sleep to allow human eyes to see what is happening, but let's avoid any kind of interference on the actual test. Signed-off-by: Rodrigo Vivi --- tests/kms_psr_sink_crc.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/kms_psr_sink_crc.c b/te

[Intel-gfx] [PATCH 3/5] igt/kms_psr_sink_crc: Add debug for CRC

2014-09-04 Thread Rodrigo Vivi
This helps to debug and check if the CRC you are reading correspond what you are seeing on the screen Signed-off-by: Rodrigo Vivi --- tests/kms_psr_sink_crc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c index bbe18f0..51e54a7 100644

[Intel-gfx] [PATCH 2/5] lib/igt_core: add igt_debug_wait

2014-09-04 Thread Rodrigo Vivi
That allows you to read the debug and look to the screen to make sure what is on the screen is what you are expecting on debug line. Signed-off-by: Rodrigo Vivi --- lib/igt_core.h | 13 + 1 file changed, 13 insertions(+) diff --git a/lib/igt_core.h b/lib/igt_core.h index b4eb724..e0

Re: [Intel-gfx] [PATCH 1/5] igt/kms_psr_sink_crc: Add debug for CRC

2014-09-04 Thread Rodrigo Vivi
please ignore these 5 patches... On Thu, Sep 4, 2014 at 3:27 PM, Rodrigo Vivi wrote: > This helps to debug and check if the CRC you are reading correspond > what you are seeing on the screen > > > Signed-off-by: Rodrigo Vivi > --- > tests/kms_psr_sink_crc.c | 2 ++ > 1 file changed, 2 inserti

[Intel-gfx] [PATCH 4/5] tests/kms_psr_sink_crc: Removing context tests.

2014-09-04 Thread Rodrigo Vivi
This tests are unecessary. Mainly now with the software tracking for PSR. Signed-off-by: Rodrigo Vivi --- tests/kms_psr_sink_crc.c | 69 +++- 1 file changed, 3 insertions(+), 66 deletions(-) diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_c

[Intel-gfx] [PATCH 3/5] tests/kms_psr_sink_crc: Dry run with PSR disabled.

2014-09-04 Thread Rodrigo Vivi
This allows to run tests with psr disabled and know what to expect when PSR is actually enabled. Signed-off-by: Rodrigo Vivi --- tests/kms_psr_sink_crc.c | 8 1 file changed, 8 insertions(+) diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c index 51e54a7..1380ca4 100644

[Intel-gfx] [PATCH 5/5] tests/kms_psr_sink_crc: Cleaning up tests a bit

2014-09-04 Thread Rodrigo Vivi
This is needed to be able to split tests in a matrix that tests different input/write methods and operations for different type of planes. Signed-off-by: Rodrigo Vivi --- tests/kms_psr_sink_crc.c | 67 1 file changed, 67 deletions(-) diff --git a

[Intel-gfx] [PATCH 1/5] igt/kms_psr_sink_crc: Add debug for CRC

2014-09-04 Thread Rodrigo Vivi
This helps to debug and check if the CRC you are reading correspond what you are seeing on the screen Signed-off-by: Rodrigo Vivi --- tests/kms_psr_sink_crc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c index bbe18f0..51e54a7 100644

[Intel-gfx] [PATCH 2/5] lib/igt_core: Introduce a dry run debug option

2014-09-04 Thread Rodrigo Vivi
IGT_DRY_RUN allows you to run tests independent of any desired condition. For instance you can allow tests to run with the feature in test disabled in order to compare what results you should expect when the feature is actually enabled. Signed-off-by: Rodrigo Vivi --- lib/igt_core.c | 16 +++

[Intel-gfx] [PATCH] drm/i915/bdw: cancel the SW turbo tasks before runtime suspending

2014-09-04 Thread Paulo Zanoni
From: Paulo Zanoni If we don't cancel them, we may end up running them while the device is runtime suspended, which will trigger lots and lots of WARNs on dmesg. Regression introduced by: commit c76bb61a71083b2d90504cc6d0dda2047c5d63ca Author: Daisy Sun Date: Mon Aug 11 11:08:38 2014 -0700

Re: [Intel-gfx] [PATCH v3] drm/i915/bdw: BDW Software Turbo

2014-09-04 Thread Paulo Zanoni
2014-08-28 6:10 GMT-03:00 Chris Wilson : > On Wed, Aug 27, 2014 at 08:57:56PM +0200, Daniel Vetter wrote: >> On Thu, Aug 14, 2014 at 12:37:53PM -0700, Jesse Barnes wrote: >> > On Mon, 11 Aug 2014 23:33:57 +0200 >> > Daniel Vetter wrote: >> > >> > > On Mon, Aug 11, 2014 at 11:08:38AM -0700, Daisy S

[Intel-gfx] [PATCH] drm/i915/hdmi, pd: Do not dereference the encoder in the connector destroy

2014-09-04 Thread Chris Wilson
Oops, apparently intel_hdmi/intel_dp is the encoder - an object with a distinct lifetime to the connector, and so we cannot simply reuse the common function to unset and free the edid. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/intel_dp.c | 2 +- drivers/gpu/drm/i915/intel_hdmi.c | 2

Re: [Intel-gfx] [PATCH 09/12] tests/kms_psr_sink_crc: Fix all testcases.

2014-09-04 Thread Rodrigo Vivi
On Thu, Sep 4, 2014 at 2:04 AM, Daniel Vetter wrote: > On Wed, Sep 03, 2014 at 09:30:03PM -0400, Rodrigo Vivi wrote: > > In order to get all test cases fixed and the matrix planes-operations > working > > it was needed to use the common new igt kms functions for all cases. > > Previously only spr

Re: [Intel-gfx] [PATCH 1/4] drm/i915: Increase PSR Idle Frame to 2.

2014-09-04 Thread Daniel Vetter
On Thu, Sep 4, 2014 at 9:16 PM, Rodrigo Vivi wrote: >> Hm, I don't see a pattern at all. And that sprites seem to work best >> also looks funky. Are the results stable when you randomize them >> (piglit can do that for you)? Can you add a residency checks in the >> testcase (i.e. before the update

Re: [Intel-gfx] [PATCH 01/12] tests/pm_psr: Update pm_psr for new psr debug interface.

2014-09-04 Thread Rodrigo Vivi
On Thu, Sep 4, 2014 at 1:47 AM, Daniel Vetter wrote: > On Wed, Sep 03, 2014 at 09:29:55PM -0400, Rodrigo Vivi wrote: > > v2: Doesn't duplicate kernel's HAS_PSR. skip based on debugfs output. > > > > Signed-off-by: Rodrigo Vivi > > I'm not sure whether we should still keep this one here around gi

Re: [Intel-gfx] [PATCH i-g-t 1/3] lib: add kmstest_edid_add_3d

2014-09-04 Thread Clint Taylor
On 08/20/2014 03:54 AM, Thomas Wood wrote: kmstest_edid_add_3d adds an EDID extension block with 3D support to a copy of the specified EDID. Signed-off-by: Thomas Wood --- lib/igt_kms.c | 80 +++ lib/igt_kms.h | 1 + 2 files changed,

Re: [Intel-gfx] [PATCH 2/4] drm/i915: Remove PSR HW tracking.

2014-09-04 Thread Rodrigo Vivi
On Thu, Sep 4, 2014 at 1:06 AM, Ville Syrjälä wrote: > On Wed, Sep 03, 2014 at 10:49:57PM -0400, Rodrigo Vivi wrote: > > Now that we are tracking psr states on Software side we don't need HW > help anymore. > > So we can clean up the code a bit and avoid unecessary sets. > > > > Signed-off-by: Ro

Re: [Intel-gfx] [PATCH 1/4] drm/i915: Increase PSR Idle Frame to 2.

2014-09-04 Thread Rodrigo Vivi
On Thu, Sep 4, 2014 at 12:05 PM, Daniel Vetter wrote: > On Thu, Sep 4, 2014 at 8:20 PM, Rodrigo Vivi > wrote: > > On Thu, Sep 4, 2014 at 2:22 AM, Daniel Vetter wrote: > >> > >> On Wed, Sep 03, 2014 at 10:49:56PM -0400, Rodrigo Vivi wrote: > >> > With Software tracking we are going to PSR sooner

Re: [Intel-gfx] [PATCH 1/4] drm/i915: Increase PSR Idle Frame to 2.

2014-09-04 Thread Daniel Vetter
On Thu, Sep 4, 2014 at 8:20 PM, Rodrigo Vivi wrote: > On Thu, Sep 4, 2014 at 2:22 AM, Daniel Vetter wrote: >> >> On Wed, Sep 03, 2014 at 10:49:56PM -0400, Rodrigo Vivi wrote: >> > With Software tracking we are going to PSR sooner than we should and >> > staying >> > with blank screens in many cas

[Intel-gfx] [PATCH 15/89 v7] drm/i915/skl: Program the DDI buffer translation tables

2014-09-04 Thread Damien Lespiau
A couple of things have changed compared to Broadwell: - Entry 9 is used for eDP - No more FDI v2: Update the translation values to latest specs. v3: Rebase on top of the BDW HDMI translation patch v4: Remove the low voltage edp tables, Rebase on top of the patch not writing the HDMI entry

[Intel-gfx] [PATCH 43/89 v6] drm/i915/skl: Read the Memory Latency Values for WM computation

2014-09-04 Thread Damien Lespiau
From: Pradeep Bhat This patch reads the memory latency values for all the 8 levels for SKL. These values are needed for the Watermark computation. v2: Incorporated the review comments from Damien on register indentation. v3: Updated the code to use the sandybridge_pcode_read for reading

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

2014-09-04 Thread Daniel Vetter
Readding intel-gfx since this is interesting for everyone. On Thu, Sep 4, 2014 at 8:09 PM, Clint Taylor wrote: > I will attempt to improve my patch submissions process. I also need to start > annotating version in the subject field as well. > > When using --in_reply_to= do I just use the Message

Re: [Intel-gfx] [PATCH 1/4] drm/i915: Increase PSR Idle Frame to 2.

2014-09-04 Thread Rodrigo Vivi
On Thu, Sep 4, 2014 at 4:04 AM, Daniel Vetter wrote: > On Thu, Sep 04, 2014 at 01:18:19PM +0300, Ville Syrjälä wrote: > > On Thu, Sep 04, 2014 at 01:04:27PM +0300, Ville Syrjälä wrote: > > > On Thu, Sep 04, 2014 at 11:29:16AM +0200, Daniel Vetter wrote: > > > > On Thu, Sep 04, 2014 at 10:55:16AM

Re: [Intel-gfx] [PATCH 1/4] drm/i915: Increase PSR Idle Frame to 2.

2014-09-04 Thread Rodrigo Vivi
On Thu, Sep 4, 2014 at 3:04 AM, Ville Syrjälä wrote: > On Thu, Sep 04, 2014 at 11:29:16AM +0200, Daniel Vetter wrote: > > On Thu, Sep 04, 2014 at 10:55:16AM +0300, Ville Syrjälä wrote: > > > On Wed, Sep 03, 2014 at 10:49:56PM -0400, Rodrigo Vivi wrote: > > > > With Software tracking we are going

Re: [Intel-gfx] [PATCH 1/4] drm/i915: Increase PSR Idle Frame to 2.

2014-09-04 Thread Rodrigo Vivi
On Thu, Sep 4, 2014 at 2:22 AM, Daniel Vetter wrote: > On Wed, Sep 03, 2014 at 10:49:56PM -0400, Rodrigo Vivi wrote: > > With Software tracking we are going to PSR sooner than we should and > staying > > with blank screens in many cases. > > > > Using 2 identical frames to detect idleness is safi

Re: [Intel-gfx] [PATCH 1/4] drm/i915: Increase PSR Idle Frame to 2.

2014-09-04 Thread Rodrigo Vivi
On Thu, Sep 4, 2014 at 1:09 AM, Jani Nikula wrote: > On Thu, 04 Sep 2014, Rodrigo Vivi wrote: > > With Software tracking we are going to PSR sooner than we should and > staying > > with blank screens in many cases. > > > > Using 2 identical frames to detect idleness is safier. > > > > Discovered

Re: [Intel-gfx] [PATCH 1/4] drm/i915: Increase PSR Idle Frame to 2.

2014-09-04 Thread Rodrigo Vivi
On Thu, Sep 4, 2014 at 12:55 AM, Ville Syrjälä < ville.syrj...@linux.intel.com> wrote: > On Wed, Sep 03, 2014 at 10:49:56PM -0400, Rodrigo Vivi wrote: > > With Software tracking we are going to PSR sooner than we should and > staying > > with blank screens in many cases. > > > > Using 2 identical

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

2014-09-04 Thread Clint Taylor
On 08/26/2014 07:06 AM, Ville Syrjälä wrote: On Tue, Aug 26, 2014 at 03:36:07PM +0200, Daniel Vetter wrote: On Tue, Aug 26, 2014 at 04:21:00PM +0300, Jani Nikula wrote: On Tue, 26 Aug 2014, Ville Syrjälä wrote: On Tue, Aug 19, 2014 at 10:00:55AM +0300, Jani Nikula wrote: On Mon, 18 Aug 2014,

Re: [Intel-gfx] [PATCH] drm/i915: WARN if interrupts aren't on in en/disable_pipestat

2014-09-04 Thread Jesse Barnes
On Thu, 4 Sep 2014 18:59:55 +0200 Daniel Vetter wrote: > On Thu, Sep 4, 2014 at 6:24 PM, Jesse Barnes wrote: > > On Thu, 4 Sep 2014 17:59:18 +0200 > > Daniel Vetter wrote: > > > >> On Thu, Aug 28, 2014 at 1:00 AM, Jesse Barnes > >> wrote: > >> >> diff --git a/drivers/gpu/drm/i915/i915_irq.c

Re: [Intel-gfx] [PATCH 02/10] drm/i915: Decouple the stuck pageflip on modeset

2014-09-04 Thread Ville Syrjälä
On Tue, Sep 02, 2014 at 02:57:37PM +0100, Chris Wilson wrote: > If we successfully confuse the hardware, and cause it to drop a queued > pageflip, we wait for 60s and issue a warning before continuing on with > the modeset. However, this leaves the pending pageflip still stuck > indefinitely. Prete

Re: [Intel-gfx] [PATCH] drm/i915: WARN if interrupts aren't on in en/disable_pipestat

2014-09-04 Thread Daniel Vetter
On Thu, Sep 4, 2014 at 6:24 PM, Jesse Barnes wrote: > On Thu, 4 Sep 2014 17:59:18 +0200 > Daniel Vetter wrote: > >> On Thu, Aug 28, 2014 at 1:00 AM, Jesse Barnes >> wrote: >> >> diff --git a/drivers/gpu/drm/i915/i915_irq.c >> >> b/drivers/gpu/drm/i915/i915_irq.c >> >> index 9eb303c1b621..76bc4

Re: [Intel-gfx] [PATCH] drm/i915: Convert hangcheck from a timer into a delayed work item

2014-09-04 Thread Ville Syrjälä
On Thu, Sep 04, 2014 at 04:38:39PM +0100, Chris Wilson wrote: > On Thu, Sep 04, 2014 at 06:25:03PM +0300, Ville Syrjälä wrote: > > On Thu, Sep 04, 2014 at 04:09:02PM +0100, Chris Wilson wrote: > > > When run as a timer, i915_hangcheck_elapsed() must adhere to all the > > > rules of running in a sof

Re: [Intel-gfx] [PATCH] drm/i915: WARN if interrupts aren't on in en/disable_pipestat

2014-09-04 Thread Jesse Barnes
On Thu, 4 Sep 2014 17:59:18 +0200 Daniel Vetter wrote: > On Thu, Aug 28, 2014 at 1:00 AM, Jesse Barnes > wrote: > >> diff --git a/drivers/gpu/drm/i915/i915_irq.c > >> b/drivers/gpu/drm/i915/i915_irq.c > >> index 9eb303c1b621..76bc4d0de5a4 100644 > >> --- a/drivers/gpu/drm/i915/i915_irq.c > >>

Re: [Intel-gfx] [PATCH] drm/i915: WARN if interrupts aren't on in en/disable_pipestat

2014-09-04 Thread Daniel Vetter
On Thu, Aug 28, 2014 at 1:00 AM, Jesse Barnes wrote: >> diff --git a/drivers/gpu/drm/i915/i915_irq.c >> b/drivers/gpu/drm/i915/i915_irq.c >> index 9eb303c1b621..76bc4d0de5a4 100644 >> --- a/drivers/gpu/drm/i915/i915_irq.c >> +++ b/drivers/gpu/drm/i915/i915_irq.c >> @@ -589,6 +589,7 @@ __i915_enab

Re: [Intel-gfx] [PATCH 86/89] drm/i915: only reset media, blt, and render engines on GPU hangs

2014-09-04 Thread Jesse Barnes
On Thu, 4 Sep 2014 13:29:06 +0100 Damien Lespiau wrote: > On Thu, Sep 04, 2014 at 03:03:27PM +0300, Jani Nikula wrote: > > On Thu, 04 Sep 2014, Damien Lespiau wrote: > > > From: Jesse Barnes > > > > > > No need to mess with display. > > > > Why is this patch part of the skl enabling series? Th

Re: [Intel-gfx] [PATCH] drm/i915: Convert hangcheck from a timer into a delayed work item

2014-09-04 Thread Chris Wilson
On Thu, Sep 04, 2014 at 06:25:03PM +0300, Ville Syrjälä wrote: > On Thu, Sep 04, 2014 at 04:09:02PM +0100, Chris Wilson wrote: > > When run as a timer, i915_hangcheck_elapsed() must adhere to all the > > rules of running in a softirq context. This is advantageous to us as we > > want to minimise th

Re: [Intel-gfx] [PATCH 05/89] drm/i915/skl: i915_swizzle_info gen9 fix

2014-09-04 Thread Damien Lespiau
On Thu, Sep 04, 2014 at 03:14:45PM +0200, Daniel Vetter wrote: > On Thu, Sep 04, 2014 at 12:26:31PM +0100, Damien Lespiau wrote: > > From: Robert Beckett > > > > Fix ARB_MODE register read for gen >= 8 in i915_swizzle_info > > > > Signed-off-by: Robert Beckett > > Signed-off-by: Damien Lespiau

Re: [Intel-gfx] [PATCH] drm/i915: Convert hangcheck from a timer into a delayed work item

2014-09-04 Thread Ville Syrjälä
On Thu, Sep 04, 2014 at 04:09:02PM +0100, Chris Wilson wrote: > When run as a timer, i915_hangcheck_elapsed() must adhere to all the > rules of running in a softirq context. This is advantageous to us as we > want to minimise the risk that a driver bug will prevent us from > detecting a hung GPU. H

Re: [Intel-gfx] [PATCH -v3 2/4] drm/i915: split intel_update_plane into check() and commit()

2014-09-04 Thread Ville Syrjälä
On Wed, Sep 03, 2014 at 05:10:16PM -0300, Gustavo Padovan wrote: > From: Gustavo Padovan > > Due to the upcoming atomic modesetting feature we need to separate > some update functions into a check step that can fail and a commit > step that should, ideally, never fail. > > This commit splits int

Re: [Intel-gfx] [PATCH -v3 4/4] drm/i915: split intel_primary_plane_setplane() into check() and commit()

2014-09-04 Thread Ville Syrjälä
On Wed, Sep 03, 2014 at 05:10:18PM -0300, Gustavo Padovan wrote: > From: Gustavo Padovan > > As a preparation for atomic updates we need to split the code to check > everything we are going to commit first. This patch starts the work to > split intel_primary_plane_setplane() into check() and comm

[Intel-gfx] [PATCH] drm/i915: Convert hangcheck from a timer into a delayed work item

2014-09-04 Thread Chris Wilson
When run as a timer, i915_hangcheck_elapsed() must adhere to all the rules of running in a softirq context. This is advantageous to us as we want to minimise the risk that a driver bug will prevent us from detecting a hung GPU. However, that is irrelevant if the driver bug prevents us from resettin

Re: [Intel-gfx] [PATCH -v3 3/4] drm/i915: split intel_cursor_plane_update() into check() and commit()

2014-09-04 Thread Ville Syrjälä
On Wed, Sep 03, 2014 at 05:10:17PM -0300, Gustavo Padovan wrote: > From: Gustavo Padovan > > Due to the upcoming atomic modesetting feature we need to separate > some update functions into a check step that can fail and a commit > step that should, ideally, never fail. > > The commit part can st

Re: [Intel-gfx] [PATCH] drm/i915: Convert hangcheck from a timer into a delayed work item

2014-09-04 Thread Chris Wilson
On Thu, Sep 04, 2014 at 04:12:43PM +0200, Daniel Vetter wrote: > On Thu, Sep 04, 2014 at 02:33:44PM +0100, Chris Wilson wrote: > > On Thu, Sep 04, 2014 at 03:31:14PM +0200, Daniel Vetter wrote: > > > Didn't 3.17 just gain the mod_delayed_work interface? > > > > Yes. It was so exciting and doesn't

Re: [Intel-gfx] [PATCH 00/89] Basic Skylake enabling (reviewers)

2014-09-04 Thread Damien Lespiau
Of course, the series now needs reviewers. There's a list of known problems that I'm planning to address, a few of those problems are easy to solve and ca be addressed as a new revision of those pathes. However I'm hoping other ones can be follup up patches instead. Known issues: - There a kno

Re: [Intel-gfx] [PATCH 77/89] drm/i915: Introduce a for_each_plane() macro

2014-09-04 Thread Daniel Vetter
On Thu, Sep 04, 2014 at 03:05:11PM +0100, Damien Lespiau wrote: > On Thu, Sep 04, 2014 at 04:00:32PM +0200, Daniel Vetter wrote: > > On Thu, Sep 04, 2014 at 02:32:47PM +0100, Chris Wilson wrote: > > > On Thu, Sep 04, 2014 at 12:27:43PM +0100, Damien Lespiau wrote: > > > > Tired of copy/pasting thin

Re: [Intel-gfx] [PATCH] drm/i915: Convert hangcheck from a timer into a delayed work item

2014-09-04 Thread Daniel Vetter
On Thu, Sep 04, 2014 at 02:33:44PM +0100, Chris Wilson wrote: > On Thu, Sep 04, 2014 at 03:31:14PM +0200, Daniel Vetter wrote: > > Didn't 3.17 just gain the mod_delayed_work interface? > > Yes. It was so exciting and doesn't appear to requeue. I guess we could do the mod_delayed_work in add_reque

Re: [Intel-gfx] [PATCH 77/89] drm/i915: Introduce a for_each_plane() macro

2014-09-04 Thread Damien Lespiau
On Thu, Sep 04, 2014 at 04:00:32PM +0200, Daniel Vetter wrote: > On Thu, Sep 04, 2014 at 02:32:47PM +0100, Chris Wilson wrote: > > On Thu, Sep 04, 2014 at 12:27:43PM +0100, Damien Lespiau wrote: > > > Tired of copy/pasting things around. > > > > > > v2: Rebase on top of the for_each_pipe() change

Re: [Intel-gfx] [PATCH 77/89] drm/i915: Introduce a for_each_plane() macro

2014-09-04 Thread Damien Lespiau
On Thu, Sep 04, 2014 at 02:32:47PM +0100, Chris Wilson wrote: > > +#define for_each_plane(pipe, p) \ > > + for ((p) = 0; (p) < INTEL_INFO(dev)->num_sprites[(pipe)] + 1; (p)++) > > We are adding new magic macros taking dev... > > > #define for_each_sprite(p, s) for ((s) = 0; (s) < > > INTEL_IN

Re: [Intel-gfx] [PATCH 77/89] drm/i915: Introduce a for_each_plane() macro

2014-09-04 Thread Daniel Vetter
On Thu, Sep 04, 2014 at 02:32:47PM +0100, Chris Wilson wrote: > On Thu, Sep 04, 2014 at 12:27:43PM +0100, Damien Lespiau wrote: > > Tired of copy/pasting things around. > > > > v2: Rebase on top of the for_each_pipe() change adding dev_priv as first > > argument. > > > > Signed-off-by: Damien

Re: [Intel-gfx] [PATCH] drm/i915: Fix irq enable tracking in driver load

2014-09-04 Thread Daniel Vetter
On Thu, Sep 04, 2014 at 04:42:36PM +0300, Jani Nikula wrote: > On Thu, 04 Sep 2014, Daniel Vetter wrote: > > On Thu, Sep 04, 2014 at 02:12:10PM +0300, Jani Nikula wrote: > >> On Wed, 27 Aug 2014, Daniel Vetter wrote: > >> > A bunch of warnings fire on some ->irq_postinstall hooks since those > >>

Re: [Intel-gfx] [PATCH] igt_core: zero exit_handler_count before forking

2014-09-04 Thread Paulo Zanoni
2014-09-04 5:48 GMT-03:00 Chris Wilson : > On Thu, Sep 04, 2014 at 10:39:31AM +0200, Daniel Vetter wrote: >> On Thu, Sep 04, 2014 at 10:34:13AM +0200, Daniel Vetter wrote: >> > On Wed, Sep 03, 2014 at 02:47:21PM -0300, Paulo Zanoni wrote: >> > > From: Paulo Zanoni >> > > >> > > If we don't reset e

Re: [Intel-gfx] [PATCH] drm/i915: Fix irq enable tracking in driver load

2014-09-04 Thread Jani Nikula
On Thu, 04 Sep 2014, Daniel Vetter wrote: > On Thu, Sep 04, 2014 at 02:12:10PM +0300, Jani Nikula wrote: >> On Wed, 27 Aug 2014, Daniel Vetter wrote: >> > A bunch of warnings fire on some ->irq_postinstall hooks since those >> > can enable interrupts (e.g. rps interrupts). And then our ordering >

Re: [Intel-gfx] [PATCH] drm/i915: Convert hangcheck from a timer into a delayed work item

2014-09-04 Thread Chris Wilson
On Thu, Sep 04, 2014 at 03:31:14PM +0200, Daniel Vetter wrote: > Didn't 3.17 just gain the mod_delayed_work interface? Yes. It was so exciting and doesn't appear to requeue. -Chris -- Chris Wilson, Intel Open Source Technology Centre ___ Intel-gfx mail

Re: [Intel-gfx] [PATCH 77/89] drm/i915: Introduce a for_each_plane() macro

2014-09-04 Thread Chris Wilson
On Thu, Sep 04, 2014 at 12:27:43PM +0100, Damien Lespiau wrote: > Tired of copy/pasting things around. > > v2: Rebase on top of the for_each_pipe() change adding dev_priv as first > argument. > > Signed-off-by: Damien Lespiau > --- > drivers/gpu/drm/i915/i915_drv.h | 2 ++ > 1 file changed,

Re: [Intel-gfx] [PATCH] drm/i915: Convert hangcheck from a timer into a delayed work item

2014-09-04 Thread Daniel Vetter
On Thu, Sep 04, 2014 at 01:26:36PM +0100, Chris Wilson wrote: > On Thu, Sep 04, 2014 at 03:17:57PM +0300, Jani Nikula wrote: > > On Thu, 04 Sep 2014, Chris Wilson wrote: > > > When run as a timer, i915_hangcheck_elapsed() must adhere to all the > > > rules of running in a softirq context. This is

Re: [Intel-gfx] [PATCH 83/89] drm/i915/skl: Check the DDB state at modeset

2014-09-04 Thread Daniel Vetter
On Thu, Sep 04, 2014 at 12:27:49PM +0100, Damien Lespiau wrote: > v2: Don't check DDB on pre-SKL platforms > Don't check DDB state on disabled pipes > > Signed-off-by: Damien Lespiau We probably want to do this with a vfunc eventually ... but reall deferring to Ville here, he'll know best wh

Re: [Intel-gfx] [PATCH 77/89] drm/i915: Introduce a for_each_plane() macro

2014-09-04 Thread Daniel Vetter
On Thu, Sep 04, 2014 at 12:27:43PM +0100, Damien Lespiau wrote: > Tired of copy/pasting things around. > > v2: Rebase on top of the for_each_pipe() change adding dev_priv as first > argument. > > Signed-off-by: Damien Lespiau Queued for -next, thanks for the patch. -Daniel > --- > drivers/

Re: [Intel-gfx] [PATCH 38/89] drm/i915/skl: Implement drm_plane vfuncs

2014-09-04 Thread Daniel Vetter
On Thu, Sep 04, 2014 at 12:27:04PM +0100, Damien Lespiau wrote: > SKL Uses the same hardware for all planes now, so called "universal" > planes. Ie both the primary planes and sprite planes share the same > logic. This patch implements the drm_plane vfuncs for "sprites" ie > planes that aren't the

Re: [Intel-gfx] [PATCH 32/89] drm/i915/skl: Adjust the display engine interrupts

2014-09-04 Thread Daniel Vetter
On Thu, Sep 04, 2014 at 12:26:58PM +0100, Damien Lespiau wrote: > To accomodate the extra planes, the bit definitions were shuffled around > a bit. > > v2: Rebase on top of the for_each_pipe() change adding dev_priv as first > argument. > > Signed-off-by: Damien Lespiau > --- > drivers/gpu/

Re: [Intel-gfx] [PATCH 05/89] drm/i915/skl: i915_swizzle_info gen9 fix

2014-09-04 Thread Daniel Vetter
On Thu, Sep 04, 2014 at 12:26:31PM +0100, Damien Lespiau wrote: > From: Robert Beckett > > Fix ARB_MODE register read for gen >= 8 in i915_swizzle_info > > Signed-off-by: Robert Beckett > Signed-off-by: Damien Lespiau given that the swizzle stuff is gone, shouldn't we just have a gen9+ check

Re: [Intel-gfx] [PATCH 86/89] drm/i915: only reset media, blt, and render engines on GPU hangs

2014-09-04 Thread Daniel Vetter
On Thu, Sep 04, 2014 at 01:29:06PM +0100, Damien Lespiau wrote: > On Thu, Sep 04, 2014 at 03:03:27PM +0300, Jani Nikula wrote: > > On Thu, 04 Sep 2014, Damien Lespiau wrote: > > > From: Jesse Barnes > > > > > > No need to mess with display. > > > > Why is this patch part of the skl enabling seri

Re: [Intel-gfx] [PATCH 57/89] drm/i915: Rewrite ABS_DIFF() in a safer manner

2014-09-04 Thread Daniel Vetter
On Thu, Sep 04, 2014 at 01:32:24PM +0100, Damien Lespiau wrote: > On Thu, Sep 04, 2014 at 03:11:24PM +0300, Jani Nikula wrote: > > On Thu, 04 Sep 2014, Damien Lespiau wrote: > > > The new version of the macro does a few things better: > > > - protect the arguments, > > > - only evaluate the ar

Re: [Intel-gfx] [PATCH] drm/i915: bdw does not have pch backlight override bit

2014-09-04 Thread Ville Syrjälä
On Thu, Sep 04, 2014 at 03:25:56PM +0300, Jani Nikula wrote: > On Thu, 04 Sep 2014, Ville Syrjälä wrote: > > On Thu, Sep 04, 2014 at 02:56:09PM +0300, Jani Nikula wrote: > >> BDW is always in the PCH override mode, and the bit MBZ. > > > > BSpec doesn't seem to agree. In fact it says the override

Re: [Intel-gfx] [PATCH] drm/i915: Fix irq enable tracking in driver load

2014-09-04 Thread Daniel Vetter
On Thu, Sep 04, 2014 at 02:12:10PM +0300, Jani Nikula wrote: > On Wed, 27 Aug 2014, Daniel Vetter wrote: > > A bunch of warnings fire on some ->irq_postinstall hooks since those > > can enable interrupts (e.g. rps interrupts). And then our ordering > > self-checks fire and complain. > > > > To fix

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

2014-09-04 Thread Daniel Vetter
On Thu, Sep 04, 2014 at 02:55:31PM +0300, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Jani wanted some comments to explain why we call certain vdd on/off > functions in certain places. > > v2: Make the comments more thorough (Imre) > > Reviewed-by: Imre Deak > Signed-off-by:

Re: [Intel-gfx] [PATCH 11/14] drm/i915: Be more careful when picking the initial power sequencer pipe

2014-09-04 Thread Daniel Vetter
On Mon, Aug 18, 2014 at 10:16:06PM +0300, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Try to make sure we find the power sequencer that the BIOS used > by first looking for one which has the panel power enabled, then > fall back to one with VDD force bit enabled, and finally lo

Re: [Intel-gfx] [PATCH v2] drm/i915: Sysfs interface to get GFX shmem usage stats per process

2014-09-04 Thread Daniel Vetter
On Thu, Sep 04, 2014 at 11:52:15AM +, Gupta, Sourab wrote: > On Thu, 2014-09-04 at 10:01 +, Daniel Vetter wrote: > > Interface design discussions should happen in public (so that > > non-intel people can jump in, which happens rather often for other > > drivers actually). But at least inclu

Re: [Intel-gfx] [PATCH 86/89] drm/i915: only reset media, blt, and render engines on GPU hangs

2014-09-04 Thread Mika Kuoppala
Damien Lespiau writes: > From: Jesse Barnes > > No need to mess with display. > > Signed-off-by: Jesse Barnes > Signed-off-by: Damien Lespiau > --- > drivers/gpu/drm/i915/intel_uncore.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/intel_uncor

Re: [Intel-gfx] [PATCH 57/89] drm/i915: Rewrite ABS_DIFF() in a safer manner

2014-09-04 Thread Damien Lespiau
On Thu, Sep 04, 2014 at 03:11:24PM +0300, Jani Nikula wrote: > On Thu, 04 Sep 2014, Damien Lespiau wrote: > > The new version of the macro does a few things better: > > - protect the arguments, > > - only evaluate the arguments once, > > - check that the arguments are of the same type, > > >

Re: [Intel-gfx] [PATCH 86/89] drm/i915: only reset media, blt, and render engines on GPU hangs

2014-09-04 Thread Damien Lespiau
On Thu, Sep 04, 2014 at 03:03:27PM +0300, Jani Nikula wrote: > On Thu, 04 Sep 2014, Damien Lespiau wrote: > > From: Jesse Barnes > > > > No need to mess with display. > > Why is this patch part of the skl enabling series? The commit message is > a bit thin on the details too... I did hesitate w

Re: [Intel-gfx] [PATCH] drm/i915: Convert hangcheck from a timer into a delayed work item

2014-09-04 Thread Chris Wilson
On Thu, Sep 04, 2014 at 03:17:57PM +0300, Jani Nikula wrote: > On Thu, 04 Sep 2014, Chris Wilson wrote: > > When run as a timer, i915_hangcheck_elapsed() must adhere to all the > > rules of running in a softirq context. This is advantageous to us as we > > want to minimise the risk that a driver b

Re: [Intel-gfx] [PATCH] drm/i915: bdw does not have pch backlight override bit

2014-09-04 Thread Jani Nikula
On Thu, 04 Sep 2014, Ville Syrjälä wrote: > On Thu, Sep 04, 2014 at 02:56:09PM +0300, Jani Nikula wrote: >> BDW is always in the PCH override mode, and the bit MBZ. > > BSpec doesn't seem to agree. In fact it says the override must be > enabled on bdw. Gah, I was looking at the skl bspec, which s

Re: [Intel-gfx] [PATCH] drm/i915: Convert hangcheck from a timer into a delayed work item

2014-09-04 Thread Jani Nikula
On Thu, 04 Sep 2014, Chris Wilson wrote: > When run as a timer, i915_hangcheck_elapsed() must adhere to all the > rules of running in a softirq context. This is advantageous to us as we > want to minimise the risk that a driver bug will prevent us from > detecting a hung GPU. However, that is irre

Re: [Intel-gfx] [PATCH 14/19] drm: Don't update vblank timestamp when the counter didn't change

2014-09-04 Thread Mario Kleiner
I thought about this one again and opposed to my previous comment now think it's fine, also for drivers without hw vblank counter queries. -mario On Wed, Aug 6, 2014 at 1:49 PM, wrote: > From: Ville Syrjälä > > If we already have a timestamp for the current vblank counter, don't > update it

Re: [Intel-gfx] [PATCH 57/89] drm/i915: Rewrite ABS_DIFF() in a safer manner

2014-09-04 Thread Jani Nikula
On Thu, 04 Sep 2014, Damien Lespiau wrote: > The new version of the macro does a few things better: > - protect the arguments, > - only evaluate the arguments once, > - check that the arguments are of the same type, > > Change LC_FREQ_2K to be a unsigned 64bit constant and removed the '()' >

Re: [Intel-gfx] [PATCH] drm/i915: bdw does not have pch backlight override bit

2014-09-04 Thread Ville Syrjälä
On Thu, Sep 04, 2014 at 02:56:09PM +0300, Jani Nikula wrote: > BDW is always in the PCH override mode, and the bit MBZ. BSpec doesn't seem to agree. In fact it says the override must be enabled on bdw. > > Signed-off-by: Jani Nikula > --- > drivers/gpu/drm/i915/intel_panel.c | 3 --- > 1 file

[Intel-gfx] [PATCH] drm/i915: Convert hangcheck from a timer into a delayed work item

2014-09-04 Thread Chris Wilson
When run as a timer, i915_hangcheck_elapsed() must adhere to all the rules of running in a softirq context. This is advantageous to us as we want to minimise the risk that a driver bug will prevent us from detecting a hung GPU. However, that is irrelevant if the driver bug prevents us from resettin

  1   2   3   >