From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753029Ab0EKP5G (ORCPT ); Tue, 11 May 2010 11:57:06 -0400 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:43955 "EHLO www.etchedpixels.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751915Ab0EKP5B (ORCPT ); Tue, 11 May 2010 11:57:01 -0400 Date: Tue, 11 May 2010 17:03:14 +0100 From: Alan Cox To: Thomas Gleixner Cc: Jacob Pan , "H. Peter Anvin" , Ingo Molnar , Alek Du , Arjan van de Ven , Feng Tang , LKML , Jacob Pan Subject: Re: [PATCH 4/8] x86/mrst: change clock selection logic to support medfield Message-ID: <20100511170314.3e9f4d22@lxorguk.ukuu.org.uk> In-Reply-To: References: <1273254108-3234-1-git-send-email-jacob.jun.pan@linux.intel.com> <1273254108-3234-5-git-send-email-jacob.jun.pan@linux.intel.com> <20100511163054.365239fe@lxorguk.ukuu.org.uk> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.18.9; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 11 May 2010 17:50:28 +0200 (CEST) Thomas Gleixner wrote: > On Tue, 11 May 2010, Alan Cox wrote: > > > > > + pr_debug("cpuid result %x\n", regs[CR_EAX]); > > > > + pr_info("Moorestown CPU %s identified\n", > > > > + (mrst_cpu_chip == MRST_CPU_CHIP_LINCROFT) ? > > > > + "Lincroft" : "Penwell"); > > > > > > Are we going to add one of those for each new family ? This is > > > really redundant bloat with no value. > > > > > > > + return mrst_cpu_chip; > > > > From the driver side we need this value determined and visible to the > > drivers because some things like the IPC interface need to know rather > > than getting the cpuid magic replicated around. > > Ok. That makes sense. Is there more what MRST drivers need to know ? At some point they will need to know what platform they are booting on, I have a possible patch for that which just exposes the boot loader value but I'm not sure what the final direction on that will be. For CPU they need to know which CPU type as it affects some bits like the message formats in use. Probably that means the mrst_cpu_type enum or function should have an enum value of 0 which means "Not a moorestown device".