← Back to team overview

kernel-packages team mailing list archive

[Bug 1324935] Re: [Dell Inspiron 1525] WARNING: CPU: 1 PID: 1154 at /build/buildd/linux-3.13.0/drivers/gpu/drm/i915/intel_display.c:9226 intel_modeset_check_state+0x62d/0x780 [i915]()

 

I finished the bisect. I am running xubuntu 14.04. I pulled mainline
kernels v3.6 which worked without error and v3.7 which exhibited the
error. I then bisected between the 2. It took 14 steps and concluded
with this which makes more sense:

24929352481f085c5f85d4d4cbc919ddf106d381 is the first bad commit
commit 24929352481f085c5f85d4d4cbc919ddf106d381
Author: Daniel Vetter <daniel.vetter@xxxxxxxx>
Date:   Mon Jul 2 20:28:59 2012 +0200

    drm/i915: read out the modeset hw state at load and resume time
    
    ... instead of resetting a few things and hoping that this will work out.
    
    To properly disable the output pipelines at the initial modeset after
    resume or boot up we need to have an accurate picture of which outputs
    are enabled and connected to which crtcs. Otherwise we risk disabling
    things at the wrong time, which can lead to hangs (or at least royally
    confused panels), both requiring a walk to the reset button to fix.
    
    Hence read out the hw state with the freshly introduce get_hw_state
    functions and then sanitize it afterwards.
    
    For a full modeset readout (which would allow us to avoid the initial
    modeset at boot up) a few things are still missing:
    - Reading out the mode from the pipe, especially the dotclock
      computation is quite some fun.
    - Reading out the parameters for the stolen memory framebuffer and
      wrapping it up.
    - Reading out the pch pll connections - luckily the disable code
      simply bails out if the crtc doesn't have a pch pll attached (even
      for configurations that would need one).
    
    This patch here turned up tons of smelly stuff around resume: We
    restore tons of register in seemingly random way (well, not quite, but
    we're not too careful either), which leaves the hw in a rather
    ill-defined state: E.g. the port registers are sometimes
    unconditionally restore (lvds, crt), leaving us with an active
    encoder/connector but no active pipe connected to it. Luckily the hw
    state sanitizer detects this madness and fixes things up a bit.
    
    v2: When checking whether an encoder with active connectors has a crtc
    wire up to it, check for both the crtc _and_ it's active state.
    
    v3:
    - Extract intel_sanitize_encoder.
    - Manually disable active encoders without an active pipe.
    
    v4: Correclty fix up the pipe<->plane mapping on machines where we
    switch pipes/planes. Noticed by Chris Wilson, who also provided the
    fixup.
    
    v5: Spelling fix in a comment, noticed by Paulo Zanoni
    
    Reviewed-by: Jesse Barnes <jbarnes@xxxxxxxxxxxxxxxx>
    Signed-Off-by: Daniel Vetter <daniel.vetter@xxxxxxxx>

:040000 040000 27592a2f94f6651cf1e96e8826c0d365de7b298c
416fd34aacc0e3f8248a6ff4a1095157f24ad4dd M      drivers

What next?

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1324935

Title:
  [Dell Inspiron 1525] WARNING: CPU: 1 PID: 1154 at
  /build/buildd/linux-3.13.0/drivers/gpu/drm/i915/intel_display.c:9226
  intel_modeset_check_state+0x62d/0x780 [i915]()

Status in “linux” package in Ubuntu:
  Incomplete

Bug description:
  Dmesg is filled with this:
  [32582.450283] ------------[ cut here ]------------
  [32582.450302] WARNING: CPU: 1 PID: 1154 at /build/buildd/linux-3.13.0/drivers/gpu/drm/i915/intel_display.c:9226 intel_modeset_check_state+0x62d/0x780 [i915]()
  [32582.450304] encoder's hw state doesn't match sw tracking (expected 0, found 1)
  [32582.450306] Modules linked in: nfsv3 ctr ccm rfcomm bnep bluetooth rpcsec_gss_krb5 nfsv4 binfmt_misc nfsd auth_rpcgss nfs_acl nfs lockd sunrpc fscache arc4 gpio_ich dell_wmi sparse_keymap uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core videodev dell_laptop dcdbas snd_hda_codec_idt snd_hda_codec_hdmi b43 snd_hda_intel snd_hda_codec snd_hwdep snd_pcm bcma coretemp snd_page_alloc snd_seq_midi snd_seq_midi_event snd_rawmidi joydev snd_seq serio_raw mac80211 snd_seq_device snd_timer snd lpc_ich cfg80211 ssb_hcd soundcore mac_hid wmi parport_pc ppdev lp parport psmouse ahci libahci sky2 ssb i915 video i2c_algo_bit drm_kms_helper drm
  [32582.450357] CPU: 1 PID: 1154 Comm: Xorg Tainted: G        W    3.13.0-27-generic #50-Ubuntu
  [32582.450359] Hardware name: Dell Inc. Inspiron 1525                   /0U990C, BIOS A17 10/27/2009
  [32582.450361]  0000000000000009 ffff88000003bb68 ffffffff817199c4 ffff88000003bbb0
  [32582.450365]  ffff88000003bba0 ffffffff810676bd ffff88000003bc20 0000000000000001
  [32582.450369]  ffff88003684c800 ffff88003684caf8 ffff8800364a9800 ffff88000003bc00
  [32582.450373] Call Trace:
  [32582.450378]  [<ffffffff817199c4>] dump_stack+0x45/0x56
  [32582.450381]  [<ffffffff810676bd>] warn_slowpath_common+0x7d/0xa0
  [32582.450384]  [<ffffffff8106772c>] warn_slowpath_fmt+0x4c/0x50
  [32582.450405]  [<ffffffffa012fd25>] ? intel_sdvo_get_hw_state+0x55/0xc0 [i915]
  [32582.450423]  [<ffffffffa011a16d>] intel_modeset_check_state+0x62d/0x780 [i915]
  [32582.450441]  [<ffffffffa011a355>] intel_set_mode+0x25/0x30 [i915]
  [32582.450459]  [<ffffffffa011abfb>] intel_crtc_set_config+0x7ab/0x9a0 [i915]
  [32582.450463]  [<ffffffff810428ad>] ? lapic_next_event+0x1d/0x30
  [32582.450477]  [<ffffffffa000fe9d>] drm_mode_set_config_internal+0x5d/0xe0 [drm]
  [32582.450492]  [<ffffffffa0012d87>] drm_mode_setcrtc+0xf7/0x5e0 [drm]
  [32582.450503]  [<ffffffffa0003c22>] drm_ioctl+0x502/0x630 [drm]
  [32582.450508]  [<ffffffff81077dd2>] ? __set_task_blocked+0x32/0x70
  [32582.450513]  [<ffffffff811cf810>] do_vfs_ioctl+0x2e0/0x4c0
  [32582.450517]  [<ffffffff8109dd84>] ? vtime_account_user+0x54/0x60
  [32582.450520]  [<ffffffff811cfa71>] SyS_ioctl+0x81/0xa0
  [32582.450524]  [<ffffffff8172a5bf>] tracesys+0xe1/0xe6
  [32582.450526] ---[ end trace 8e8416ac0cd5b971 ]---

  Resume results in black screen. Graphics can appear completely messed
  up (i.e. torn last jpg viewed over top of latest jpg). This happens in
  Ubuntu 13.10 and 14.04. It happens with: no intel drivers installed,
  and with or without the i915 and intel_agp modules explicitly enabled
  in /etc/initramfs-tools/modules.

  WORKAROUND: Using the following kernel parameters I no longer get the message in the log, the video does not appear to be as crisp somehow, but I can suspend and wake from the command:
  linemodeset=0 video.allow_duplicates=1

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: linux-image-3.13.0-27-generic 3.13.0-27.50
  ProcVersionSignature: Ubuntu 3.13.0-27.50-generic 3.13.11
  Uname: Linux 3.13.0-27-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.2
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  kgrider    2212 F.... pulseaudio
  Date: Fri May 30 08:03:14 2014
  HibernationDevice: RESUME=UUID=4957c02d-b4ca-4dce-8983-450640c97f46
  MachineType: Dell Inc. Inspiron 1525
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 inteldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-27-generic root=UUID=7682c6bb-cf2f-413f-9243-eab8172b5bbc ro quiet splash vt.handoff=7
  RelatedPackageVersions:
   linux-restricted-modules-3.13.0-27-generic N/A
   linux-backports-modules-3.13.0-27-generic  N/A
   linux-firmware                             1.127.2
  RfKill:
   0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
  SourcePackage: linux
  UpgradeStatus: Upgraded to trusty on 2014-05-30 (0 days ago)
  WifiSyslog:
   May 30 06:59:26 Inspiron-1525 NetworkManager[938]: <warn> nl_recvmsgs() error: (-33) Dump inconsistency detected, interrupted
   May 30 07:11:21 Inspiron-1525 wpa_supplicant[1092]: message repeated 29 times: [ wlan0: CTRL-EVENT-SCAN-STARTED ]
   May 30 07:13:02 Inspiron-1525 wpa_supplicant[1092]: wlan0: WPA: Group rekeying completed with 10:0d:7f:52:8a:71 [GTK=TKIP]
   May 30 07:13:21 Inspiron-1525 wpa_supplicant[1092]: wlan0: CTRL-EVENT-SCAN-STARTED
  dmi.bios.date: 10/27/2009
  dmi.bios.vendor: Dell Inc.
  dmi.bios.version: A17
  dmi.board.name: 0U990C
  dmi.board.vendor: Dell Inc.
  dmi.chassis.type: 8
  dmi.chassis.vendor: Dell Inc.
  dmi.modalias: dmi:bvnDellInc.:bvrA17:bd10/27/2009:svnDellInc.:pnInspiron1525:pvr:rvnDellInc.:rn0U990C:rvr:cvnDellInc.:ct8:cvr:
  dmi.product.name: Inspiron 1525
  dmi.sys.vendor: Dell Inc.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1324935/+subscriptions


References