From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Barnes Subject: Re: [PATCH 5/7] drm/i915: Add setters for min/max frequency Date: Thu, 6 Sep 2012 14:48:03 -0700 Message-ID: <20120906144803.3dcc1832@jbarnes-desktop> References: <1346964850-2228-1-git-send-email-ben@bwidawsk.net> <1346964850-2228-6-git-send-email-ben@bwidawsk.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from oproxy6-pub.bluehost.com (oproxy6-pub.bluehost.com [67.222.54.6]) by gabe.freedesktop.org (Postfix) with SMTP id 2B2949E92A for ; Thu, 6 Sep 2012 14:48:04 -0700 (PDT) In-Reply-To: <1346964850-2228-6-git-send-email-ben@bwidawsk.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Ben Widawsky Cc: Daniel Vetter , intel-gfx@lists.freedesktop.org, Jacob Pan , Arjan van de Ven List-Id: intel-gfx@lists.freedesktop.org On Thu, 6 Sep 2012 13:54:08 -0700 Ben Widawsky wrote: > Provide a standardized sysfs interface for setting min, and max > frequencies. The code which reads the limits were lifted from the > debugfs files. As a brief explanation, the limits are similar to the CPU > p-states. We have 3 states: > > RP0 - ie. max frequency > RP1 - ie. "local min" frequency I'd say "preferred min" or "vmin" here instead. > RPn - seriously lowest frequency > > Initially Daniel asked me to clamp the writes to supported values, but > in conforming to the way the cpufreq drivers seem to work, instead > return -EINVAL (noticed by Jesse in discussion). > > The values can be used by userspace wishing to control the limits of the > GPU (see the CC list for people who care). Can you add this and any other i915 bits that are missing to the sysfs documentation under Documentation/? Thanks for moving to -EINVAL, it makes a lot more sense to me. -- Jesse Barnes, Intel Open Source Technology Center