[igt-dev] [PATCH i-g-t] tests/i915/perf_pmu: Use correct context id in "enable-race"

Ch, Sai Gowtham sai.gowtham.ch at intel.com
Mon Aug 8 21:15:06 UTC 2022


> -----Original Message-----
> From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of Ashutosh
> Dixit
> Sent: Monday, August 8, 2022 10:55 AM
> To: igt-dev at lists.freedesktop.org
> Subject: [igt-dev] [PATCH i-g-t] tests/i915/perf_pmu: Use correct context id in
> "enable-race"
> 
> Use correct context id in "enable-race" test.
> 
> Bug: https://gitlab.freedesktop.org/drm/intel/-/issues/5490
> Signed-off-by: Ashutosh Dixit <ashutosh.dixit at intel.com>
> ---
>  tests/i915/perf_pmu.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/i915/perf_pmu.c b/tests/i915/perf_pmu.c index
> e2b13540e76e..f363db2ba135 100644
> --- a/tests/i915/perf_pmu.c
> +++ b/tests/i915/perf_pmu.c
> @@ -1809,7 +1809,7 @@ test_enable_race(int gem_fd, const intel_ctx_t *ctx,
>  	int fd;
> 
>  	igt_require(gem_scheduler_has_engine_busy_stats(gem_fd));
> -	igt_require(gem_context_has_engine(gem_fd, 0, e->flags));
> +	igt_require(gem_context_has_engine(gem_fd, ctx->id, e->flags));
> 
>  	obj.handle = gem_create(gem_fd, 4096);
>  	gem_write(gem_fd, obj.handle, 0, &bbend, sizeof(bbend));
> --
> 2.34.1
Reviewed-by: Sai Gowtham Ch <sai.gowtham.ch at intel.com>


More information about the igt-dev mailing list