1. 12 9月, 2013 1 次提交
  2. 11 9月, 2013 3 次提交
    • R
      drm/msm: fix cmdstream size check · 19872533
      Rob Clark 提交于
      Need to check size+offset against bo size (duh!).. now we have a test
      case to make sure I've done it right:
      
      https://github.com/freedreno/msmtest/blob/master/submittest.c
      
      Also, use DRM_ERROR() for error case traces, which makes debugging
      userspace easier when enabling debug traces is too much.
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      19872533
    • R
      drm/msm: hangcheck harder · 26791c48
      Rob Clark 提交于
      If gpu locks up with the rptr shortly beyond the wrap-around point in
      the ringbuffer, because the rptr was not reset (but wptr is, by virtue
      of resetting rb->cur), we could end up in a scenario where we think
      there is not enough space in the ringbuffer for the next cmds.  And
      since the CP won't reset rptr until after processing an IB, this leaves
      things in a sort of deadlock.
      
      So reset rptr too.  And a bit more spiffing up of hangcheck to make
      things easier to debug.
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      26791c48
    • R
      drm/msm: handle read vs write fences · bf6811f3
      Rob Clark 提交于
      The userspace API already had everything needed to handle read vs write
      synchronization.  This patch actually bothers to hook it up properly, so
      that we don't need to (for example) stall on userspace read access to a
      buffer that gpu is also still reading.
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      bf6811f3
  3. 05 9月, 2013 24 次提交
  4. 04 9月, 2013 12 次提交