Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id D2E63112B0B for ; Fri, 15 Jul 2022 08:48:40 +0000 (UTC) Message-ID: <18682e7b-70c7-80f1-606d-70ef0429972b@intel.com> Date: Fri, 15 Jul 2022 14:18:20 +0530 Content-Language: en-US To: Nidhi Gupta , References: <20220616215654.5522-1-nidhi1.gupta@intel.com> <20220616215654.5522-3-nidhi1.gupta@intel.com> From: "Modem, Bhanuprakash" In-Reply-To: <20220616215654.5522-3-nidhi1.gupta@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Subject: Re: [igt-dev] [PATCH i-g-t 2/2] tests/i915/kms_draw_crc.c: Test Cleanup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: On Fri-17-06-2022 03:26 am, Nidhi Gupta wrote: > Sanitize the system state before starting the subtest. > > Signed-off-by: Nidhi Gupta > --- > tests/i915/kms_draw_crc.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/tests/i915/kms_draw_crc.c b/tests/i915/kms_draw_crc.c > index 04cae0aa..2fe78c32 100644 > --- a/tests/i915/kms_draw_crc.c > +++ b/tests/i915/kms_draw_crc.c > @@ -185,6 +185,7 @@ static void draw_method_subtest(enum igt_draw_method method, > igt_skip_on(method == IGT_DRAW_MMAP_GTT && > !gem_has_mappable_ggtt(drm_fd)); > > + igt_display_reset(&display); It won't impact anything, since we are using drm call directly in this test. - Bhanu > igt_require(format_is_supported(formats[format_index], modifier)); > > /* Use IGT_DRAW_MMAP_GTT/WC on an untiled buffer as the parameter for > @@ -229,6 +230,8 @@ static void fill_fb_subtest(void) > igt_crc_t base_crc, crc; > bool has_4tile = intel_get_device_info(intel_get_drm_devid(drm_fd))->has_4tile; > > + igt_display_reset(&display); > + > igt_create_fb(drm_fd, ms.mode->hdisplay, ms.mode->vdisplay, > DRM_FORMAT_XRGB8888, DRM_FORMAT_MOD_LINEAR, &fb); >