From patchwork Sat Apr 4 01:01:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jeff.mcgee@intel.com X-Patchwork-Id: 6160521 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5DA4F9F1BE for ; Sat, 4 Apr 2015 01:00:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 93F18203AC for ; Sat, 4 Apr 2015 01:00:47 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 57518202BE for ; Sat, 4 Apr 2015 01:00:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B35606E2AB; Fri, 3 Apr 2015 18:00:44 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 5CA596E2AB for ; Fri, 3 Apr 2015 18:00:43 -0700 (PDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP; 03 Apr 2015 18:00:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,521,1422950400"; d="scan'208";a="690242841" Received: from jeffdesk.fm.intel.com ([10.19.123.159]) by fmsmga001.fm.intel.com with ESMTP; 03 Apr 2015 18:00:42 -0700 From: jeff.mcgee@intel.com To: intel-gfx@lists.freedesktop.org Date: Fri, 3 Apr 2015 18:01:12 -0700 Message-Id: <1428109272-22546-1-git-send-email-jeff.mcgee@intel.com> X-Mailer: git-send-email 2.3.3 Subject: [Intel-gfx] [PATCH i-g-t] tests/pm_sseu: Require Gen8+ early in setup 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 From: Jeff McGee Pre-Gen8 devices should be skipped early instead of failing when test resources are not found. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89822 Signed-off-by: Jeff McGee --- tests/pm_sseu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/pm_sseu.c b/tests/pm_sseu.c index 34465db..320371f 100644 --- a/tests/pm_sseu.c +++ b/tests/pm_sseu.c @@ -262,6 +262,8 @@ gem_init(void) gem.devid = intel_get_drm_devid(gem.drm_fd); gem.gen = intel_gen(gem.devid); + igt_require_f(gem.gen >= 8, + "SSEU power gating only relevant for Gen8+"); gem.has_ppgtt = gem_uses_aliasing_ppgtt(gem.drm_fd); gem.bufmgr = drm_intel_bufmgr_gem_init(gem.drm_fd, 4096);