From patchwork Tue Aug 23 09:15:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 9295593 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2CDDE607D0 for ; Tue, 23 Aug 2016 12:31:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F6A32877C for ; Tue, 23 Aug 2016 12:31:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1441028792; Tue, 23 Aug 2016 12:31:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2B8E62877C for ; Tue, 23 Aug 2016 12:31:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BD4D46E802; Tue, 23 Aug 2016 12:29:02 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id C3B7289C25 for ; Tue, 23 Aug 2016 09:16:05 +0000 (UTC) Received: by mail-wm0-x241.google.com with SMTP id i5so17181843wmg.2 for ; Tue, 23 Aug 2016 02:16:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=5BKiQ2tqMpMoiX7mdrD3CJxpUpHMK6xV0kIPYBB+yhM=; b=WWwqdGmQRAJDmUVypb5OuseBN9ep+6mx3q/a1l+/aJJ175uWL1ZMlrD7F4LDCR3RnQ g4h137SVVDK4Au6sHx6bn2+Ab1jX/OKlcCmOjUMEG2UsLyH40EVjvNOP8xI4T1Z089Sr 4bB0NOg7dIBbvDqAmk0sEGxQ4odGiZZ32RpbBSKAAf1JN74JMjaMfBt53JAZAdYXKZ+o aZZFl4O03qQHGOVAeIWulb2z1PsGRejJJ/tWSnsPrqMD7mDIrCacccpYiM4WfJJ/1i5D ZyVQ37DfTlqTcd1b3rQb4egvlRQSaQZsoA8kMkT+A3nTfGOnKAjMxr1pP9Xa5xvcodPo Mz+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=5BKiQ2tqMpMoiX7mdrD3CJxpUpHMK6xV0kIPYBB+yhM=; b=b0P0v4pXG8AdAU68gplHY+n0gR4BpartmkLBGbDAijRhwyxBr/5LT67rQnDxGdTjC2 Kv2sI2kPRNxtUtnJ7LvAY243FzfqASiqUT0m6NCEF5djBukUHyXGWqoP0MzdsEwPGdTi WVbAhbik271TqkkeXIgCfmlxuy7zfGoOKmn6upQlk/zar5M0tSf+zF1Lgp6bzuZIY33C 9DviRo2PYFBNLv1ATp8qEyNbVLQaIWzRmsDxuRhPJOIooMZvbz6l5f8rKbGR4KVS1+Oc EaEZdJQpp9RH0JTwN2faa/Mq4nDtPwMqIt7qzTWdNuzQ9jkWWQ+AlqWh0vjXeDjJMu2Y e8Nw== X-Gm-Message-State: AEkoouuFSfR95Q1FKco1ab4d0GHA1BGXmMFt6cnkddHD+PYE9iBSEhw0LCWuogekb3hE2A== X-Received: by 10.194.23.166 with SMTP id n6mr20019051wjf.36.1471943763873; Tue, 23 Aug 2016 02:16:03 -0700 (PDT) Received: from cizrna.lan ([109.72.12.54]) by smtp.gmail.com with ESMTPSA id p1sm2637508wjd.37.2016.08.23.02.16.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Aug 2016 02:16:01 -0700 (PDT) From: Tomeu Vizoso To: linux-kernel@vger.kernel.org Subject: [PATCH] drm/doc: Add a few words on validation with IGT Date: Tue, 23 Aug 2016 11:15:31 +0200 Message-Id: <1471943731-15729-1-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.7.4 Cc: Tomeu Vizoso , linux-doc@vger.kernel.org, Jonathan Corbet , dri-devel@lists.freedesktop.org, Daniel Vetter X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Also provide some pointers for building IGT as some kernel hackers might not be that familiar with building stuff on Linux distros. Signed-off-by: Tomeu Vizoso Cc: Daniel Vetter --- Documentation/gpu/drm-uapi.rst | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/Documentation/gpu/drm-uapi.rst b/Documentation/gpu/drm-uapi.rst index 94876938aef3..5e425ab83dc1 100644 --- a/Documentation/gpu/drm-uapi.rst +++ b/Documentation/gpu/drm-uapi.rst @@ -112,3 +112,40 @@ interfaces. Especially since all hardware-acceleration interfaces to userspace are driver specific for efficiency and other reasons these interfaces can be rather substantial. Hence every driver has its own chapter. + +Validating changes with IGT +=========================== + +There's a collection of tests that aims to cover the whole functionality of +DRM drivers and that can be used to check that changes to DRM drivers or the +core don't regress existing functionality. This test suite is called IGT and +its code can be found in https://cgit.freedesktop.org/xorg/app/intel-gpu-tools. + +To build IGT, start by installing its build dependencies. In Debian-based +systems:: + + # apt-get build-dep intel-gpu-tools + +And in Fedora-based systems:: + + # dnf builddep intel-gpu-tools + +Then clone the repository:: + + $ git clone git://anongit.freedesktop.org/xorg/app/intel-gpu-tools + +Configure the build system and start the build:: + + $ cd intel-gpu-tools && ./autogen.sh && make -j6 + +Download the piglit dependency:: + + $ ./scripts/run-tests.sh -d + +And run the tests:: + + $ ./scripts/run-tests.sh -t kms -t core -s + +run-tests.sh is a wrapper around piglit that will execute the tests matching +the -t options. A report in HTML format will be available in +./results/html/index.html. Results can be compared with piglit.