Bug 111917

Summary: [CI][BAT] igt@runner@aborted - fail - TAINT_WARN: WARN_ON has happened, trying to change cdclk frequency with cdclk not enabled
Product: DRI Reporter: Lakshmi <lakshminarayana.vudum>
Component: DRM/IntelAssignee: Intel GFX Bugs mailing list <intel-gfx-bugs>
Status: RESOLVED MOVED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: not set    
Priority: not set CC: intel-gfx-bugs, matthew.d.roper
Version: DRI git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: BDW i915 features:

Description Lakshmi 2019-10-07 13:25:15 UTC
https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3547/fi-bdw-gvtdvm/igt@runner@aborted.html
Out	
Aborting.
Previous test: nothing
Next test: core_auth (basic-auth)

Kernel badly tainted (0x200) (check dmesg for details):
	(0x200) TAINT_WARN: WARN_ON has happened.

Boot log
 
10.323801] trying to change cdclk frequency with cdclk not enabled
<4>[   10.323884] WARNING: CPU: 0 PID: 146 at drivers/gpu/drm/i915/display/intel_cdclk.c:727 bdw_set_cdclk+0x37d/0x3b0 [i915]
<4>[   10.323886] Modules linked in: i915 crct10dif_pclmul crc32_pclmul ghash_clmulni_intel prime_numbers e1000(+) i2c_piix4
<4>[   10.323895] CPU: 0 PID: 146 Comm: kworker/u2:2 Not tainted 5.4.0-rc2-CI-CI_DRM_7021+ #1
<4>[   10.323897] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.10.1-0-g8891697-prebuilt.qemu-project.org 04/01/2014
<4>[   10.323901] Workqueue: events_unbound async_run_entry_fn
<4>[   10.323966] RIP: 0010:bdw_set_cdclk+0x37d/0x3b0 [i915]
<4>[   10.323968] Code: e8 58 d9 f7 e0 0f 0b 8b 04 24 0d 00 00 00 08 e9 01 fe ff ff 0d 00 00 00 04 e9 f7 fd ff ff 48 c7 c7 d8 07 23 a0 e8 33 d9 f7 e0 <0f> 0b 48 83 c4 10 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 83 c4 10 48
<4>[   10.323970] RSP: 0018:ffffc900006db938 EFLAGS: 00010282
<4>[   10.323972] RAX: 0000000000000000 RBX: ffff88806f300000 RCX: 0000000000000001
<4>[   10.323974] RDX: 0000000080000001 RSI: ffff88807b9e3190 RDI: 00000000ffffffff
<4>[   10.323976] RBP: ffff88806f300d80 R08: ffff88807b9e3190 R09: 0000000000000000
<4>[   10.323977] R10: 0000000000000000 R11: 0000000000000000 R12: 00000000ffffffff
<4>[   10.323979] R13: ffff88806bef22a8 R14: ffffffffffffffc8 R15: ffff888070612e98
<4>[   10.323981] FS:  0000000000000000(0000) GS:ffff88807da00000(0000) knlGS:0000000000000000
<4>[   10.323985] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
<4>[   10.323986] CR2: 000055668261fd80 CR3: 0000000078900005 CR4: 00000000003606f0
<4>[   10.323988] Call Trace:
<4>[   10.324059]  intel_set_cdclk+0x49/0x110 [i915]
<4>[   10.324126]  intel_atomic_commit_tail+0xcda/0x1540 [i915]
<4>[   10.324132]  ? flush_workqueue+0x236/0x530
<4>[   10.324134]  ? queue_work_on+0x33/0x70
<4>[   10.324213]  intel_atomic_commit+0x273/0x2f0 [i915]
<4>[   10.324221]  drm_client_modeset_commit_atomic+0x18b/0x210
<4>[   10.324238]  drm_client_modeset_commit_force+0x52/0x1a0
<4>[   10.324244]  drm_fb_helper_restore_fbdev_mode_unlocked+0x42/0x90
<4>[   10.324248]  drm_fb_helper_set_par+0x24/0x50
<4>[   10.324312]  intel_fbdev_set_par+0x11/0x30 [i915]
<4>[   10.324316]  ? con_is_visible+0x25/0x50
<4>[   10.324320]  fbcon_init+0x37e/0x610
<4>[   10.324328]  visual_init+0xc9/0x130
<4>[   10.324333]  do_bind_con_driver+0x200/0x410
<4>[   10.324344]  do_take_over_console+0x71/0x190
<4>[   10.324351]  do_fbcon_takeover+0x53/0xb0
<4>[   10.324353]  register_framebuffer+0x229/0x330
<4>[   10.324363]  __drm_fb_helper_initial_config_and_unlock+0x324/0x5a0
<4>[   10.324435]  intel_fbdev_initial_config+0xf/0x20 [i915]
<4>[   10.324450]  async_run_entry_fn+0x34/0x160
<4>[   10.324455]  process_one_work+0x26a/0x620
<4>[   10.324465]  worker_thread+0x37/0x380
<4>[   10.324471]  ? process_one_work+0x620/0x620
<4>[   10.324474]  kthread+0x119/0x130
<4>[   10.324478]  ? kthread_park+0x80/0x80
<4>[   10.324485]  ret_from_fork+0x3a/0x50
<4>[   10.324508] irq event stamp: 26736
<4>[   10.324511] hardirqs last  enabled at (26735): [<ffffffff8112aa45>] vprintk_emit+0x315/0x340
<4>[   10.324514] hardirqs last disabled at (26736): [<ffffffff81001bba>] trace_hardirqs_off_thunk+0x1a/0x20
<4>[   10.324516] softirqs last  enabled at (26636): [<ffffffff81c00385>] __do_softirq+0x385/0x47f
<4>[   10.324519] softirqs last disabled at (26629): [<ffffffff810b7eaa>] irq_exit+0xba/0xc0
<4>[   10.324520] ---[ end trace 406edd76fad566e3 ]---
Comment 1 CI Bug Log 2019-10-07 13:27:36 UTC
The CI Bug Log issue associated to this bug has been updated.

