[igt-dev] [PATCH i-g-t] i915/gem_ctx_exec: Open master device when setting error state

Dixit, Ashutosh ashutosh.dixit at intel.com
Thu Jul 28 17:15:28 UTC 2022


On Thu, 28 Jul 2022 05:47:35 -0700, Nirmoy Das wrote:
>
> Error capture file is in /sys/class/drm/cardN/error so open the
> master device instead of render dev when test needs to change
> error state sysfs file.

Reviewed-by: Ashutosh Dixit <ashutosh.dixit at intel.com>

>
> Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/6268
> Signed-off-by: Nirmoy Das <nirmoy.das at intel.com>
> ---
>  tests/i915/gem_ctx_exec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/i915/gem_ctx_exec.c b/tests/i915/gem_ctx_exec.c
> index 3d94f01db..a85ea971c 100644
> --- a/tests/i915/gem_ctx_exec.c
> +++ b/tests/i915/gem_ctx_exec.c
> @@ -456,7 +456,7 @@ igt_main
>	int fd;
>
>	igt_fixture {
> -		fd = drm_open_driver_render(DRIVER_INTEL);
> +		fd = drm_open_driver_master(DRIVER_INTEL);
>		igt_require_gem(fd);
>
>		gem_require_contexts(fd);
> --
> 2.35.1
>


More information about the igt-dev mailing list