Received: by 2002:ab2:5c0e:0:b0:1ef:a325:1205 with SMTP id i14csp246235lqk; Thu, 14 Mar 2024 01:42:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWme/yHPUuK8wF3mudkNiODwmmIZImpW4fR8X8gWxTKVNbNVnKchB1mBbuc+T+1vulAeOjrfYQ7TFxVhHvckI7qc7/TvWQ9iAGd6eBldQ== X-Google-Smtp-Source: AGHT+IHayIMAJ4zDYEjCW3bePC9hg5QnzGgUmbJfu/FaokTxr8tFaA6TxxTO+qXJLcjEwhLsquRL X-Received: by 2002:a17:902:b405:b0:1dd:651d:cc47 with SMTP id x5-20020a170902b40500b001dd651dcc47mr947723plr.28.1710405742756; Thu, 14 Mar 2024 01:42:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710405742; cv=pass; d=google.com; s=arc-20160816; b=efmjQDa7XH87w2scqd5lOf4aU8lhYEvcnCSr4dArBTbLoc6jTo715MW4KNgVz1TFbZ N9Tp5xHK7q3P9dY04CM8hy1EWAVWUKINmukt/LLzKusosg4dJpKIbPCJcaPvP97qqVtu WRvaCHO617SJNz/IEEUKOAyr1JZV9QA7XUBwMzRzgnPjcCHxAuPDV/JBnqG2n635Piu6 xQP6zMuWm7/trgyVquvg1s3fy+B6FA/fOacPHToiWjwB6uvOUiawS88Bbl+SCjBNYK7T woPFWKcqn1XmnDUaQVrJcCV6q2UFOtc0ojXmLZKak4TFRNmbHe3rKQNYu0crrN758e0G gE3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=PO8cuVRdkKCyIen8lX65LHADwoDDq4W7mw2FII9JFQ8=; fh=ONQMzjMkVR+RYQZNAek4kLIb/TQ2Mp1Sk4Rhx0Rplic=; b=qC1vd0x253m0gOeODgLXMfK6a1z4hHYO9G8NDBRNwqqu5/BN1od5pNHlEwCfWUos1b cZJ3FWNp/Aq+HRD68FzPM8Efls7LlGtFDL2vh8J8wB8y2bk4TpMfNZjJWmEMmmMEChfp 4nTo8L01PXFGbf0yjXeyEm+pGZ+4HvnWMqgjNifH/9cgDQDq7wuH3siqKCeY3Gyv+wk3 9LUUGGIL/y/tZb3/TJVZNqEP6ngNdo2Z1uXel/ZxKCpAq5lR/bDI548Ct/Ma9jyl+IQe FNk/YsvesEM0BeI1jxTGzXZX+d+i7jVJN/fl4zSFT9DwJsylfkc8/pgBckMPsdyoE9LC MAjw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-102979-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102979-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id w9-20020a170902c78900b001dc679303a6si1024732pla.71.2024.03.14.01.42.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 01:42:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102979-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-102979-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102979-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id ED7EDB20F36 for ; Thu, 14 Mar 2024 08:40:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9C16E6BB47; Thu, 14 Mar 2024 08:39:53 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1DA7F433D4; Thu, 14 Mar 2024 08:39:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710405593; cv=none; b=TX2A8ajYxbyf4oXP4RuL4BR0g4oFXSwQRpeDGy8CbJG293S9H92Pmmt88AncSe1WXKRyiut+77r9mYosNFdUG2gDe43J4VdvAO8q8t+fBA9L6hF29cbasb17vTEl45rx3xeI1o8G7DqUL3/PO6GOlXOYlCz4WjGKcZWqE7/wVV8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710405593; c=relaxed/simple; bh=Pxk9h0+NJJSQGNZfBddW8VXxiAc/KVW3MLayKN9JI9A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uF4nqXJWX4BMXOlFTDmj3YBMBNmqPuVeD5bxLMEmsU6GlgfrjEyUTJ1uxQ/tHvc/hQUHJrecvI86SMy/14DCwhYGniiOS0EuYtjqo1yWNKPYtIQSqcya1gVB4HbuUoGjGPomzJte+9cAuZbIfXVJ/iWgMaqBC6ATUlCm3tUhq60= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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