Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5029196rwd; Tue, 30 May 2023 13:33:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4p/BgKn1e4D3eS3VJl0oiOAKLseSIo/b2/x4rjWsKI9L6KfSNcXoT3PFZh1KZEwBOpZaJZ X-Received: by 2002:a05:6a20:5494:b0:10c:8f0c:f81c with SMTP id i20-20020a056a20549400b0010c8f0cf81cmr4320532pzk.53.1685478793902; Tue, 30 May 2023 13:33:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685478793; cv=none; d=google.com; s=arc-20160816; b=qm53JXwzWGn0DvBOEuuL3dB3Vet4p7JI+Ga1+BV1Ms7I8JqLjryM6LnbeVcYPQQC2D 35IT7xN4/Co1hPTRuUkzXmWtXEnzXzG9wk4k3aAorpzNU/fXmyTMvssp6Pi1jkBl9Tlh NpK9l39Iq+YaGIMIf6PEOi2Zm7Ty1Op//wQNxYNFykWotLSDVmlWbGT9gUrBsnv0MfgU r3VjaNVvBAcXqQ/8Y1t/utovTH14ok0zaLycbR7RXUSjiBN8gMqb96tKLshEzXnnNYuj XCtiXAHxu+3wZPOJEM8IABILyeJUjJ/sSkbGiM800henMvmhqN5/8BrOVKHLyjnzDzr9 /Ulw== 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=CNALgEou4+OqM+ORFPFW2dor3ylhB/+d4Xmh6hWNqx0=; b=PzJ2ALqhW1zWZf+6xYMC14YG8CWTUamvqxEyntZgYmlt/msym5vOjuehWf5D8Cg75H 5LtCItbR3D9ceggNpLOMMRWxzSJQmyNCAxiVJY8w36hTTiAmxBG69ZXUpssiQuQPIiI+ CPzm+qlYPpFi9bvQzZAAJlRp3qocZ4Yy7mB3jm6eIdcIBAWUbJnCeItZmROGWcu5JNjh Xjp0iRqJ5zqq5GbBgsupk2qQGcgtw4xk0BKKs3o8PYCeGsShOpaU3sGiWRtUyVZWneCH 7fUajjikIK942F9uS4OPwjmGkELd1nVIddjxxTw5pk2z1mRChE8uyZCivodrWbgylO1R gO0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b="BLJaRk/2"; 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 h191-20020a6383c8000000b0053fb69cc365si1613411pge.238.2023.05.30.13.33.00; Tue, 30 May 2023 13:33:13 -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="BLJaRk/2"; 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 S233396AbjE3UUL (ORCPT + 99 others); Tue, 30 May 2023 16:20:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233383AbjE3UUH (ORCPT ); Tue, 30 May 2023 16:20:07 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AAD4124 for ; Tue, 30 May 2023 13:20:05 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1b025d26f4fso33477365ad.1 for ; Tue, 30 May 2023 13:20:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1685478005; x=1688070005; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=CNALgEou4+OqM+ORFPFW2dor3ylhB/+d4Xmh6hWNqx0=; b=BLJaRk/2rwuF8oqfzoj3p3LvSyuEhTVG/N17+9uTWFVTSVBqlimo6EQPHJ+hfQvhDN 4TJJHHihrXTmXFB/GnbZ2cCdmVzSXY7Yj6j1VZTUwS/K4tKDd8j/L75EhE3SwtMHzfrg 6cqmXcBm4dBroSgckSZ0DiOBZ446yNvsFBV4Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685478005; x=1688070005; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=CNALgEou4+OqM+ORFPFW2dor3ylhB/+d4Xmh6hWNqx0=; b=gI24MKTf1coL60SegI6YgNLdNWzU+GhJq+kBKOXBu1S36CW4wqTVePyDU+41zoDDvA AifnBoINZJqwgs+NDvAPCNKK22sE2cUjdm7lwaGm0WUQcHVQZyDzCSZR0iPH5rKZ6wJ9 LbTTrL5RnCJIHyeAOjfPEqerBeLMX28BMUbqgt3s8gn5isq9YJ2gDYG+/+puB9W8Livu oK3PjVuxdfPdaX7aa3mUslrNy6pItc7fIbR1KFmxzMlQRtTmR6FY+4vrbuikpgZ+q9mm ZRB36IwTOD9LpXK7K0/fxK7c/Fc8k2oNiC+R+7EJ+A8l3azD1qWRWT0MR5rAE1GGQGu0 XPeA== X-Gm-Message-State: AC+VfDzfOubVpptZhDwm/8czkR8zgbJIZwF8LQZ17+qIsREIwNS1AAah SSaFA8RA/dZnKt9uFVpdaajJ1g== X-Received: by 2002:a17:902:aa86:b0:1b0:2d08:eb51 with SMTP id d6-20020a170902aa8600b001b02d08eb51mr3426185plr.12.1685478004778; Tue, 30 May 2023 13:20:04 -0700 (PDT) Received: from stbirv-lnx-3.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id u9-20020a17090341c900b001ac7af58b66sm10676712ple.224.2023.05.30.13.20.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 13:20:04 -0700 (PDT) From: Florian Fainelli To: stable@vger.kernel.org Cc: Pierre Gondois , Conor Dooley , Sudeep Holla , Florian Fainelli , Greg Kroah-Hartman , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org (open list:GENERIC ARCHITECTURE TOPOLOGY) Subject: [PATCH stable 6.3 v2] arch_topology: Remove early cacheinfo error message if -ENOENT Date: Tue, 30 May 2023 13:19:55 -0700 Message-Id: <20230530201955.848176-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="000000000000c75bbe05fceeedd7" 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 --000000000000c75bbe05fceeedd7 Content-Transfer-Encoding: 8bit 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 --- Changes in v2: - Added missing upstream commit reference - Added missing S-o-b 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 --000000000000c75bbe05fceeedd7 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 MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhkiG9w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