[i-g-t] tests/gem_cs_tlb: fix hardcoded ring id
diff mbox

Message ID 1431432570-14867-1-git-send-email-daniele.ceraolospurio@intel.com
State New
Headers show

Commit Message

Daniele Ceraolo Spurio May 12, 2015, 12:09 p.m. UTC
From: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>

The test has 4 subparts, one for each ring, but internally they all
submit to ring 0. Fix it to use the provided ring_id
---
 tests/gem_cs_tlb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Daniel Vetter May 12, 2015, 1:30 p.m. UTC | #1
On Tue, May 12, 2015 at 01:09:30PM +0100, daniele.ceraolospurio@intel.com wrote:
> From: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
> 
> The test has 4 subparts, one for each ring, but internally they all
> submit to ring 0. Fix it to use the provided ring_id
> ---
>  tests/gem_cs_tlb.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/gem_cs_tlb.c b/tests/gem_cs_tlb.c
> index 3df4f37..62f446c 100644
> --- a/tests/gem_cs_tlb.c
> +++ b/tests/gem_cs_tlb.c
> @@ -130,7 +130,7 @@ static void run_on_ring(int fd, unsigned ring_id, const char *ring_name)
>  			gem_close(fd, handle);
>  		}
>  
> -		igt_assert_eq(exec(fd, handle_new, split, &gtt_offset_new, 0),
> +		igt_assert_eq(exec(fd, handle_new, split, &gtt_offset_new, ring_id),

Oops. Thanks for fixing this, applied.
-Daniel

>  			      0);
>  
>  		if (split > 0) {
> -- 
> 1.9.1
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Patch
diff mbox

diff --git a/tests/gem_cs_tlb.c b/tests/gem_cs_tlb.c
index 3df4f37..62f446c 100644
--- a/tests/gem_cs_tlb.c
+++ b/tests/gem_cs_tlb.c
@@ -130,7 +130,7 @@  static void run_on_ring(int fd, unsigned ring_id, const char *ring_name)
 			gem_close(fd, handle);
 		}
 
-		igt_assert_eq(exec(fd, handle_new, split, &gtt_offset_new, 0),
+		igt_assert_eq(exec(fd, handle_new, split, &gtt_offset_new, ring_id),
 			      0);
 
 		if (split > 0) {