Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp227150rdg; Thu, 12 Oct 2023 04:07:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IELdocxT+bZcrricE+aeTX9fccrHc9Kp55FEgG0A+hwGnflVbWI1BB2dDkbohaZnmgTOdjM X-Received: by 2002:a17:903:32c3:b0:1c6:1d3d:b412 with SMTP id i3-20020a17090332c300b001c61d3db412mr24023609plr.30.1697108878733; Thu, 12 Oct 2023 04:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697108878; cv=none; d=google.com; s=arc-20160816; b=mY5wP4cZM56MGExZEZIj0jaSujiG6VajhoeFmFLF9tNKDUfOwt0j7eVTXOJctX+B5b Kag7GmdswMGrQwYHbRI5n/5iyEfvT7vrHy9pdIJDPls+7zrgSMRCY5SKupmEfd/b1M1j 4g8VkuKwzgvZSzwuAJhObHjODcgDohzhzvKy9GiGQVsvU5vHwHAYlcBCwnWA+YIN4oxW OUU/r1r2o+BypGEbDQjEmfADiI8dakyk+OlTEP8u3iqIIOTtqun2eQb++79NqhwMPf7L b3/Z0CUkCdnpTrUz9qLnwsLBlf2cXNF+N4EG4EWFnVmVwO4KrPyOt1ipiDcwi0AXBpVj X0zg== 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=6OsxE8kV2xPTFulSGmBi28q09UFtUYgFyf1Emr7m/7A=; fh=b+65ibZiOB06XKEEUnQ7VYtxS7b6x+dVf6hhsOe0eXA=; b=fm8z6l1bpNIWZ5nmlc5+zgjRdG2vpPgIygNXAy+W6xaIqbBihr1bSh+rEj1eXQP9MF i3P5rEAJLKlV5fm3kc0EXpobArfawyIk4g3sz4QPQ6GW4yNACibfal9lk66BXcxLLwU8 tKdGPgVaCg2fWgZNG9ZnvYb6LoEr3i7L5o2n2j0/gBQE2kPM/nqBjxOHkMebMbAf6bLf Ixwt/bVfmqMruA+mtEwSUKuKLWu4EdavCeKP8CpwydnJFjqWrgTR+EGzQOysyNDGRMgo tYo/S+BdCdj7sbcSC7SCn2InUZdeyV3Se7ZDfcrVTbtZ6jZks/zqWqFazHiR86MjIP4N 1reA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=VDx3tQ87; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id h16-20020a170902ac9000b001c60de17b5esi1873401plr.118.2023.10.12.04.07.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 04:07:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=VDx3tQ87; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 9DA8A81A73E0; Thu, 12 Oct 2023 04:07:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343760AbjJLLHk (ORCPT + 99 others); Thu, 12 Oct 2023 07:07:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343649AbjJLLHj (ORCPT ); Thu, 12 Oct 2023 07:07:39 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACC4890 for ; Thu, 12 Oct 2023 04:07:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1697108852; bh=6OsxE8kV2xPTFulSGmBi28q09UFtUYgFyf1Emr7m/7A=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=VDx3tQ87D/n3Su76DDY5c5gznJtSvPRang3Mx9bCeIPCjwjUPr9G0mCFm0PxhngwL ZCuZ5Od7n3VtI386qVODEFFFPcwMufDJEpQaKTGSouVZhqzc0ZLQRHKkVnfw5ltSqA comqa8d0qr4bMVfi4uo1E42BuYfqs1+wmBJ4XF0NXNiK46ZMmcgO7AFEzh3MWjC+fS W013YuBkEp1d2MuCeoNIdH1GJ+42bNX13Ni/DI1DZinNx0moSCelY02xmTwLTCnh9C rrDEUR/yJEgCktS2SOt3WRXHgxqdqq1fhNOz3UHeeWsETZLNZ3kqOkyGP3wpYr6AcN FXBlsp5E6oekQ== 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 4S5n0g1rM6z4xMC; Thu, 12 Oct 2023 22:07:31 +1100 (AEDT) From: Michael Ellerman To: Andrew Morton 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 In-Reply-To: <20231009172029.e558c08dd90d9b94fec3a036@linux-foundation.org> References: <20230929114421.3761121-1-ryan.roberts@arm.com> <20230929114421.3761121-5-ryan.roberts@arm.com> <20230929155530.a51e68e03e47a06b6b84c689@linux-foundation.org> <87fs2mrqld.fsf@mail.lhotse> <20231009172029.e558c08dd90d9b94fec3a036@linux-foundation.org> Date: Thu, 12 Oct 2023 22:07:26 +1100 Message-ID: <87o7h4qett.fsf@mail.lhotse> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 12 Oct 2023 04:07:55 -0700 (PDT) Andrew Morton writes: > 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? I'm not a grub expert, but AFAIK it doesn't support loading a different kernel based on CPU/firwmare features. I'm quite sure it can't do that on powerpc at least. We also have another bootloader (petitboot) that is still supported by some distros, and can't do that. The other problem is like David says, distros are generally reluctant to add new kernel configurations unless they absolutely have to. It adds more work for them, more things to track, and can confuse users leading to spurious bug reports. cheers