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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jeff McGee <jeff.mcgee@xxxxxxxxx>

This ensures that gpu is quiescent when load helper exits.

Signed-off-by: Jeff McGee <jeff.mcgee@xxxxxxxxx>
---
 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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux