Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp414092imm; Tue, 7 Aug 2018 22:16:31 -0700 (PDT) X-Google-Smtp-Source: AA+uWPz2hT5pR7GO1q+kP324PJPj4bZCGMO2w/YxtgIzaoVuLLQsK8klukWORE7XQAKg4MQICyS1 X-Received: by 2002:a17:902:32a4:: with SMTP id z33-v6mr1155610plb.226.1533705391667; Tue, 07 Aug 2018 22:16:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533705391; cv=none; d=google.com; s=arc-20160816; b=TuMuZUsUOP1I0m/I3AYjiSCdo4c39TSHFd9pmcjaExXAK2tLf+toOzkNGCwfHxX7qX BGahmwhBnVRyIwLMbQ/X4/1JQhKYg+HKuULN/iz9J8tG2ack3dEWlre6f9RNBLv/sj7+ b2XuQAoWWNsR+DAfEQkgP0mfIvPXc78nGaHMrNAyt3B/pSDG9pNmPaaYDx43gWVwPcWS sKsHuR4haWvhhPMQ0f3oOsgGfDEdKBgH1sxiqWrrq9Gl/kVrANW0Si6KADOTX9nRvXBL pQP6RddD9mnw/HPWMSaCyUMr/oyT6CttTnDJgQoI1VI4/wP4xfvPNnRCnmrFBtBdeV/e tUmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=Ju15RgeUFpa3BLCwc/p2I5CLIVVUIOta9jVuTIPqFfA=; b=Mpc1K/B//sJDpNnAz0OXqU//6jz8Ox6uAf5zVerWiLeYjlzxT29YSLYnSJAfU6d2Qh ZR1LGNiDntLsEHOTDgCwnURgIfRGnsvy19umIYGe8q6GF30JwwNDtSR0FJnLEk7DX+5N /IRodbdudwH+sU+3giRX+nva7VGIout90TyGkkCk/XO8swLYfcowvAoJtvr0IJjNCp5S UIvYCAIGOWpMWGnEgACocN8NrD4mmWmX8RG62CFrAHKwdAxp6V4yNQCwBrvFZqr7D8XO zxQLUQmKUQRuB/9EyQGd2Bfq9JYoyIPYWox+gC3KMBAiI6I8NNjNRzNLmQyRjDecrO9s YWOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n34-v6si3421182pgm.28.2018.08.07.22.16.14; Tue, 07 Aug 2018 22:16:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726890AbeHHHc7 (ORCPT + 99 others); Wed, 8 Aug 2018 03:32:59 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:50410 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726538AbeHHHc7 (ORCPT ); Wed, 8 Aug 2018 03:32:59 -0400 Received: from p4fea5a5a.dip0.t-ipconnect.de ([79.234.90.90] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fnGo9-0003RO-1W; Wed, 08 Aug 2018 07:14:53 +0200 Date: Wed, 8 Aug 2018 07:14:52 +0200 (CEST) From: Thomas Gleixner To: Andi Kleen cc: Peter Zijlstra , Dave Hansen , kan.liang@linux.intel.com, mingo@redhat.com, len.brown@intel.com, linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH] x86/cpu: Rename Denverton and Gemini Lake In-Reply-To: <20180807221725.GU4238@tassilo.jf.intel.com> Message-ID: References: <1533662247-17575-1-git-send-email-kan.liang@linux.intel.com> <1b7cb461-5321-86cf-3031-5ff545c3dc42@linux.intel.com> <20180807174851.GJ2494@hirez.programming.kicks-ass.net> <20180807183736.GR4238@tassilo.jf.intel.com> <20180807221725.GU4238@tassilo.jf.intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 7 Aug 2018, Andi Kleen wrote: > > Which simply does not work. Look at Goldmont Fam 6 Model 5C. The SoCs > > with that Fam/Model combination are: > > > > - Apollo Lake > > - Broxton (has two platforms: Morganfield and Willowtrail) > > Right pick one. The others are the same for software purposes > and can be handled in the same way. Pick one is really not a good choice. > > It's even worse with Silvermont. > > > > So no, the interesting information is the UARCH and the variant of that, > > With Uarch you mean the core uarch? That doesn't really work for > something like Silvermont or Goldmont. > > > e.g. UARCH_CLIENT, UARCH_SERVER, UARCH_WHATEVER. All the magic Code Names > > Right your scheme totally doesn't work on Silvermont because there > are multiple client variants. We have that for the big cores as well: #define INTEL_FAM6_HASWELL_CORE 0x3C #define INTEL_FAM6_HASWELL_X 0x3F #define INTEL_FAM6_HASWELL_ULT 0x45 #define INTEL_FAM6_HASWELL_GT3E 0x46 Why would we treat ATOM differently? It's all the same scheme: SILVERMONT_CLIENT 0x37 Baytrail, Valleyview SILVERMONT_SERVER 0x40 Avaton, Rangely and on goldmont it's not any different. We really want one scheme for both Core and ATOM and not randomly picked different ones. For the kernel (aside of some peripheral stuff) the most interesting information is the UARCH plus the extra features which are enabled on a particular SoC. The current naming scheme e.g. for SILVERMONT is utter crap because the 1/2 variants are in fact CLIENT/SERVER and the comment in the header file, that there is no better name, is just silly. Thanks, tglx