Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4524376imw; Tue, 19 Jul 2022 08:11:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u40faVHYOSQnJaitcP+xn4wa8kbsalsgN2zypQRhSrpZzsfGSrPeW4ljT2ZDdl4plUHMJ7 X-Received: by 2002:a05:6402:11cb:b0:43a:b592:efbb with SMTP id j11-20020a05640211cb00b0043ab592efbbmr44309799edw.157.1658243498421; Tue, 19 Jul 2022 08:11:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658243498; cv=none; d=google.com; s=arc-20160816; b=07b7w+FOKfgtjAAXL/e+8er20GjhNjqgaYlWeSgW7wlLaE/30LTlosXAvHUCzzTfur EpqvS+nskPOhFah4KKAV5huVeJghulxLGK098s4apt1VH1vlwvuTY3BwqkuPqORAkj6n P9VosI0jGjPyP3PNIUZEz/yLiMPrqnsDJD8vqC4Uf98XxkDrdTX6ZmyX4MK7/dCKyjmF CCBe2QzNNslyqh9TKI+m4PapabAITdq8NMGJsYtrtiAN8RCcVqEFxI840aVuA+3OQr6K RlCOoUafB2Mt6TBAfvtuGODX3ATExBmoQCU1iUVhYTKzFc0Bl/wpxGtR7szEugKEUDZh jlvg== 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=GoeDBiF7XspihrZl4Ec1p/NdnZFkSf/HphEGBr5Dl18=; b=LIqJXzpg0itKhz/LSFvlavq9b48saF7BSwBFERVBmHI5/J0xquwT1mF4n7xSaYTAA3 upr7QPk2eROfE7d6I0lfg52IhSKOhLeL6iLEtsdr1oIHOJkfsCfkBwXSAdNtB3d7Btgw IgO+fgxNa5GzFa83GozdWB58+uRHwRtXGqcj7Fvd+GSL5UhEAKxunntawO+fKZhirAzo k5Y3zd9oUlnuI/9SplPnXe/ZOSyeCWBpDHLVhBZKelX4WUW6tPLCijHTgBtEh7VRZvAt 77eAwl8g7396pPDjFa3M802GKImhNadoeiozFaAlNSuwJ0Ce4uewf9E8jQOdUBK+SYyK +iLQ== 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 o4-20020a170906974400b0072af12ec70asi6976096ejy.121.2022.07.19.08.11.13; Tue, 19 Jul 2022 08:11:38 -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 S237976AbiGSPF1 (ORCPT + 99 others); Tue, 19 Jul 2022 11:05:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239043AbiGSPFT (ORCPT ); Tue, 19 Jul 2022 11:05:19 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 953F133E for ; Tue, 19 Jul 2022 08:05:18 -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 CC52813D5; Tue, 19 Jul 2022 08:05:18 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3948A3F70D; Tue, 19 Jul 2022 08:05:16 -0700 (PDT) Date: Tue, 19 Jul 2022 16:05:13 +0100 From: Sudeep Holla To: Conor Dooley Cc: Geert Uytterhoeven , Sudeep Holla , Linux Kernel Mailing List , Greg Kroah-Hartman , Conor Dooley , valentina.fernandezalanis@microchip.com, Vincent Guittot , Dietmar Eggemann , Qing Wang , Rob Herring , "Rafael J . Wysocki" , Ionela Voinescu , Pierre Gondois , Linux ARM , linux-riscv , Gavin Shan Subject: Re: [PATCH v6 09/21] arch_topology: Add support to parse and detect cache attributes Message-ID: <20220719150513.a525arh663qlhkob@bogus> References: <20220704101605.1318280-1-sudeep.holla@arm.com> <20220704101605.1318280-10-sudeep.holla@arm.com> <73f9d00c-b64c-7c70-c49f-99d3894fad24@conchuod.ie> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <73f9d00c-b64c-7c70-c49f-99d3894fad24@conchuod.ie> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE 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 Tue, Jul 19, 2022 at 03:37:22PM +0100, Conor Dooley wrote: > On 19/07/2022 15:22, Geert Uytterhoeven wrote: > > Hi Sudeep, > > > > Hey Geert, > [...] > > > > This is triggered > > > > Early cacheinfo failed, ret = -12 > > > > on all my RV64 platforms (K210, PolarFire, StarLight). > > This should be fixed by Sudeeps most recent patchset, at least > it was when I tested it! > https://lore.kernel.org/all/20220713133344.1201247-1-sudeep.holla@arm.com/ > Conor you beat me in the response speed :). > > -12 = -ENOMEM. > > > > The boot continues regardless, and the K210 even has enough spare > > RAM after boot to run "ls", unlike two weeks ago ;-) > > Yes Conor initially reported this and I suspected something to do with per-cpu allocation as the early cacheinfo failed but succeeded in device initcall level. However when fixing some hotplug issue, I moved the detection of cache attributes on all cpus from boot cpu to individual CPUs in the secondary startup which seem to fix the issue as I assume the per-cpu allocation is ready to use at that stage. However we still have one pending issue[0] to address even after [1], but that doesn't affect DT platforms. -- Regards, Sudeep [0] https://lore.kernel.org/all/20220718174151.GA462603@roeck-us.net/ [1] https://lore.kernel.org/all/20220715102609.2160689-1-sudeep.holla@arm.com/