From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id B699411BF02 for ; Wed, 13 Jul 2022 07:45:04 +0000 (UTC) Message-ID: <29367be8-e3f9-ed9d-041c-0db98ae95d53@intel.com> Date: Wed, 13 Jul 2022 13:14:59 +0530 MIME-Version: 1.0 Content-Language: en-US To: Bhanuprakash Modem , igt-dev@lists.freedesktop.org References: <20220711141940.610063-1-bhanuprakash.modem@intel.com> From: "Sharma, Swati2" In-Reply-To: <20220711141940.610063-1-bhanuprakash.modem@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [igt-dev] [i-g-t] tests/kms_cursor_legacy: Avoid usage of same pipe on multiple outputs List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: LGTM Reviewed-by: Swati Sharma On 11-Jul-22 7:49 PM, Bhanuprakash Modem wrote: > Sanitize the system state before starting the subtest. > > Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/6198 > Signed-off-by: Bhanuprakash Modem > --- > tests/kms_cursor_legacy.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tests/kms_cursor_legacy.c b/tests/kms_cursor_legacy.c > index fc4a291d..c5b2bd30 100644 > --- a/tests/kms_cursor_legacy.c > +++ b/tests/kms_cursor_legacy.c > @@ -429,6 +429,8 @@ static void flip(igt_display_t *display, > results = mmap(NULL, PAGE_SIZE, PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0); > igt_assert(results != MAP_FAILED); > > + igt_display_reset(display); > + > flip_pipe = find_connected_pipe(display, !!flip_pipe); > cursor_pipe = find_connected_pipe(display, !!cursor_pipe); > -- ~Swati Sharma