[Intel-gfx] [Regression] WARNING: drivers/gpu/drm/i915/i915_gem.c:4525 i915_gem_free_object

From: Andrey Skvortsov
Date: Mon Feb 23 2015 - 15:11:03 EST



> > > Those two warnings are more or less symptoms of the black screen (well
> > > the first is just overzealous). More important would be the drm.debug=6
> > > dmesg from boot along with the gdm.log (or equivalent) aned Xorg.0.log
> > > as my guess is that X (or the display server) is crashing.
> >
> > Requested logs with drm.debug=6 are attached. lightdm was running after WARN_ON, but I couldn't restart it.
> > The command hanged.
> >
> > As I booted next-20150202 system crashed several times with a lot of drm_ calls in the backtrace, but I couldn't catch kernel logs,
> > because I have not serial port on the laptop.
> >
> > If you need to get other information or to test patches, I would be glad to help.
>
> Right, here it looks like it freezing in intel_get_load_detect_pipe()
> during the initial configuration probe of X. Given the other crashes,
> we're back to worring about memory corruption.
>
> > [ 29.292333] [drm:intel_tv_detect] [CONNECTOR:33:SVIDEO-1] force=1
> > [ 29.292336] [drm:intel_get_load_detect_pipe] [CONNECTOR:33:SVIDEO-1], [ENCODER:34:TV-34]
> > [ 29.292339] [drm:intel_get_load_detect_pipe] creating tmp fb for load-detection
> > [ 29.292396] [drm:intel_modeset_affected_pipes] set mode pipe masks: modeset: 1, prepare: 1, disable: 0
> > [ 29.292408] [drm:connected_sink_compute_bpp] [CONNECTOR:33:SVIDEO-1] checking for sink bpp constrains
> > [ 29.292413] [drm:intel_tv_compute_config] forcing bpc to 8 for TV
> > [ 29.292416] [drm:intel_modeset_pipe_config] plane bpp: 24, pipe bpp: 24, dithering: 0
> > [ 29.292418] [drm:intel_dump_pipe_config] [CRTC:20][modeset] config for pipe A
> > [ 29.292419] [drm:intel_dump_pipe_config] cpu_transcoder: A
> > [ 29.292421] [drm:intel_dump_pipe_config] pipe bpp: 24, dithering: 0
> > [ 29.292423] [drm:intel_dump_pipe_config] fdi/pch: 0, lanes: 0, gmch_m: 0, gmch_n: 0, link_m: 0, link_n: 0, tu: 0
> > [ 29.292425] [drm:intel_dump_pipe_config] dp: 0, gmch_m: 0, gmch_n: 0, link_m: 0, link_n: 0, tu: 0
> > [ 29.292428] [drm:intel_dump_pipe_config] dp: 0, gmch_m2: 0, gmch_n2: 0, link_m2: 0, link_n2: 0, tu2: 0
> > [ 29.292429] [drm:intel_dump_pipe_config] audio: 0, infoframes: 0
> > [ 29.292431] [drm:intel_dump_pipe_config] requested mode:
> > [ 29.292433] [drm:drm_mode_debug_printmodeline] Modeline 0:"NTSC 480i" 0 107520 1280 1368 1496 1712 1024 1027 1034 1104 0x40 0x0
> > [ 29.292435] [drm:intel_dump_pipe_config] adjusted mode:
> > [ 29.292438] [drm:drm_mode_debug_printmodeline] Modeline 0:"NTSC 480i" 0 107520 1280 1368 1496 1712 1024 1027 1034 1104 0x40 0x0
> > [ 29.292440] [drm:intel_dump_crtc_timings] crtc timings: 108000 1280 1368 1496 1712 1024 1027 1034 1104, type: 0x40 flags: 0x0
> > [ 29.292442] [drm:intel_dump_pipe_config] port clock: 108000
> > [ 29.292444] [drm:intel_dump_pipe_config] pipe src size: 1280x1024
> > [ 29.292446] [drm:intel_dump_pipe_config] gmch pfit: control: 0x00000000, ratios: 0x00000000, lvds border: 0x00000000
> > [ 29.292447] [drm:intel_dump_pipe_config] pch pfit: pos: 0x00000000, size: 0x00000000, disabled
> > [ 29.292449] [drm:intel_dump_pipe_config] ips: 0
> > [ 29.292451] [drm:intel_dump_pipe_config] double wide: 0
> > [ 29.292565] ------------[ cut here ]------------
> > [ 29.293785] WARNING: CPU: 0 PID: 53 at include/linux/kref.h:47 drm_framebuffer_reference+0x5b/0x64 [drm]()
> > [ 29.295032] Modules linked in: bnep(E) cfg80211(E) cpufreq_stats(E) cpufreq_powersave(E) cpufreq_userspace(E) cpufreq_conservative(E) nfsd(E) auth_rpcgss(E) nfs_acl(E) lockd(E) grace(E) sunrpc(E) cdc_wdm(E) cdc_acm(E) cdc_ether(E) usbnet(E) joydev(E) coretemp(E) kvm_intel(E) kvm(E) i8k(E) btusb(E) psmouse(E) snd_pcsp(E) i915(E) evdev(E) bluetooth(E) i2c_i801(E) snd_hda_codec_generic(E) lpc_ich(E) mfd_core(E) xhci_pci(E) xhci_hcd(E) serio_raw(E) rfkill(E) drm_kms_helper(E) drm(E) i2c_algo_bit(E) i2c_core(E) snd_hda_intel(E) snd_hda_controller(E) snd_hda_codec(E) button(E) snd_hwdep(E) battery(E) snd_pcm(E) snd_timer(E) snd(E) soundcore(E) video(E) ac(E) acpi_cpufreq(E) processor(E) fuse(E) parport_pc(E) ppdev(E) lp(E) parport(E) autofs4(E) ext4(E) crc16(E) jbd2(E) mbcache(E) sd_mod(E) ata_generic(E)
> > [ 29.295080] ahci(E) libahci(E) ata_piix(E) libata(E) scsi_mod(E) b44(E) firewire_ohci(E) sdhci_pci(E) sdhci(E) firewire_core(E) crc_itu_t(E) mii(E) ssb(E) mmc_core(E) libphy(E) uhci_hcd(E) ehci_pci(E) ehci_hcd(E) thermal(E) thermal_sys(E) usbcore(E) usb_common(E)
> > [ 29.296301] CPU: 0 PID: 53 Comm: kworker/0:3 Tainted: G W E 3.19.0-rc6-next-20150202-150201- #4
> > [ 29.296303] Hardware name: Dell Inc. Vostro 1500 /0NX907, BIOS A06 04/21/2008
> > [ 29.296314] Workqueue: events output_poll_execute [drm_kms_helper]
> > [ 29.296316] 0000000000000000 0000000000000009 ffffffff813e790a 0000000000000000
> > [ 29.296319] ffffffff8104178e ffff880197a38e40 ffffffffa04eb56d 0000000000000000
> > [ 29.296323] ffff880195844d80 0000000000000500 0000000000000400 0000000000000000
> > [ 29.296326] Call Trace:
> > [ 29.296332] [<ffffffff813e790a>] ? dump_stack+0x4a/0x74
> > [ 29.296337] [<ffffffff8104178e>] ? warn_slowpath_common+0x9d/0xb5
> > [ 29.296354] [<ffffffffa04eb56d>] ? drm_framebuffer_reference+0x5b/0x64 [drm]
> > [ 29.296368] [<ffffffffa04eb56d>] ? drm_framebuffer_reference+0x5b/0x64 [drm]
> > [ 29.296408] [<ffffffffa07e01fc>] ? intel_plane_duplicate_state+0x4d/0x69 [i915]
> > [ 29.296415] [<ffffffffa054cb22>] ? drm_plane_helper_update+0x61/0xff [drm_kms_helper]
> > [ 29.296439] [<ffffffffa07caf84>] ? __intel_set_mode+0x796/0x89a [i915]
> > [ 29.296464] [<ffffffffa07cfc43>] ? intel_set_mode+0x6e/0x8f [i915]
> > [ 29.296489] [<ffffffffa07d00b7>] ? intel_get_load_detect_pipe+0x382/0x420 [i915]
> > [ 29.296517] [<ffffffffa07faa8c>] ? intel_tv_detect+0x116/0x43d [i915]
> > [ 29.296522] [<ffffffff8105f8ed>] ? preempt_count_sub+0xab/0xca
> > [ 29.296529] [<ffffffffa054bf5b>] ? drm_helper_probe_single_connector_modes_merge_bits+0xc7/0x392 [drm_kms_helper]
> > [ 29.296538] [<ffffffffa0552fa2>] ? drm_fb_helper_probe_connector_modes+0x3d/0x51 [drm_kms_helper]
> > [ 29.296545] [<ffffffffa0554a25>] ? drm_fb_helper_hotplug_event+0x75/0xac [drm_kms_helper]
> > [ 29.296551] [<ffffffffa054bd85>] ? output_poll_execute+0x125/0x154 [drm_kms_helper]
> > [ 29.296555] [<ffffffff810543c6>] ? process_one_work+0x171/0x28e
> > [ 29.296558] [<ffffffff810546b2>] ? worker_thread+0x1a5/0x272
> > [ 29.296560] [<ffffffff8105450d>] ? process_scheduled_works+0x2a/0x2a
> > [ 29.296564] [<ffffffff8105812d>] ? kthread+0x9e/0xa6
> > [ 29.296567] [<ffffffff8105808f>] ? __kthread_parkme+0x5c/0x5c
> > [ 29.296571] [<ffffffff813ec2ac>] ? ret_from_fork+0x7c/0xb0
> > [ 29.296574] [<ffffffff8105808f>] ? __kthread_parkme+0x5c/0x5c
> > [ 29.296576] ---[ end trace 4742dbfffee243fc ]---
>
> Which makes me wonder whether this is not the more significant warning?
> -Chris

Hi,

This warning is moved from linux-next to v4.0-rc1 now. After system boot is just a black screen.
I ssh'ed into the machine and saved the log. I attached updated dmesg.log with drm.debug=6. Hopefully it helps.
If you need any other debug information, traces, core dump or something else. Feel free to ask.

--
Best regards,
Andrey Skvortsov

PGP Key ID: 0x57A3AEAD

Attachment: signature.asc
Description: Digital signature