Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7189525imu; Mon, 3 Dec 2018 09:01:38 -0800 (PST) X-Google-Smtp-Source: AFSGD/X2PElsZ9F5Q/q94r7RYs4SeaTHUMftJ+04qT4/om7sGAI2nnklrDSi8EPuJpBINNATTtSE X-Received: by 2002:a17:902:6a8c:: with SMTP id n12mr4436405plk.85.1543856498120; Mon, 03 Dec 2018 09:01:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543856498; cv=none; d=google.com; s=arc-20160816; b=BO2jy5bXpPEzgbWQjXaHJulWbPKLddcD/VOJUy7Et/3mqRkr/X7ZtQan/UB3h5j1Jw EFZSS9P+kkckGNViFhxiQ89jujokYJF4wdOsvUgS2GreECd1MXm+G1OoDOkz0VoZKmoX yTF3o2lcN47mAgu9kFvGM1hamprJ79b4BXcfkv2+zaxjaG3Vhmmg7XzldIWwHJ8uWnFQ BwIojiPW/YCI94rLyyONi/rlJhZzLCi4Du8WrgOJrLvrlFkPcjUi3gXyRLFcAXDkma7x ho/rZ2NYiF/BKxA+Ppp5+zie4MPIbe0JMNo99iG8KVlRLNFxS1SFo833xFylqzSzSIMD fQ+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=mXTW5AIDPkj+EDV2g02On5l3SUxucAYtnJOwpQJeVIQ=; b=NyOCpIRsLTfPZsZzQqKe2qr1+4a7mHrrvNOXTPtWCDMVWxloWrHJzsN4+ZgqXx2LDs RzCr1CRCmfd/MD4Mi1iYa1qC6lai/lkJ2h314MMDvmsKSMxrwr8Ltl98dDnJBrXLxqdQ NOKBDeayVQhlvI5HCEQdpnysHb5wu7/fJZ9yKF0XaibDTsUzwfo3UWCBu+cTk9HUIIvY adBBHdKJpk1B6L17GgX5Z1K+OGPFZwlyxmOoIOfa5K1VVXlhePEb5Ybp6lU4i/qVSRSX rY1hvc6q5HBn6JXS0Zp2PIsG8T0Y2GTpBRfMb4+nZ/wKj13bumqejD8Tnjl48i93vFvA EXSw== 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 e10si2435801plt.181.2018.12.03.09.01.09; Mon, 03 Dec 2018 09:01:38 -0800 (PST) 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 S1726897AbeLCRAH (ORCPT + 99 others); Mon, 3 Dec 2018 12:00:07 -0500 Received: from foss.arm.com ([217.140.101.70]:42118 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726801AbeLCRAH (ORCPT ); Mon, 3 Dec 2018 12:00:07 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E5FD81682; Mon, 3 Dec 2018 09:00:03 -0800 (PST) Received: from e107155-lin (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 42E053F59C; Mon, 3 Dec 2018 09:00:00 -0800 (PST) Date: Mon, 3 Dec 2018 16:59:57 +0000 From: Sudeep Holla To: Atish Patra Cc: linux-kernel@vger.kernel.org, Albert Ou , Anup Patel , Ard Biesheuvel , Catalin Marinas , devicetree@vger.kernel.org, Dmitriy Cherkasov , Greg Kroah-Hartman , Ingo Molnar , Jeremy Linton , Juri Lelli , "moderated list:ARM64 PORT (AARCH64 ARCHITECTURE)" , linux-riscv@lists.infradead.org, Mark Rutland , Morten Rasmussen , Palmer Dabbelt , "Peter Zijlstra (Intel)" , "Rafael J. Wysocki" , Rob Herring , Thomas Gleixner , Will Deacon , Sudeep Holla Subject: Re: [RFT PATCH v1 4/4] RISC-V: Parse cpu topology during boot. Message-ID: <20181203165957.GC17883@e107155-lin> References: <1543534100-3654-1-git-send-email-atish.patra@wdc.com> <1543534100-3654-5-git-send-email-atish.patra@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1543534100-3654-5-git-send-email-atish.patra@wdc.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 29, 2018 at 03:28:20PM -0800, Atish Patra wrote: > Currently, there are no topology defined for RISC-V. > Parse the cpu-map node from device tree and setup the > cpu topology. > > CPU topology after applying the patch. > $cat /sys/devices/system/cpu/cpu2/topology/core_siblings_list > 0-3 > $cat /sys/devices/system/cpu/cpu3/topology/core_siblings_list > 0-3 > $cat /sys/devices/system/cpu/cpu3/topology/physical_package_id > 0 > $cat /sys/devices/system/cpu/cpu3/topology/core_id > 3 > That looks simple. Good reuse and thanks for unifying. FWIW, Acked-by:Sudeep Holla -- Regards, Sudeep