Bug 62091 - [drm:intel_pipe_config_compare] *ERROR* mismatch in adjusted_mode.flags(DRM_MODE_FLAG_NHSYNC) (expected 2, found 0)
Summary: [drm:intel_pipe_config_compare] *ERROR* mismatch in adjusted_mode.flags(DRM_M...
Status: RESOLVED PATCH_ALREADY_AVAILABLE
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - Intel) (show other bugs)
Hardware: x86-64 Linux
: P1 high
Assignee: intel-gfx-bugs@lists.freedesktop.org
URL:
Keywords:
: 62271 62291 62451 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-09-25 13:56 UTC by Alan Bartlett
Modified: 2013-10-14 02:27 UTC (History)
6 users (show)

See Also:
Kernel Version: linux-3.12-rc2
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments
Selective Output from dmesg command. (7.39 KB, text/plain)
2013-09-25 13:56 UTC, Alan Bartlett
Details
Complete dmesg output. Kernel booted with drm.debug=0xe (111.39 KB, text/plain)
2013-09-25 18:21 UTC, Alan Bartlett
Details

Description Alan Bartlett 2013-09-25 13:56:44 UTC
Created attachment 109621 [details]
Selective Output from dmesg command.

Hardware: Dell Latitude E5500

Relevant lines from lspci -nn command:

00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller [8086:2a42] (rev 07)
00:02.1 Display controller [0380]: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller [8086:2a43] (rev 07)

Selective lines from dmesg output:

Linux agpgart interface v0.103
agpgart-intel 0000:00:00.0: Intel GM45 Chipset
agpgart-intel 0000:00:00.0: detected gtt size: 2097152K total, 262144K mappable
agpgart-intel 0000:00:00.0: detected 32768K stolen memory
agpgart-intel 0000:00:00.0: AGP aperture is 256M @ 0xe0000000
[drm] Initialized drm 1.1.0 20060810

<snip>

