1. 20 9月, 2012 4 次提交
  2. 06 9月, 2012 1 次提交
    • B
      drm/i915: Enable some sysfs stuff without CONFIG_PM · 8c3f929b
      Ben Widawsky 提交于
      The original patch was actually incorrect in stubbing out the sysfs for
      l3 parity.
      commit 5ab3633d
      Author: Hunt Xu <mhuntxu@gmail.com>
      Date:   Sun Jul 1 03:45:07 2012 +0000
      
          drm/i915: make rc6 in sysfs functions conditional
      
      Unfortunately Hunt didn't respond to my review comments, and Daniel
      sucked in the patch again ignoring. Worst of all, I'm too lazy to write
      the patch for what I originally wanted, which was to keep rc6 sysfs even
      without CONFIG_PM. This simpler patch does enough to enable us to add
      more sysfs entries though.
      Signed-off-by: NBen Widawsky <ben@bwidawsk.net>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      8c3f929b
  3. 07 8月, 2012 1 次提交
  4. 26 7月, 2012 1 次提交
    • B
      drm/i915: Macro to determine DPF support · e1ef7cc2
      Ben Widawsky 提交于
      Originally I had a macro specifically for DPF support, and Daniel, with
      good reason asked me to change it to this. It's not the way I would have
      gone (and indeed I didn't), but for now there is no distinction as all
      platforms with L3 also have DPF.
      
      Note: The good reasons are that dpf is a l3$ feature (at least on
      currrent hw), hence I don't expect one to go without the other.
      Signed-off-by: NBen Widawsky <ben@bwidawsk.net>
      [danvet: added note]
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      e1ef7cc2
  5. 01 6月, 2012 1 次提交
  6. 31 5月, 2012 1 次提交
    • B
      drm/i915: l3 parity sysfs interface · 84bc7581
      Ben Widawsky 提交于
      Dumb binary interfaces which allow root-only updates of the cache
      remapping registers. As mentioned in a previous patch, software using
      this interface needs to know about HW limits, and other programming
      considerations as the kernel interface does no checking for these things
      on the root-only interface.
      
      v1: Drop extra posting reads (Chris)
      Return negative values in the sysfs interfaces on errors (Chris)
      
      v2: Return -EINVAL for offset % 4 (Jesse)
      Move schizo userspace check out (Jesse)
      Cleaner sysfs item initializers (Daniel)
      Signed-off-by: NBen Widawsky <ben@bwidawsk.net>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      84bc7581
  7. 23 4月, 2012 1 次提交
  8. 13 4月, 2012 1 次提交
    • B
      drm/i915: rc6 in sysfs · 0136db58
      Ben Widawsky 提交于
      Merge rc6 information into the power group for our device. Until now the
      i915 driver has not had any sysfs entries (aside from the connector
      stuff enabled by drm core). Since it seems like we're likely to have
      more in the future I created a new file for sysfs stubs, as well as the
      rc6 sysfs functions which don't really belong elsewhere (perhaps
      i915_suspend, but most of the stuff is in intel_display,c).
      
      displays rc6 modes enabled (as a hex mask):
      cat /sys/class/drm/card0/power/rc6_enable
      
      displays #ms GPU has been in rc6 since boot:
      cat /sys/class/drm/card0/power/rc6_residency_ms
      
      displays #ms GPU has been in deep rc6 since boot:
      cat /sys/class/drm/card0/power/rc6p_residency_ms
      
      displays #ms GPU has been in deepest rc6 since boot:
      cat /sys/class/drm/card0/power/rc6pp_residency_ms
      
      Important note: I've seen on SNB that even when RC6 is *not* enabled the
      rc6 register seems to have a random value in it. I can only guess at the
      reason reason for this. Those writing tools that utilize this value need
      to be careful and probably want to scrutinize the value very carefully.
      
      v2: use common rc6 residency units to milliseconds for the other RC6 types
      
      v3: don't create sysfs files for GEN <= 5
      add a rc6_enable to show a mask of enabled rc6 types
      use unmerge instead of remove for sysfs group
      squash intel_enable_rc6() extraction into this patch
      
      v4: rename sysfs files (Chris)
      
      CC: Chris Wilson <chris@chris-wilson.co.uk>
      CC: Daniel Vetter <daniel.vetter@ffwll.ch>f
      CC: Arjan van de Ven <arjan@linux.intel.com>
      Signed-off-by: NBen Widawsky <benjamin.widawsky@intel.com>
      Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
      [danvet: squash in the 64bit division fix by Chris Wilson.]
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      0136db58