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 DF0AAC5475B for ; Fri, 8 Mar 2024 17:09:18 +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-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:Message-ID:In-Reply-To: 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=EJw0Xfzh7EyjrkSAZN6D+mseXsVKVT9rFl1+NIiLwtg=; b=F4vbK7KntytKBecI9P2+43/7C0 19wAEnWZthm7YI5ZAy0Tu4PYpJjfTpTOt3p9pPFZVWX7sfVsUq/cedPqfE06pPTXenxKOy6CBvHZ8 pL8scg7JSVzWTcLSrx8L8C+XKuuQ/Y1WAJq8/HHVxE81aTuSjK/LmJC7ozax+IKS8EW3U7lWUE8Vb THnw+/DgXblk6HnU6PPTA7yxnyNUe4DHXfIGEG6pkWcuEmFnCDtGr2Lg2MFpQKXOaTqI7FfYkQ4T0 r8zdaKh69fDIzwUez4p3oV8QiS1Q5mrJ5oPqCKa/hX5QeAYiBr3wi9zoVlK0RVcxOBbhv2HmkRYHh 9rO5Kpxg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ridiS-0000000AOkG-44Qq; Fri, 08 Mar 2024 17:09:04 +0000 Received: from gentwo.org ([62.72.0.81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ridiP-0000000AOiw-31SA for linux-arm-kernel@lists.infradead.org; Fri, 08 Mar 2024 17:09:03 +0000 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240308_090902_010594_EF21E446 X-CRM114-Status: UNSURE ( 7.32 ) X-CRM114-Notice: Please train this message. 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel