From: Damien Lespiau Subject: Re: [PATCH IGT 2/6] intel_reg_dumper: recognize LPT Date: Tue, 5 Mar 2013 11:50:38 +0000 Message-ID: <20130305115038.GA20576@dyon.amr.corp.intel.com> References: <1362170662-651-1-git-send-email-przanoni@gmail.com> <1362170662-651-2-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 mga03.intel.com (mga03.intel.com [143.182.124.21]) by gabe.freedesktop.org (Postfix) with ESMTP id 851F5E698F for ; Tue, 5 Mar 2013 03:50:40 -0800 (PST) Content-Disposition: inline In-Reply-To: <1362170662-651-2-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: Paulo Zanoni Cc: intel-gfx@lists.freedesktop.org, Paulo Zanoni List-Id: intel-gfx@lists.freedesktop.org On Fri, Mar 01, 2013 at 05:44:18PM -0300, Paulo Zanoni wrote: > 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; In patch 6/6 you're fixing the PCH detection code in lib/ maybe it'd be a good idea to use it to detect the PCH of having heuristics on device 2 -> PCH mappings? -- Damien