[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#689268: Intel HD 4000 (Ivy Bridge) graphics freeze



Ingo wrote:
> Am 03.11.2012 21:05, schrieb Jonathan Nieder:
>> Ingo wrote:

>>> I did set it now to "0" and suprisingly power consumption does not
>>> change by a single watt in both cases: idle desktop and graphics/monitor
>>> off by DPMS. I'll leave it now like this and see - last time it took 3
>>> weeks until the freeze happend. I'll report here again if any freeze
>>> happens.
>>
>> Thanks.  Do you mind if I forward this information to the bug log?
>
> Please go ahead, thanks.
>
[...]
>>  linux-2.6 (3.2.7-1) unstable; urgency=low
>> 
>>    * [x86] drm/i915: do not enable RC6p on Sandy Bridge (Closes: #660265)
>
> What about Ivy Bridge - that's what me and Per are using. Is there
> anwhere a table on which devices which rc6 states are enabled?

>From drivers/gpu/drm/i915/intel_display.c:

| static bool intel_enable_rc6(struct drm_device *dev)
| {
|	/*
|	 * Respect the kernel parameter if it is set
|	 */
|	if (i915_enable_rc6 >= 0)
|		return i915_enable_rc6;
|
|	/*
|	 * Disable RC6 on Ironlake
|	 */
|	if (INTEL_INFO(dev)->gen == 5)
|		return 0;
|
|	/*
|	 * Disable rc6 on Sandybridge
|	 */
|	if (INTEL_INFO(dev)->gen == 6) {
|		DRM_DEBUG_DRIVER("Sandybridge: RC6 disabled\n");
|		return 0;
|	}
|	DRM_DEBUG_DRIVER("RC6 enabled\n");
|	return 1;
| }
[...]
|	if (intel_enable_rc6(dev_priv->dev))
|		rc6_mask = GEN6_RC_CTL_RC6_ENABLE |
|			((IS_GEN7(dev_priv->dev)) ? GEN6_RC_CTL_RC6p_ENABLE : 0);

Ivy Bridge is gen7.  So RC6p is not masked out by default, and setting
i915_enable_rc6=0 will mask it out along with RC6.  If you pass
drm.debug=0x2 (or anything with that bit set, such as 0xe) on the
kernel command line then you can tell if RC6 is enabled by looking for
an "RC6 enabled" line in the kernel log.


Reply to: