Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1763698lql; Wed, 13 Mar 2024 07:35:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUiyOvdS8w+9peT53u4SLXNzzXx3icZ7KWUL051hW3tzJdGtTtiFohnI3H/i7EfvHjhcGMjxPa5H6YsD0tVfVxECxUmNj/zAf6G+ea9ag== X-Google-Smtp-Source: AGHT+IFRperCXnFhOIZUzGd21dFymqpuGXzgTy776VsR6vQw2T0zyb/alVp0RAAf+31inMDXM+Ks X-Received: by 2002:a05:620a:244b:b0:788:1daa:5003 with SMTP id h11-20020a05620a244b00b007881daa5003mr14014qkn.57.1710340544045; Wed, 13 Mar 2024 07:35:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710340544; cv=pass; d=google.com; s=arc-20160816; b=0ZlPyzDIVU0/T7G/XWKToqjDk814f49eYJks9nr4OW2E1fYxb7VSeaIx6fpnlokupv LiufEemsnC/Wgq0AY4kpNESDg8i8MSL1BywLB+mkslEVs3MwsOTb/81nnwG8BuqpNZEn kvkbXY11H/PwqKWA/l2QzJb5SHd7PgLV5kPpWYx6BwzHUfNnsxK9hY48ZciDpl0Hwbic j17WgdLdfds1tMkU9KjdPvb46fddh2jA1ykj2twz2DVh7QyJVlTLwSCVIH3nDQyWzSD6 lzh+WStXUq4jp2qqQyVKcoh4ql4U9KoJEL+WSExlc1bvh6+vHO+NwLQiqbfDdp0Trswg P+3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=yOQGShewM716dS+uPb9Z8lLXlUwt34drgeAVECPi7Bg=; fh=CdVd+QxnFq9ID3ig/77jxmIdxGckxhcxqVO70YmUIJk=; b=cGUlQneHUoyDQrrIygNoHuXdNG12Kqsxfmk47jqdjHnzFUbeiWYEdXL4fOhj3rpcTX /pllbKZpGCGeQOeoRIcUFG3h8iEm3nFcmckNod3m/AKkrC5tcSec4eiUjLpgYzqF5pdM LzqCkAG9FfvoAFTCrlzRgMfovAkN2MWYd1FEl05Ev+TJFZHPbUTh5g3HF62sBJoLRYO+ tWvROIFVR5ozGcRd6FiQlyDZZ6d7LasFeCgoiDDz9kXFYyCaSUhpLeMiYdROTDXU2aYs wuDPS/zpEXNOP/binZjD9JbdmJRK6k2QTaXUyzuPNtOhulm3dqzuL43HuNdlk6oEvN4s F4Hg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-101621-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101621-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e6-20020a05620a208600b00788320b6285si9378486qka.683.2024.03.13.07.35.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 07:35:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101621-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-101621-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101621-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A8B011C22811 for ; Wed, 13 Mar 2024 14:35:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7ABCD339AC; Wed, 13 Mar 2024 14:35:25 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA19A2905; Wed, 13 Mar 2024 14:35:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710340525; cv=none; b=cpApWzwBf74KoAczTqRkMI7VjQkXVMnYau+cqDSOxyv2XampTwjl5MYPGxSDDPNGlPOh8GKNEyJwl8ieef97u5l0+qn9HzY2sHqWHQJJphuQk//pXwmlhjPag1nWzb5kSC+IGznp/REcxPMnkaIVhLRD4jnJtQYz1TBGzTo0tSY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710340525; c=relaxed/simple; bh=yOQGShewM716dS+uPb9Z8lLXlUwt34drgeAVECPi7Bg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mqqjfTBuOt/H42BwIS7cDhCnAYn6m1MKGVyByGuAiBFkWtjUS1AonnHwXmIs2asPYb1Prkx563E0ONULLQ7upI5UhXkvTyWwi+s8nUi53+QjIsLy4qHgHNMQfp3q+LHXDS8IA95gVqwzVhLgkgtd51c2BZN9ex3BHYLoM1VHef4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 37BEB1007; Wed, 13 Mar 2024 07:35:58 -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 D8CDC3F762; Wed, 13 Mar 2024 07:35:17 -0700 (PDT) Date: Wed, 13 Mar 2024 14:35:15 +0000 From: Sudeep Holla To: Catalin Marinas Cc: "Christoph Lameter (Ampere)" , Marek Szyprowski , Mark Rutland , Sudeep Holla , "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, linux@armlinux.org.uk, 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> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Tue, Mar 12, 2024 at 05:55:49PM +0000, Catalin Marinas wrote: > On Tue, Mar 12, 2024 at 10:06:06AM -0700, Christoph Lameter (Ampere) wrote: > > On Mon, 11 Mar 2024, Christoph Lameter (Ampere) wrote: > > > > > This could be an issue in the ARM64 arch code itself where there maybe > > > an assumption elsewhere that a cpumask can always store up to NR_CPU > > > cpus and not only nr_cpu_ids as OFFSTACK does. > > > > > > How can I exercise the opp driver in order to recreate the problem? > > > > > > I assume the opp driver is ARM specific? x86 defaults to OFFSTACK so if > > > there is an issue with OFFSTACK in opp then it should fail with kernel > > > default configuration on that platform. > > > > I checked the ARM64 arch sources use of NR_CPUS and its all fine. > > > > Also verified in my testing logs that CONFIG_PM_OPP was set in all tests. > > > > No warnings in the kernel log during those tests. > > > > How to reproduce this? > > I guess you need a platform with a dts that has an "operating-points-v2" > property. I don't have any around. > > Sudeep was trying to trigger this code path earlier, not sure where he > got to. I did try to trigger this on FVP by adding OPPs + some hacks to add dummy clock provider to successfully probe this driver. I couldn't hit the issue reported ????. It could be that with the hardware clock/regulator drivers, it take a different path in OPP core. -- Regards, Sudeep