Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp809607rdg; Fri, 13 Oct 2023 01:30:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFQP+y1nsCGbZyfdeuyYHOkqbKvyyS7Y2/N1rv2P4FcdX1pATbyUR5HgPWrXXwDFsGEK5W4 X-Received: by 2002:a05:6e02:1c4d:b0:34b:ac73:eb97 with SMTP id d13-20020a056e021c4d00b0034bac73eb97mr34429389ilg.14.1697185833781; Fri, 13 Oct 2023 01:30:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697185833; cv=none; d=google.com; s=arc-20160816; b=yA4dhDOYqFroR8/Lb0UTUJ+eTmSWLvFWzgIHeYHPqq6DPxEqJJLbLR4QLNHNBeHwVg hThkC7GU51RjMXWqbQLOaeFFTA1AgE7TRLxnq4IS0FZAWK9CszLg1wItjvi1unV3ZhsW Lp/YSQRarxsC8jc7hBM9OG79aSM5p30lVPe5CDbAcpSshVzICTlKqnfxl8WWCmunC31C JaYxknWWWDKtqcTLRc/LOIktRFhV9CBu9c14B6+Ui0y2W3yp/Cjmv+kJ+Gdv6RONFhVd feCT2QfNOjWCq02DrzEvsHWtaJmii+dRVnS5w5dIA8Cg3YPiWjFutOnkcnn43migD1l8 NGyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=x9jJ0hMX8+jdyadmxIYZbExwfdB1MPu7yGEFhVmWd+E=; fh=cR3CvMFR+0Q4LuBotiAP0B0R/iiYJ0idMg2Dhe6rsvQ=; b=zkDY7RYCb6GJi6HZJqyXeYjgOUXat3JqvJH6YxSbgDFnyZEEQOe6luAAfXIscVXWfW LgH3cIkfuYzZg8JeMGiJXXGAmnjB6LH8LgTK7QI5Aiyn9xRvgyXd4arlxMUs++x83bRL ivCVvE8HvG6Bdygjb3BJXlIHxiLILaDW2JUNVfEyzPodcydM30dBkS7jyqf12DkR1RL5 iAklAM7RgzMKTY3zSmHwQfPCF7b0ps057bQ5h5mJAOc9XlrfTpPrvkSO33y8Xh/z/yL+ MrKnKHmJJ2Iil3AVZ3mNoAfrI1cLxIm4uL4Bx/+tRIc85jydUtXBGaUdejAijrgSS6h/ jRLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="M0nO/G62"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id w71-20020a63824a000000b005aa6c0aa22dsi1215254pgd.724.2023.10.13.01.30.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 01:30:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="M0nO/G62"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 20E7A807781B; Fri, 13 Oct 2023 01:30:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230033AbjJMI34 (ORCPT + 99 others); Fri, 13 Oct 2023 04:29:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229743AbjJMI3z (ORCPT ); Fri, 13 Oct 2023 04:29:55 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D15C691 for ; Fri, 13 Oct 2023 01:29:54 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48BDBC433C7; Fri, 13 Oct 2023 08:29:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697185794; bh=RCn/bkiCVsdxFqN8EjpHIVfmHAlxke4AlEd/Z7mt+MU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=M0nO/G62fEhy5kL1LcgE5ZegjIur7dh6UnMx0rqg4uSXGkBWdf8ZydHR8tlteJ7FH eKy7b/zcPeI0xFDzX3AiQcunNQyhqmhNyGMCTEccudLsWA1/XEEZUhETqszFgpooa+ LBbHR+i0Gu6uvETA5Tg7hRga8k1Q2S5Ru9IGofnGEJQl+lDppf5WuM5zg6IXvnGLcb Su26kpnZrJtmOYeF6meohRKKM5mn0L+aPnGFuvIj7DRgWu+04jHIgPnPxjh8luh6jf L8l+Y5Xkv/OmrP+y/tZjSePtweRcPTa8gPbMToqw89FbNKWpMQ6vHWbK3e4L/NXeec pUTh31BmNwwMQ== Date: Fri, 13 Oct 2023 09:29:48 +0100 From: Will Deacon To: Jeremy Linton Cc: linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, mark.rutland@arm.com, maz@kernel.org, anshuman.khandual@arm.com, krisman@suse.de, broonie@kernel.org, james.morse@arm.com, ionela.voinescu@arm.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: cpufeature: Display the set of cores with a feature Message-ID: <20231013082948.GA13431@willie-the-truck> References: <20231013013016.197102-1-jeremy.linton@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231013013016.197102-1-jeremy.linton@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 13 Oct 2023 01:30:09 -0700 (PDT) On Thu, Oct 12, 2023 at 08:30:16PM -0500, Jeremy Linton wrote: > The AMU feature can be enabled on a subset of the cores in a system. > Because of that, it prints a message for each core as it is detected. > This becomes tedious when there are hundreds of cores. Instead, for > CPU features which can be enabled on a subset of the present cores, > lets wait until update_cpu_capabilities() and print the subset of cores > the feature was enabled on. > > Signed-off-by: Jeremy Linton > --- > arch/arm64/include/asm/cpufeature.h | 2 ++ > arch/arm64/kernel/cpufeature.c | 16 +++++++++++++--- > 2 files changed, 15 insertions(+), 3 deletions(-) That's pretty neat. Are there any other caps we could switch over to this new mechanism as well? We have a weird bodge, for example, in has_hw_dbm() to print a "detected: ..." message and I wonder whether following the example of the AMU would be better? Will