Bug 57934 - [IVB, SNB, HSW]I-G-T/gem_cacheing && gem_cpu_concurrent_blit failed
Summary: [IVB, SNB, HSW]I-G-T/gem_cacheing && gem_cpu_concurrent_blit failed
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium major
Assignee: Mika Kuoppala
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-06 03:34 UTC by shui yangwei
Modified: 2017-10-06 14:47 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
gem_cacheing fail dmesg (3.79 KB, text/plain)
2012-12-06 03:34 UTC, shui yangwei
no flags Details
gem_cpu_concurrent_blit faild dmesg (3.79 KB, text/plain)
2012-12-06 04:31 UTC, shui yangwei
no flags Details

Description shui yangwei 2012-12-06 03:34:35 UTC
Created attachment 71069 [details]
gem_cacheing fail dmesg

good commit:
Kernel: (drm-intel-next-queued)1a240d4de2ccf40de5796a4d1dbb3a0236051fc9

bad commit:
Kernel: (drm-intel-next-queued)46cddd0246ecca425a2d0f07f3102030665afc77


git bisect log:
---------------------
# bad: [46cddd0246ecca425a2d0f07f3102030665afc77] drm/i915: Remove duplicate and unused register #defines in i915_reg.h
# good: [1a240d4de2ccf40de5796a4d1dbb3a0236051fc9] drm/i915: fixup sparse warnings
git bisect start '46cddd0246ecca425a2d0f07f3102030665afc77' '1a240d4de2ccf40de5796a4d1dbb3a0236051fc9'
# bad: [3cb49d22561ad4063856ad809b175478c1f09c8a] drm/i915: setup the hangcheck timer early
git bisect bad 3cb49d22561ad4063856ad809b175478c1f09c8a
# good: [29bc0d33dcd509a87cfc6eaf4ac29ce6cc2df40b] drm/i915: Split intel_ring_begin
git bisect good 29bc0d33dcd509a87cfc6eaf4ac29ce6cc2df40b
# bad: [7c7b4d55fb69f679c27f8ed056c6f304cd69c3b3] drm/i915: Set initial seqno value close to wrap boundary
git bisect bad 7c7b4d55fb69f679c27f8ed056c6f304cd69c3b3
# good: [d2ef0e20dd0d6257526ad41b1b5bcfdc4cff4054] drm/i915: Add intel_ring_handle_seqno wrap
git bisect good d2ef0e20dd0d6257526ad41b1b5bcfdc4cff4054
Comment 1 shui yangwei 2012-12-06 04:31:18 UTC
Created attachment 71070 [details]
gem_cpu_concurrent_blit faild dmesg

I bisect this failed case, and get the same bisect result.
So I conbine these two cases as the same bug.
Comment 2 Daniel Vetter 2012-12-06 07:45:25 UTC
Just to check: Does reverting

commit 7c7b4d55fb69f679c27f8ed056c6f304cd69c3b3
Author: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Date:   Tue Dec 4 15:12:05 2012 +0200

    drm/i915: Set initial seqno value close to wrap boundary
    
    To gain confidence in the wrap handling, make it happen quite
    soon after the boot.
    
    Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>

Fix the issues again?

btw, when adding bisect results, please cite the commit that introduce the regression like above, since that's the most important thing for us. Only if the bisect turns out to not be stable do we look at the bisect log to figure out where the bisect might have gone wrong. I'll update BKMs.
Comment 3 Daniel Vetter 2012-12-06 07:51:31 UTC
Assigning to Mika ...
Comment 4 shui yangwei 2012-12-06 09:12:53 UTC
> btw, when adding bisect results, please cite the commit that introduce the
> regression like above, since that's the most important thing for us. Only if
> the bisect turns out to not be stable do we look at the bisect log to figure
> out where the bisect might have gone wrong. I'll update BKMs.

commit 7c7b4d55fb69f679c27f8ed056c6f304cd69c3b3 

