Re: [PATCH i-g-t 1/2] tests/intel/kms_pipe_stress: use CRTC index not pipe for vblank ioctl

Ville Syrjälä
2026-03-20T11:57:31Z

On Fri, Mar 20, 2026 at 01:31:42PM +0200, Jani Nikula wrote:
> The vblank ioctl expects CRTC index, not pipe. Fix the pipe vs. CRTC
> index mixup by switching to use igt_crtc_get_vblank().
>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

> ---
> tests/intel/kms_pipe_stress.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/intel/kms_pipe_stress.c b/tests/intel/kms_pipe_stress.c
> index 85ab2ec50621..a0ce3c4d7ecb 100644
> --- a/tests/intel/kms_pipe_stress.c
> +++ b/tests/intel/kms_pipe_stress.c
> @@ -591,7 +591,7 @@ static void stress_pipes(struct data *data, struct timespec *start,
>
> igt_pipe_crc_start(data->pipe_crc[pipe]);
> igt_pipe_crc_get_current(data->display.drm_fd, data->pipe_crc[pipe], &crc);
> - kmstest_get_vblank(data->display.drm_fd, crtc->pipe, DRM_VBLANK_NEXTONMISS);
> + igt_crtc_get_vblank(crtc, DRM_VBLANK_NEXTONMISS);
> igt_pipe_crc_get_current(data->display.drm_fd, data->pipe_crc[pipe], &crc2);
> igt_pipe_crc_stop(data->pipe_crc[pipe]);
> igt_assert_crc_equal(&crc, &crc2);
> --
> 2.47.3

--
Ville Syrjälä
Intel