From patchwork Tue Nov 22 16:50:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Bragg X-Patchwork-Id: 9441551 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 E3917600BA for ; Tue, 22 Nov 2016 16:50:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D7A7A2852B for ; Tue, 22 Nov 2016 16:50:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CC4FC28578; Tue, 22 Nov 2016 16:50:46 +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 6F38A2852B for ; Tue, 22 Nov 2016 16:50:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 64DFF6E5B3; Tue, 22 Nov 2016 16:50:45 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wj0-x244.google.com (mail-wj0-x244.google.com [IPv6:2a00:1450:400c:c01::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id CB6A26E5B3 for ; Tue, 22 Nov 2016 16:50:43 +0000 (UTC) Received: by mail-wj0-x244.google.com with SMTP id xy5so6701360wjc.1 for ; Tue, 22 Nov 2016 08:50:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=SjfUo0a0ymT39c3NAo3yPCy0Zzm//AXCXXfQAUOP0HU=; b=YZWt8Xowo/x4Hmi3hhDAs+YxvDAFyhXd7ocMlpcgn4/0Ph6nEkoBbx/spMuvH9lgYT ibXos31f7NHSya/IWnbDGwWQOaQi/E51F4uWKPSUiIqBOqGIgLWVfUQLykm2LK3+Tl0f RYKePcpbeLtSfm68ydX1Uc9Rsp33rKypabyNIexdzOl9kvDt9QvrHR1o29Pa3hS9n9Hy eOXc4CbZGFXrbgjGvYHRWZpuM/iLzvNC4ngAzACr1nl6wmiUgHPrLcexNouZbRJjMhon SNCO3EEboYiZqr0j9r55AZxMgldYojeFDm+QGkm4yAAGtqYkHegGjomZgyslYtzxl/Vy V7sg== 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:subject:date:message-id :in-reply-to:references; bh=SjfUo0a0ymT39c3NAo3yPCy0Zzm//AXCXXfQAUOP0HU=; b=ey8fywcRLcIY4pyo9p0fJOSU+8akCATTdAig6A0RYhAn6ioIDrJU7Wn2X2L7PSPsuO HuVqwZpqM3BrY/HET2+/zfssTsK3hX8eGtZkukb0QjW5oShmwLDpOUNtWRJGX/la+42K qVtNgkecUQshduF6bUq8TdsEjS9VK3WpvMX/ePsBpEbo7jt18p5ptLLvaPB8O/N4aBLj JmMMttcRnCQ9v+9UK1/i6DvHXiAq9B7jbXTwcldOzqy46yg+w1jS/90np2DoqaTnCchr hTvO+8lUKmx6tZ6pt4FmgDdA0vkIaJc/3Xt8FhkmDm7UZNTLwhbRRiTAOXGYP0+Mt/ph vLZw== X-Gm-Message-State: AKaTC02If4Kqh5kFAXbV2DJFHFTgQHjDLZrpFA1g4B0e+7/tmYw/xZEvXH6ch0YbofRUag== X-Received: by 10.194.123.201 with SMTP id mc9mr18372817wjb.47.1479833442059; Tue, 22 Nov 2016 08:50:42 -0800 (PST) Received: from sixbynine.org (82-132-216-122.dab.02.net. [82.132.216.122]) by smtp.gmail.com with ESMTPSA id u17sm3855563wma.24.2016.11.22.08.50.41 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Nov 2016 08:50:41 -0800 (PST) From: Robert Bragg To: intel-gfx@lists.freedesktop.org Date: Tue, 22 Nov 2016 16:50:35 +0000 Message-Id: <20161122165035.3184-1-robert@sixbynine.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161122160637.GA26168@nuc-i3427.alporthouse.com> References: <20161122160637.GA26168@nuc-i3427.alporthouse.com> Subject: [Intel-gfx] [PATCH igt] igt/gem_exec_parse: test_lri check init + add debug msg 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-Virus-Scanned: ClamAV using ClamSMTP Just to note I haven't tested yet as I don't have hsw to hand, but seems simple enough to send out anyway... --- >8 --- To make it clear on failure what register was being tested the test_lri helper now uses igt_debug to log the register address and value being tested. The test_lri helper now also double checks that the initial intel_register_write() takes before issuing the LRI. Signed-off-by: Robert Bragg --- tests/gem_exec_parse.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/gem_exec_parse.c b/tests/gem_exec_parse.c index cc2103a..534a933 100644 --- a/tests/gem_exec_parse.c +++ b/tests/gem_exec_parse.c @@ -272,8 +272,15 @@ test_lri(int fd, uint32_t handle, MI_BATCH_BUFFER_END, }; + igt_debug("testing lri, reg=%x, val=%x, expected errno=%d\n", + test->reg, test->test_val, expected_errno); + intel_register_write(test->reg, test->init_val); + igt_assert_eq_u32((intel_register_read(test->reg) & + test->read_mask), + test->init_val); + exec_batch(fd, handle, lri, sizeof(lri), I915_EXEC_RENDER,