[PATCH i-g-t 2/3] Adding hmax + report on all gens
Zbigniew Kempczyński
zbigniew.kempczynski at intel.com
Wed Jun 22 07:07:17 UTC 2022
---
tests/i915/gem_ppgtt.c | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/tests/i915/gem_ppgtt.c b/tests/i915/gem_ppgtt.c
index 9147b33a99..d8a448da25 100644
--- a/tests/i915/gem_ppgtt.c
+++ b/tests/i915/gem_ppgtt.c
@@ -121,6 +121,7 @@ static void fork_rcs_copy(int timeout, uint32_t final,
uint32_t ctx = 0;
struct intel_buf *src;
unsigned long i;
+ uint32_t hmax = 0;
/* Standalone allocator */
intel_allocator_init();
@@ -134,6 +135,10 @@ static void fork_rcs_copy(int timeout, uint32_t final,
igt_until_timeout(timeout) {
src = create_bo(dst[child]->bops,
i++ | child << 16);
+ if (src->handle > hmax) {
+ hmax = src->handle;
+ igt_info("rcs h: %u\n", hmax);
+ }
render_copy(ibb,
src, 0, 0,
WIDTH, HEIGHT,
@@ -170,6 +175,7 @@ static void fork_bcs_copy(int timeout, uint32_t final,
struct intel_buf *src[2];
struct intel_bb *ibb;
unsigned long i;
+ uint32_t hmax = 0;
/* Standalone allocator */
intel_allocator_init();
@@ -180,9 +186,19 @@ static void fork_bcs_copy(int timeout, uint32_t final,
igt_until_timeout(timeout) {
src[0] = create_bo(dst[child]->bops,
~0);
+ if (src[0]->handle > hmax) {
+ hmax = src[0]->handle;
+ igt_info("bcs h: %u\n", hmax);
+ }
+
src[1] = create_bo(dst[child]->bops,
i++ | child << 16);
+ if (src[1]->handle > hmax) {
+ hmax = src[1]->handle;
+ igt_info("bcs h: %u\n", hmax);
+ }
+
intel_bb_copy_intel_buf(ibb, src[1], src[0], SIZE);
intel_bb_copy_intel_buf(ibb, src[0], dst[child], SIZE);
@@ -287,7 +303,7 @@ static bool has_contexts(void)
igt_main
{
const int ncpus = sysconf(_SC_NPROCESSORS_ONLN);
- bool is_sandybridge = false;
+ bool is_sandybridge = true;
igt_fixture {
int fd = drm_open_driver(DRIVER_INTEL);
--
2.32.0
More information about the Intel-gfx-trybot
mailing list