Bug 86685 - [SNB regression]igt/drv_module_reload causes "WARNING: CPU: 0 PID: 4163 at drivers/gpu/drm/i915/i915_irq.c:154 ironlake_disable_vblank+0x40/0x52 [i915]()"
Summary: [SNB regression]igt/drv_module_reload causes "WARNING: CPU: 0 PID: 4163 at dr...
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: DRI git
Hardware: Other All
: high normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-25 06:41 UTC by Guo Jinxian
Modified: 2017-10-06 14:33 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (100.44 KB, text/plain)
2014-11-25 06:41 UTC, Guo Jinxian
no flags Details
dmesg for latest kernel (116.91 KB, text/plain)
2015-02-26 08:17 UTC, Ding Heng
no flags Details

Description Guo Jinxian 2014-11-25 06:41:56 UTC
Created attachment 109983 [details]
dmesg

==System Environment==
--------------------------
Regression: No
The tests always fail, only occurs on -fixes branch.

Non-working platforms: SNB

==kernel==
--------------------------
origin/drm-intel-nightly: ab4b258a6ea5f58b5cb17131aced8f9a8dd64499(works)
    drm-intel-nightly: 2014y-11m-24d-21h-37m-18s UTC integration manifest
origin/drm-intel-next-queued: a259953ea9b7c86e437e0a620d37aad150a00b8f(works)
    drm/i915: Stop gathering error states for CS error interrupts
origin/drm-intel-fixes: bdfa7542d40e6251c232a802231b37116bd31b11(fails)
    drm/i915: Ignore SURFLIVE and flip counter when the GPU gets reset

==Bug detailed description==
igt/drv_module_reload causes "WARNING: CPU: 0 PID: 4163 at drivers/gpu/drm/i915/i915_irq.c:154 ironlake_disable_vblank+0x40/0x52 [i915]()"

Output:
[root@x-hnr9 tests]# ./drv_module_reload
unbinding /sys/class/vtconsole/vtcon0/: (M) frame buffer device
module successfully unloaded
[root@x-hnr9 tests]# dmesg -r|egrep ""<[1-4]>""|grep drm
<4>[  156.110067] WARNING: CPU: 0 PID: 4163 at drivers/gpu/drm/i915/i915_irq.c:154 ironlake_disable_vblank+0x40/0x52 [i915]()
<4>[  156.110071] Modules linked in: dm_mod snd_hda_codec_hdmi iTCO_wdt iTCO_vendor_support ppdev snd_hda_codec_idt snd_hda_codec_generic pcspkr serio_raw uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev firewire_ohci lpc_ich mfd_core snd_hda_controller snd_hda_codec snd_hwdep snd_pcm firewire_core crc_itu_t snd_timer snd soundcore parport_pc parport tpm_infineon tpm_tis tpm wmi ac battery acpi_cpufreq joydev i915(-) button video drm_kms_helper drm cfbfillrect cfbimgblt cfbcopyarea [last unloaded: snd_hda_intel]
<4>[  156.110103] CPU: 0 PID: 4163 Comm: rmmod Not tainted 3.18.0-rc6_drm-intel-fixes_bdfa75_20141125+ #1930
<4>[  156.110161]  [<ffffffffa0010f9e>] ? vblank_disable_and_save+0x74/0x17f [drm]
<4>[  156.110172]  [<ffffffffa0012202>] ? drm_vblank_cleanup+0x48/0x7c [drm]
<4>[  156.110190]  [<ffffffffa0013127>] ? drm_dev_unregister+0x1e/0x8b [drm]
<4>[  156.110197]  [<ffffffffa00139b5>] ? drm_put_dev+0x45/0x4e [drm]
<4>[  156.110225]  [<ffffffffa0015221>] ? drm_pci_exit+0x39/0x9c [drm]
<4>[  156.110258] WARNING: CPU: 0 PID: 4163 at drivers/gpu/drm/i915/i915_irq.c:154 ironlake_disable_vblank+0x40/0x52 [i915]()
<4>[  156.110261] Modules linked in: dm_mod snd_hda_codec_hdmi iTCO_wdt iTCO_vendor_support ppdev snd_hda_codec_idt snd_hda_codec_generic pcspkr serio_raw uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev firewire_ohci lpc_ich mfd_core snd_hda_controller snd_hda_codec snd_hwdep snd_pcm firewire_core crc_itu_t snd_timer snd soundcore parport_pc parport tpm_infineon tpm_tis tpm wmi ac battery acpi_cpufreq joydev i915(-) button video drm_kms_helper drm cfbfillrect cfbimgblt cfbcopyarea [last unloaded: snd_hda_intel]
<4>[  156.110292] CPU: 0 PID: 4163 Comm: rmmod Tainted: G        W      3.18.0-rc6_drm-intel-fixes_bdfa75_20141125+ #1930
<4>[  156.110342]  [<ffffffffa0010f9e>] ? vblank_disable_and_save+0x74/0x17f [drm]
<4>[  156.110351]  [<ffffffffa0012202>] ? drm_vblank_cleanup+0x48/0x7c [drm]
<4>[  156.110368]  [<ffffffffa0013127>] ? drm_dev_unregister+0x1e/0x8b [drm]
<4>[  156.110374]  [<ffffffffa00139b5>] ? drm_put_dev+0x45/0x4e [drm]
<4>[  156.110400]  [<ffffffffa0015221>] ? drm_pci_exit+0x39/0x9c [drm]