### New filters associated

* BDW:  igt@runner@aborted - fail - TAINT_WARN: WARN_ON has happened, trying to change cdclk frequency with cdclk not enabled 
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14625/fi-bdw-5557u/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14633/fi-bdw-5557u/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_4968/fi-bdw-5557u/igt@runner@aborted.html
  - http://gfx-ci.fi.intel.com/tree/drm-tip/CUSTOM_mupuf-1568045297/fi-bdw-5557u/igt@runner@aborted.html
  - http://gfx-ci.fi.intel.com/tree/drm-tip/CUSTOM_mupuf-1568045297/fi-bdw-samus/igt@runner@aborted.html
  - http://gfx-ci.fi.intel.com/tree/drm-tip/CUSTOM_mupuf-1568047078/fi-bdw-5557u/igt@runner@aborted.html
  - http://gfx-ci.fi.intel.com/tree/drm-tip/CUSTOM_mupuf-1568047078/fi-bdw-samus/igt@runner@aborted.html
  - http://gfx-ci.fi.intel.com/tree/drm-tip/CUSTOM_mupuf-1570027103/fi-bdw-5557u/igt@runner@aborted.html
  - http://gfx-ci.fi.intel.com/tree/drm-tip/CUSTOM_mupuf-1570027103/fi-bdw-gvtdvm/igt@runner@aborted.html
  - http://gfx-ci.fi.intel.com/tree/drm-tip/CUSTOM_mupuf-1570027103/fi-bdw-samus/igt@runner@aborted.html
  - http://gfx-ci.fi.intel.com/tree/drm-tip/CUSTOM_mupuf-1568898513/fi-bdw-gvtdvm/igt@runner@aborted.html
  - http://gfx-ci.fi.intel.com/tree/drm-tip/CUSTOM_mupuf-1568898513/fi-bdw-samus/igt@runner@aborted.html
  - http://gfx-ci.fi.intel.com/tree/drm-tip/CUSTOM_mupuf-1568899381/fi-bdw-5557u/igt@runner@aborted.html
  - http://gfx-ci.fi.intel.com/tree/drm-tip/CUSTOM_mupuf-1568899381/fi-bdw-gvtdvm/igt@runner@aborted.html
  - http://gfx-ci.fi.intel.com/tree/drm-tip/CUSTOM_mupuf-1568899381/fi-bdw-samus/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5046/fi-bdw-5557u/igt@runner@aborted.html
  - http://gfx-ci.fi.intel.com/tree/drm-tip/CUSTOM_mupuf-1568963895/fi-bdw-5557u/igt@runner@aborted.html
  - http://gfx-ci.fi.intel.com/tree/drm-tip/CUSTOM_mupuf-1568963895/fi-bdw-samus/igt@runner@aborted.html
  - http://gfx-ci.fi.intel.com/tree/drm-tip/CUSTOM_mupuf-1568966012/fi-bdw-5557u/igt@runner@aborted.html
  - http://gfx-ci.fi.intel.com/tree/drm-tip/CUSTOM_mupuf-1568966012/fi-bdw-samus/igt@runner@aborted.html
  - http://gfx-ci.fi.intel.com/tree/drm-tip/CUSTOM_mupuf-1568966921/fi-bdw-samus/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5047/fi-bdw-5557u/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5047/fi-bdw-gvtdvm/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5049/fi-bdw-5557u/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5049/fi-bdw-gvtdvm/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5054/fi-bdw-5557u/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5056/fi-bdw-5557u/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5056/fi-bdw-gvtdvm/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5057/fi-bdw-5557u/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5057/fi-bdw-gvtdvm/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5059/fi-bdw-5557u/igt@runner@aborted.html
  - http://gfx-ci.fi.intel.com/tree/drm-tip/CUSTOM_mupuf-1569240560/fi-bdw-5557u/igt@runner@aborted.html
  - http://gfx-ci.fi.intel.com/tree/drm-tip/CUSTOM_mupuf-1569240560/fi-bdw-gvtdvm/igt@runner@aborted.html
  - http://gfx-ci.fi.intel.com/tree/drm-tip/CUSTOM_mupuf-1569240560/fi-bdw-samus/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5072/fi-bdw-5557u/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5075/fi-bdw-5557u/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14548/fi-bdw-5557u/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14548/fi-bdw-gvtdvm/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5077/fi-bdw-5557u/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5078/fi-bdw-5557u/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5078/fi-bdw-gvtdvm/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5081/fi-bdw-5557u/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14557/fi-bdw-5557u/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14557/fi-bdw-gvtdvm/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5084/fi-bdw-5557u/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14616/fi-bdw-5557u/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14616/fi-bdw-gvtdvm/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5103/fi-bdw-gvtdvm/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5125/fi-bdw-gvtdvm/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3547/fi-bdw-gvtdvm/igt@runner@aborted.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7022/fi-bdw-gvtdvm/igt@runner@aborted.html
