Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp703653imw; Thu, 14 Jul 2022 09:15:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1udgkkNZ+0Rheudza3AWFbbTQoKYb3Llqiea5dRmWl5YkOX3B+4xA8+++JsIAeC1ycdjCby X-Received: by 2002:a05:6808:1408:b0:33a:2388:fcd7 with SMTP id w8-20020a056808140800b0033a2388fcd7mr4690178oiv.239.1657815305131; Thu, 14 Jul 2022 09:15:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657815305; cv=none; d=google.com; s=arc-20160816; b=n8YBMXd8cpvfFeUfM6Hm8Toh7+NfEMbLk7VmjormqXpc5uWXuQ7bV5VJ4weFfKy4fc KqzaOOZN2N4BqNuKf9Bqp+KbPdKWpebHhGXR4S1NTHIZdGkoUbYbrsHEygfkDr9kRXEE FrGSFA0aPK7h8jmYPeJdK4hmBy/54LOLdnzWOBu3xiTmpNe3sTmlbdkhJfkKgSkzyqUS L1iImaz1rS+ZEDThGKXwyIESemPoT6Q+Lx8/T/7ENDYPV0CgHfiPVWB2D1vt+SAE8Egd +/UDR8JR7snLtGEb5HdY/GWWzPOASRBuj9SMe+oJRA9fu8XsXP6gp2BDlcaimaPVWE2P md6A== 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=8h3obSolD6hBia9YPtWM+E8T9TyykqumTpdp3ehDTW0=; b=hu++XAHGl7f8b2SXwo/S+6iUVJnRS2VnAKTw46EUKZSUhtyx+g3sjlsdC67MYWbU6A bVqgyUgqAdnmKHpkIw0xeH+WLj3vqfwxIkJsNX6GaKM6M014nDSYUHhqe9IpzMFnjg4b cQZCFklYJLg7h4HrSCam5mo/jjaYg5fDUmt+Ac6tl/DDI9+nBgGj9wymHcEr2Ygubrqi oGzwssTZnx8LKgzcExtOMIa51zXeJ99ayIHNTvefoDQlU2ax9hkV1RGMFj004gtrpoF/ DUC3uQ5r8JzCuDGSLsKT+BNajUCPx4hijnZyfmGMZWk2ONq1dkF+xLDImFuxjYENx3s4 btRA== 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 d28-20020a05680808fc00b00339c1c3d6edsi200617oic.232.2022.07.14.09.14.51; Thu, 14 Jul 2022 09:15:05 -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 S229939AbiGNQAW (ORCPT + 99 others); Thu, 14 Jul 2022 12:00:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbiGNQAV (ORCPT ); Thu, 14 Jul 2022 12:00:21 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8D85F6431 for ; Thu, 14 Jul 2022 09:00:20 -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 C42941D13; Thu, 14 Jul 2022 09:00:20 -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 246513F70D; Thu, 14 Jul 2022 09:00:19 -0700 (PDT) Date: Thu, 14 Jul 2022 17:00:16 +0100 From: Sudeep Holla To: Conor.Dooley@microchip.com Cc: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, ionela.voinescu@arm.com, pierre.gondois@arm.com, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH -next] arch_topology: Fix cache attributes detection in the CPU hotplug path Message-ID: <20220714160016.honjpzg35ccq4fto@bogus> References: <20220713133344.1201247-1-sudeep.holla@arm.com> <0abd0acf-70a1-d546-a517-19efe60042d1@microchip.com> <20220714150100.aqvmdgjkymc2dr5t@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, 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 Thu, Jul 14, 2022 at 03:27:09PM +0000, Conor.Dooley@microchip.com wrote: > On 14/07/2022 16:01, Sudeep Holla wrote: > > > > Interesting, need to check if it is not in atomic context on arm64. > > Wonder if some configs are disabled and making this bug hidden. Let me > > check. > > OK, it turns I didn't have necessary config options enabled. Enabling them, I did see the BUG splat and changing allocation to GFP_ATOMIC fixed the same. Can you try that please so that you can test if other things are fine. > > One possible solution is to add GFP_ATOMIC to the allocation but I want > > to make sure if it is legal to be in atomic context when calling > > update_siblings_masks. > > So I take is as legal and needs to be fixed to push my patch. > >>> > >>> Anyways give this a try, also test the CPU hotplug and check if nothing > >>> is broken on RISC-V. We noticed this bug only on one platform while > >> > >> So, our system monitor that runs openSBI does not actually support > >> any hotplug features yet, so: > > > > OK, we can ignore hotplug on RISC-V for now then. We have tested on multiple > > arm64 platforms(DT as well as ACPI). > > > > Well, other vendors implementations of firmware-come-bootloaders- > running-openSBI may support it, but (currently) ours does not. > But, if no-one else is speaking up about this, my arch-topo changes > or your original patchset... OK -- Regards, Sudeep