Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3399762imw; Mon, 11 Jul 2022 08:00:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vOOVfyGKaWlN0XQK7cV2k+hLeXQJyZdwLTB1tFWlvujRr3e//5qi9CemliIlYwyGEJyP31 X-Received: by 2002:a05:6402:48c:b0:43a:8bc7:f440 with SMTP id k12-20020a056402048c00b0043a8bc7f440mr24912403edv.8.1657551612119; Mon, 11 Jul 2022 08:00:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657551612; cv=none; d=google.com; s=arc-20160816; b=dTOvQbDi1vYvRrgQQDnE5EFfsyavsA37azfWjrCb2sE8lZucjv3wPZfAIt5PKGKNBN zohII23+KSuUuwStCMBQrE/Vyon5rHHx5YiCBlITkJX7XdiraT5jQT4eNJheiRRcE5cQ 0/8M9W1TT85wYaq8Z7bsN06aQS6jSAT+FDUah/tVo9+8NGDUGmhj3vhypdr5VxMnNV5h WMJ9TO2a7BkDPhk20AUKMTUDusTSLiMrgxWIwZR/VeepknLQeg4cxjf6nTjBHGnI/0hS LMD58BcvTEQhnUkvO5uY0uI3KBN7VhvvaCAAt+sFVqvnlU2pzOePWtN9TrqR30OAC69z sMRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QDDs+Uqxp/3zKD2q/4DUWWf4THcLYwW5dIvSeomoCiQ=; b=L1fXRvXheWEtWdKk9Oo6K2LsRHBtP1wED45t2foslJwym3zC7hupXbumW7tbfDtWfr bynycElis+vuMZNAonvLudSnZyBbUtKRao+T1+XauuYy1U/+njXE9eVvLqvqG+UQ2RoO NDHIRlOjZMPewecR8yLkJedJFVXwEN1e7GnTVNdHzSQQ/pV+yfg4mDLXYahn1ugcd9eY yfHGoNpZx3THWs1HeFRB4E1nmRZ0kdfxp8HnL44JzRhzZDrUqGqUNFKmGeywfyn/GbMI +JwZ8wXeqz7rKQx3WzeKovDM6s99LkSEyiVQxXM6R1MqYon3ZH+YP+iZ0jlmvZ65NDPh 37Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OO2E9gHG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t18-20020a056402525200b00435c7cf30d4si11615563edd.27.2022.07.11.07.59.46; Mon, 11 Jul 2022 08:00:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OO2E9gHG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231344AbiGKOus (ORCPT + 99 others); Mon, 11 Jul 2022 10:50:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230255AbiGKOuo (ORCPT ); Mon, 11 Jul 2022 10:50:44 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 529ED63939 for ; Mon, 11 Jul 2022 07:50:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 03A7DB81022 for ; Mon, 11 Jul 2022 14:50:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E29EC3411C; Mon, 11 Jul 2022 14:50:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1657551040; bh=MX80YwmblA+v/61UuXjnsNDDbo5cN2GQE6qtQk7/qnk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OO2E9gHGUI8pAsye9LKImxPqcZ+lOe39N3fNLx7J0ta3A0hdy7u6xT3q8dxDCqr1H zebW4Ms/bYVlaWgX7tO8sNgaU39U8/EcVC31dgw2GjNM8fsjp6cJlG/bI565+n7Y4G iRoixb73TYxQV3p9oeKSpNrJ/PKy+T4b2RC1xF4c= Date: Mon, 11 Jul 2022 16:50:38 +0200 From: Greg Kroah-Hartman To: Sudeep Holla Cc: Conor Dooley , Paul Walmsley , Palmer Dabbelt , Palmer Dabbelt , Albert Ou , Catalin Marinas , Will Deacon , "Rafael J . Wysocki" , Daire McNamara , Conor Dooley , Niklas Cassel , Damien Le Moal , Geert Uytterhoeven , Zong Li , Emil Renner Berthing , Jonas Hahnfeld , Guo Ren , Anup Patel , Atish Patra , Heiko Stuebner , Philipp Tomsich , Rob Herring , Marc Zyngier , Viresh Kumar , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Brice Goglin Subject: Re: [PATCH v3 1/2] arm64: topology: move store_cpu_topology() to shared code Message-ID: References: <20220709152354.2856586-1-mail@conchuod.ie> <20220709152354.2856586-2-mail@conchuod.ie> <20220711143542.nlq6a5nuh4nouomo@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220711143542.nlq6a5nuh4nouomo@bogus> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 11, 2022 at 03:35:42PM +0100, Sudeep Holla wrote: > On Sat, Jul 09, 2022 at 04:23:54PM +0100, Conor Dooley wrote: > > From: Conor Dooley > > > > arm64's method of defining a default cpu topology requires only minimal > > changes to apply to RISC-V also. The current arm64 implementation exits > > early in a uniprocessor configuration by reading MPIDR & claiming that > > uniprocessor can rely on the default values. > > > > This is appears to be a hangover from prior to '3102bc0e6ac7 ("arm64: > > topology: Stop using MPIDR for topology information")', because the > > current code just assigns default values for multiprocessor systems. > > > > With the MPIDR references removed, store_cpu_topolgy() can be moved to > > the common arch_topology code. > > > > Looks good. FWIW, > > Reviewed-by: Sudeep Holla > > > CC: stable@vger.kernel.org > > However, while I understand the reason why this is needed in stable trees > for RISC-V, I am not sure if we want this for stable tree at-least on arm64. > I leave that part to Greg and Will. Why would it be good for one arch but bad for another?