pm_rps: Load helper should stall for last write
authorJeff McGee <jeff.mcgee@intel.com>
Fri, 31 Jan 2014 16:13:51 +0000 (10:13 -0600)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Feb 2014 06:47:23 +0000 (07:47 +0100)
This ensures that gpu is quiescent when load helper exits.

Signed-off-by: Jeff McGee <jeff.mcgee@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/pm_rps.c

index a6807d2..9277196 100644 (file)
@@ -207,6 +207,10 @@ static void load_helper_run(void)
                        val++;
                }
 
+               /* Map buffer to stall for write completion */
+               drm_intel_bo_map(lh.target_buffer, 0);
+               drm_intel_bo_unmap(lh.target_buffer);
+
                log("load helper sent %u dword writes\n", val);
        }
 }