From patchwork Wed Dec 21 12:29:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ville Syrjala X-Patchwork-Id: 9482991 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 312B460772 for ; Wed, 21 Dec 2016 12:30:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0765C27E15 for ; Wed, 21 Dec 2016 12:30:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EF89428339; Wed, 21 Dec 2016 12:30:00 +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.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED 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 7C68628339 for ; Wed, 21 Dec 2016 12:30:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BF5DB6F02E; Wed, 21 Dec 2016 12:29:58 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id ED8556F02E for ; Wed, 21 Dec 2016 12:29:56 +0000 (UTC) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP; 21 Dec 2016 04:29:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.33,383,1477983600"; d="scan'208"; a="1074808975" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.174]) by orsmga001.jf.intel.com with SMTP; 21 Dec 2016 04:29:54 -0800 Received: by stinkbox (sSMTP sendmail emulation); Wed, 21 Dec 2016 14:29:53 +0200 From: ville.syrjala@linux.intel.com To: intel-gfx@lists.freedesktop.org Date: Wed, 21 Dec 2016 14:29:53 +0200 Message-Id: <20161221122953.18799-1-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.10.2 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH i-g-t] tools/intel_display_poller: Add gen9+ support 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: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP From: Ville Syrjälä All the registers we care about should be the same for all bdw+ platforms, so let's just use the bdw path for gen9+. Signed-off-by: Ville Syrjälä --- tools/intel_display_poller.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/intel_display_poller.c b/tools/intel_display_poller.c index 2129c613652d..63c930fb08a0 100644 --- a/tools/intel_display_poller.c +++ b/tools/intel_display_poller.c @@ -515,7 +515,7 @@ static void poll_dsl_deiir(uint32_t devid, int pipe, int bit, bit = 1 << bit; dsl = PIPE_REG(pipe, PIPEA_DSL); - if (IS_GEN8(devid)) { + if (intel_gen(devid) >= 8) { iir = GEN8_DE_PIPE_IIR(pipe); ier = GEN8_DE_PIPE_IER(pipe); imr = GEN8_DE_PIPE_IMR(pipe); @@ -1152,7 +1152,7 @@ int main(int argc, char *argv[]) default: usage(argv[0]); } - } else if (IS_GEN8(devid)) { + } else if (intel_gen(devid) >= 8) { if (test_pixelcount) usage(argv[0]);