From mboxrd@z Thu Jan 1 00:00:00 1970 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=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no 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 5B6F4C433E0 for ; Wed, 13 Jan 2021 09:41:18 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (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 B61EB2339D for ; Wed, 13 Jan 2021 09:41:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B61EB2339D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kroah.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94) (envelope-from ) id 1kzceC-0004DQ-7L; Wed, 13 Jan 2021 04:41:00 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kzce9-0004DL-TG for kernelnewbies@kernelnewbies.org; Wed, 13 Jan 2021 04:40:58 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 74D0F5C034D; Wed, 13 Jan 2021 04:40:54 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 13 Jan 2021 04:40:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=62DfUMHuhdQpHPlg78qKgbVMKYD ztN56aJHhh0b5U+4=; b=sLsMR2OAv8WgYcKvk4htkuCpnVYZVDet5sFOZf4nXFe ogEiQqzIRO9t1KMb1uyRpE4vhSGR+v/8HsBtHc+Q7q157sQgEKJSCMoFrXRg0j8x 2wAsXxwr6RP0EtkzGysqR1WP5MzUazsIxIkrZlJr20qIAt9MUDbHaEqVb4RzDywX DfiZBJwiDgXK+wB0Kgk+QZ0wsvT9GrHBN5/P6ZZrK9EetzOLiBW1OSQFAU4w4VWD vEov2JCxQITTQbgYtvHD4SeiFGbmzGxc5bAbf9qMyBWe9BKw7sIbayBBww4GHd7N RKwMVsK5gwzdCZKViQHnzctU7qeH7CN+GjLvtMoulCQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=62DfUM HuhdQpHPlg78qKgbVMKYDztN56aJHhh0b5U+4=; b=Q6XYoJq9orjUvxEjKGV/Va Ho3sJ/ry2mxHJZjkm08Gg/ChSD1NJUjZU4ek8VKgVkMgwNCism6/a0GDqXxaZklA GRSWvJJQlJgEq3O2w05tnJDeuFyGZ4QKKZWTMP7Hr47tVXhR1K0cUtJVNVIdDTRG x3F+mLcWbJPqra2aUqpfXKhin7ia1RF986QV8blFl5ceGgYvXCOpS0rnZkVgkxqI ewSuDZADFtFtTPwjAx8Y0f5RqJ4oMmyqENwWd5otn6OXtzpkgjZ/dAj3eHrYit8N NwtkWtelQuxIoD4M/yCSelwUwl26JXM1hI+OpQPYrBpCmwESKtxVGzg76VPzMDDA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedukedrtdefgddtiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttdertd dttddvnecuhfhrohhmpefirhgvghcumffjuceoghhrvghgsehkrhhorghhrdgtohhmqeen ucggtffrrghtthgvrhhnpeevueehjefgfffgiedvudekvdektdelleelgefhleejieeuge egveeuuddukedvteenucfkphepkeefrdekiedrjeegrdeigeenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhhdrtghomh X-ME-Proxy: Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) by mail.messagingengine.com (Postfix) with ESMTPA id 0BD4124005A; Wed, 13 Jan 2021 04:40:53 -0500 (EST) Date: Wed, 13 Jan 2021 10:42:01 +0100 From: Greg KH To: Pankaj Vinodrao Joshi Subject: Re: /proc/cpuinfo not showing all info Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Cc: "kernelnewbies@kernelnewbies.org" X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Wed, Jan 13, 2021 at 09:21:31AM +0000, Pankaj Vinodrao Joshi wrote: > Hi, > i am using sifive's u540, RISCV64 with custom kernel 5.10.2 and i am trying to get all hardware information with the help of /proc/cpuinfo but i am not able get all information i need. > > i am attaching current /proc/cpuinfo > > > rocessor : 0 > hart : 2 > isa : rv64imafdc > mmu : sv39 > uarch : sifive,u54-mc > > > but i am expecting following kind of output > > processor : 0 > vendor_id : GenuineIntel > cpu family : 6 > model : 142 > model name : Intel(R) Core(TM) i3-7020U CPU @ 2.30GHz > stepping : 9 > microcode : 0xde > cpu MHz : 700.027 > cache size : 3072 KB > physical id : 0 > siblings : 4 > core id : 0 > cpu cores : 2 > apicid : 0 > initial apicid : 0 > fpu : yes > fpu_exception : yes > cpuid level : 22 > wp : yes > > Can someone suggest me how i can print all info with /proc/cpuinfo ?? Each processor type exports different information in /proc/cpuinfo. How would a riscv cpu have the same types as an x86 cpu? You have to treat each cpu type individually, there is no common format for all different CPUs out there, sorry. Hope this helps, greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies