From patchwork Wed Dec 3 01:52:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhipeng Gong X-Patchwork-Id: 5426291 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8824EBEEA8 for ; Wed, 3 Dec 2014 02:11:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BDE5320212 for ; Wed, 3 Dec 2014 02:11:49 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id EAD792034E for ; Wed, 3 Dec 2014 02:11:48 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 71F087250B; Tue, 2 Dec 2014 18:11:48 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTP id 4446E7250D for ; Tue, 2 Dec 2014 18:11:47 -0800 (PST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 02 Dec 2014 18:08:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,691,1406617200"; d="scan'208";a="492660251" Received: from zgong5-ubu.sh.intel.com ([10.239.140.247]) by orsmga003.jf.intel.com with ESMTP; 02 Dec 2014 18:08:31 -0800 From: Zhipeng Gong To: intel-gfx@lists.freedesktop.org Date: Wed, 3 Dec 2014 09:52:42 +0800 Message-Id: <1417571563-16004-3-git-send-email-zhipeng.gong@intel.com> X-Mailer: git-send-email 2.0.4 In-Reply-To: <1417571563-16004-1-git-send-email-zhipeng.gong@intel.com> References: <1417571563-16004-1-git-send-email-zhipeng.gong@intel.com> Cc: rodrigo.vivi@intel.com Subject: [Intel-gfx] [PATCH i-g-t 2/3] tests/gem_exec_params: check the invalid flags for dual bsd ring 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.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Signed-off-by: Zhipeng Gong Reviewed-by: Rodrigo Vivi Tested-by: Rodrigo Vivi --- tests/gem_exec_params.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/gem_exec_params.c b/tests/gem_exec_params.c index f63eda9..ab19482 100644 --- a/tests/gem_exec_params.c +++ b/tests/gem_exec_params.c @@ -45,6 +45,7 @@ #include "igt_aux.h" #define LOCAL_I915_EXEC_VEBOX (4<<0) +#define LOCAL_I915_EXEC_BSD_MASK (3<<13) struct drm_i915_gem_execbuffer2 execbuf; struct drm_i915_gem_exec_object2 gem_exec[1]; @@ -126,6 +127,12 @@ igt_main RUN_FAIL(EINVAL); } + igt_subtest("invalid-bsd-ring") { + igt_require(gem_has_bsd2(fd)); + execbuf.flags = I915_EXEC_BSD | LOCAL_I915_EXEC_BSD_MASK; + RUN_FAIL(EINVAL); + } + igt_subtest("rel-constants-invalid-ring") { igt_require(gem_has_bsd(fd)); execbuf.flags = I915_EXEC_BSD | I915_EXEC_CONSTANTS_ABSOLUTE;