From patchwork Mon Feb 1 23:58:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tianling Shen X-Patchwork-Id: 12060263 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB6C7C433E6 for ; Mon, 1 Feb 2021 23:59:28 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5198264ED8 for ; Mon, 1 Feb 2021 23:59:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5198264ED8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=gHk8zl0HUWpOjk6P8AheNuHavKcfMF9lQtZZ7NMBb4U=; b=mRreVHHOiRzyPOVnDzKCPHjSDo PqiJrSzmCExh7xLVRItyr/fr67ZxPcBi3fiaZzmBJcSFE+5Qm8PnShQfFu9htJTnyIeih8/Kz7cr3 FEcW/l7pUe/Bk8wpMyS74mFZ5mm2+bwTjEvNWtMR5uN2fFN/GCl9yDmrGTVJCL2j8gDc0RDV6ti5v vqDJHx4FBn0ifeeOGu8EAmHVKnd5AGPRscpLjF8RPiPF4caTUCv6275/AeICma4YLqBfyI7wMhQ47 ivJDBOMp9nmlQw3J6rygtApAy1DRyGYQimsG2OBgBMNxV/efGOOAB4vnzLThge3nZ8SvqlPnW81/O zfH32wnQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6j5J-0003pN-5L; Mon, 01 Feb 2021 23:58:21 +0000 Received: from mail-io1-xd31.google.com ([2607:f8b0:4864:20::d31]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6j5G-0003oQ-5d for linux-arm-kernel@lists.infradead.org; Mon, 01 Feb 2021 23:58:18 +0000 Received: by mail-io1-xd31.google.com with SMTP id x21so19401132iog.10 for ; Mon, 01 Feb 2021 15:58:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=a0KwK7+kKnZ6aCt3YGJBN/dqDT4bQUU0HrueyV16eos=; b=V3hH147pvef9wbe/VyEpCGT5lRj5ADwn+YRlx8F4+VMM/rmHRaQ5MGoJDFRjDSHi8g l7OmFGWDASKvbd76JB1ydNPMP3XyBpHRqmnP79+vys7khHydifPpN82sbFUnsc6MnLUO E+BUgRDVEHOj/5hhZnMDnkGnnyYzRwa6I91Rdbarow4aNM3O9f2AgWUG3/E/V30vjU/O bvO1Nfe4dHrrqr23ElV2P3c/jZOgY6miLLhpW4dBBcjnSo+D1mUddFzlF+FYLrm0DU1S QNh7fEiVniyhwVx3LHbCHSqRh6ZhrD6CVk3xiN8+MUrCKcuehzfWZAL5ORfht/ZGIM30 oZig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=a0KwK7+kKnZ6aCt3YGJBN/dqDT4bQUU0HrueyV16eos=; b=X5Qs0bqJ0FGPTYkducflRjQ6nLF564o0aIsTvkIWyiLCUqENL262XqOazh8nKGpI21 kdCXaOiukEp53JC/MomzAonGbzDMx0UhgGtEr5zPx7dBtmZKVd2ly9UtDTdQLY5Mfxrh /Yt/oi1q6FMHbyoRJ22JKTPh2mW4KQj2uqNjSX0hmm5a5yizrJEWpk6yfGONdeSwI8ah 5Wdj+EtpdnFJIwNQDZZ/3vnrlmHcZlme5EfG/7TTvGkAhehR5WAP+zR3qqoC4qWanG2+ fhXzXQ4/i/oAZtDwq/OUl/sIucmThsu3o7qq6EoaoacmKfwnEia2h7fckgBW+kfb3FWU SjSg== X-Gm-Message-State: AOAM532Ui3htz1RP4DfVgJ+Fs3RAFK+QQXbjDaBUe89xEWhrTV9Azb7m XN1HFm+pix/icSGSnnzWZ5U= X-Google-Smtp-Source: ABdhPJyPcHaS6bn6DxuDIY9UP8O6YzY+RVIzHya2Wm+aKcohYZXNpavteml9YaFPZV21FT/qugKgkw== X-Received: by 2002:a5d:9588:: with SMTP id a8mr14240939ioo.34.1612223894545; Mon, 01 Feb 2021 15:58:14 -0800 (PST) Received: from localhost.localdomain (tunnel525895-pt.tunnel.tserv15.lax1.ipv6.he.net. [2001:470:c:1200::2]) by smtp.googlemail.com with ESMTPSA id g126sm5284813iof.39.2021.02.01.15.58.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Feb 2021 15:58:13 -0800 (PST) From: Tianling Shen To: Subject: [RESENT PATCH] arm64: cpuinfo: Add "model name" in /proc/cpuinfo for 64bit tasks also Date: Tue, 2 Feb 2021 07:58:09 +0800 Message-Id: <20210201235809.401-1-cnsztl@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210201_185818_229844_F27EDD0E X-CRM114-Status: GOOD ( 14.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , Anshuman Khandual , Catalin Marinas , Suzuki K Poulose , "Gustavo A. R. Silva" , linux-kernel@vger.kernel.org, Tianling Shen , Sumit Gupta , Vincenzo Frascino , Will Deacon , Dave Martin , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Sumit Gupta Removed restriction of displaying model name for 32 bit tasks only. This can be used for 64 bit tasks as well, and it's useful for some tools that already parse this, such as coreutils `uname -p`, Ubuntu model name display etc. It should be like this: ``` $ cat '/proc/cpuinfo' | grep 'model name' | head -n 1 model name : ARMv8 Processor rev X (v8l) ``` Link: https://lore.kernel.org/lkml/1472461345-28219-1-git-send-email-sumitg@nvidia.com/ Signed-off-by: Sumit Gupta Signed-off-by: Tianling Shen --- arch/arm64/kernel/cpuinfo.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c index 77605aec25fe..d69b4e486098 100644 --- a/arch/arm64/kernel/cpuinfo.c +++ b/arch/arm64/kernel/cpuinfo.c @@ -148,8 +148,7 @@ static int c_show(struct seq_file *m, void *v) * "processor". Give glibc what it expects. */ seq_printf(m, "processor\t: %d\n", i); - if (compat) - seq_printf(m, "model name\t: ARMv8 Processor rev %d (%s)\n", + seq_printf(m, "model name\t: ARMv8 Processor rev %d (%s)\n", MIDR_REVISION(midr), COMPAT_ELF_PLATFORM); seq_printf(m, "BogoMIPS\t: %lu.%02lu\n",