Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5496520rwl; Tue, 21 Mar 2023 20:35:58 -0700 (PDT) X-Google-Smtp-Source: AK7set9F7A1xFxLBW2VIOo83dW6KFto+oHax1ZL/ygWQ4iTbSz4eQGQdgDUkcMag0rEBi93pHex/ X-Received: by 2002:a17:902:d2cf:b0:1a1:918e:4129 with SMTP id n15-20020a170902d2cf00b001a1918e4129mr1749981plc.30.1679456158008; Tue, 21 Mar 2023 20:35:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679456157; cv=none; d=google.com; s=arc-20160816; b=qMrcQJ7wm6GUoYBewYaaG0X3rX7g548z7+IkMQXgbWbAF13kxR3N8wWLh3DYLLKT1K UhBHP2y0phc1wk47O8PR6gpr7ocPYz/B3/o2NYZa2S0Zh128kZp/Sjz4uH5pUlNKYFt6 6PYtmOe1Rnx6CT15lfTgPCPxwZAIlsy0J3NzNKSP+gN3DyuVyw7jhxx0qSHb7RH43md+ zTglDeJYBwSnCf6rGkJ55Hksqf3OUfR4WE0QdhhYojN5f1lqvV4TC5cuGdwly17TtcR5 8bLW+ZUe6apaw2ss708uE+xkpX6i/XxZ/RoZrUm79LbFddQjt4078+UySNIIfPeUHZJX H5Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=pmal6vExytNJugrqg+hjjl7XZZ2H1M1tEdmhwzVXT2o=; b=QeD9MMh3iAas3DN5RyuQuu7KuHrGkdTK5xnynwwRCTiCPJ6fnRLIIePmRWccSCdS33 gj5JTkFWhAOkVsh7bn/iGXbmTYTsU7Zc7uO3mVilaThKNrNUMxo5Trl7zbiNJXcay+mo CgcAGC+zQ8qa4lzdnObMQPyfq3pAePx0uwFw3UYX6AFomGOVXPqFFqL6jXwwNnh8m2SL cxmKo4Ow1oBZvahn7E1KyhiUHlHFohNJsQKT9VQTI1M59y+Xes3b3j5ODt145KUsAP82 Dcvu/I0YBvLWZw3Fv60FScTRCE6zzDjKBIYGavvt5DhwcAz3YHmb5S1eeHsnKC69WYk7 eFGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=F+i3XHr2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i71-20020a63874a000000b0050c10cfd6f8si14890859pge.198.2023.03.21.20.35.46; Tue, 21 Mar 2023 20:35:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=F+i3XHr2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229806AbjCVD1K (ORCPT + 99 others); Tue, 21 Mar 2023 23:27:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229670AbjCVD1G (ORCPT ); Tue, 21 Mar 2023 23:27:06 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAC343B3F1; Tue, 21 Mar 2023 20:27:05 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4PhDRV5fXtz4x80; Wed, 22 Mar 2023 14:27:02 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1679455624; bh=pmal6vExytNJugrqg+hjjl7XZZ2H1M1tEdmhwzVXT2o=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=F+i3XHr2FDlzGLuAHkXzitYG5YCJ06nTmNdeyhX5zR2a/UlYqNmlVTEirSZ9X+XFy +aoJ9TK0mmBIeKlzjDGRkbz3BAXyATVQnfHwWSqqXT9BFcJsdDFgOdgbYts6T8wqBF yqqncxLRrpxYjlrXOINfhqtq2sI6DR2IbxseBmErj419zlr0q/OsA9y730BTxgZK91 OpfeGna5Of4k15L3GWmZXzw30/gI/k0rRRO0bQrah4AcxiDvsb4iP3J6ls3yY26Jna kfLBY7dJUZ313gyEELkR8wIN8+aJLleyIm3L2ho1fWg1bbQUzQhCQY4Qog+q8nYmMq /mZiNHFlX7INQ== From: Michael Ellerman To: "Kirill A. Shutemov" , Andrew Morton , Mel Gorman , Vlastimil Babka , David Hildenbrand Cc: linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" Subject: Re: [PATCH 10/10] mm, treewide: Redefine MAX_ORDER sanely In-Reply-To: <20230315113133.11326-11-kirill.shutemov@linux.intel.com> References: <20230315113133.11326-1-kirill.shutemov@linux.intel.com> <20230315113133.11326-11-kirill.shutemov@linux.intel.com> Date: Wed, 22 Mar 2023 14:26:59 +1100 Message-ID: <871qlhv530.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "Kirill A. Shutemov" writes: > MAX_ORDER currently defined as number of orders page allocator supports: > user can ask buddy allocator for page order between 0 and MAX_ORDER-1. > > This definition is counter-intuitive and lead to number of bugs all over > the kernel. > > Change the definition of MAX_ORDER to be inclusive: the range of orders > user can ask from buddy allocator is 0..MAX_ORDER now. > > Signed-off-by: Kirill A. Shutemov > --- ... > arch/powerpc/Kconfig | 27 ++++++------- > arch/powerpc/configs/85xx/ge_imp3a_defconfig | 2 +- > arch/powerpc/configs/fsl-emb-nonhw.config | 2 +- > arch/powerpc/mm/book3s64/iommu_api.c | 2 +- > arch/powerpc/mm/hugetlbpage.c | 2 +- > arch/powerpc/platforms/powernv/pci-ioda.c | 2 +- Reviewed-by: Michael Ellerman (powerpc) cheers