Bug 87363

Summary: [BYT] pm_rpm/gem-evict-pwrite failed
Product: DRI Reporter: Yi Sun <yi.sun>
Component: DRM/IntelAssignee: Intel GFX Bugs mailing list <intel-gfx-bugs>
Status: CLOSED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium CC: imre.deak, intel-gfx-bugs
Version: unspecified   
Hardware: Other   
OS: All   
URL: https://bugs.freedesktop.org/show_bug.cgi?id=80465
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
dmesg while case failed none

Description Yi Sun 2014-12-16 14:49:09 UTC
Created attachment 110908 [details]
dmesg while case failed

==System Environment==
--------------------------
Regression: No. 
The fail rate 100%

Non-working platforms: BYT

==kernel==
--------------------------
commit 8d22327ae006186bad9f95c300fad5ecd5e961a4
    drm-intel-nightly: 2014y-12m-15d-17h-14m-29s UTC integration manifest

==Bug detailed description==
-----------------------------

[   53.159109] [drm:intel_runtime_suspend] Device suspended
[   53.257909] ------------[ cut here ]------------
[   53.257949] WARNING: CPU: 1 PID: 4075 at drivers/gpu/drm/i915/intel_uncore.c:47 assert_device_not_suspended+0x45/0x5b [i915]()
[   53.257952] Device suspended
[   53.257954] Modules linked in: dm_mod snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic iTCO_wdt iTCO_vendor_support pcspkr serio_raw i2c_i801 lpc_ich mfd_core snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep snd_pcm snd_timer snd soundcore battery ac acpi_cpufreq i915 button video drm_kms_helper drm cfbfillrect cfbimgblt cfbcopyarea
[   53.257985] CPU: 1 PID: 4075 Comm: pm_rpm Not tainted 3.18.0_drm-intel-nightly_8d2232_20141216+ #2696
[   53.257989]  0000000000000000 0000000000000009 ffffffff8178d5e2 ffff880073d47b08
[   53.257994]  ffffffff8103a8cc ffff880079c00000 ffffffffa00bd16b ffff880076404918
[   53.257998]  ffff880002e80068 ffff880002e80000 0000000000101008 0000000000000001
[   53.258003] Call Trace:
[   53.258013]  [<ffffffff8178d5e2>] ? dump_stack+0x41/0x51
[   53.258020]  [<ffffffff8103a8cc>] ? warn_slowpath_common+0x78/0x90
[   53.258045]  [<ffffffffa00bd16b>] ? assert_device_not_suspended+0x45/0x5b [i915]
[   53.258050]  [<ffffffff8103a97c>] ? warn_slowpath_fmt+0x45/0x4a
[   53.258075]  [<ffffffffa00bd16b>] ? assert_device_not_suspended+0x45/0x5b [i915]
[   53.258099]  [<ffffffffa00c0371>] ? gen6_write32+0x64/0xbf [i915]
[   53.258119]  [<ffffffffa009bc45>] ? gen6_ggtt_insert_entries+0xfe/0x11d [i915]
[   53.258139]  [<ffffffffa009afd1>] ? ggtt_bind_vma+0x72/0xbe [i915]
[   53.258159]  [<ffffffffa009de16>] ? i915_vma_bind+0x82/0x89 [i915]
[   53.258181]  [<ffffffffa00a2c61>] ? i915_gem_object_pin_view+0x459/0x702 [i915]
[   53.258205]  [<ffffffffa00a5113>] ? i915_gem_pwrite_ioctl+0x1a4/0x78d [i915]
[   53.258211]  [<ffffffff8105f54f>] ? pick_next_task_fair+0x325/0x3aa
[   53.258217]  [<ffffffff8133c834>] ? vsnprintf+0x70/0x3cc
[   53.258222]  [<ffffffff8178ff03>] ? __schedule+0x6cb/0x850
[   53.258234]  [<ffffffffa0010740>] ? drm_ioctl+0x279/0x3bc [drm]
[   53.258239]  [<ffffffff8133cbd6>] ? sprintf+0x46/0x4b
[   53.258260]  [<ffffffffa00a4f6f>] ? i915_gem_set_domain_ioctl+0xe9/0xe9 [i915]
[   53.258297]  [<ffffffff813e6dd2>] ? rtpm_status_show+0x6a/0x78
[   53.258318]  [<ffffffff813e6d68>] ? control_show+0x37/0x37
[   53.258340]  [<ffffffff813dfc33>] ? dev_attr_show+0x17/0x48
[   53.258352]  [<ffffffff81168ad6>] ? kernfs_seq_start+0x24/0x7a
[   53.258357]  [<ffffffff81169cd5>] ? sysfs_kf_seq_show+0x79/0xc3
[   53.258362]  [<ffffffff81168aa8>] ? kernfs_seq_stop+0x10/0x1a
[   53.258368]  [<ffffffff8111e6df>] ? do_vfs_ioctl+0x3ec/0x435
[   53.258373]  [<ffffffff8111099b>] ? vfs_read+0x101/0x13f
[   53.258378]  [<ffffffff8111e771>] ? SyS_ioctl+0x49/0x78
[   53.258385]  [<ffffffff81792c92>] ? system_call_fastpath+0x12/0x17
[   53.258388] ---[ end trace fecc0b1eb936d7e9 ]---

==Reproduce steps==
---------------------------- 
1.  ./pm_rpm --subtest=gem-evict-pwrite
Comment 1 Jani Nikula 2014-12-18 13:49:51 UTC
Fixed by

commit 5d77d9c5e177d2182df5d9fd61ba986facb64415
Author: Imre Deak <imre.deak@intel.com>
Date:   Wed Nov 12 16:40:35 2014 +0200

    drm/i915: add missing rpm ref to i915_gem_pwrite_ioctl

in drm-intel-next-queued (and -nightly).
Comment 2 Jani Nikula 2014-12-18 13:59:20 UTC
(In reply to Jani Nikula from comment #1)
> Fixed by
> 
> commit 5d77d9c5e177d2182df5d9fd61ba986facb64415
> Author: Imre Deak <imre.deak@intel.com>
> Date:   Wed Nov 12 16:40:35 2014 +0200
> 
>     drm/i915: add missing rpm ref to i915_gem_pwrite_ioctl
> 
> in drm-intel-next-queued (and -nightly).

I meant drm-intel-next-fixes.
Comment 3 Yi Sun 2014-12-25 00:48:00 UTC
(In reply to Jani Nikula from comment #2)
> (In reply to Jani Nikula from comment #1)
> > Fixed by
> > 
> > commit 5d77d9c5e177d2182df5d9fd61ba986facb64415
> > Author: Imre Deak <imre.deak@intel.com>
> > Date:   Wed Nov 12 16:40:35 2014 +0200
> > 
> >     drm/i915: add missing rpm ref to i915_gem_pwrite_ioctl
> > 
> > in drm-intel-next-queued (and -nightly).
> 
> I meant drm-intel-next-fixes.

Yep, it's passed now on latest -nightly branch.
Comment 4 Elizabeth 2017-10-06 14:33:02 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.