1. 10 Sep, 2013 3 commits
    • Rob Clark's avatar
      drm/msm: fix cmdstream size check · 19872533
      Rob Clark authored
      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: default avatarRob Clark <robdclark@gmail.com>
      19872533
    • Rob Clark's avatar
      drm/msm: hangcheck harder · 26791c48
      Rob Clark authored
      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: default avatarRob Clark <robdclark@gmail.com>
      26791c48
    • Rob Clark's avatar
      drm/msm: handle read vs write fences · bf6811f3
      Rob Clark authored
      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: default avatarRob Clark <robdclark@gmail.com>
      bf6811f3
  2. 05 Sep, 2013 22 commits
  3. 04 Sep, 2013 15 commits