Bug 75895 - [BYT] Media forcewake timeout with no displays connected
Summary: [BYT] Media forcewake timeout with no displays connected
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Ville Syrjala
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-07 17:21 UTC by Imre Deak
Modified: 2017-07-24 22:55 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg for media forcewake lockup (90.31 KB, text/plain)
2014-03-07 17:21 UTC, Imre Deak
no flags Details

Description Imre Deak 2014-03-07 17:21:13 UTC
Created attachment 95310 [details]
dmesg for media forcewake lockup

I get the lockup in the attached dmesg by just booting -nightly without any display connected on my Bayley Bay B0. Sometimes the 'waiting for the old ack to clear' just times out and I manage to get to the shell, sometimes one of the __raw_i915_read32(dev_priv, FORCEWAKE_ACK_MEDIA_VLV); reads in __vlv_force_wake_get() will hard lock the machine, as in the attached dmesg.
Comment 1 Jani Nikula 2014-04-22 16:12:18 UTC
Looks like I can reproduce this too.
Comment 2 Jani Nikula 2014-05-09 12:50:18 UTC
We don't reset FORCEWAKE_MEDIA_VLV request register.

http://patchwork.freedesktop.org/patch/25693
Comment 3 Chris Wilson 2014-05-11 07:31:32 UTC
commit 05adaf1f101f25f40f12c29403e6488f0e45f6b6
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Fri May 9 14:52:34 2014 +0300

    drm/i915/vlv: reset VLV media force wake request register
    
    Media force wake get hangs the machine when the system is booted without
    displays attached. The assumption is that (at least some versions of)
    the firmware has skipped some initialization in that case.
    
    Empirical evidence suggests we need to reset the media force wake
    request register in addition to the render one to avoid hangs.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75895
    Reported-by: Imre Deak <imre.deak@intel.com>
    Reported-by: Darren Hart <dvhart@linux.intel.com>
    Tested-by: Darren Hart <dvhart@linux.intel.com>
    Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: Jani Nikula <jani.nikula@intel.com>


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.