Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4480905ybb; Tue, 14 Apr 2020 08:08:22 -0700 (PDT) X-Google-Smtp-Source: APiQypIpdHHVbZEv3s8JsYPOwRK91/3pSaWFyHfK6wPojWPV2wvc3FKWwBDgBwx3tWh2yhxfVnRk X-Received: by 2002:a17:906:2f03:: with SMTP id v3mr540078eji.105.1586876902847; Tue, 14 Apr 2020 08:08:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1586876902; cv=pass; d=google.com; s=arc-20160816; b=IUHxnUCm5K9dMUzFFwvks3Sn+RziA2+NlNDxsPl3zGhW6cdwcFqOvQ8gsOIq4DffCG InkcHEAkiKQWcRZHgZ8bPBJfCQz/Okb1UyVTaO6PTDw3dYqel/Fk6wjwRJc2lHvS65kp cyTDL9tIKNjWoRE0kFYhGbiMmzo+D0gqWBppfzDRG+KQoKw9WpZ8kboGhB+jNM7+ydQg ZRjbGdkVvaTLrXWYHQ5SXsc9lmVY/2gLawVTI9sudyiy23heb0D8IZYi8yUarZuLQ+L/ nD0S6QE8xfGMJji2JZ1njkCMSkMzPpZtlSW9Mebd5o7YK0GpWMiYBmIiaiGa/sNBX+Tn 08EQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=84CrosZczlRKs4cv9GnHtu9KBHymfYmBVO3bAUZ/y6w=; b=UQSnVL6Kt0a+ou9Cr5PlshMNfk7wKz1/mOqnB+aDYKax2xfwLRB28jugv8akg3vC9w 1JWjpqCkZOkOtxzwdh1ewR+Ujc3wdQHXp1T+M7au+yIMgfuxngtSdU11fDN88JQdBXcH qtT+a3xOu+ebudpIoN89Q41X6s4rl9xgLE/E4S32WtPXexuJEZEL+O8Cn4WUyKq4AGC6 sE/fsLTSMV7qo9aFLVS1FoKr8sGQtvHWCSfo6D6uXK0GR9FEjBRSmfU7Zr7I2IFgD8oV NrRwP70jtxRHF88ryfZSGDWaXwHSk/wRv7NFVILNPl6KOPH75dnysKM/7iu6ypoI+cbx gc3g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=dUMOEe2t; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dmarc=pass fromdomain=flygoat.com>); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i7si8556362eja.355.2020.04.14.08.07.58; Tue, 14 Apr 2020 08:08:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=dUMOEe2t; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dmarc=pass fromdomain=flygoat.com>); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436973AbgDNIiW (ORCPT + 99 others); Tue, 14 Apr 2020 04:38:22 -0400 Received: from sender3-op-o12.zoho.com.cn ([124.251.121.243]:17822 "EHLO sender3-op-o12.zoho.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436965AbgDNIiT (ORCPT ); Tue, 14 Apr 2020 04:38:19 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1586853318; cv=none; d=zoho.com.cn; s=zohoarc; b=X69YMJgD4rV2vo8a/7oARBHBEmxcrrECiE/OTTv6kBGFrETLPTRc0861mbMUwUCrTGBS36MyyBEsJIIZbksTJ/FQuCHL1zy2ODjt03CaaHwvycxUc9ll4Fz99UecVVkS2F8jl6QcEQcrP9S9NUBKUVFkTnkGbQrzRg2TlmxyaMo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com.cn; s=zohoarc; t=1586853318; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=84CrosZczlRKs4cv9GnHtu9KBHymfYmBVO3bAUZ/y6w=; b=CoYq2vjxJaEW+p0M4Lsbbahs37GRWw4yRPoaYhzcW5PLKVelw3TsNo5PpiXn6bLbukLLMxIGb8nZMJscwaV46TIMvhO1QVUI1KAvvx8v1kjKG8UxqnLx+x6a4zOsjRLgHKjjC4tHAEwtm31ppwXEBLAPI7Mh6eYoUP+031ORxu4= ARC-Authentication-Results: i=1; mx.zoho.com.cn; dkim=pass header.i=flygoat.com; spf=pass smtp.mailfrom=jiaxun.yang@flygoat.com; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1586853318; s=mail; d=flygoat.com; i=jiaxun.yang@flygoat.com; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=84CrosZczlRKs4cv9GnHtu9KBHymfYmBVO3bAUZ/y6w=; b=dUMOEe2tgenEpWpWEB8vbLn1NBqOpK/XUtm1E6UFZohY9nHzmqlco79iN+9dw8wP uDCfdQXCwPSr58TCvYu0aVswfmnZIQS/I5rGh/+5iaXPEORCKYapvGzZ78pQpkAo2ol VuCI8ufTEp3yUUH1iG2It/baKThv55NNZ8rR2DJo= Received: from localhost (122.235.212.87 [122.235.212.87]) by mx.zoho.com.cn with SMTPS id 15868533144941003.2196604203903; Tue, 14 Apr 2020 16:35:14 +0800 (CST) Date: Tue, 14 Apr 2020 16:35:14 +0800 From: Jiaxun Yang To: Sudeep Holla Cc: linux-mips@vger.kernel.org, dietmar.eggemann@arm.com, 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" , Daniel Lezcano , Thomas Gleixner , Jason Cooper , Marc Zyngier , Paul Burton , Allison Randal , Enrico Weigelt , Kate Stewart , Vladimir Kondratiev , Alexios Zavras , Paul Cercueil , Zhou Yanjie , " =?GB18030?B?1tzn/L3c?= (Zhou Yanjie)" , YunQiang Su , Arnd Bergmann , Serge Semin , Matt Redfearn , Richard Fontana , Steve Winslow , afzal mohammed , Peter Xu , Kamal Dasu , Oleksij Rempel , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, oprofile-list@lists.sf.net, linux-pm@vger.kernel.org Subject: Re: [PATCH v2 04/11] arch_topology: Reset all cpus in reset_cpu_topology Message-ID: <20200414163514.00000100@flygoat.com> In-Reply-To: <20200414082734.GC6459@bogus> References: <20200412032123.3896114-1-jiaxun.yang@flygoat.com> <20200412032123.3896114-5-jiaxun.yang@flygoat.com> <20200414082734.GC6459@bogus> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-ZohoCNMailClient: External Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Apr 2020 09:27:34 +0100 Sudeep Holla wrote: > On Sun, Apr 12, 2020 at 11:20:34AM +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. > > > > As I have told before adjust and make it default before this function > gets called. Hi, That's really impossible under current MIPS code structure. Another option would be prefill possible_cpu with all_cpu_mask before calling topology_init, but that would make the code unnecessarily complex. Here simply reset the whole array won't cause any regression. Thanks. > -- Jiaxun Yang