Bug 89099 - [SKL] RPS work (GEN9+: unexpected RPS IRQ)
Summary: [SKL] RPS work (GEN9+: unexpected RPS IRQ)
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: high major
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
: 89119 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-02-12 06:26 UTC by ye.tian
Modified: 2015-05-20 01:19 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg info (82.86 KB, text/plain)
2015-02-12 06:29 UTC, ye.tian
no flags Details
dmesg with drm.debug info (123.29 KB, text/plain)
2015-02-12 08:47 UTC, ye.tian
no flags Details
dmesg info (236.68 KB, text/plain)
2015-02-12 09:29 UTC, ye.tian
no flags Details

Description ye.tian 2015-02-12 06:26:45 UTC
System Environment:       
Platform: SKL
Kernel:  (drm-intel-nightly)b4442ee4e150506cebeee72249efc566c5f14bbe
Libdrm:  (master)libdrm-2.4.59-8-gccbb9aa887f992359335ecf2d26919b04e14e63f
Mesa:    (master)345e8cc8496b4e6c56105c7396e80d85a37e122c
Xserver:   (master)xorg-server-1.17.0
Xf86_video_intel:  (master)2.99.917-100-g5b033d638bbf2c0b841088ca75f9eb8de5852cb5
Cairo:    (master)70cc8f250b5669e757b4f044571ba0f71e3dea9e
Libva:    (master)f9741725839ea144e9a6a1827f74503ee39946c3
Libva_intel_driver:  (master)9a20d6c34cb65e5b85dd16d6c8b3a215c5972b18

Bug detailed description:
--------------------------------------------------
Calltrace after start gnome-session.
Gnome-session version is 3.9.90.

Error info:
[   69.351295] Call Trace:
[   69.351297]  <IRQ>  [<ffffffff8179a69b>] ? dump_stack+0x40/0x50
[   69.351314]  [<ffffffff8103bdec>] ? warn_slowpath_common+0x98/0xb0
[   69.351343]  [<ffffffffa00b4976>] ? gen6_rps_irq_handler+0x38/0xfb [i915]
[   69.351350]  [<ffffffff8103be9c>] ? warn_slowpath_fmt+0x45/0x4a
[   69.351399]  [<ffffffffa00c6226>] ? gen9_write32+0x79/0x29a [i915]
[   69.351425]  [<ffffffffa00b4976>] ? gen6_rps_irq_handler+0x38/0xfb [i915]
[   69.351449]  [<ffffffffa00b5879>] ? gen8_gt_irq_handler.isra.15+0x192/0x21d [i915]
[   69.351472]  [<ffffffffa00b5985>] ? gen8_irq_handler+0x81/0x334 [i915]
[   69.351480]  [<ffffffff81072153>] ? handle_irq_event_percpu+0x4f/0x179
[   69.351487]  [<ffffffff81060a83>] ? run_rebalance_domains+0x36/0x151
[   69.351495]  [<ffffffff810722ab>] ? handle_irq_event+0x2e/0x4f
[   69.351501]  [<ffffffff810746e1>] ? handle_edge_irq+0xbc/0xd1
[   69.351507]  [<ffffffff81004295>] ? handle_irq+0x15/0x20
[   69.351513]  [<ffffffff81003d5a>] ? do_IRQ+0x41/0xc0
[   69.351520]  [<ffffffff817a0baa>] ? common_interrupt+0x6a/0x6a
[   69.351522]  <EOI>  [<ffffffff816b2a29>] ? cpuidle_enter_state+0xa5/0x129
[   69.351534]  [<ffffffff816b29f5>] ? cpuidle_enter_state+0x71/0x129
[   69.351541]  [<ffffffff810655f3>] ? cpu_startup_entry+0x1db/0x2e0
[   69.351546] ---[ end trace 83a1ba909d2d816c ]---

Reproduce steps:
----------------------------
1, xinit& 
2, gnome-session&
Comment 1 ye.tian 2015-02-12 06:29:54 UTC
Created attachment 113388 [details]
dmesg info
Comment 2 ye.tian 2015-02-12 06:31:26 UTC
It also exist after disable ppgtt.
Comment 3 Jani Nikula 2015-02-12 07:27:46 UTC
Please include the part between ------------[ cut here ]------------ and the call trace when reporting bugs with backtraces, i.e.

[   69.351228] WARNING: CPU: 2 PID: 0 at drivers/gpu/drm/i915/i915_irq.c:1750 gen6_rps_irq_handler+0x38/0xfb [i915]()
[   69.351231] GEN9+: unexpected RPS IRQ
[   69.351234] Modules linked in: dm_mod snd_hda_codec_realtek snd_hda_codec_generic ppdev snd_hda_intel pcspkr snd_hda_controller snd_hda_codec snd_hwdep snd_pcm i2c_i801 snd_timer snd soundcore wmi battery parport_pc parport ac acpi_cpufreq i915 button video drm_kms_helper drm cfbfillrect cfbimgblt cfbcopyarea
[   69.351270] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G     U         3.19.0-rc7_drm-intel-nightly_b4442e_20150208+ #198
[   69.351274] Hardware name: Intel Corporation Skylake Client platform/Skylake Y LPDDR3 RVP3, BIOS SKLSE2R1.86C.B069.R00.1501192136 01/19/2015
[   69.351277]  0000000000000000 0000000000000009 ffffffff8179a69b ffff88014e483de8
[   69.351283]  ffffffff8103bdec 000000024e492480 ffffffffa00b4976 ffff880149088068
[   69.351289]  ffff880144380000 0000000000000001 0000000000000010 0000000000000010
[   69.351295] Call Trace:

etc.

