Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1077362rwd; Wed, 31 May 2023 09:10:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6qjZyZylhS/Sk8yYLxe+3PpnHI5FxOi0UuErC1pWsjq9j15/EEJ5wC1e9RYbR1GiWgm4Vs X-Received: by 2002:a05:6a20:c908:b0:10c:34af:a469 with SMTP id gx8-20020a056a20c90800b0010c34afa469mr4993375pzb.16.1685549416749; Wed, 31 May 2023 09:10:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685549416; cv=none; d=google.com; s=arc-20160816; b=v0Dk/iUvkiONWi+3HrZcuC8ohAN6BWOHFxDI3CGaTb7jVO0+4DY32SV0iPIt3E6u7Z Nq92hMxN3T+raT6pyQ6IUUOb+V7nQgtp7kJwInc1MLspitnoTvCqJsRV5xo9Ia1zZhf2 ctFMM+DMu5U0miNegDZXVVd/TyubiU9p5XRovYmJuHnQJ+pqFnIBm+ybTtaZnU1Ml/e4 CGodxuu9uA4CA8bOv0vMIk57n3Rib3EnghfUzLITvuKY7XvE4Hp3blyGATXOibTeQAwi sNxlAsXf4/zwmsaKvefU+QaobgmNPzbvg6yNYls9Nvk7ApEB6v17RPoPdcXjMZLwXtTO Oagw== 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=KoWT10BBfqEsOxB3GWwBERg4n22qic+ykj89ebFtczs=; b=H6+z5NjpwGV7+1uOT2rzs+EAMEmrV6+EhOcN6mVDh/AiHPraWm3iZHc/xh0ptys2uJ i9bFa6Val5u0b27KQ13ckhbIKQfUq6oWEEse0TT4sQuAB6YbYeYcJaKfoIQ948l8slxO 3rXyL2zap8KX4Q/sxwDFMurQXlmClhSlku8btD++s6qP/cltyCzNgk3dIz89p5ynwr81 p0eX53/09Qt0HtRUC7fF7SPV5xgpBBOncO/nH7I5JM8ubxFY87rLzjEWDiOxkDxPKuFv JQilNdT0gxErn/Ab4+QSHKBASvHoV/WvZ/AxMeCV/BJS3LPlWW2tFbQ22KN6w0uEXudy boyA== 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 d17-20020a170903231100b001ade5e66c39si105465plh.114.2023.05.31.09.10.01; Wed, 31 May 2023 09:10:16 -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 S232648AbjEaPnp (ORCPT + 99 others); Wed, 31 May 2023 11:43:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230470AbjEaPno (ORCPT ); Wed, 31 May 2023 11:43:44 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C38238E; Wed, 31 May 2023 08:43:42 -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 D70CA1042; Wed, 31 May 2023 08:44:27 -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 4D52D3F663; Wed, 31 May 2023 08:43:41 -0700 (PDT) Date: Wed, 31 May 2023 16:43:38 +0100 From: Sudeep Holla To: Florian Fainelli Cc: Conor Dooley , stable@vger.kernel.org, Pierre Gondois , Sudeep Holla , Conor Dooley , Greg Kroah-Hartman , "Rafael J. Wysocki" , "open list:GENERIC ARCHITECTURE TOPOLOGY" Subject: Re: [PATCH stable 6.3 v2] arch_topology: Remove early cacheinfo error message if -ENOENT Message-ID: <20230531154338.x7rivfpxj2wtjpq6@bogus> References: <20230530201955.848176-1-florian.fainelli@broadcom.com> <20230530-basically-wildly-84415a94171d@spud> <72d84100-55cf-566d-8301-7147ce14b1e9@broadcom.com> <20230531085356.ru4fmtawyxo5cq5s@bogus> <7eae52f6-ca7e-5017-629e-43761d4eb5d7@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7eae52f6-ca7e-5017-629e-43761d4eb5d7@broadcom.com> X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 Wed, May 31, 2023 at 08:28:26AM -0700, Florian Fainelli wrote: > > > On 5/31/2023 1:53 AM, Sudeep Holla wrote: > > On Tue, May 30, 2023 at 03:42:45PM -0700, Florian Fainelli wrote: > > > Hi Conor, > > > > > > On 5/30/23 14:39, Conor Dooley wrote: > > > > Yo Florian, > > > > > > > > On Tue, May 30, 2023 at 01:19:55PM -0700, Florian Fainelli wrote: > > > > > From: Pierre Gondois > > > > > > > > > > commit 3522340199cc060b70f0094e3039bdb43c3f6ee1 upstream > > > > > > > > > > fetch_cache_info() tries to get the number of cache leaves/levels > > > > > for each CPU in order to pre-allocate memory for cacheinfo struct. > > > > > Allocating this memory later triggers a: > > > > > 'BUG: sleeping function called from invalid context' > > > > > in PREEMPT_RT kernels. > > > > > > > > > > If there is no cache related information available in DT or ACPI, > > > > > fetch_cache_info() fails and an error message is printed: > > > > > 'Early cacheinfo failed, ret = ...' > > > > > > > > > > Not having cache information should be a valid configuration. > > > > > Remove the error message if fetch_cache_info() fails with -ENOENT. > > > > > > > > > > Suggested-by: Conor Dooley > > > > > Link: https://lore.kernel.org/all/20230404-hatred-swimmer-6fecdf33b57a@spud/ > > > > > Signed-off-by: Pierre Gondois > > > > > Reviewed-by: Conor Dooley > > > > > Link: https://lore.kernel.org/r/20230414081453.244787-4-pierre.gondois@arm.com > > > > > Signed-off-by: Sudeep Holla > > > > > Signed-off-by: Florian Fainelli > > > > > > > > How come this now needs a backport? Did the rest of the series get > > > > backported, but not this one since it has no fixes tag? > > > > > > Humm, indeed, this has been present in v6.3.2 since I requested it to be > > > included. The error that I saw this morning was not -ENOENT, but -EINVAL. > > > > > > With those patches applied, no more -EINVAL: > > > > > > cacheinfo: Allow early level detection when DT/ACPI info is missing/broken > > > cacheinfo: Add arm64 early level initializer implementation > > > cacheinfo: Add arch specific early level initializer > > > cacheinfo: Add use_arch[|_cache]_info field/function > > > > > > I will submit those shortly unless we think they better not be in 6.3, in > > > which case it would be nice to silence those -EINVAL errors. > > > > I prefer this option instead of back porting all the above 4 as there are > > some pending fixes for the issues found in those patches. I am fine if Greg > > is happy with the backport, so no strong rejection from my side :). > > OK, so are you suggesting that we specific check for -EINVAL and -ENOENT > rather than take all of the 4 above patches, Yes that is my preference ATM or if possible to wait until all the fixes are sorted for the bugs associated with above 4 commits [1] and [2]. I have queued [1] but waiting for response/patch on [2] and hence not yet bothered Greg. > if so, any preference on how to do it given the state of 6.3 stable? I don't understand what exactly do you mean ? -- Regards, Sudeep [1] https://lore.kernel.org/all/20230508084115.1157-1-kprateek.nayak@amd.com [2] https://lore.kernel.org/all/20230518012703.GA19967@ranerica-svr.sc.intel.com