Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1495174ybb; Thu, 9 Apr 2020 03:20:43 -0700 (PDT) X-Google-Smtp-Source: APiQypKjm3qzypa97lNUEVU2FBrIl6BVGwGz6/fKw0O08QCQlFJT7+cjVbgb5BwLaVZn1zetAEPX X-Received: by 2002:a4a:a64b:: with SMTP id j11mr9354218oom.59.1586427643459; Thu, 09 Apr 2020 03:20:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586427643; cv=none; d=google.com; s=arc-20160816; b=I459wb0ij0LHTwWOYn/Mrd07NrqLFXUkF6yZ6bNtxWKVVcJecuqNbE+JS4q+iNvXBx Zoe0+1DK7Bn+IizqW8W0KID6+PJfgYhFxXMjO381J6sDZCsJ2gZRFJ/vT3lMVYRgw3Dt X2sI8L55AdwwKJenQ+r20IKpGNtONXp4WWhiihQLENJ79O5fdve7JDd7n1dpVLkN00GR C3sqTIWGpeHTkTv8G8DtnMhs7GRWnmSp+5M/pD2kSlozACPCZdyawkF6AUl6glb0+Lnl E99CjSD+30yy7sk/8znFrSsRTmDlGG9yahigY/UrCwcc88AqwoBcb7LV8licxjFE2yRI FEDA== 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=u3D4ZXrs7t5jx+Ad3jiliq3THyXWwlk1V01vgO9jN6Y=; b=Yra+69v2oMcazboDatrcHanWWBp7lsi/I1q+87yZdzpQqHoWZW/B7FbJvTtWYJClS2 h0fwQeDx7PK26rDmv1mQgU/WjX8QZVDuvkfhvR18ZaOH3S6Eo4Od3Ln+rvVDzFDKlXrf MwA4yFD0TJyGc9ZN63h616QVgYHs+ZayTlxPPbsrOiRMBUN7VrGinJugmNR+YSe6WFgn jsBOZqAomK9olHe0yHZr56YqhcGDLb/y5M9PHWDywLJ36VszWHIT1ZDPGzy8Gg5yZoUn mhjBBt+6zZiw8GjyoxN5PwPeYYoundF2+ILjf3DOK8vFu4aDsZEj8J5PtbU5h/hvhOQV /eug== 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 f12si3890941otc.147.2020.04.09.03.20.29; Thu, 09 Apr 2020 03:20:43 -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 S1726523AbgDIKT5 (ORCPT + 99 others); Thu, 9 Apr 2020 06:19:57 -0400 Received: from foss.arm.com ([217.140.110.172]:48108 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725972AbgDIKT5 (ORCPT ); Thu, 9 Apr 2020 06:19:57 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0414631B; Thu, 9 Apr 2020 03:19:55 -0700 (PDT) Received: from bogus (unknown [10.37.12.63]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 853483F73D; Thu, 9 Apr 2020 03:19:46 -0700 (PDT) Date: Thu, 9 Apr 2020 11:19:43 +0100 From: Sudeep Holla To: Jiaxun Yang Cc: linux-mips@vger.kernel.org, Thomas Bogendoerfer , Huacai Chen , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Florian Fainelli , Robert Richter , Greg Kroah-Hartman , "Rafael J. Wysocki" , Thomas Gleixner , Jason Cooper , Marc Zyngier , Paul Burton , Allison Randal , Enrico Weigelt , Vladimir Kondratiev , Alexios Zavras , Richard Fontana , Paul Cercueil , Zhou Yanjie , =?utf-8?B?5ZGo55Cw5p2wIChaaG91IFlhbmppZSk=?= , YunQiang Su , Arnd Bergmann , Serge Semin , Matt Redfearn , Steve Winslow , Peter Xu , afzal mohammed , Mike Rapoport , Kamal Dasu , Sudeep Holla , Oleksij Rempel , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, oprofile-list@lists.sf.net Subject: Re: [PATCH 04/12] arch_topology: Reset all cpus in reset_cpu_topology Message-ID: <20200409101943.GC25948@bogus> References: <20200408113505.2528103-1-jiaxun.yang@flygoat.com> <20200408113505.2528103-5-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200408113505.2528103-5-jiaxun.yang@flygoat.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 Wed, Apr 08, 2020 at 07:34:14PM +0800, Jiaxun Yang wrote: > For MIPS platform, when topology isn't probed by DeviceTree, > possible_cpu might be empty when calling init_cpu_topology, > that may result cpu_topology not fully reseted for all CPUs. > So here we can reset all cpus instead of possible cpus. > Why not set all CPUs upto NR_CPUS in possible cpus_mask as default to begin with ? -- Regards, Sudeep