[Intel-gfx] [PATCH 2/4] pm_rps: Load helper should stall for last write
jeff.mcgee at intel.com
jeff.mcgee at intel.com
Fri Jan 31 17:13:51 CET 2014
From: Jeff McGee <jeff.mcgee at intel.com>
This ensures that gpu is quiescent when load helper exits.
Signed-off-by: Jeff McGee <jeff.mcgee at intel.com>
---
tests/pm_rps.c | 4 ++++
1 file changed, 4 insertions(+)
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);
}
}
--
1.8.5.2
More information about the Intel-gfx
mailing list