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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 5B50BCCF9E3 for ; Fri, 7 Nov 2025 09:03:03 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4d2tPd54RPz2yrF; Fri, 7 Nov 2025 20:03:01 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=172.234.252.31 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1762506181; cv=none; b=hq6UeHVcgKFWTLhEV1sfvCdTdvbbaAxrxZdwQHgGYvg7+GveNiG2cUmEyUoSCzQaPNIC7kXQ04GsS2GHLoPNJ0ufQaKUgbUsZPhq+/msGZZeK8NIq8TbMU8FOXRgUMEgSIyXIUnv53dIzFkDWgephiMXQLaHm6sy1TJmYU8Ed1YbTzfGSPvSjcj2pj567FCV/IXZxiZn/FiflbBhzM8iCrQkw0rf4LBlz7EYpiAOLyg8d0mN6puHLUkT0VVzxhTSUbsUJvZ2LzqU8qblP9rMCnTb9MTq9uhxDTN6EPJCLcehXztMvSRXG0ncUeyg/JrRGNyaQ3DqzN5poNZwRRcRBw== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1762506181; c=relaxed/relaxed; bh=k3mM0v00SRPnYPwwyEBFuZ9lvntjK88oQ7vPAMELXnk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=oW4pBWeCqjcYDrM/yV6vriTbSdJtBpEXpYQHknOpy5O71VXRQReYhJ3UcZKOxm8jaI9kUwc40rK3VfpTYHtO49xyunUKHme1iEBoB+PeoD1tdySZx68QquHOv+D6cGxQnhJqPQvxTkUNNP7sgsx8e/OkkykEsi7BN8ddpLXs9uVnlPnFmNMmB3W+a5SfUhSLCbpmlEr3tVPjTfIKer4bpJyqtol7eCRbExStpT0P8bHxpDKy459TYh0LOUagzLwiwIXy2fZu53LOMDoiLe9uyX1Xoj87uOP+UchwqRcSV/VJbV/ZRfqC72MvxZPPcVb9lw6ttUsaIjQA88ue7GE9Bw== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=RoPPQ6GA; dkim-atps=neutral; spf=pass (client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=david@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=RoPPQ6GA; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=david@kernel.org; receiver=lists.ozlabs.org) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4d2tPc6XL0z2yjm for ; Fri, 7 Nov 2025 20:03:00 +1100 (AEDT) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 0F7D943C5B; Fri, 7 Nov 2025 09:02:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25AB7C116B1; Fri, 7 Nov 2025 09:02:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1762506178; bh=wM34FC/EiEvJ5KnNWvWcoNezTYk0Bs0Hbc/YeTldTWw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=RoPPQ6GAH+2zWlnVzObdKDVwGBs7uUqRCOLyl3gxNI/kocSX6+xo0DUG1Br1VNshe n//2VOQPykAKg9gRPaDUUYTtiKZrwdtUf5W6wUgWQNSn3WdA22NG9Z+P/9CgJrpzRL LxM/hfmhvDYeSYftVUffT37dsy5+gLppS6rLBoxRuw6wifvUYrRrxB/f5dvQy4GxpO W1YGj75qzbeYxjb1g8TcZiwasgbNJwRogkCKy01YyKduawftq6bwLfHNoaLw1dwfDg BWlomYTdU/jTWNuq4C7N8WTbDttTa6L1Pp+i20teuSOCN+tkKYF+jSL/JTqw1xLc02 rwOGwXNwVsE9Q== Message-ID: Date: Fri, 7 Nov 2025 10:02:55 +0100 X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: powerpc/e500: WARNING: at mm/hugetlb.c:4755 hugetlb_add_hstate To: Sourabh Jain , Christophe Leroy , Madhavan Srinivasan , "Ritesh Harjani (IBM)" , linuxppc-dev Cc: Donet Tom , Andrew Morton References: <94377f5c-d4f0-4c0f-b0f6-5bf1cd7305b1@linux.ibm.com> <82ef1da8-44c4-4a58-bd00-9839548cb72d@csgroup.eu> From: "David Hildenbrand (Red Hat)" Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 07.11.25 09:00, Sourabh Jain wrote: > > > On 06/11/25 20:32, David Hildenbrand (Red Hat) wrote: >>>> Yes, we discussed that in [1]. >>>> >>>> We'll have to set ARCH_HAS_GIGANTIC_PAGE on ppc and increase >>>> MAX_FOLIO_ORDER, because apparently, there might be ppc configs that >>>> have even larger hugetlb sizes than PUDs. >>>> >>>> @Cristophe, I was under the impression that you would send a fix. Do >>>> you >>>> want me to prepare something and send it out? >>> >>> Indeed I would have liked to better understand the implications of all >>> this, but I didn't have the time. >> >> Indeed, too me longer than it should to understand and make up my mind >> as well. >> >>> >>> By the way, you would describe the fix better than me so yes if you can >>> prepare and send a fix please do. >> >> I just crafted the following. I yet have to test it more, some early >> feedback+testing would be appreciated! >> >> From 274928854644c49c92515f8675c090dba15a0db6 Mon Sep 17 00:00:00 2001 >> From: "David Hildenbrand (Red Hat)" >> Date: Thu, 6 Nov 2025 11:31:45 +0100 >> Subject: [PATCH] mm: fix MAX_FOLIO_ORDER on some ppc64 configs with >> hugetlb > > b4 did not detect this patch, and manually copying the patch text from this > reply also did not apply cleanly on upstream master and linuxppc > master/next. I have it on a branch here: https://github.com/davidhildenbrand/linux/commit/274928854644c49c92515f8675c090dba15a0db6 https://github.com/davidhildenbrand/linux.git max_folio_order -- Cheers David