<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi<br>
    <br>
    <div class="moz-cite-prefix">On Friday 16 January 2015 04:48 AM,
      Rodrigo Vivi wrote:<br>
    </div>
    <blockquote
cite="mid:CABVU7+tb1oDssAkV5YsU2+_AxJfjh6pm27qJU0c_d80uh7bX4w@mail.gmail.com"
      type="cite">
      <pre wrap="">On Sun, Jan 11, 2015 at 4:40 AM, Chris Wilson <a class="moz-txt-link-rfc2396E" href="mailto:chris@chris-wilson.co.uk"><chris@chris-wilson.co.uk></a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">On Sat, Jan 10, 2015 at 02:26:04AM +0530, Vandana Kannan wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">Adding a debugfs entry to determine if DRRS is supported or not

Signed-off-by: Vandana Kannan <a class="moz-txt-link-rfc2396E" href="mailto:vandana.kannan@intel.com"><vandana.kannan@intel.com></a>
---
 drivers/gpu/drm/i915/i915_debugfs.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index e515aad..544b4c3 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -2825,6 +2825,23 @@ static int i915_ddb_info(struct seq_file *m, void *unused)
      return 0;
 }

+static int i915_drrs_status(struct seq_file *m, void *unused)
+{
+     struct drm_info_node *node = m->private;
+     struct drm_device *dev = node->minor->dev;
+     struct intel_crtc *crtc;
+
+     for_each_intel_crtc(dev, crtc) {
+             if (crtc->active) {
</pre>
        </blockquote>
        <pre wrap="">
Don't you want to know which CRTC this is? Would this not be better
extending display_info with the extra CRTC status?

</pre>
        <blockquote type="cite">
          <pre wrap="">+                     if (crtc->config.has_drrs)
</pre>
        </blockquote>
      </blockquote>
      <pre wrap="">
Also it just shows if panel supports drrs, not if it is enabled...</pre>
    </blockquote>
    <small>Yes. We need to provide information on the platform's DRRS
      capability, crtc<br>
      and the current DRRS state (LOW_RR/HIGH_RR). I am working on the
      same.</small>
    <blockquote
cite="mid:CABVU7+tb1oDssAkV5YsU2+_AxJfjh6pm27qJU0c_d80uh7bX4w@mail.gmail.com"
      type="cite">
      <pre wrap="">

</pre>
      <blockquote type="cite">
        <blockquote type="cite">
          <pre wrap="">+                             seq_puts(m, "DRRS enabled");
+                     else
+                             seq_puts(m, "DRRS disabled");
+             }
+     }
</pre>
        </blockquote>
        <pre wrap="">-Chris

--
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Intel-gfx@lists.freedesktop.org">Intel-gfx@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/intel-gfx">http://lists.freedesktop.org/mailman/listinfo/intel-gfx</a>
</pre>
      </blockquote>
      <pre wrap="">


</pre>
    </blockquote>
    --Ram<br>
  </body>
</html>