From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 602CAC6FD18 for ; Wed, 29 Mar 2023 15:41:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9Qk0cehsgs2YrUjPD1vqZkmLz1RfoRe1eCecSx4u48I=; b=geduEpfE6b7Q7Y oGvxTPJWTi4nbGhcnjB8lJj0UbrKDZ+EpOQg1y694mB1xons1idIGO+GskdKXgBtHaTg/DNQgw9RN EHrMxiGIwyshiIZjcwKSwFjvo90bL+QVOrSH0hLtakBoW8KDvq/4YhfWJGXwdfpXU00/a58ZuLIvq YUDPE5hZ5dos3aPGZhSRN6e19eP8XuMdebl2niiHw0Kk57OqzjJVrfAmF04jn8Jck/ctR7r5NmGf5 adDftVSPG49UK/FJcO4YWTzkuBUw72ruUZb4F7oynCQjFCXpmj7IZ2tCZy4UBr1BEB2H5zq+ezQWu tm9e/8pHNTCixpNLXz9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1phXuU-000pU1-0d; Wed, 29 Mar 2023 15:40:26 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1phXuA-000pLq-0d for linux-arm-kernel@lists.infradead.org; Wed, 29 Mar 2023 15:40:07 +0000 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 CB9BB1FB; Wed, 29 Mar 2023 08:40:49 -0700 (PDT) Received: from [10.57.20.78] (unknown [10.57.20.78]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4BB973F663; Wed, 29 Mar 2023 08:40:04 -0700 (PDT) Message-ID: Date: Wed, 29 Mar 2023 17:39:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [RFC PATCH] arch_topology: Pre-allocate cacheinfo from primary CPU Content-Language: en-US To: Sudeep Holla Cc: Radu Rendec , linux-arm-kernel@lists.infradead.org, Adrien Thierry , Eric Chanudet References: <20230323224242.31142-1-rrendec@redhat.com> <428070eb-d1d0-cd04-53c7-91e13ab64867@arm.com> <20230329150308.aaajdsh74olpjach@bogus> From: Pierre Gondois In-Reply-To: <20230329150308.aaajdsh74olpjach@bogus> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230329_084006_286626_386FDBA9 X-CRM114-Status: GOOD ( 12.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 3/29/23 17:03, Sudeep Holla wrote: > On Wed, Mar 29, 2023 at 04:42:07PM +0200, Pierre Gondois wrote: >> >> This would mean that for all architectures, the cacheinfo would come from >> ACPI/DT first..... > > x86 doesn't fall into the above category. So we need to ensure it continues > to work with no errors. Ok, then maybe having a second arch specific function like init_cache_level() would work. This function would be called in fetch_cache_info() after init_of_cache_level()/acpi_get_cache_info() fail. It would fetch cache info anywhere but in DT/ACPI. Archs that don't want it would not implement it, and it would allow the others to get the num_leaves/levels during early boot. > > -- > Regards, > Sudeep _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel