Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp250720imw; Fri, 15 Jul 2022 02:24:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vvAHfDDm19GAXjz1xZopkTggz+mOAxuEyFsgthOMu1hUn9082QgWKJuGulF6fXHvVn5sjl X-Received: by 2002:a05:6402:3581:b0:43a:d66b:99b5 with SMTP id y1-20020a056402358100b0043ad66b99b5mr17728217edc.375.1657877047450; Fri, 15 Jul 2022 02:24:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657877047; cv=none; d=google.com; s=arc-20160816; b=vRoYcLR7NdAmsoVPFE4X9hsqA/soZqj2X9O3sob1WkUyr+ch6TqKpqL/KvX8DDlKtM +3QulaC3I5URXi+aXeGLn4Q1rdP1/4wCfzuHWVz9tdczfKfoPE3iQmPbIpCaFe3X6WgM oyGdRfepROdcPI6y/wNFVEnkzGy6FqU2ZkS3CtwtMee8zLfSOzZy4xsQK0HwulH0he5U WFi6E6NHkcSCd/uaBgAFGFK3z/reUah0qufBYntijNgAN90STmhoJcHKPCSzKgs/vdIZ zkc7QDlef7WBzWzqFFlNSWEkiapj0YVW3B7fT0jRjI8HZPPIolWQX/qwXgv3A79qTfC5 O7zQ== 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=6IluHRYkRsstjcuvVjxLr44OBz4l9O5qZ9lTexyGlu0=; b=L4Wtz2AhMA9jlVz8LIM77eN9LHkFfi0Q5q67xPT42FOR8vd5LykkYlNTQkzLWpWUen L0EHPal0w8VRGnz+tKcTdCIZvLe2fZuXTle817GWDnyD4v0rYT9iZi08kQKHv+VrWRfF ibVR+XEA97HWJ2l3WjHEidmdsZUztEYOK/uhGd5vT+bHV7VnAJ5baqMNavjpqYvHM/Kx jR4Kx+A0U0sD2mNw5l8qsRPr7AM9o3tb0TeRAjrRIJRDEC25KORIxcUk5I3nuAENHeMk YvrYlo8JV+/EpSG47B6axtcz2CH9UyikXuOWVN+EFBWUXRMJT3hU+1nzHd4LP2XIqUhN c/4w== 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 x19-20020a50d613000000b0043777cec0d2si5570319edi.631.2022.07.15.02.23.40; Fri, 15 Jul 2022 02:24:07 -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 S232513AbiGOJLa (ORCPT + 99 others); Fri, 15 Jul 2022 05:11:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231907AbiGOJL2 (ORCPT ); Fri, 15 Jul 2022 05:11:28 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A6BBD25599 for ; Fri, 15 Jul 2022 02:11:27 -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 E052F1474; Fri, 15 Jul 2022 02:11:27 -0700 (PDT) Received: from bogus (unknown [10.57.11.76]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4D77E3F792; Fri, 15 Jul 2022 02:11:25 -0700 (PDT) Date: Fri, 15 Jul 2022 10:11:21 +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: <20220715091121.mvwsopbh52c3zztc@bogus> References: <20220713133344.1201247-1-sudeep.holla@arm.com> <0abd0acf-70a1-d546-a517-19efe60042d1@microchip.com> <20220714150100.aqvmdgjkymc2dr5t@bogus> <20220714160016.honjpzg35ccq4fto@bogus> <50b3316b-aed0-2ef1-a7ff-69aa3991d7e4@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50b3316b-aed0-2ef1-a7ff-69aa3991d7e4@microchip.com> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE 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 04:10:36PM +0000, Conor.Dooley@microchip.com wrote: > On 14/07/2022 17:00, Sudeep Holla wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > > > 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. > > > > With the GFP_ATOMIC, behaviour is the same as before for me. > So you still get -ENOMEM failure on your platform. It is fine, just that I am bit curious to know why as it succeeds at device_initcall later. I was hoping this might fix your memory allocation failure. > Therefore, with the following diff & for RISC-V/DT: > > Reviewed-by: Conor Dooley > Thanks ! -- Regards, Sudeep