<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [IVB] [bisected] Freeze when booting with kernel 4.9 and later"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=101049#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [IVB] [bisected] Freeze when booting with kernel 4.9 and later"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=101049">bug 101049</a>
              from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
        <pre>Correcting myself, there was one which was to act upon the result of:

        if (IS_GEN6(dev_priv) ||
            IS_IVYBRIDGE(dev_priv) || IS_HASWELL(dev_priv)) {
                u32 params = 0;

                sandybridge_pcode_read(dev_priv, GEN6_READ_OC_PARAMS, &params);
                if (params & BIT(31)) { /* OC supported */
                        DRM_DEBUG_DRIVER("Overclocking supported, max: %dMHz,
overclock: %dMHz\n",
                                         (dev_priv->rps.max_freq & 0xff) * 50,
                                         (params & 0xff) * 50);
                        dev_priv->rps.max_freq = params & 0xff;
                }
        }

So to test that:

diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 417fd72f6968..a5a5b90d7044 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -7530,8 +7530,7 @@ void intel_init_gt_powersave(struct drm_i915_private
*dev_priv)
                              intel_freq_opcode(dev_priv, 450));

        /* After setting max-softlimit, find the overclock max freq */
-       if (IS_GEN6(dev_priv) ||
-           IS_IVYBRIDGE(dev_priv) || IS_HASWELL(dev_priv)) {
+       if (0) {
                u32 params = 0;

                sandybridge_pcode_read(dev_priv, GEN6_READ_OC_PARAMS, &params);</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>