From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paulo Zanoni Subject: [PATCH IGT 2/6] intel_reg_dumper: recognize LPT Date: Fri, 1 Mar 2013 17:44:18 -0300 Message-ID: <1362170662-651-2-git-send-email-przanoni@gmail.com> References: <1362170662-651-1-git-send-email-przanoni@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-gh0-f173.google.com (mail-gh0-f173.google.com [209.85.160.173]) by gabe.freedesktop.org (Postfix) with ESMTP id 8ADD8E5CF7 for ; Fri, 1 Mar 2013 12:44:42 -0800 (PST) Received: by mail-gh0-f173.google.com with SMTP id g2so533202ghb.32 for ; Fri, 01 Mar 2013 12:44:41 -0800 (PST) In-Reply-To: <1362170662-651-1-git-send-email-przanoni@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org Cc: Paulo Zanoni List-Id: intel-gfx@lists.freedesktop.org From: Paulo Zanoni Signed-off-by: Paulo Zanoni --- tools/intel_reg_dumper.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/intel_reg_dumper.c b/tools/intel_reg_dumper.c index 20f332f..b66a1ea 100644 --- a/tools/intel_reg_dumper.c +++ b/tools/intel_reg_dumper.c @@ -2326,8 +2326,12 @@ int main(int argc, char** argv) if (devid) { if (IS_GEN5(devid)) pch = PCH_IBX; - else + else if (IS_GEN6(devid) || IS_IVYBRIDGE(devid)) pch = PCH_CPT; + else if (IS_HASWELL(devid)) + pch = PCH_LPT; + else + pch = PCH_NONE; } else { printf("Dumping from file without -d argument. " "Assuming Ironlake machine.\n"); -- 1.7.10.4