From: Daniel Vetter Subject: Re: [PATCH 1/1] tests/kms_rotate_crc: Test to verify rotation of planes through CRC Date: Thu, 6 Feb 2014 17:58:16 +0100 Message-ID: <20140206165816.GQ17001@phenom.ffwll.local> References: <1391699071-12542-1-git-send-email-sagar.a.kamble@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ea0-f181.google.com (mail-ea0-f181.google.com [209.85.215.181]) by gabe.freedesktop.org (Postfix) with ESMTP id B31E4FA5F9 for ; Thu, 6 Feb 2014 08:58:21 -0800 (PST) Received: by mail-ea0-f181.google.com with SMTP id m10so1034365eaj.26 for ; Thu, 06 Feb 2014 08:58:21 -0800 (PST) Content-Disposition: inline In-Reply-To: <1391699071-12542-1-git-send-email-sagar.a.kamble@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: sagar.a.kamble@intel.com Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, Feb 06, 2014 at 08:34:31PM +0530, sagar.a.kamble@intel.com wrote: > From: Sagar Kamble > > This test will verify 180 degree rotation of CRTC and sprite planes > by grabbing CRC for already rotated image and comparing with CRC calculated > after triggering rotation through DRM property. > > Signed-off-by: Sagar Kamble > Tested-by: Sagar Kamble Minor style nit: The tested-by tag is to credit testing done by non-authors. This is especially important if testing requires a special machine/setup (e.g. the one from a bug reporter) - adding the mail helps in contacting the right people again if a commit breaks something. Adding your own mail is redundant since it's assumed that developers test their own stuff ;-) Two more general comments below. [snip] > +igt_main > +{ > + data_t data = {}; igt_fixture/subtest use longjmps, so putting stack variables into the same function as those is ill-defined. bkm is to add them as global variables right above igt_main. > + fp = fopen("rotate.log", "w+"); Please log data to stdout using printf and friends. That way test runners can easily redirect test output or capture it themselve for storage into a db. Maybe we need an official igt_log, Jeff McGee somewhat proposed this already. Also anything not related to enumerating the subtests must be put into igt_fictures. > + > + igt_skip_on_simulation(); > + > + igt_fixture { > + data.drm_fd = drm_open_any(); > + igt_set_vt_graphics_mode(); > + > + igt_debugfs_init(&data.debugfs); > + igt_pipe_crc_check(&data.debugfs); > + > + display_init(&data); > + } > + > + run_test(&data); > + > + igt_fixture { > + display_fini(&data); > + } > + > + fclose(fp); > +} > -- > 1.8.5 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch