Received: by 10.192.165.148 with SMTP id m20csp313168imm; Wed, 2 May 2018 00:15:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrsrjNID9TsYtGj1RqXIo9RdI0Au7GvAWWdHP/LL/SuWqFfWYekweS/obKn1AnlzUGNsbpd X-Received: by 2002:a65:5cc6:: with SMTP id b6-v6mr14817611pgt.84.1525245337699; Wed, 02 May 2018 00:15:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525245337; cv=none; d=google.com; s=arc-20160816; b=H7OCHLs1VY9vPHtVoBy0FCJIWtJ+EQlnVk+XNw2Zu/y9qCsTqEPHDdjRA/DotORKpc B2Gn9y5xTGO7bMISj2XCB84E8B8emnTxJIueO61gmN7JYhlEaIjUODFbck89knYim9Ba 144wS+vyueTGEwJTIw9RvncnDdyL6/rfVGezhhar7MVBG2LpGnTrawB1duQq1YrGG467 01hnOvK0U64cd5b8+bQRNzIFZKN4oXz2+jo3JdLA7SohIjtz1LFm128suOLWSah8Wiix ftyk9bs4ZlQZk44eMv2r4rhS6cbPyRmoIpWGYwgn3xpukAd4d29bJnYZdWtW6z2uiWqq 4cZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=DtyFJM09B/i/fpjLBF78ww9oVgIqx6G4cWe6yin81EU=; b=waTGyVZ0WyibbCLEGHVavmyiUgM7oZSewS8S4HOAwlih4WH19Wn2BEXgPcMvJYv4sw zM4bLl6TJ7JoO1tQmCv7LMCukx75al83ks6VkM9BI0ofazm2nU4sCxLZDZPnNooMTC3D 9PlBNsMnJ0cNJhzMeRx27W9gYWHrnDrEKaeA+SimMPdYuKinAk6B5PxHq7tU+NDxdLxm F7+llMbhX8db6EUu77HEeVRft1gANhBjM9D7EfxidklKaDH1FZexLE5BtmePuFKpVKhV lNA8z4/L6cZVbLQ2TyttLGKD69lJSdcOsXhPhO6NMcXuR2Q9jQokQbjwAsNBrUvUGzDo oTiA== 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 l15-v6si9285615pgu.659.2018.05.02.00.15.23; Wed, 02 May 2018 00:15:37 -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 S1751137AbeEBHOz convert rfc822-to-8bit (ORCPT + 99 others); Wed, 2 May 2018 03:14:55 -0400 Received: from ZXSHCAS1.zhaoxin.com ([203.148.12.81]:54415 "EHLO ZXSHCAS1.zhaoxin.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751074AbeEBHOx (ORCPT ); Wed, 2 May 2018 03:14:53 -0400 Received: from zxbjmbx3.zhaoxin.com (10.29.252.165) by ZXSHCAS1.zhaoxin.com (10.28.252.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1261.35; Wed, 2 May 2018 15:14:49 +0800 Received: from TIMGUOE40 (10.29.8.18) by zxbjmbx3.zhaoxin.com (10.29.252.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1261.35; Wed, 2 May 2018 15:14:47 +0800 From: David Wang To: 'Thomas Gleixner' CC: , , , , , , , , , , Subject: Re: [PATCH v3] report correct CPU/cache topology Date: Wed, 2 May 2018 15:14:35 +0800 Message-ID: <000001d3e1e5$39b15640$ad1402c0$@zhaoxin.com> MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8BIT X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdPh5OZG/ZPAdTjOTuCfG5Pk1Np1sQ== Content-Language: zh-cn X-Originating-IP: [10.29.8.18] X-ClientProxiedBy: zxbjmbx1.zhaoxin.com (10.29.252.163) To zxbjmbx3.zhaoxin.com (10.29.252.165) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Mail----- > Sender: Thomas Gleixner [mailto:tglx@linutronix.de] > Time: 2018??4??26?? 19:56 > Receiver: David Wang > CC: mingo@redhat.com; hpa@zytor.com; gregkh@linuxfoundation.org; > x86@kernel.org; linux-kernel@vger.kernel.org; brucechang@via- > alliance.com; cooperyan@zhaoxin.com; qiyuanwang@zhaoxin.com; > benjaminpan@viatech.com; lukelin@viacpu.com; timguo@zhaoxin.com > Subject: Re: [PATCH v3] report correct CPU/cache topology > > > > On Thu, 26 Apr 2018, David Wang wrote: > > > Centaur CPUs enumerate the cache topology in the same way as Intel > > CPUs, but the function is unused so far. > > The Centaur init code also misses to initialize x86_info::max_cores, > > so the CPU topology can't be described correctly. > > > > Initialize x86_info::max_cores and invoke init_intel_cachinfo() to > > make CPU and cache topology information avaliable and correct > > Now that looks pretty good. > > > Signed-off-by: David Wang > > > > Changes from v2 to v3: > > *1 define new detect_num_cpu_cores() in common.c to replace the > > original intel_num_cpu_cores; > > *2 move cpu_detect_cache_sizes inside init_intel_cacheinfo. > > But I asked for that being a separate patch with a separate changelog. And > the intel_cache_info() change wants to be in a separate patch as well. Then > the third patch is the one which makes use of these changes for centaur. > > Please read review comments carefully and rather ask when you have > doubts about the meaning. > > Thanks, > > tglx > Sorry! I will split the changes to three separate patches. Thank you. --- David