[drm] Memory usable by graphics device = 2048M
i915 0000:00:02.0: setting latency timer to 64
i915 0000:00:02.0: irq 45 for MSI/MSI-X
[drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[drm] Driver supports precise vblank timestamp query.
vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
[drm:intel_pipe_config_compare] *ERROR* mismatch in adjusted_mode.flags(DRM_MODE_FLAG_NHSYNC) (expected 2, found 0)
------------[ cut here ]------------
WARNING: CPU: 0 PID: 80 at drivers/gpu/drm/i915/intel_display.c:8769 check_crtc_state+0x29d/0x350 [i915]()
pipe state doesn't match!
Modules linked in: i915(+) drm_kms_helper video
CPU: 0 PID: 80 Comm: modprobe Not tainted 3.12.0-0.rc2.el6.elrepo.x86_64 #1
Hardware name: Dell Inc. Latitude E5500                  /0DW633, BIOS A18 07/24/2012
 0000000000002241 ffff8800dce25448 ffffffff815ffd97 0000000000002241
 ffff8800dce25498 ffff8800dce25488 ffffffff8106836c 000000000000000a
 ffff8800dcff3000 ffff8800dc494c20 ffff8800dc494800 ffff8800dcff36d0
Call Trace:
 [<ffffffff815ffd97>] dump_stack+0x49/0x62
 [<ffffffff8106836c>] warn_slowpath_common+0x8c/0xc0
 [<ffffffff81068456>] warn_slowpath_fmt+0x46/0x50
 [<ffffffffa0050ead>] check_crtc_state+0x29d/0x350 [i915]
 [<ffffffffa00579bb>] intel_modeset_check_state+0x6b/0xa0 [i915]
 [<ffffffffa005e955>] intel_set_mode+0x25/0x30 [i915]
 [<ffffffffa005edfc>] intel_get_load_detect_pipe+0x35c/0x400 [i915]
 [<ffffffffa0080a25>] intel_tv_detect+0xd5/0x1b0 [i915]
 [<ffffffffa000ff6b>] drm_helper_probe_single_connector_modes+0x2bb/0x360 [drm_kms_helper]
 [<ffffffffa000e5fa>] drm_fb_helper_initial_config+0x6a/0xc0 [drm_kms_helper]
 [<ffffffffa007fb21>] intel_fbdev_initial_config+0x21/0x30 [i915]
 [<ffffffffa00213a5>] i915_load_modeset_init+0x1e5/0x220 [i915]
 [<ffffffffa0023668>] i915_driver_load+0x4a8/0x760 [i915]
 [<ffffffff813cc84c>] drm_get_pci_dev+0x13c/0x320
 [<ffffffffa001f671>] i915_pci_probe+0x31/0x60 [i915]
 [<ffffffff812ecf3e>] local_pci_probe+0x4e/0x90
 [<ffffffff812ed051>] __pci_device_probe+0xd1/0xe0
 [<ffffffff812ee3c2>] ? pci_dev_get+0x22/0x30
 [<ffffffff812ee40a>] pci_device_probe+0x3a/0x60
 [<ffffffff813e88c1>] really_probe+0x61/0x210
 [<ffffffff813e8aae>] driver_probe_device+0x3e/0x60
 [<ffffffff813e8b7b>] __driver_attach+0xab/0xb0
 [<ffffffff813e8ad0>] ? driver_probe_device+0x60/0x60
 [<ffffffff813e8ad0>] ? driver_probe_device+0x60/0x60
 [<ffffffff813e6be4>] bus_for_each_dev+0x94/0xb0
 [<ffffffff813e870e>] driver_attach+0x1e/0x20
 [<ffffffff813e8128>] bus_add_driver+0x208/0x290
 [<ffffffff813e9214>] driver_register+0x64/0xf0
 [<ffffffffa00d2000>] ? 0xffffffffa00d1fff
 [<ffffffff812ee51c>] __pci_register_driver+0x4c/0x50
 [<ffffffff813ccb45>] drm_pci_init+0x115/0x130
 [<ffffffffa00d2000>] ? 0xffffffffa00d1fff
 [<ffffffffa00d2066>] i915_init+0x66/0x68 [i915]
 [<ffffffff8100204e>] do_one_initcall+0x4e/0x180
 [<ffffffff81059c73>] ? set_memory_nx+0x43/0x50
 [<ffffffff810d9ba0>] do_init_module+0x80/0x1f0
 [<ffffffff810db7a0>] load_module+0x3e0/0x5a0
 [<ffffffff810d94c0>] ? mod_sysfs_teardown+0x150/0x150
 [<ffffffff810d8b40>] ? module_sect_show+0x30/0x30
 [<ffffffff810dbad9>] SyS_init_module+0xc9/0xf0
 [<ffffffff8160ce29>] system_call_fastpath+0x16/0x1b
---[ end trace 590f751ed8b49162 ]---
fbcon: inteldrmfb (fb0) is primary device

<snip>

Console: switching to colour frame buffer device 160x50
i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
i915 0000:00:02.0: registered panic notifier

<snip>

ACPI: Video Device [VID] (multi-head: yes  rom: no  post: no)
input: Video Bus as /devices/LNXSYSTM:00/device:00/PNP0A03:00/LNXVIDEO:00/input/input4
[Firmware Bug]: Duplicate ACPI video bus devices for the same VGA controller, please try module parameter "video.allow_duplicates=1"if the current driver doesn't work.
[drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0

<snip>

[drm:intel_pipe_config_compare] *ERROR* mismatch in adjusted_mode.flags(DRM_MODE_FLAG_NHSYNC) (expected 2, found 0)
------------[ cut here ]------------
WARNING: CPU: 0 PID: 153 at drivers/gpu/drm/i915/intel_display.c:8769 check_crtc_state+0x29d/0x350 [i915]()
pipe state doesn't match!
Modules linked in: i915 drm_kms_helper video
CPU: 0 PID: 153 Comm: plymouthd Tainted: G        W    3.12.0-0.rc2.el6.elrepo.x86_64 #1
Hardware name: Dell Inc. Latitude E5500                  /0DW633, BIOS A18 07/24/2012
 0000000000002241 ffff8800dc4796e8 ffffffff815ffd97 0000000000002241
 ffff8800dc479738 ffff8800dc479728 ffffffff8106836c 000000000000000a
 ffff8800dcff3000 ffff8800dc494c20 ffff8800dc494800 ffff8800dcff36d0
Call Trace:
 [<ffffffff815ffd97>] dump_stack+0x49/0x62
 [<ffffffff8106836c>] warn_slowpath_common+0x8c/0xc0
 [<ffffffff81068456>] warn_slowpath_fmt+0x46/0x50
 [<ffffffffa0050ead>] check_crtc_state+0x29d/0x350 [i915]
 [<ffffffffa00579bb>] intel_modeset_check_state+0x6b/0xa0 [i915]
 [<ffffffffa005e955>] intel_set_mode+0x25/0x30 [i915]
 [<ffffffffa005edfc>] intel_get_load_detect_pipe+0x35c/0x400 [i915]
 [<ffffffffa0080a25>] intel_tv_detect+0xd5/0x1b0 [i915]
 [<ffffffffa000ff6b>] drm_helper_probe_single_connector_modes+0x2bb/0x360 [drm_kms_helper]
 [<ffffffff813d4299>] drm_mode_getconnector+0x3b9/0x3e0
 [<ffffffff813c46a6>] drm_ioctl+0x4c6/0x5d0
 [<ffffffff813d3ee0>] ? drm_mode_getplane+0x120/0x120
 [<ffffffff811bf4a2>] do_vfs_ioctl+0x72/0x370
 [<ffffffff8124c8bf>] ? selinux_file_ioctl+0x4f/0xf0
 [<ffffffff811bf841>] SyS_ioctl+0xa1/0xb0
 [<ffffffff8160ce29>] system_call_fastpath+0x16/0x1b
---[ end trace 590f751ed8b49163 ]---
[drm:intel_pipe_config_compare] *ERROR* mismatch in adjusted_mode.flags(DRM_MODE_FLAG_NHSYNC) (expected 2, found 0)
------------[ cut here ]------------
WARNING: CPU: 0 PID: 153 at drivers/gpu/drm/i915/intel_display.c:8769 check_crtc_state+0x29d/0x350 [i915]()
pipe state doesn't match!
Modules linked in: i915 drm_kms_helper video
CPU: 0 PID: 153 Comm: plymouthd Tainted: G        W    3.12.0-0.rc2.el6.elrepo.x86_64 #1
Hardware name: Dell Inc. Latitude E5500                  /0DW633, BIOS A18 07/24/2012
 0000000000002241 ffff8800dc4796e8 ffffffff815ffd97 0000000000002241
 ffff8800dc479738 ffff8800dc479728 ffffffff8106836c 000000000000000a
 ffff8800dcff3000 ffff8800dc494c20 ffff8800dc494800 ffff8800dcff36d0
Call Trace:
 [<ffffffff815ffd97>] dump_stack+0x49/0x62
 [<ffffffff8106836c>] warn_slowpath_common+0x8c/0xc0
 [<ffffffff81068456>] warn_slowpath_fmt+0x46/0x50
 [<ffffffffa0050ead>] check_crtc_state+0x29d/0x350 [i915]
 [<ffffffffa00579bb>] intel_modeset_check_state+0x6b/0xa0 [i915]
 [<ffffffffa005e955>] intel_set_mode+0x25/0x30 [i915]
 [<ffffffffa005edfc>] intel_get_load_detect_pipe+0x35c/0x400 [i915]
 [<ffffffffa0080a25>] intel_tv_detect+0xd5/0x1b0 [i915]
 [<ffffffffa000ff6b>] drm_helper_probe_single_connector_modes+0x2bb/0x360 [drm_kms_helper]
 [<ffffffff813d4299>] drm_mode_getconnector+0x3b9/0x3e0
 [<ffffffff813c46a6>] drm_ioctl+0x4c6/0x5d0
 [<ffffffff813d3ee0>] ? drm_mode_getplane+0x120/0x120
 [<ffffffff811bf4a2>] do_vfs_ioctl+0x72/0x370
 [<ffffffff8124c8bf>] ? selinux_file_ioctl+0x4f/0xf0
 [<ffffffff811bf841>] SyS_ioctl+0xa1/0xb0
 [<ffffffff81013b05>] ? do_notify_resume+0xb5/0xc0
 [<ffffffff8160ce29>] system_call_fastpath+0x16/0x1b
---[ end trace 590f751ed8b49164 ]---

<snip>
Comment 1 Daniel Vetter 2013-09-25 15:51:47 UTC
Please boot withd drm.debug=0xe, reproduce the issue and attach the complete dmesg.
Comment 2 Alan Bartlett 2013-09-25 18:21:50 UTC
Created attachment 109641 [details]
Complete dmesg output. Kernel booted with drm.debug=0xe

Full dmesg output, as requested.
Comment 3 Daniel Vetter 2013-09-25 22:49:09 UTC
Hah, a TV encoder. You're short of one fix which is already heading towards 3.12-rc kernels:

http://cgit.freedesktop.org/~danvet/drm-intel/commit/?id=1a3a80b7f759f32978475f825912c314956ad406

Thanks for the bug report, I'll presume this is fixed by the above patch. But please reopen in case I've guess wrong.
Comment 4 Alan Bartlett 2013-09-26 21:34:28 UTC
(In reply to Daniel Vetter from comment #3)
> Hah, a TV encoder. You're short of one fix which is already heading towards
> 3.12-rc kernels:
> 
> http://cgit.freedesktop.org/~danvet/drm-intel/commit/
> ?id=1a3a80b7f759f32978475f825912c314956ad406
> 
> Thanks for the bug report, I'll presume this is fixed by the above patch.
> But please reopen in case I've guess wrong.

Hi Daniel,

Just a quick note to confirm that applying the relevant patch [1] resolves this issue.

[1] 1a3a80b7f759f32978475f825912c314956ad406.patch
Comment 5 Daniel Vetter 2013-09-28 13:42:30 UTC
*** Bug 62271 has been marked as a duplicate of this bug. ***
Comment 6 Daniel Vetter 2013-10-02 21:06:06 UTC
*** Bug 62451 has been marked as a duplicate of this bug. ***
Comment 7 Daniel Vetter 2013-10-02 21:14:52 UTC
*** Bug 62291 has been marked as a duplicate of this bug. ***
Comment 8 Dylan Bass 2013-10-03 00:42:46 UTC
I also reproduced this error on 3.11.2 and 3.11.3.  I just compiled 3.12-rc3 on my Dell Inspiron 1300 (i915 GM) and it seems to be fixed!
Comment 9 Akemi Yagi 2013-10-03 00:59:58 UTC
Yes, the patch is in 3.12-rc3 but not (yet) in 3.11. This is because Daniel failed to cc to stable. :)  But he has asked Greg to pick it up, so it will be there soon (I hope) !
Comment 10 Dylan Bass 2013-10-14 02:27:16 UTC
Bug is fixed in 3.11.4 stable.  Also seems to be a lot of i915 fixes in this kernel.  My Xorg is very happy now.

Note You need to log in before you can comment on or make changes to this bug.