diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-09-06 21:16:21 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-09-09 17:24:16 +0200 |
commit | 49cd753a77ab8ed9194f0e3ac2b5eadc803ef165 (patch) | |
tree | d0a05099c7cf51a955a2ef32202bb723f22b409f /tests | |
parent | 2a0b3488a0f3a715d2d654858ba0a638d71366c7 (diff) |
test/gem_storedw_*: tune some more
MI_*/PIPE_CONTROL writes need to be in DOMAIN_INSTRUCTION, because
that is what mesa uses and I plan to use this to work around a
gen6 ppgtt issue.
Also testing with intentionally b0rked GFX_MODE on my snb shows that
we need to increase the loop counter a bit to reliably hit the tlb
invalidation problem. Test still completes within a few seconds.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gem_storedw_batches_loop.c | 6 | ||||
-rw-r--r-- | tests/gem_storedw_loop.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/gem_storedw_batches_loop.c b/tests/gem_storedw_batches_loop.c index f5907c03..456c56ae 100644 --- a/tests/gem_storedw_batches_loop.c +++ b/tests/gem_storedw_batches_loop.c @@ -55,7 +55,7 @@ store_dword_loop(void) cmd = MI_STORE_DWORD_IMM | MI_MEM_VIRTUAL; - for (i = 0; i < 0x10000; i++) { + for (i = 0; i < 0x80000; i++) { cmd_bo = drm_intel_bo_alloc(bufmgr, "cmd bo", 4096, 4096); if (!cmd_bo) { fprintf(stderr, "failed to alloc cmd bo\n"); @@ -77,8 +77,8 @@ store_dword_loop(void) } ret = drm_intel_bo_emit_reloc(cmd_bo, 8, target_bo, 0, - I915_GEM_DOMAIN_RENDER, - I915_GEM_DOMAIN_RENDER); + I915_GEM_DOMAIN_INSTRUCTION, + I915_GEM_DOMAIN_INSTRUCTION); if (ret) { fprintf(stderr, "failed to emit reloc\n"); exit(-1); diff --git a/tests/gem_storedw_loop.c b/tests/gem_storedw_loop.c index c275c52b..0c446abe 100644 --- a/tests/gem_storedw_loop.c +++ b/tests/gem_storedw_loop.c @@ -58,8 +58,8 @@ store_dword_loop(void) BEGIN_BATCH(4); OUT_BATCH(cmd); OUT_BATCH(0); /* reserved */ - OUT_RELOC(target_buffer, I915_GEM_DOMAIN_RENDER, - I915_GEM_DOMAIN_RENDER, 0); + OUT_RELOC(target_buffer, I915_GEM_DOMAIN_INSTRUCTION, + I915_GEM_DOMAIN_INSTRUCTION, 0); OUT_BATCH(val); ADVANCE_BATCH(); |