Revert this commit at the top of the -next-queued branch, after test, I'm sure it's good.
Comment 5 Chris Wilson 2012-12-06 14:54:11 UTC
See https://patchwork.kernel.org/patch/1844941/
Comment 6 shui yangwei 2012-12-07 05:38:32 UTC
(In reply to comment #5)
> See https://patchwork.kernel.org/patch/1844941/

I can't patch below in your given patch. which branch could I attach this patch? 

>>@@ -628,7 +634,7 @@  gen6_ring_sync(struct intel_ring_buffer *waiter,
>> 	BUG_ON(!waiter->outstanding_lazy_request);
>> 
>> 	/* If seqno wrap happened, omit the wait with no-ops */
>>-	if (likely(waiter->outstanding_lazy_request > seqno)) {
>>+	if (likely(i915_gem_next_seqno(waiter->dev) > seqno)) {
>> 		intel_ring_emit(waiter,
>> 				dw1 |
>> 				signaller->semaphore_register[waiter->id]);
Comment 7 lu hua 2012-12-07 06:13:11 UTC
case gem_gtt_concurrent_blit core dumped, has same bisect commit.
output:
gem_gtt_concurrent_blit: gem_gtt_concurrent_blit.c:72: cmp_bo: Assertion `*vaddr++ == val' failed.
Aborted (core dumped)

dmesg:
[   47.508457] [drm:i915_driver_open],
[   47.508472] [drm:intel_crtc_set_config], [CRTC:3] [FB:21] #connectors=1 (x y) (0 0)
[   47.508478] [drm:intel_modeset_stage_output_state], [CONNECTOR:17:HDMI-A-2] to [CRTC:3]
[   47.508480] [drm:intel_crtc_set_config], [CRTC:5] [NOFB]
[   47.508482] [drm:intel_modeset_stage_output_state], [CONNECTOR:17:HDMI-A-2] to [CRTC:3]
[   47.508484] [drm:intel_crtc_set_config], [CRTC:7] [NOFB]
[   47.508485] [drm:intel_modeset_stage_output_state], [CONNECTOR:17:HDMI-A-2] to [CRTC:3]
[   47.508490] [drm:sandybridge_update_wm], FIFO watermarks For pipe A - plane 9, cursor: 6
[   47.508495] [drm:sandybridge_update_wm], FIFO watermarks For pipe A - plane 9, cursor: 6
[   47.508500] [drm:sandybridge_update_wm], FIFO watermarks For pipe A - plane 9, cursor: 6
[   47.508505] [drm:i915_driver_open],
[   47.781840] [drm:intel_crtc_set_config], [CRTC:3] [FB:21] #connectors=1 (x y) (0 0)
[   47.781847] [drm:intel_modeset_stage_output_state], [CONNECTOR:17:HDMI-A-2] to [CRTC:3]
[   47.781849] [drm:intel_crtc_set_config], [CRTC:5] [NOFB]
[   47.781851] [drm:intel_modeset_stage_output_state], [CONNECTOR:17:HDMI-A-2] to [CRTC:3]
[   47.781853] [drm:intel_crtc_set_config], [CRTC:7] [NOFB]
[   47.781855] [drm:intel_modeset_stage_output_state], [CONNECTOR:17:HDMI-A-2] to [CRTC:3]
[   47.781859] [drm:sandybridge_update_wm], FIFO watermarks For pipe A - plane 9, cursor: 6
[   47.781864] [drm:sandybridge_update_wm], FIFO watermarks For pipe A - plane 9, cursor: 6
[   47.781869] [drm:sandybridge_update_wm], FIFO watermarks For pipe A - plane 9, cursor: 6
Comment 8 Daniel Vetter 2012-12-07 08:00:21 UTC
Chris patch is on top of the old tree (the broken one), latest -nightly has the offeding patch take out already, so should work again. Can you please retest?
Comment 9 shui yangwei 2012-12-07 08:32:36 UTC
(In reply to comment #8)
> Chris patch is on top of the old tree (the broken one), latest -nightly has
> the offeding patch take out already, so should work again. Can you please
> retest?

Yeah, I build a kernel with the top commit on -nightly branch, the case passed.

commit : 3fe1b3064d39c0930796aaae81c44f9e8a5264bd
Comment 10 Jani Nikula 2012-12-10 08:57:34 UTC
Is this RESOLVED FIXED?
Comment 11 Daniel Vetter 2012-12-10 09:00:40 UTC
(In reply to comment #10)
> Is this RESOLVED FIXED?

Nope, offending patch was only taken out, we still need to fix up seqno wrapping for real. So I think we can keep this one here around as a reminder.
Comment 12 Jesse Barnes 2012-12-11 19:35:15 UTC
commit f72b3435c1a75406d82d6e252bb78f009efd4bd9
Author: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Date:   Mon Dec 10 15:41:48 2012 +0200

and subsequent patches have landed, should be ok to close now?  Yangwei, can you confirm?
Comment 13 shui yangwei 2012-12-12 05:21:03 UTC
(In reply to comment #12)
> commit f72b3435c1a75406d82d6e252bb78f009efd4bd9
> Author: Mika Kuoppala <mika.kuoppala@linux.intel.com>
> Date:   Mon Dec 10 15:41:48 2012 +0200
> 
> and subsequent patches have landed, should be ok to close now?  Yangwei, can
> you confirm?

I have tested this commit, these two cases worked well.
We can close this bug now.
Comment 14 Elizabeth 2017-10-06 14:47:34 UTC
Closing old verified.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.