From patchwork Wed Mar 2 14:00:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 8480751 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8064BC0553 for ; Wed, 2 Mar 2016 14:01:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ABB3120386 for ; Wed, 2 Mar 2016 14:01:12 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id EB364202AE for ; Wed, 2 Mar 2016 14:01:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B0BE46E87A; Wed, 2 Mar 2016 14:01:10 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1611B6E87A for ; Wed, 2 Mar 2016 14:01:05 +0000 (UTC) Received: by mail-wm0-x243.google.com with SMTP id l68so9783735wml.3 for ; Wed, 02 Mar 2016 06:01:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=A59iQ6G4yn0LMjnLb7LM1z+AfhAIfH/5N1iO/V//GqY=; b=yhJz3jKvqc/aWnsYCcdDrXVDfnDP4qExr/W6fdrzkgqRsyjQmbzutv+t9Vb7tFOAbb RVu4g49aZPjt5R+qaFBexW/2KWPrZkBwb6oYG/adm/J8EGq6OqfbsN4+3vVVphJJ9lcG 2q3bfGQiVTJChkjG5DXLcM4StksrcYiipOGuQaUiRz4UDOg9qZr0qkcnhvIhiUNMUhIX vFg3EyAfeQBIi8qduzLgkdNjhKWeLfZWFLGBPliqNknQUxVhAUhNDvfOfv7hv2hAC6Pn r/10EqwvMKtd3ql3z7D2cs2mYmvDrzMOfO5eXLIQTCZMqFjqJy98jAPICEMV5q5FO94a lSKA== 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 :in-reply-to:references; bh=A59iQ6G4yn0LMjnLb7LM1z+AfhAIfH/5N1iO/V//GqY=; b=TB+pYXuIooqCCOjjsG5RiNQxWlVPFZ9LR0O3JXLGNrUv4S9AzG1a4z6FCbJGpBjCxU wUVf5lHGdDzmKJNzp4SfEGTMiILigDOEPCeJIQ4Xui0oXE1QXerbC3Xfk2lSG3K0exEZ brM6rX+y+nmJmddxAOFRHF1u6nkGI0k+EY9/8OWoS2vqa7JHI7ZiZZ11SZNmqPYEO8zM g3vdhTkgj1u6NfIvLEu85T4PLSqwHJCx1J8eFvGbLV698Zy76duGPhBkBdzC/OcT2Ht8 Pa878oA2N/+l7o1d3rHaMRyrHMcxSFVtLSaWG+a0NFCRAlg7hQh+xjxlKVB6epeVBK2I nv5g== X-Gm-Message-State: AD7BkJJXWbX4oi/3yo3Sqd/IO7YirVR8yobEb1TP0OVbCNP9N2Yq9p4QKG2wR1PvfL2RNw== X-Received: by 10.194.60.145 with SMTP id h17mr28473003wjr.47.1456927263461; Wed, 02 Mar 2016 06:01:03 -0800 (PST) Received: from cizrna.lan ([109.72.12.223]) by smtp.gmail.com with ESMTPSA id e19sm4359876wmd.1.2016.03.02.06.01.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Mar 2016 06:01:02 -0800 (PST) From: Tomeu Vizoso To: Intel GFX discussion Date: Wed, 2 Mar 2016 15:00:09 +0100 Message-Id: <1456927221-32421-3-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1456927221-32421-1-git-send-email-tomeu.vizoso@collabora.com> References: <1456927221-32421-1-git-send-email-tomeu.vizoso@collabora.com> Cc: Daniel Stone , Tomeu Vizoso , Micah Fedke , Gustavo Padovan , Emil Velikov Subject: [Intel-gfx] [i-g-t PATCH v1 02/14] lib: Have gem_set_tiling require intel X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Before calling a i915-specific IOCTL, require i915. This allows us to skip subtests that are specific to that driver, though what should eventually happen is that tests don't generally call gem_set_tiling directly but go through an abstraction layer that constructs the buffer object in a driver-specific way. Signed-off-by: Tomeu Vizoso --- lib/ioctl_wrappers.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c index 5d4972931506..0221b7fef3a1 100644 --- a/lib/ioctl_wrappers.c +++ b/lib/ioctl_wrappers.c @@ -138,6 +138,8 @@ int __gem_set_tiling(int fd, uint32_t handle, uint32_t tiling, uint32_t stride) struct drm_i915_gem_set_tiling st; int ret; + igt_require_intel(fd); + memset(&st, 0, sizeof(st)); do { st.handle = handle;