Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3454072imw; Mon, 11 Jul 2022 08:57:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uXzVBCIwgM4CU3oP6swBWDNdWSJHEy/tOckkXGxSrDd90GOhi9FElbmsc30G/k8HQ3TdFB X-Received: by 2002:a17:902:a70d:b0:15e:da68:b1b1 with SMTP id w13-20020a170902a70d00b0015eda68b1b1mr19262263plq.53.1657555077226; Mon, 11 Jul 2022 08:57:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657555077; cv=none; d=google.com; s=arc-20160816; b=NYgqbe8w2z6DUvmnNCcc+pvMPBldzmnaMqs9RTYgeqS1T4Rth0UEEc+IJsc3bInYms QWkU8ZFBim0MNuAMO6DtYtCVgDZ0RRJWkmgjeKPCY38FyGsMTiN9vsrivFdZnAp1okNA CeCpmx5zu13kAZdD5m9FPHGdOG/VlyqXmat4i0g52YL7bPCSV3mRx3s9xBNfZxHBGSOC UeAc5NYZcpziLp4J5iwMHDcv95YCWc7RXjZ4whjlPxIcuq0BR7frmeTIVaTXbtOr2hkO B6zeidnyBgSWaHZ1+oAeCeT8unVJkX0pZoi5BDgca8ioGYMalPyQhCgQOT1WTRyMsTxw oZMw== 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; bh=RFQ7D43xGAPnCTdMyRg/xPq4E9n8NRYFhwMe+yjmnCc=; b=LcdnX2kzEIWVNZZ5oEO9u+cCGM/TpnT//PGaBxGtujw4NuLMoAyhFhfFH1oO5Q4c/B 9JAJmW81N7m+jXKPrb3bjNTe7L9GLdGB02AyNV/LoZz/gWM5fVHMv8KLMU4m7Dp7Wf+i usM/7uz7LVILA4z+iAFxsw3di2zPRWQfgywnebSwyQdKwS4KXUHyj/GQdjLA6HKGTKGO XkEC8jIzc/737QNOcPmwfKSsv0qqZZtfaqL1StZG7VqSlgm9NJz5SMCgdyhCXaO+wuoe A/jhM9HxZxvTM8swm7l5zYONi2wVjGRLlhZk7OMIfn8kwNSFC8/8sWq+w1tdaOyJEwk9 l28Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mh1-20020a17090b4ac100b001eca02837b7si17201369pjb.9.2022.07.11.08.57.44; Mon, 11 Jul 2022 08:57:57 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232284AbiGKPZr (ORCPT + 99 others); Mon, 11 Jul 2022 11:25:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232279AbiGKPZm (ORCPT ); Mon, 11 Jul 2022 11:25:42 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 53C973C8D1 for ; Mon, 11 Jul 2022 08:25:41 -0700 (PDT) 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 2F3A91596; Mon, 11 Jul 2022 08:25:41 -0700 (PDT) Received: from bogus (unknown [10.57.39.193]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 56F7F3F70D; Mon, 11 Jul 2022 08:25:35 -0700 (PDT) Date: Mon, 11 Jul 2022 16:24:23 +0100 From: Sudeep Holla To: Greg Kroah-Hartman Cc: Conor Dooley , Paul Walmsley , Palmer Dabbelt , Palmer Dabbelt , Sudeep Holla , 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: <20220711152423.djfqk6wbhmrshbkr@bogus> 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: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,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 04:50:38PM +0200, Greg Kroah-Hartman wrote: > 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? Not really bad as such. Just needs testing and must not change much ideally, but it really depends on which stable trees we will target and what is the original state there. As mentioned in the commit, this changed a bit around v5.8/9 on arm64 and not sure what kernels RISC-V needs this. There could be some surprises on some Andriod platforms but that is something we can look at when if and when there are complaints. I am in general not sure what is the -stable tree rules is such situation and hence made the noise so that we are aware that we may need more work than just backporting this patch. Also this is just my opinion. If we decide to backport esp. to kernels older than the one containing 3102bc0e6ac7, then arm64 may need more changes or probably we can pull that commit if that makes it easier. Based on what is decided and what are the targeted -stable trees, we can dig deeper. -- Regards, Sudeep