Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1209043lql; Tue, 12 Mar 2024 10:09:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWxcr75llPVohWmkoqLbkaB5X7dPLU/5uuwKKK6BKINoP/b43/G64Z+xF/JZ/GELp0qitARuc23YqgHm/aizMDgLksGgfDQZaWPvWzGww== X-Google-Smtp-Source: AGHT+IG8WkV5Hgov33aloqtf6tpqgMe6T4LtBZOgzeiPKt2wRfIu3bKzvGci2z82b+CbQY3aNxhQ X-Received: by 2002:a05:620a:24d5:b0:788:4e2b:6bb3 with SMTP id m21-20020a05620a24d500b007884e2b6bb3mr13396826qkn.49.1710263347114; Tue, 12 Mar 2024 10:09:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710263347; cv=pass; d=google.com; s=arc-20160816; b=OZSAkMXRxmldQqZs/Jbq6VCv090XvhPvl/qWEXfXAdClVBWPD5WDH+DyoACSyfCzRz FrSGI0ym97XDhNqyJMrzdMtlOP9oBpaUWI2gKoxXsVLbTrV3Cbdcpm4LtKbjM6z3g89M nEy/1TL2y7tAdNjE5h1jU0fSlBvqsiN/wJg3nOnL7nI4H8FOg8Th87GKMKTmj+OXY2qN /vM4gZ6SeAWSXmjsXU7e2l6xZakp2iH4/bjQ/eGyWI4uDA0akczIVnpljiU5rtTj2O/T G74+O8Hyt/O5QWAENXKCqw3AHKAgIfdtcegGWwmtB7ZV8DwXShNEeCnrutg86jf08qbo Gw6g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:from:date; bh=09dvwzx4f2MVkzw89jZwX+SMD+Jv+bASzvn2Gq6e8xU=; fh=GG08ikPnOiYQd+zGsDQ0v46Cs/iMfSjPibbIRoqeJzU=; b=InazCM3M8FbCHnKqhIUp6y/rWenH1+jsZlwOV+mVc9R5UsOf/l3q8kK6HOUXbH56h4 zy67GpZQLm0sc1sr7bMif66FHhM0ujfshi/AgvKFR2J0IaahKPEy77s38+lQw9dvuzCA rvGBAu9BuQhw5snadz7/Qki+LOqB8vk/VroS8hQu1IsMVW/yvs8oFRE2ki8+GffZ/Jdu e9l6DG7yY5Br16zRrQ1tPiijVJSWCE7WFOfWTyQPikdDVkNG1O3zwnleXn0Mq2Y0I88j Lkror7rIM0njHfWjTXNA0FW4ZR6Hs28K7BraNSos/sLsamoqAb9l16F8iKbyZVVf0TlW GhAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-100575-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100575-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f11-20020a05620a408b00b0078843dc74afsi8359294qko.60.2024.03.12.10.09.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 10:09:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100575-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-100575-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100575-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.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 CD6FD1C203DD for ; Tue, 12 Mar 2024 17:09:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B10C13A884; Tue, 12 Mar 2024 17:06:10 +0000 (UTC) Received: from gentwo.org (gentwo.org [62.72.0.81]) (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 F08FF13A868; Tue, 12 Mar 2024 17:06:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.72.0.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710263170; cv=none; b=g+SpK7iT5S/1kFszMBrVgFgP5NtAjRUMNpgaQ1p3XfZKaqglsIq4aeR2mz5RXA8EhVD7RnkD1KuKIvEthdAWhZeeia+Naqe0ie5OLyG1Z2yVIaGk8ThWl7ZcQSbyP9Gu/hV8Wuy0biXMkVQiT8tFffZNhby0jzHtkf60BOwI4hM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710263170; c=relaxed/simple; bh=idgAQMXJKPF4HCVM9XW5bm7ejrX4/AFEN2rYgN7+R1A=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=hA9ZZpvohCMHZAF/+4fJUPN94Mmw1hOwynkUDjs+ITy6VyyfkiLRipgCI3N23LKoYWlNsFKrRdZj5dlNkIMCoy94NO2YZiMJ/nkQzANh78KyqlXe1AJXIqMhsRRXM0yDiceVb/USOpQYnHU5WtbZA9P57vAVPikkxDOCjNq08L0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com; spf=fail smtp.mailfrom=linux.com; arc=none smtp.client-ip=62.72.0.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=linux.com Received: by gentwo.org (Postfix, from userid 1003) id E34C540AB1; Tue, 12 Mar 2024 10:06:06 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id E264E40A97; Tue, 12 Mar 2024 10:06:06 -0700 (PDT) Date: Tue, 12 Mar 2024 10:06:06 -0700 (PDT) From: "Christoph Lameter (Ampere)" To: Catalin Marinas cc: Marek Szyprowski , 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, 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 In-Reply-To: <9352f410-9dad-ac89-181a-b3cfc86176b8@linux.com> 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; format=flowed; charset=US-ASCII 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?