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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04C0BCD68E2 for ; Tue, 10 Oct 2023 00:21:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379156AbjJJAVK (ORCPT ); Mon, 9 Oct 2023 20:21:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379131AbjJJAVH (ORCPT ); Mon, 9 Oct 2023 20:21:07 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 128D8A9 for ; Mon, 9 Oct 2023 17:21:05 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D9ABC433C7; Tue, 10 Oct 2023 00:20:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1696897264; bh=M2oTNjw+9oq9sArieyw8dMMJbRTMAqtdZlPZHyT7WZI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=uQroNQB6k9niizpuC63Fv9XYLdlrpW9Bngk5KLAi5UgTJ0dWDAlqM1+rDzHRmGwqd lLJ3q8SiOEEdslQ7bN/Q4s/CPzA7AyOORjiP90Km+SwxICg3mRocb8bvgCiY+4DJfw Mc5plxr0GwlubQrxCTRJ0fTbVOWmk3liNJnBW7i0= Date: Mon, 9 Oct 2023 17:20:29 -0700 From: Andrew Morton To: Michael Ellerman Cc: Ryan Roberts , "Aneesh Kumar K.V" , Matthew Wilcox , Yin Fengwei , David Hildenbrand , Yu Zhao , Catalin Marinas , Anshuman Khandual , Yang Shi , "Huang, Ying" , Zi Yan , Luis Chamberlain , Itaru Kitayama , "Kirill A. Shutemov" , John Hubbard , David Rientjes , Vlastimil Babka , Hugh Dickins , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v6 4/9] mm: thp: Introduce anon_orders and anon_always_mask sysfs files Message-Id: <20231009172029.e558c08dd90d9b94fec3a036@linux-foundation.org> In-Reply-To: <87fs2mrqld.fsf@mail.lhotse> References: <20230929114421.3761121-1-ryan.roberts@arm.com> <20230929114421.3761121-5-ryan.roberts@arm.com> <20230929155530.a51e68e03e47a06b6b84c689@linux-foundation.org> <87fs2mrqld.fsf@mail.lhotse> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 08 Oct 2023 09:54:22 +1100 Michael Ellerman wrote: > > I don't know why powerpc's PTE_INDEX_SIZE is variable. > > To allow a single vmlinux to boot using either the Hashed Page Table > MMU, or Radix Tree MMU, which have different page table geometry. > > That's a pretty crucial feature for distros, so that they can build a > single kernel to boot on Power8/9/10. Dumb question: why can't distros ship two kernels and have the boot loader (or something else) pick the appropriate one?