Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4036449rwe; Mon, 17 Apr 2023 07:10:20 -0700 (PDT) X-Google-Smtp-Source: AKy350b4yApH4OBuFY60BAENAF1IPvS+ZCTVEPu4J5JoX4FL7/ICc94DOUohY0c/mpSGih4o1kE4 X-Received: by 2002:a17:902:f691:b0:1a1:e93c:8937 with SMTP id l17-20020a170902f69100b001a1e93c8937mr14146842plg.35.1681740620001; Mon, 17 Apr 2023 07:10:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681740619; cv=none; d=google.com; s=arc-20160816; b=S5XycP2DSAL3ffC5NjcjgwBF/zIFBIlVwEaBNcgK9TLWpCkhB+J0VFxaJ4L1l5aQ9g BDFzVuLvbf27LUsHFaf5GxvYH8valEpCyHSfM/VQIMoZ0HckP+oigrWEozRSNedEbeRY fWZyMLE1k/kzkDa0a5uSgP6qLAYzE7kewR3VBU5DGubz5iY7vZuJcPHyV5rfqFuAR5CH YjjS0/yQZCcBzZr2odfELclQ2iPZfEMHnAmroWQKWvXWTs89tJgIXIFMA7TcYOcilF61 BbBfRf53ABHfdp8YLk/S3KqCfO6Ops9sXeQ64RHLATaOIwSpEct4XjjgSWB8mdVysQwj e6Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=433K75zm8+QdeCA5OtscZ4UNlHQ1L/llHvfmSfw0gH4=; b=k/mFjRKfFhYHS6UbJbHoT45GdW0z64FQJTUst3ot9okMjJnfzhNMnsqcXb1o84/Vf5 Q4xPxPUr+0Dq2b+8J3QDkRepCn548Rns40nRnjOfODbTx03ZzR5tCe7U/Pt+Ah0r9D5t stTx6pxEWHvbmpED6tYpA3KchP9geA4F3bTvVBeC+makiacVrLafaa3y+rqT1B/xc6WY ZYTxschJPJR1L/g1pkOUmUlvKDDI3r77RsHqdaXdxu9I5gLK+pvPViRrARo1hD07a/hS FJ4ixgu2EzHrE4IcY12qM86sLbpPMIuUTrra8lky8LaFHG4zorZbQ3W+tlusRr1t2Crz 9uFA== 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 q16-20020a170902dad000b001a63bb1495asi12435362plx.589.2023.04.17.07.10.07; Mon, 17 Apr 2023 07:10: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 S231163AbjDQOIr (ORCPT + 99 others); Mon, 17 Apr 2023 10:08:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231159AbjDQOIj (ORCPT ); Mon, 17 Apr 2023 10:08:39 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C19ED4C17 for ; Mon, 17 Apr 2023 07:07:45 -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 5ACFA1FC7; Mon, 17 Apr 2023 07:08:28 -0700 (PDT) Received: from usa.arm.com (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 9EB3D3F5A1; Mon, 17 Apr 2023 07:07:43 -0700 (PDT) From: Sudeep Holla To: linux-kernel@vger.kernel.org, Radu Rendec Cc: Sudeep Holla , Catalin Marinas , Will Deacon , Pierre Gondois , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 0/3] arch_topology: Pre-allocate cacheinfo from primary CPU Date: Mon, 17 Apr 2023 15:07:40 +0100 Message-Id: <168174033569.1898335.12120283777353899091.b4-ty@arm.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230412185759.755408-1-rrendec@redhat.com> References: <20230412185759.755408-1-rrendec@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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, 12 Apr 2023 14:57:56 -0400, Radu Rendec wrote: > Commit 5944ce092b97 ("arch_topology: Build cacheinfo from primary CPU") > tries to build the cacheinfo from the primary CPU prior to secondary > CPUs boot, if the DT/ACPI description contains cache information. > However, if such information is not present, it still reverts to the old > behavior, which allocates the cacheinfo memory on each secondary CPU. On > RT kernels, this triggers a "BUG: sleeping function called from invalid > context" because the allocation is done before preemption is first > enabled on the secondary CPU. > > [...] Applied to sudeep.holla/linux (for-next/cacheinfo), thanks! [1/3] cacheinfo: Add arch specific early level initializer https://git.kernel.org/sudeep.holla/c/6539cffa9495 [2/3] cacheinfo: Add arm64 early level initializer implementation https://git.kernel.org/sudeep.holla/c/c931680cfa95 [3/3] cacheinfo: Allow early level detection when DT/ACPI info is missing/broken https://git.kernel.org/sudeep.holla/c/e103d55465db -- Regards, Sudeep