==Reproduce steps==
---------------------------- 
1. ./drv_module_reload
Comment 1 Daniel Vetter 2014-11-25 08:39:43 UTC
Just to double-check: -nightly works well?

Also I'm pretty sure that SNB module reload once worked, so upgrading to regression.
Comment 2 Guo Jinxian 2014-11-26 02:17:59 UTC
(In reply to Daniel Vetter from comment #1)
> Just to double-check: -nightly works well?
> 
> Also I'm pretty sure that SNB module reload once worked, so upgrading to
> regression.

Here has another bug 86507 on -nightly 

[root@x-hnr9 ~]# cd /GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests/
[root@x-hnr9 tests]# ./drv_module_reload
unbinding /sys/class/vtconsole/vtcon0/: (M) frame buffer device
module successfully unloaded
[root@x-hnr9 tests]# dmesg -r|egrep "<[1-4]>"|grep drm
<4>[  150.769139] WARNING: CPU: 0 PID: 4160 at drivers/gpu/drm/drm_mm.c:765 i915_global_gtt_cleanup+0x3a/0x80 [i915]()
<4>[  150.769147] Modules linked in: dm_mod snd_hda_codec_hdmi snd_hda_codec_idt snd_hda_codec_generic iTCO_wdt iTCO_vendor_support ppdev joydev pcspkr serio_raw uvcvideo videobuf2_vmalloc videobuf2_memops firewire_ohci videobuf2_core v4l2_common videodev snd_hda_controller snd_hda_codec firewire_core snd_hwdep crc_itu_t snd_pcm lpc_ich mfd_core snd_timer snd soundcore wmi parport_pc parport battery tpm_infineon tpm_tis tpm ac acpi_cpufreq i915(-) button video drm_kms_helper drm cfbfillrect cfbimgblt cfbcopyarea [last unloaded: snd_hda_intel]
<4>[  150.769199] CPU: 0 PID: 4160 Comm: rmmod Not tainted 3.18.0-rc6_drm-intel-nightly_ab4b25_20141125+ #1918
<4>[  150.769310]  [<ffffffffa0023959>] ? drm_modeset_unlock_all+0x41/0x50 [drm]
<4>[  150.769320]  [<ffffffffa001308d>] ? drm_dev_unregister+0x1e/0x8b [drm]
<4>[  150.769331]  [<ffffffffa001394f>] ? drm_put_dev+0x3e/0x47 [drm]
<4>[  150.769374]  [<ffffffffa00151a1>] ? drm_pci_exit+0x39/0x9c [drm]
<4>[  150.769478] CPU: 0 PID: 4160 Comm: rmmod Tainted: G    B   W      3.18.0-rc6_drm-intel-nightly_ab4b25_20141125+ #1918
<4>[  150.769617]  [<ffffffffa0023959>] ? drm_modeset_unlock_all+0x41/0x50 [drm]
<4>[  150.769624]  [<ffffffffa001308d>] ? drm_dev_unregister+0x1e/0x8b [drm]
<4>[  150.769631]  [<ffffffffa001394f>] ? drm_put_dev+0x3e/0x47 [drm]
<4>[  150.769657]  [<ffffffffa00151a1>] ? drm_pci_exit+0x39/0x9c [drm]
<4>[  150.769679] CPU: 0 PID: 4160 Comm: rmmod Tainted: G    B   W      3.18.0-rc6_drm-intel-nightly_ab4b25_20141125+ #1918
<4>[  150.769720]  [<ffffffffa0023959>] ? drm_modeset_unlock_all+0x41/0x50 [drm]
<4>[  150.769726]  [<ffffffffa001308d>] ? drm_dev_unregister+0x1e/0x8b [drm]
<4>[  150.769733]  [<ffffffffa001394f>] ? drm_put_dev+0x3e/0x47 [drm]
<4>[  150.769770]  [<ffffffffa00151a1>] ? drm_pci_exit+0x39/0x9c [drm]
Comment 3 Daniel Vetter 2014-11-26 08:25:55 UTC
(In reply to Guo Jinxian from comment #2)
> (In reply to Daniel Vetter from comment #1)
> > Just to double-check: -nightly works well?
> > 
> > Also I'm pretty sure that SNB module reload once worked, so upgrading to
> > regression.
> 
> Here has another bug 86507 on -nightly

In that bug report I've specifically asked to check whether this happens on snb

https://bugs.freedesktop.org/show_bug.cgi?id=86507#c3

said no. Please be more careful with checking this. Has the fix for hsw also addressed the snb backtrace "memory manager not clean"? If not please file a new bug report for that backtrace.

Also this is a different from the one of this bug report, so bisecting is still possible.
Comment 4 Guo Jinxian 2014-11-28 06:31:42 UTC
Another dmesg warning occurs on IVB, I am not sure if is the failure relate to this bug.


[root@x-ivb6 tests]# ./drv_module_reload
unbinding /sys/class/vtconsole/vtcon0/: (M) frame buffer device
module successfully unloaded
module successfully loaded again
[root@x-ivb6 tests]# dmesg -r|egrep "<[1-4]>"|grep drm
<4>[  155.833797] 3.18.0-rc6_drm-intel-fixes_afa4e5_20141128_debug+ #2040 Not tainted
<4>[  155.833848]        [<ffffffffa0013aa7>] drm_dev_register+0x84/0xfd [drm]
<4>[  155.833855]        [<ffffffffa0016404>] drm_get_pci_dev+0xff/0x1b6 [drm]
<4>[  155.833879]        [<ffffffffa0016513>] drm_pci_init+0x58/0xd9 [drm]
<4>[  155.833917] CPU: 2 PID: 4078 Comm: drv_module_relo Not tainted 3.18.0-rc6_drm-intel-fixes_afa4e5_20141128_debug+ #2040
<4>[  155.901341] WARNING: CPU: 1 PID: 4115 at drivers/gpu/drm/i915/i915_irq.c:154 ironlake_disable_display_irq+0x36/0x77 [i915]()
<4>[  155.901345] Modules linked in: ip6table_filter ip6_tables ipv6 iptable_filter ip_tables ebtable_nat ebtables x_tables iTCO_wdt iTCO_vendor_support ppdev snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic dm_mod pcspkr i2c_i801 snd_hda_controller snd_hda_codec snd_hwdep snd_pcm snd_timer snd lpc_ich mfd_core soundcore battery parport_pc parport wmi acpi_cpufreq i915(-) button video drm_kms_helper drm cfbfillrect cfbimgblt cfbcopyarea [last unloaded: snd_hda_intel]
<4>[  155.901378] CPU: 1 PID: 4115 Comm: rmmod Not tainted 3.18.0-rc6_drm-intel-fixes_afa4e5_20141128_debug+ #2040
<4>[  155.901415]  [<ffffffffa001114a>] ? get_drm_timestamp+0x1b/0x2e [drm]
<4>[  155.901462]  [<ffffffffa0011535>] vblank_disable_and_save+0x7b/0x188 [drm]
<4>[  155.901469]  [<ffffffffa00128a3>] drm_vblank_cleanup+0x4f/0x85 [drm]
<4>[  155.901495]  [<ffffffffa00138c0>] drm_dev_unregister+0x29/0x9a [drm]
<4>[  155.901503]  [<ffffffffa0014255>] drm_put_dev+0x51/0x5d [drm]
<4>[  155.901579]  [<ffffffffa0015cb2>] drm_pci_exit+0x46/0x8e [drm]
<4>[  155.901628] WARNING: CPU: 1 PID: 4115 at drivers/gpu/drm/i915/i915_irq.c:154 ironlake_disable_display_irq+0x36/0x77 [i915]()
<4>[  155.901631] Modules linked in: ip6table_filter ip6_tables ipv6 iptable_filter ip_tables ebtable_nat ebtables x_tables iTCO_wdt iTCO_vendor_support ppdev snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic dm_mod pcspkr i2c_i801 snd_hda_controller snd_hda_codec snd_hwdep snd_pcm snd_timer snd lpc_ich mfd_core soundcore battery parport_pc parport wmi acpi_cpufreq i915(-) button video drm_kms_helper drm cfbfillrect cfbimgblt cfbcopyarea [last unloaded: snd_hda_intel]
<4>[  155.901662] CPU: 1 PID: 4115 Comm: rmmod Tainted: G        W      3.18.0-rc6_drm-intel-fixes_afa4e5_20141128_debug+ #2040
<4>[  155.901694]  [<ffffffffa001114a>] ? get_drm_timestamp+0x1b/0x2e [drm]
<4>[  155.901737]  [<ffffffffa0011535>] vblank_disable_and_save+0x7b/0x188 [drm]
<4>[  155.901744]  [<ffffffffa00128a3>] drm_vblank_cleanup+0x4f/0x85 [drm]
<4>[  155.901768]  [<ffffffffa00138c0>] drm_dev_unregister+0x29/0x9a [drm]
<4>[  155.901775]  [<ffffffffa0014255>] drm_put_dev+0x51/0x5d [drm]
<4>[  155.901849]  [<ffffffffa0015cb2>] drm_pci_exit+0x46/0x8e [drm]
<4>[  155.901894] WARNING: CPU: 1 PID: 4115 at drivers/gpu/drm/i915/i915_irq.c:154 ironlake_disable_display_irq+0x36/0x77 [i915]()
<4>[  155.901898] Modules linked in: ip6table_filter ip6_tables ipv6 iptable_filter ip_tables ebtable_nat ebtables x_tables iTCO_wdt iTCO_vendor_support ppdev snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic dm_mod pcspkr i2c_i801 snd_hda_controller snd_hda_codec snd_hwdep snd_pcm snd_timer snd lpc_ich mfd_core soundcore battery parport_pc parport wmi acpi_cpufreq i915(-) button video drm_kms_helper drm cfbfillrect cfbimgblt cfbcopyarea [last unloaded: snd_hda_intel]
<4>[  155.901927] CPU: 1 PID: 4115 Comm: rmmod Tainted: G        W      3.18.0-rc6_drm-intel-fixes_afa4e5_20141128_debug+ #2040
<4>[  155.901958]  [<ffffffffa001114a>] ? get_drm_timestamp+0x1b/0x2e [drm]
<4>[  155.902000]  [<ffffffffa0011535>] vblank_disable_and_save+0x7b/0x188 [drm]
<4>[  155.902007]  [<ffffffffa00128a3>] drm_vblank_cleanup+0x4f/0x85 [drm]
<4>[  155.902031]  [<ffffffffa00138c0>] drm_dev_unregister+0x29/0x9a [drm]
<4>[  155.902038]  [<ffffffffa0014255>] drm_put_dev+0x51/0x5d [drm]
<4>[  155.902110]  [<ffffffffa0015cb2>] drm_pci_exit+0x46/0x8e [drm]
Comment 5 Jani Nikula 2015-02-12 13:13:04 UTC
Please retest on current drm-intel-nightly.
Comment 6 Ding Heng 2015-02-26 08:17:25 UTC
Created attachment 113836 [details]
dmesg for latest kernel

test with latest kernel b18ca534ab790c19aefe8ecbec46d1bc7a31ce1e(2015-02-26)
case still fail.
Comment 7 Daniel Vetter 2015-03-18 11:15:10 UTC
(In reply to Ding Heng from comment #6)
> Created attachment 113836 [details]
> dmesg for latest kernel
> 
> test with latest kernel b18ca534ab790c19aefe8ecbec46d1bc7a31ce1e(2015-02-26)
> case still fail.

I don't see any backtraces in that dmesg, and we really should have fixed the original backtrace bug in latest kernels.

If there's a new bug with module reloading, please file a new bug report. Only reopen this one if you still have the backtrace in the ilk vblank code.
Comment 8 Ding Heng 2015-03-19 02:19:45 UTC
Pass with latest nightly branch 3753ea527e539d3358a6368e77cb29ecb2e71c42(2015-03-18). Change state to verified.
Comment 9 Elizabeth 2017-10-06 14:33:26 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.