Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp699858lqc; Fri, 8 Mar 2024 09:09:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU2cfa9JQqTnYM+da0iMoUdk9bQRUQlO40q/JHKa5K4Ful2qZyVPg9WyG8zLBDp/mX0w0bO7/UzF9GrRqKuHcjEJGLyA8PKhzEVYb7rVA== X-Google-Smtp-Source: AGHT+IFMFKhGJfevPnBV9ak6ZnvTgmIfmKo9hYRCcdV/hmRVzFCL2HTb2VJI4RwQci88S9DWPPHR X-Received: by 2002:a05:622a:cf:b0:42e:b777:f28b with SMTP id p15-20020a05622a00cf00b0042eb777f28bmr762602qtw.12.1709917755935; Fri, 08 Mar 2024 09:09:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709917755; cv=pass; d=google.com; s=arc-20160816; b=b7FovcusJ5NxhvU9eFR7R3DxaOob4SAjSS+0OXjFBp6hpCzZMC9WNPP5Y5q6wrOQ2r XVsxp2MmZuAGofu+2crLeiCUGJjhvVO+UGUc4GsXkZ3EgLoKm/Wrr4fR6M2kdQKfb6s9 SfUYtX47yJk3fkGvWicrbsWqQA9eoKsDQUNfs26oPOMvps6+orJ1hpLsxswt8jbb6D1f kBTe8SIXKNbAezKLfv9CBdRIdz/9OfOAylLjcKO/3i8PkON7pE/ob3PRqtNaNtNbtnu1 /nTp6khCfUq+gZyS/mm6h1PvTVH0RmMCkb9KwYpAAFpjlAvDeX7CxT1t6UjTPBQpceG0 Kpsg== 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=xj3So1eM3CtEz0vg8r1Z8IzRl3q1ro3PC8icVYall4I=; fh=JLt+5MxdG3yNplGFckXfL1yQ8pHRQdgpsueo2f06aAk=; b=lb2OsGeE3ytkF01ytS1Bp9TPTdcJaQjYCAJMIpEGuCoRS6i6GBVr9KWDSpXXN2ZKgg sz4PbrCnUp6oEWoLS09DHIuTdEnJoMAwdAWaOZPO+FE0GVmG3r8yQr2sXBZmT4qbuwaD j9MOapjuaXY1k+IWQqG6PcLo+QP3kQNNr4FjroM0iNBd2mmlXdjAG+b5s2ZK69OBJj5a qxmFghxye+sAGq9qtml9/AJlz2FOffhn/RjP/ZREXEFb0xKUQMICA05N4ySkg/+8/43Y cTeKH0orIJNYbgVQy31+kgbdF3VHl+0TmPCWFSNUbEKNSBKzpeq0BcfN4SxbgRgAluos a+GA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-97354-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97354-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y12-20020a05622a004c00b0042eeb7a6911si13667684qtw.287.2024.03.08.09.09.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 09:09:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97354-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 (google.com: domain of linux-kernel+bounces-97354-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97354-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 9EB651C215DA for ; Fri, 8 Mar 2024 17:09:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 507FC25542; Fri, 8 Mar 2024 17:09:08 +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 B5E1B1D54C; Fri, 8 Mar 2024 17:09:05 +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=1709917747; cv=none; b=dV+FMWZCAV9HPO9PsG9lVnT7ZIn0SqRF2r8F1h95Dk9w9tDsnqax5Jaxtb33qjEMe1ZPVlxIFzR5jYM0mRZbRWZqbufJ3qamvncf+cl8Fiady7qB3jhBNJSlTXTxvBmogT6PeGtC6iq7trYM09eDtZtEHZbQWcz4lXnP6G+oh/o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709917747; c=relaxed/simple; bh=MrRey84BnRt8XomMHDSqE3P0tm/wi8nF6bQhaKV/msk=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=PbJxP+6oqET3c252c3P8S3UisyKN2Vhd+qggi0LiAzkKMaS1R3oRXkZnmaXwg4T0FILujyo5r+3xbQFhVjKJYbO0zjJcPHkCimNz2eOJBo6+0tNnxr5ZNO8JisS0ezS1cDwV1gmQNegBgBzv4BxCboRuOJ7O8z30Ket3ZdG5iQw= 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 A0A2D40A96; Fri, 8 Mar 2024 09:08:59 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 9F50A40A93; Fri, 8 Mar 2024 09:08:59 -0800 (PST) Date: Fri, 8 Mar 2024 09:08:59 -0800 (PST) From: "Christoph Lameter (Ampere)" To: Marek Szyprowski cc: Catalin Marinas , 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: Message-ID: References: <37099a57-b655-3b3a-56d0-5f7fbd49d7db@gentwo.org> 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; format=flowed On Fri, 8 Mar 2024, Marek Szyprowski wrote: >>> >>> It looks that cpufreq-dt and/or opp drivers needs some adjustments >>> related with this change. >> That's strange. Is this with defconfig? I wonder whether NR_CPUS being >> larger caused the issue with this specific code. Otherwise >> CPUMASK_OFFSTACK may not work that well on arm64. cpumask handling must use the accessor functions provided in include/linux/cpumask.h for declaring and accessing cpumasks. It is likely related to the driver opencoding one of the accessors. I.e. you must use alloc_cpumask_var() and not allocate yourself on the stack.