1. 29 10月, 2016 2 次提交
  2. 25 10月, 2016 4 次提交
  3. 24 10月, 2016 2 次提交
    • C
      drm/i915: Use RPM as the barrier for controlling user mmap access · 9c870d03
      Chris Wilson 提交于
      We can remove the false coupling between RPM and struct mutex by the
      observation that we can use the RPM wakeref as the barrier around user
      mmap access. That is as we tear down the user's PTE atomically from
      within rpm suspend and then to fault in new PTE requires the rpm
      wakeref, means that no user access is possible through those PTE without
      RPM being awake. Having made that observation, we can then remove the
      presumption of having to take rpm outside of struct_mutex and so allow
      fine grained acquisition of a wakeref around hw access rather than
      having to remember to acquire the wakeref early on.
      
      v2: Rejig placement of the new intel_runtime_pm_get() to be as tight
      as possible around the GTT pread/pwrite.
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Cc: Imre Deak <imre.deak@intel.com>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Reviewed-by: NDaniel Vetter <daniel@ffwll.ch>
      Link: http://patchwork.freedesktop.org/patch/msgid/20161024124218.18252-2-chris@chris-wilson.co.uk
      9c870d03
    • C
      drm/i915: Move user fault tracking to a separate list · 275f039d
      Chris Wilson 提交于
      We want to decouple RPM and struct_mutex, but currently RPM has to walk
      the list of bound objects and remove userspace mmapping before we
      suspend (otherwise userspace may continue to access the GTT whilst it is
      powered down). This currently requires the struct_mutex to walk the
      bound_list, but if we move that to a separate list and lock we can take
      the first step towards removing the struct_mutex.
      
      v2: Split runtime suspend unmapping vs regular unmapping, to make the
      locking (and barriers) clearer. Add the object to the userfault_list
      prior to inserting the first PTE, the race between add/revoke depends
      upon struct_mutex for regular unmappings and rpm for runtime-suspend.
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> #v1
      Link: http://patchwork.freedesktop.org/patch/msgid/20161024124218.18252-1-chris@chris-wilson.co.uk
      275f039d
  4. 18 10月, 2016 1 次提交
  5. 17 10月, 2016 1 次提交
  6. 14 10月, 2016 2 次提交
  7. 12 10月, 2016 3 次提交
  8. 05 10月, 2016 3 次提交
  9. 29 9月, 2016 1 次提交
  10. 27 9月, 2016 1 次提交
  11. 22 9月, 2016 1 次提交
  12. 21 9月, 2016 2 次提交
  13. 15 9月, 2016 1 次提交
  14. 09 9月, 2016 4 次提交
  15. 08 9月, 2016 1 次提交
  16. 03 9月, 2016 2 次提交
  17. 02 9月, 2016 8 次提交
  18. 26 8月, 2016 1 次提交