Bug 86230 - [ILK/HSW/BYT/BDW Bisected]igt/kms_setmode/invalid-clone-single-crtc kernel BUG at drivers/gpu/drm/i915/i915_gem.c:4212!
Summary: [ILK/HSW/BYT/BDW Bisected]igt/kms_setmode/invalid-clone-single-crtc kernel BU...
Status: CLOSED DUPLICATE of bug 86226
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: high critical
Assignee: Jesse Barnes
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-13 05:09 UTC by lu hua
Modified: 2017-10-06 14:33 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (105.45 KB, text/plain)
2014-11-13 05:09 UTC, lu hua
no flags Details

Description lu hua 2014-11-13 05:09:14 UTC
Created attachment 109379 [details]
dmesg

==System Environment==
--------------------------
Regression: yes
good commit: 4241f00ad1f6c906486ee05ebf35b4251c59ef5c
bad commit: f1e0a6fc5af65661170eed49ba85339b54e5015a

Non-working platforms: BDW

==kernel==
--------------------------
drm-intel-nightly/22ba72f728eaf30e63ded0c0bb0484b4bc6f92d4

==Bug detailed description==
It has this error and doesn't exit testing.

output:
IGT-Version: 1.8-g50d539e (x86_64) (Linux: 3.18.0-rc4_drm-intel-nightly_22ba72_20141113+ x86_64)
Testing: invalid-clone-single-crtc 2 connector combinations
  Test id#1 CRTC count 1
    CRTC[8] [Pipe A] Mode: 1920x1080@60Hz Connectors: eDP-1[19], HDMI-A-1[32] (NC)
Test assertion failure function test_crtc_config, file kms_setmode.c:431:
Failed assertion: config_failed == !!(tconf->flags & TEST_INVALID)
Last errno: 2, No such file or directory
Subtest invalid-clone-single-crtc: FAIL (1.130s)

