Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5017737rwd; Tue, 30 May 2023 13:20:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ42k+zyK39j3q840PZIQ2lyQkjeFGQ3b8Z5QDK+lAlF/0DYL33PBR6sHZK+MQWn7hADE9Qx X-Received: by 2002:a05:6a20:734c:b0:10b:b25d:3a9a with SMTP id v12-20020a056a20734c00b0010bb25d3a9amr4387247pzc.3.1685478027522; Tue, 30 May 2023 13:20:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685478027; cv=none; d=google.com; s=arc-20160816; b=l6wZeCuE+yQfhSbTbb8+Tyx2j37ZyY6iK/q54nBPBQuwwMa/1HJvJTPDxDLfndd4Cu gGGUVRTMGG9ZZGO11Al+ihiLZA1WPUiVCwBABBgk+8FEfurMChyj5nxyhG/xxFiyUpk+ sqRCQ0nRQdBj0TmT5zZF1VymvJ0kgMYfJTJI/KUJCPz18M9SvERy7urA6TSl7wGv6sel o7kgOtR1CepC/poKBXZYM/1NnBSsMhxtwi2xz2dVedkqAthndO/FEheQQqam4rV8v78u 5axHFS6VgzVIyblwNfasS/F15y40PhrLpwoc2IJ6mNlr/dZ0Tr9i0KGCY37Sjv/COSt/ /YEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=qfF2eep617J21NPyHMmCPASbViSlLJAUXXoTGAdchIc=; b=JqTIbZoR84TLhbWMHr4iTyOA/tkM2GxeXOdq3VC0SfG5qqEX/b9r+UORPjgpPiIiT0 tADBty/hpQxm+wuuhvG0tDv5z9NTKL0F9tFLhFdLOvLH3b4ArAlxYGXZ6A+3OTXqLyiY mnceWKccgQrOrqQVLq6w6qQ552sSqMRhIh9Xq9Fr8SyMxAa7ezuMYqg7vC6sGJrCxTNP P3fMih2+YgM3hwBAaMQa9bl3VwW8EgH6DEyLcTtvtaXjjNSuTTmqxqDKwf093CalgTpY fb/JCgpyfwYh5FRJ+8oVOYNLNLzmNOkumVk7e2CKWzY7npd76qkelqH0wtgBvBi0jlqh 4IWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=WiaXoG6d; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q20-20020a656a94000000b0051b7b83d6b1si2780473pgu.241.2023.05.30.13.20.12; Tue, 30 May 2023 13:20:27 -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; dkim=pass header.i=@broadcom.com header.s=google header.b=WiaXoG6d; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231487AbjE3UPE (ORCPT + 99 others); Tue, 30 May 2023 16:15:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229893AbjE3UPC (ORCPT ); Tue, 30 May 2023 16:15:02 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33803129 for ; Tue, 30 May 2023 13:14:31 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-64d5b4c400fso5506615b3a.1 for ; Tue, 30 May 2023 13:14:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1685477670; x=1688069670; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=qfF2eep617J21NPyHMmCPASbViSlLJAUXXoTGAdchIc=; b=WiaXoG6dFmosXospc/dzdFwoYw8fapA34vAl5bxtjWvl1LIa8LXDQRWOqearSijWi7 sjxneLjcJ7OshZjZEa70kYdGPJlIuDiH3nwVBKQyEhTeTt6KImZBk3rLOhq81SE1rIH1 xnkmw1lHnCsL7bLBDVmyRva4PfQpAvBHZ6O20= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685477670; x=1688069670; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=qfF2eep617J21NPyHMmCPASbViSlLJAUXXoTGAdchIc=; b=BpZ+ByDHVDfzOjkjsuaye1QvuYSPjSHvqbnLBz7DVtdTHxvjsgsG4JFHakzhGBZkHM dypQxmYWXnAUIvVN9P5abn47JQg9udnAms0F9Slw8HJXud59XCNADQHb177GINhVdOYM S3wzy8p0QdxlCGrdoVIcUYdg/HtrK3Qbe1cXl/d9lfGRfTVKEs3vpGYmLq8piiOF8UQK ptTJofcCxFeKzy+i427I9sYtDxffT8pWn1XQeN2F0sEo0VPf2DbzRZ1Jto4xplXnKTh7 QfwfILzZkArrGRgFp+SOmzv4Lp4dKfHiRPmgUsyxcqgcWmTt8aILNiJq3TT5WSjadOw0 plsQ== X-Gm-Message-State: AC+VfDwDVztbqNit1cgzZio13Vc4jbFm014nYOxfTXrq+LEC8DGeyST3 Fj8DKr2Wa34X+FAWMDh5xrZ/OQ== X-Received: by 2002:a05:6a00:80e:b0:64d:2e8a:4cc1 with SMTP id m14-20020a056a00080e00b0064d2e8a4cc1mr4446651pfk.27.1685477670582; Tue, 30 May 2023 13:14:30 -0700 (PDT) Received: from stbirv-lnx-3.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id x4-20020aa79184000000b0064d3881e687sm2051547pfa.35.2023.05.30.13.14.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 13:14:29 -0700 (PDT) From: Florian Fainelli To: stable@vger.kernel.org Cc: Pierre Gondois , Conor Dooley , Sudeep Holla , Greg Kroah-Hartman , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org (open list:GENERIC ARCHITECTURE TOPOLOGY) Subject: [PATCH stable 6.3] arch_topology: Remove early cacheinfo error message if -ENOENT Date: Tue, 30 May 2023 13:14:20 -0700 Message-Id: <20230530201421.847792-1-florian.fainelli@broadcom.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000da9e0405fceed9eb" X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MIME_NO_TEXT, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no 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 --000000000000da9e0405fceed9eb Content-Transfer-Encoding: 8bit From: Pierre Gondois 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 --- drivers/base/arch_topology.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c index 147fb7d4af96..b741b5ba82bd 100644 --- a/drivers/base/arch_topology.c +++ b/drivers/base/arch_topology.c @@ -843,10 +843,11 @@ void __init init_cpu_topology(void) for_each_possible_cpu(cpu) { ret = fetch_cache_info(cpu); - if (ret) { + if (!ret) + continue; + else if (ret != -ENOENT) pr_err("Early cacheinfo failed, ret = %d\n", ret); - break; - } + return; } } -- 2.25.1 --000000000000da9e0405fceed9eb Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQeQYJKoZIhvcNAQcCoIIQajCCEGYCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3QMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBS MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA vbCmXCcsbZ/a0fRIQMBxp4gJnnyeneFYpEtNydrZZ+GeKSMdHiDgXD1UnRSIudKo+moQ6YlCOu4t rVWO/EiXfYnK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