Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp547424rwd; Wed, 31 May 2023 01:57:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6PNxO17NPaycprFzcOw3l7GnvOe50ILSp2JYh4bKp9zN1P537+mbqtUeXYt2I5SLUXh1qQ X-Received: by 2002:a17:902:c945:b0:1b1:8900:5211 with SMTP id i5-20020a170902c94500b001b189005211mr4136pla.28.1685523439603; Wed, 31 May 2023 01:57:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685523439; cv=none; d=google.com; s=arc-20160816; b=uCroOAv1k5G+BYiRhBpEwAa8REG2obfSoBidTysLmrBtr8i4kfzAvvJJIGEdIjFefh AA1Rpx2+u3pLnhIpkxjofHXwNCCqNvKEhOSNuOObqj33Y86PPZHTJ8TDJ1qG37TdOoGy fz5LEm7ECQZFcNj8uAvF3wutM/+n49Qci6TzWW7eoinbtTROx/U3/oeLZmHQvtlhFw2v yfziPECYNj2RG9wgQHk3qfTMsEmYt/ORHPLKiBrbsMYhDnCyuEFhPR0sVattv9Af80bD KFvbyC1OTp0aqb0lV3jcBkp4tryJWLC8s1KTuv7Q+ufzdwTOvuu1dMLEnE4clYN4WqWj rRAw== 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=cp2B5wgC9jVtCaWyETAk/6ZGnBQFwIpqnX1mJ+PGEV4=; b=bJEq3DhVs2G+JmBYKSRhZB9cDdcyLNuREGiaKZ4SGO1vl1MjWl9m6SMpxJQeLTgiPH FZyykv9Bp440vXbNtpEuDdLsztGddNTzJRecbdlks5zHT7RtoHMi6RLrOjG+aHWq+u7q s6gAC/9ZfJzCCDV4QDYP4b+pu5tTYbTUSshTT6JLtUW2UwiSu2BsmzaWMABRSBf2FoEr pgXNUQmDWLg4bVErYo6JD9Dh2iBo4OOEDGFBaCAt9KnlKLFt0bNaw4xwEe1FMKC87nqe er3HdL8Wxk6RYU0EwCryvH5OMiCVaejdAc2iMX+yhPQfBLPG+3AvhfK/97oU3ZI9a3Fz U89A== 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 jj5-20020a170903048500b001ae57456ab4si156356plb.6.2023.05.31.01.57.07; Wed, 31 May 2023 01:57:19 -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 S234938AbjEaIyX (ORCPT + 99 others); Wed, 31 May 2023 04:54:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235160AbjEaIyE (ORCPT ); Wed, 31 May 2023 04:54:04 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 820BE121; Wed, 31 May 2023 01:54:00 -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 1EDA61042; Wed, 31 May 2023 01:54:45 -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 8C0D33F663; Wed, 31 May 2023 01:53:58 -0700 (PDT) Date: Wed, 31 May 2023 09:53:56 +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: <20230531085356.ru4fmtawyxo5cq5s@bogus> References: <20230530201955.848176-1-florian.fainelli@broadcom.com> <20230530-basically-wildly-84415a94171d@spud> <72d84100-55cf-566d-8301-7147ce14b1e9@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <72d84100-55cf-566d-8301-7147ce14b1e9@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 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 :). -- Regards, Sudeep