Also, please attach dmesg with drm.debug, not i915.debug which does not exist.
Comment 4 Jani Nikula 2015-02-12 07:29:27 UTC
/* TODO: RPS on GEN9+ is not supported yet. */
Comment 5 ye.tian 2015-02-12 08:47:51 UTC
Created attachment 113396 [details]
dmesg with drm.debug info
Comment 6 ye.tian 2015-02-12 08:48:43 UTC
[  349.308315] ------------[ cut here ]------------
[  349.308362] WARNING: CPU: 0 PID: 5614 at drivers/gpu/drm/i915/i915_irq.c:1750 gen6_rps_irq_handler+0x38/0xfb [i915]()
[  349.308366] GEN9+: unexpected RPS IRQ
[  349.308369] Modules linked in: dm_mod ppdev snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_hda_controller serio_raw pcspkr snd_hda_codec snd_hwdep snd_pcm snd_timer snd soundcore i2c_i801 wmi battery parport_pc parport ac acpi_cpufreq i915 button video drm_kms_helper drm cfbfillrect cfbimgblt cfbcopyarea
[  349.308411] CPU: 0 PID: 5614 Comm: nautilus Tainted: G        W      3.19.0-rc7_drm-intel-nightly_9583cb_20150205+ #78
[  349.308416] Hardware name: Intel Corporation Skylake Client platform/Skylake Y LPDDR3 RVP3, BIOS SKLSE2R1.86C.B068.R00.1501090908 01/09/2015
[  349.308420]  0000000000000000 0000000000000009 ffffffff8179a69b ffff88014e403de8
[  349.308425]  ffffffff8103bdec ffff8801441bf000 ffffffffa00b4a06 0000000000000246
[  349.308430]  ffff880004d10000 0000000000000001 0000000000000010 0000000000000010
[  349.308435] Call Trace:
[  349.308437]  <IRQ>  [<ffffffff8179a69b>] ? dump_stack+0x40/0x50
[  349.308453]  [<ffffffff8103bdec>] ? warn_slowpath_common+0x98/0xb0
[  349.308475]  [<ffffffffa00b4a06>] ? gen6_rps_irq_handler+0x38/0xfb [i915]
[  349.308481]  [<ffffffff8103be9c>] ? warn_slowpath_fmt+0x45/0x4a
[  349.308509]  [<ffffffffa00c61d2>] ? gen9_write32+0x79/0x29a [i915]
[  349.308529]  [<ffffffffa00b4a06>] ? gen6_rps_irq_handler+0x38/0xfb [i915]
[  349.308550]  [<ffffffffa00b5909>] ? gen8_gt_irq_handler.isra.15+0x192/0x21d [i915]
[  349.308568]  [<ffffffffa00b5a15>] ? gen8_irq_handler+0x81/0x334 [i915]
[  349.308576]  [<ffffffff81072153>] ? handle_irq_event_percpu+0x4f/0x179
[  349.308582]  [<ffffffff810722ab>] ? handle_irq_event+0x2e/0x4f
[  349.308587]  [<ffffffff810746e1>] ? handle_edge_irq+0xbc/0xd1
[  349.308592]  [<ffffffff81004295>] ? handle_irq+0x15/0x20
[  349.308596]  [<ffffffff81003d5a>] ? do_IRQ+0x41/0xc0
[  349.308601]  [<ffffffff817a0baa>] ? common_interrupt+0x6a/0x6a
[  349.308603]  <EOI>  [<ffffffff817a0092>] ? system_call_fastpath+0x12/0x17
[  349.308610] ---[ end trace a217c161d9041962 ]---
Comment 7 Jani Nikula 2015-02-12 08:55:11 UTC
(In reply to ye.tian from comment #5)
> Created attachment 113396 [details]
> dmesg with drm.debug info

Please do the same with dmesg starting from early boot. Please add log_buf_len=4M or something to get more info if necessary.
Comment 8 ye.tian 2015-02-12 09:29:18 UTC
Created attachment 113397 [details]
dmesg info
Comment 9 Damien Lespiau 2015-02-16 12:13:42 UTC
This is solved by the series from Akash that is on the mailing list. Will review.
Comment 10 ye.tian 2015-02-27 08:34:12 UTC
It also exists on latest kernel(4.0.0-rc1).
Comment 11 ye.tian 2015-02-28 02:28:12 UTC
(In reply to ye.tian from comment #10)
> It also exists on latest kernel(4.0.0-rc1).

kernel(4.0.0-rc1)is -nightly: 376ebc108.
Comment 12 Damien Lespiau 2015-03-09 16:03:03 UTC
Last version of Akash's series is:

  http://lists.freedesktop.org/archives/intel-gfx/2015-March/061479.html

There's also a deadlock with that series, hopefully fixed by that last instalment (Jira: VIZ-5105)
Comment 13 Damien Lespiau 2015-03-10 17:28:03 UTC
*** Bug 89119 has been marked as a duplicate of this bug. ***
Comment 14 Jesse Barnes 2015-03-12 22:04:38 UTC
commit 59fb255e234cc8840dcb2a4ac99b698c3ff9f4cd
Author: Akash Goel <akash.goel@intel.com>
Date:   Fri Mar 6 11:07:23 2015 +0530

    drm/i915/skl: Enabling processing of Turbo interrupts
Comment 15 ye.tian 2015-03-20 01:41:30 UTC
commit aa448626d81d18e74bd24f22eba9a0b0822d3879
Author: Akash Goel <akash.goel@intel.com>
Date:   Fri Mar 6 11:07:23 2015 +0530

    drm/i915/skl: Enabling processing of Turbo interrupts

Verified it on kernel(aa448626d), It does not exists on the latest kernel.


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.