From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 70DC4C54E5D for ; Thu, 14 Mar 2024 08:40:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eRri3f108aAbAwNVBjJPgftNsh4sWiOhu73kpLhrdm4=; b=aUXJtJRh/VN+Bo aSNcUckXbD5dU5dh7PqjSeEPQVdpqPr3V0JtcRY8INNjsMPl+PhdsP9hij6f9xlcVzhNaGGZn9MqY j10SfNmzMbngRWQE+VOJzy1aG2HLD3ttNKKSwB467shVVJZ/Jdd/zMMaKH2MsvzdJKGqUlg8IOeit tleBePT5L+aTiiZJB6lWgL6Umq4zGfLHNTeR9jZoDE/8r6WvyecSeEfNmOCXvCtm0Z0mZLxAKwDNF B3J1w749D1SMR4AaPbDbeUNUz1foygLarpxa80U8qbh1DoVXjK1JlVPHAg/DiU6z9H5qlPZAy6Zty 9CIeJ1Z2UA9b0KthiMyg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkgd5-0000000DZRt-3Y82; Thu, 14 Mar 2024 08:39:59 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkgd2-0000000DZQf-1Ueg for linux-arm-kernel@lists.infradead.org; Thu, 14 Mar 2024 08:39:57 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 730DACE1D3E; Thu, 14 Mar 2024 08:39:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F403C433F1; Thu, 14 Mar 2024 08:39:48 +0000 (UTC) Date: Thu, 14 Mar 2024 08:39:46 +0000 From: Catalin Marinas To: "Russell King (Oracle)" Cc: Marek Szyprowski , Sudeep Holla , "Christoph Lameter (Ampere)" , Mark Rutland , "linux-pm@vger.kernel.org" , "Rafael J. Wysocki" , Viresh Kumar , Will Deacon , Jonathan.Cameron@huawei.com, Matteo.Carlini@arm.com, Valentin.Schneider@arm.com, akpm@linux-foundation.org, anshuman.khandual@arm.com, Eric Mackay , dave.kleikamp@oracle.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, robin.murphy@arm.com, vanshikonda@os.amperecomputing.com, yang@os.amperecomputing.com, Nishanth Menon , Stephen Boyd Subject: Re: [PATCH v3] ARM64: Dynamically allocate cpumasks and increase supported CPUs to 512 Message-ID: References: <37099a57-b655-3b3a-56d0-5f7fbd49d7db@gentwo.org> <9352f410-9dad-ac89-181a-b3cfc86176b8@linux.com> <432c1980-b00f-4b07-9e24-0bec52ccb5d6@samsung.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240314_013956_592402_98921928 X-CRM114-Status: GOOD ( 12.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Mar 13, 2024 at 05:13:33PM +0000, Russell King wrote: > So, I wonder whether what you're seeing is a latent bug which is > being tickled by the presence of the CPU masks being off-stack > changing the kernel timing. > > I would suggest the printk debug approach may help here to see when > the OPPs are begun to be parsed, when they're created etc and their > timing relationship to being used. Given the suspicion, it's possible > that the mere addition of printk() may "fix" the problem, which again > would be another semi-useful data point. It might be an init order problem. Passing "initcall_debug" on the cmdline might help a bit. It would also be useful in dev_pm_opp_set_config(), in the WARN_ON block, to print opp_table->opp_list.next to get an idea whether it looks like a valid pointer or memory corruption. -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel