From patchwork Thu Sep 1 07:41:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 9308523 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 89FE5607D2 for ; Thu, 1 Sep 2016 07:42:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 77FAD2923E for ; Thu, 1 Sep 2016 07:42:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6C79429240; Thu, 1 Sep 2016 07:42:12 +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 49F402923E for ; Thu, 1 Sep 2016 07:42:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3CA916E2A4; Thu, 1 Sep 2016 07:42:09 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 254CE6E2A4 for ; Thu, 1 Sep 2016 07:42:08 +0000 (UTC) Received: by mail-wm0-x244.google.com with SMTP id v143so723568wmv.1 for ; Thu, 01 Sep 2016 00:42:08 -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=Wua/1ESN2eKXUmdqdj/xAyCe2F65lzXEHZR9Pztu/e4=; b=IYDRchPAXe4dUNG0IvyfSy/zjYslUE5MJCGv8qFIeuaFe9mLX5fd7MQp6MOErE4ZiX +5nW73VUfLiE81YH9+E8ZRfEhoLaPRlJId4B1j2sEazplRVfdFSthKqobj7/DVpA+y1r a1qsMzFqvag2pDyRJfP6F9N92ilVUUXjuA9AdqfPkQrPtdy49uvrt/aBxgeHFM6dpGjl u7jW1VX/QvCIAeWYy8Tktp4yOuIB6PSLJnf2zSnpIP7bDgczJIn0vps+Udqmhdgkoxye LydeSGWAyjfd/pMALIwef4NO7iGQ8wc3pI0wDnQIk4FwkdD6H8c1fNpDJHjjQKSdyHUp FXVg== 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=Wua/1ESN2eKXUmdqdj/xAyCe2F65lzXEHZR9Pztu/e4=; b=V/LxOP/yCwHjmh4stK4Lj16T+SlbHezotMb2z2cn3twd3D/IUChyR93u1sDsL9/d0/ KRZLsxXimDsKRZUSXAPE0BoABD5//ABTgfZR/HiYK3hRwTv9EAs7AkuQVjWvf69ebThF 91G2hgbUAhu5kRhTpJ0MmR2HDudDPIErjUImx8qcvfRucBJEVzx5uwANcIJ/9Xv3SMze a8hzUrrZp7Nux2PnKyAXr/fDqYXYXE32WHMSgH7oeBHlGOHt253nlEFYsD7l+djdFN5j a+pEuRz/sbV9f6deCnH9fUF4tjdUFOHiu1f6Sa2sWn1WzR8EBG9BNmlVjfo9a5HoCax0 DnFA== X-Gm-Message-State: AE9vXwPo/b1iXkK7l1VnMHJ8/B8ZMP6VRZaX0DIx4juNgMZrovaAlbNi6NovQ7ppBvjp+Q== X-Received: by 10.28.52.2 with SMTP id b2mr26597440wma.109.1472715726733; Thu, 01 Sep 2016 00:42:06 -0700 (PDT) Received: from cizrna.lan ([109.72.12.82]) by smtp.gmail.com with ESMTPSA id s6sm3771262wjm.25.2016.09.01.00.42.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Sep 2016 00:42:05 -0700 (PDT) From: Tomeu Vizoso To: linux-kernel@vger.kernel.org Subject: [PATCH v2] drm/doc: Add a few words on validation with IGT Date: Thu, 1 Sep 2016 09:41:35 +0200 Message-Id: <1472715695-19812-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 12b47c30fe2e..1ba301cebe16 100644 --- a/Documentation/gpu/drm-uapi.rst +++ b/Documentation/gpu/drm-uapi.rst @@ -156,6 +156,43 @@ other hand, a driver requires shared state between clients which is visible to user-space and accessible beyond open-file boundaries, they cannot support render nodes. +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/drm/igt-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/drm/igt-gpu-tools + +Configure the build system and start the build:: + + $ cd igt-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. + VBlank event handling =====================