diff mbox

[2/4] pm_rps: Load helper should stall for last write

Message ID 1391184833-10973-3-git-send-email-jeff.mcgee@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

jeff.mcgee@intel.com Jan. 31, 2014, 4:13 p.m. UTC
From: Jeff McGee <jeff.mcgee@intel.com>

This ensures that gpu is quiescent when load helper exits.

Signed-off-by: Jeff McGee <jeff.mcgee@intel.com>
---
 tests/pm_rps.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

diff --git a/tests/pm_rps.c b/tests/pm_rps.c
index a6807d2..9277196 100644
--- a/tests/pm_rps.c
+++ b/tests/pm_rps.c
@@ -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);
 	}
 }