Comment 2 Matt Roper 2019-10-07 16:57:22 UTC
The LPCPLL_CTL register that's supposed to be set by the BIOS is seemingly giving us invalid values now:

[drm:intel_power_domains_init_hw [i915]] *ERROR* CDCLK source is not [drm:intel_power_domains_init_hw [i915]] *ERROR* LCPLL is disabled

The driver just reports these problems and doesn't try to correct them:

    /*                                                                       
     * The LCPLL register should be turned on by the BIOS. For now           
     * let's just check its state and print errors in case                   
     * something is wrong.  Don't even try to turn it on.                    
     */                                                                      

so it's not a surprise that later bdw_set_cdclk() reads LCPLL_CTL and still finds it disabled, triggering the warning.

I also notice that the cdclk frequency when the driver starts up is reading out as 800 MHz, which I don't believe is even a valid frequency for this platform.

As far as I can see, no patches went into the driver between CI runs 7021 and 7022 that should change the hardware readout.  Has anything else changed with this machine recently (e.g., BIOS update or anything)?  Also, is this a real machine or is it a guest running under virtualization with GVT?  I'm not sure exactly what the 'gvtdvm' in the machine name signifies.
Comment 3 Martin Peres 2019-11-29 19:37:56 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/intel/issues/483.

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.