Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1524860imm; Sun, 23 Sep 2018 06:05:14 -0700 (PDT) X-Google-Smtp-Source: ACcGV61CdMKBL5HvEVa3RmzDhpGgEc6J+nw4WHWN1IBILCCNN7rGO4ZimUStYPQ3eEfNnVZk/fpX X-Received: by 2002:a17:902:7401:: with SMTP id g1-v6mr399864pll.144.1537707914036; Sun, 23 Sep 2018 06:05:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537707914; cv=none; d=google.com; s=arc-20160816; b=NOh3H7Rl9oQWCcs/dJ/+mfSmAqXrcnLi4IACVBh5EVfsKPFlcX/HO+vRrAssbH6jyH Gpbrid9DFJa6saH/5tb1bU+ExhBAERwFaRz0E66eDJomSNxzOUHTuWuOlXZRC7c3NLgA 5HJli6Yc4UAcwyaocEKSEdD/ropj06dQm/dX7LRKrMK+4B+umPZZvY+w406NUMV9tUa3 RIrXxaqyDPvPFK7ulQu7ii7x7MzuCMfBYQaOD2WsPjogBUqDpY1B3ORRFzAFEALvrngU dwU3/lDA3pjgP31+ik4bDn6mxcRH5nOUir5Gwg1nJb7qgGKxqvOZm5r7+Cop95ezUK5L +WdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=qamf5WVEhA14WoAZkhjKj+Q2aOhf6C5QQjC4bSKGsh8=; b=yE21iz76u1ginJxJ6TvcJYt//kdDc9xn5Ti3gf9y9zIwKMTcKctjcO19YkiVVIP+GC VO6j/8Qe3MciR6iSiR25lVhnoEPOfcaNaODK51C4rguquOPB3/DPg4oiC/wLmBzbDO1w lXYbnMWdqY1IzyJgUnemWRCLfjXIRGxW3ljWxJLrwF/m8y49fDhXgIs89R5zaUITBVc3 E1BREYGAq2nR3lDje15OplLykJmCPhPugAMtYoen9170i3UnzJb5lwtxqy/IzCztxXRC nYPJDHNvTstDybQBPa+u3nOIantWR2Z44lSIka1WeXi//5mBqPoCKEjTUm1wNcInOomR Dcug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=G1ZpU7za; 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 h3-v6si15585749plh.469.2018.09.23.06.04.55; Sun, 23 Sep 2018 06:05:14 -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; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=G1ZpU7za; 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 S1726225AbeIWTCP (ORCPT + 99 others); Sun, 23 Sep 2018 15:02:15 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:38231 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726036AbeIWTCP (ORCPT ); Sun, 23 Sep 2018 15:02:15 -0400 Received: by mail-wr1-f67.google.com with SMTP id j8-v6so13297937wrw.5 for ; Sun, 23 Sep 2018 06:04:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qamf5WVEhA14WoAZkhjKj+Q2aOhf6C5QQjC4bSKGsh8=; b=G1ZpU7zaY66sXAdarFUHQzmi+6Y0ovM7X8D5TNxxLmSIh/4xdFzR1bKsqkrFw5drzt +Gyc78tHmZU6Hnw5oO38AackCaq36uVgV4N8tNR21agrbhwit0FHnpPGj3ob8ch9EQlp KS2FtqkD3VU28IXXoVuocFbkAur3Iul/i+yGHMqcAHcDZ75rzcidqotemzHJfUQtDiGo rhLMaHWIAIdPQCLAz38AnhnhYu7dp9Zv4CM6cEUc8iU4ioZrSNE4bVvitSEg29CEKxuA KwcPIxx9hQlFu3Dhw0TGA9ijWJMRw9cGSRlkb94RLfwNr0z7ckaHWe1uxc1seRFDf3q5 zE2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qamf5WVEhA14WoAZkhjKj+Q2aOhf6C5QQjC4bSKGsh8=; b=era+bmZm7AwxnHb+PUuE+BiQ8Xgl8gT/ZArvK50RaCiKE2RjMjZ+2RQmbHy33hVrMA IwiSyZk3Z81bCjvyjaGAPu9xPaQjD09wPZg2X72cCX9mw+goYf42Nr737iak6yqJFnw6 e5C+tyfNcu+RaZzipchYk3cYk7/2tWcL3M5LW6UMA/Zs2Va7In/Hnl+3l1vPnZO5Wezg QOrn98fbbvekUyXo7WPbfABq5aXv0JcJ9GXeFaxQSXfxEzpVhFkLTVGdcTsZzSYEha8W oFPH9qnB5INoLwGJ0DHm6VsybJa/5OuPP7Ju5AkTDlOdL0pyI3G2To1VeoKmxIbPkHDq P2Qw== X-Gm-Message-State: ABuFfoiL9bjlFj+gtn8++qtyLumnzBYoitz0G7I8mYsAzhGmxrYwRv6S e46olGUEfKz62wn4auZAzDrB5aBjFTs08ZhIGaq8Vg== X-Received: by 2002:adf:c554:: with SMTP id s20-v6mr4653024wrf.46.1537707889488; Sun, 23 Sep 2018 06:04:49 -0700 (PDT) MIME-Version: 1.0 References: <20180912143822.21948-1-anup@brainfault.org> <72961c71-c4e4-7990-da64-a7f1613f2e1c@wdc.com> <20180917141018.GB28689@infradead.org> In-Reply-To: <20180917141018.GB28689@infradead.org> From: Anup Patel Date: Sun, 23 Sep 2018 18:34:38 +0530 Message-ID: Subject: Re: [PATCH] RISC-V: Show CPU ID and Hart ID separately in /proc/cpuinfo To: Christoph Hellwig Cc: Atish Patra , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org, "linux-kernel@vger.kernel.org List" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 17, 2018 at 7:40 PM Christoph Hellwig wrote: > > On Wed, Sep 12, 2018 at 09:47:55AM -0700, Atish Patra wrote: > > The extra hart information will not be parsed by lscpu which will make the > > cpu information inconsistent between lscpu & /proc/cpuinfo. > > > > Should we patch lscpu as well to show correct hart id as well ? > > It would be good to follow whatever prescedent other architectures > with different logical vs physical cpuids have set. Most architectures (x86, ARM, ARM64), display logical CPU id as "processor" attribute. I think we should use same name for logical CPU id. Other attributes in /proc/cpuinfo are very different accros architectures. For e.g. x86 shows physical CPU id as "core id" I will revise this patch to use "processor" attribute name for logical CPU id. Regards, Anup