[   34.805516] ------------[ cut here ]------------
[   34.805545] kernel BUG at drivers/gpu/drm/i915/i915_gem.c:4212!
[   34.805577] invalid opcode: 0000 [#1] SMP
[   34.805602] Modules linked in: dm_mod iTCO_wdt iTCO_vendor_support ppdev snd_hda_codec_hdmi snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep snd_pcm pcspkr i2c_i801 lpc_ich mfd_core snd_timer snd soundcore battery parport_pc parport ac acpi_cpufreq i915 button video drm_kms_helper drm cfbfillrect cfbimgblt cfbcopyarea
[   34.805795] CPU: 0 PID: 4661 Comm: kms_setmode Not tainted 3.18.0-rc4_drm-intel-nightly_22ba72_20141113+ #1486
[   34.805847] task: ffff880002637800 ti: ffff8800a74cc000 task.ti: ffff8800a74cc000
[   34.805887] RIP: 0010:[<ffffffffa00a33b0>]  [<ffffffffa00a33b0>] i915_gem_object_ggtt_unpin+0x27/0x6d [i915]
[   34.805952] RSP: 0018:ffff8800a74cfc10  EFLAGS: 00010246
[   34.805981] RAX: ffff880002dc7200 RBX: ffff880002d99a40 RCX: ffff880002dc7200
[   34.806018] RDX: ffff880002dc7270 RSI: ffff880002e27ad8 RDI: ffff880002d99a40
[   34.806056] RBP: ffff880002dc7200 R08: 0000000000000002 R09: 00000000fffffffe
[   34.806093] R10: 00000000fffffffe R11: ffff880002e20000 R12: ffff8801434a9000
[   34.806131] R13: ffff880002d99a00 R14: ffff8801434a9060 R15: ffff8801486f3000
[   34.806169] FS:  00007f9f161f38c0(0000) GS:ffff88014dc00000(0000) knlGS:0000000000000000
[   34.806211] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   34.806242] CR2: 000000000061804d CR3: 0000000002333000 CR4: 00000000003407f0
[   34.806279] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   34.806317] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[   34.806354] Stack:
[   34.806365]  ffff880002d99a40 ffff8801486f3000 ffff8801434a9000 ffff880002d99a40
[   34.806409]  ffffffffa00a42f2 ffff8801434a9000 ffffffffa00cf0d2 ffff88014dc126f0
[   34.806453]  ffffffffa010c210 ffff8801434a9360 ffff880002e20000 ffff88014807d700
[   34.806497] Call Trace:
[   34.806521]  [<ffffffffa00a42f2>] ? i915_gem_object_unpin_from_display_plane+0x9/0x4b [i915]
[   34.806576]  [<ffffffffa00cf0d2>] ? __intel_set_mode+0x2f2/0x98a [i915]
[   34.806621]  [<ffffffffa00d4a95>] ? intel_crtc_set_config+0x83e/0xbf6 [i915]
[   34.806665]  [<ffffffffa0017f31>] ? drm_mode_set_config_internal+0x4e/0xd2 [drm]
[   34.806709]  [<ffffffffa001813d>] ? drm_framebuffer_remove+0x75/0xf8 [drm]
[   34.806751]  [<ffffffffa001be76>] ? drm_fb_release+0x74/0x93 [drm]
[   34.806788]  [<ffffffffa000f410>] ? drm_release+0x2b5/0x449 [drm]
[   34.806823]  [<ffffffff8178ba63>] ? __schedule+0x6cb/0x850
[   34.806855]  [<ffffffff8110d40e>] ? __fput+0xdb/0x1a8
[   34.806884]  [<ffffffff8104a834>] ? task_work_run+0x73/0x87
[   34.806914]  [<ffffffff81002674>] ? do_notify_resume+0x5b/0x6c
[   34.806947]  [<ffffffff8178ea3f>] ? int_signal+0x12/0x17
[   34.806975] Code: 5d 41 5c c3 41 55 41 54 55 53 48 89 fb e8 44 ff ff ff 48 85 c0 48 89 c5 75 02 0f 0b 44 8a a0 b0 00 00 00 41 b5 0f 45 20 e5 75 02 <0f> 0b 48 8b 43 08 48 89 df 48 8b 70 28 48 81 c6 d8 7a 00 00 e8
[   34.807151] RIP  [<ffffffffa00a33b0>] i915_gem_object_ggtt_unpin+0x27/0x6d [i915]
[   34.807201]  RSP <ffff8800a74cfc10>

==Reproduce steps==
---------------------------- 
1. ./kms_setmode --run-subtest invalid-clone-single-crtc
Comment 1 lu hua 2014-11-13 05:59:43 UTC
It also impacts BYT.
Run this case on BYT, it doesn't exit testing, and system is no response.
Comment 2 lu hua 2014-11-13 06:02:40 UTC
It also happens on HSW.
Comment 3 lu hua 2014-11-14 02:09:59 UTC
Bisect shows a642010b26ea65adae53cbfaaa5936cc6548bbfd is the firs bad commit.
commit a642010b26ea65adae53cbfaaa5936cc6548bbfd
Author:     Jesse Barnes <jbarnes@virtuousgeek.org>
AuthorDate: Fri Nov 7 13:11:00 2014 -0800
Commit:     Daniel Vetter <daniel.vetter@ffwll.ch>
CommitDate: Wed Nov 12 09:21:29 2014 +0100

    drm/i915: use compute_config in set_config v4

    This will allow us to consult more info before deciding whether to flip
    or do a full mode set.

    v2:
      - don't use uninitialized or incorrect pipe masks in set_config
        failure path (Ander)
    v3:
      - fixup for pipe_config changes in compute_config (Jesse)
    v4:
      - drop spurious hunk in force restore path (Ander)

    Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
    Reviewed-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Comment 4 Daniel Vetter 2014-11-18 12:47:28 UTC
commit 6ac0483b35bfc7546398d1198b65ed7be17f3cc5
Author: Matt Roper <matthew.d.roper@intel.com>
Date:   Mon Nov 17 09:59:28 2014 -0800

    drm/i915: Propagate invalid setcrtc cloning errors back to userspace

*** This bug has been marked as a duplicate of bug 86226 ***
Comment 5 Elizabeth 2017-10-06 14:33:53 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.