All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Rapoport <rppt@kernel.org>
To: Ard Biesheuvel <ardb@kernel.org>
Cc: Justin Forbes <jforbes@fedoraproject.org>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Will Deacon <will@kernel.org>,
	linux-arm-kernel@lists.infradead.org,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH] arm64: Make the ARCH_FORCE_MAX_ORDER config input prompt unconditional
Date: Fri, 5 May 2023 16:23:07 -0700	[thread overview]
Message-ID: <ZFWP22dVBuBKUdUJ@kernel.org> (raw)
In-Reply-To: <CAMj1kXGvepW-=mGD1f5w=ykfELFnjvmzwVLSPYUuqeAL=OG=Cg@mail.gmail.com>

On Sat, May 06, 2023 at 12:51:52AM +0200, Ard Biesheuvel wrote:
> On Sat, 6 May 2023 at 00:47, Mike Rapoport <rppt@kernel.org> wrote:
> >
> > On Sat, May 06, 2023 at 12:08:33AM +0200, Ard Biesheuvel wrote:
> > > On Sat, 6 May 2023 at 00:01, Mike Rapoport <rppt@kernel.org> wrote:
> > > >
> > > > On Wed, May 03, 2023 at 05:41:19PM +0200, Ard Biesheuvel wrote:
> > > > > On Wed, 3 May 2023 at 17:36, Justin Forbes <jforbes@fedoraproject.org> wrote:
> > > > > >
> > > > > > On Wed, May 3, 2023 at 7:33 AM Catalin Marinas <catalin.marinas@arm.com> wrote:
> > > > > > >
> > > > > > > Commit 34affcd7577a ("arm64: drop ranges in definition of
> > > > > > > ARCH_FORCE_MAX_ORDER") dropped the ranges from the config entry and
> > > > > > > introduced an EXPERT condition on the input prompt instead. This change
> > > > > > > may affect some distro kernels that change ARCH_FORCE_MAX_ORDER but do
> > > > > > > not want to enable EXPERT.
> > > > > > >
> > > > > > > Drop EXPERT from the input prompt together with the (ARM64_4K_PAGES ||
> > > > > > > ARM64_16K_PAGES) condition as the latter no longer makes sense after the
> > > > > > > ranges were removed. The latter makes all the page size configurations
> > > > > > > consistent w.r.t. ARCH_FORCE_MAX_ORDER.
> > > > > > >
> > > > > > > Fixes: 34affcd7577a ("arm64: drop ranges in definition of ARCH_FORCE_MAX_ORDER")
> > > > > > > Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
> > > > > > > Reported-by: Justin M. Forbes <jforbes@fedoraproject.org>
> > > > > > > Cc: Will Deacon <will@kernel.org>
> > > > > > > Cc: Mike Rapoport <rppt@kernel.org>
> > > > > > > Cc: Andrew Morton <akpm@linux-foundation.org>
> > > > > >
> > > > > > This works for me, thanks.
> > > > > >
> > > > > > Acked-by: Justin M. Forbes <jforbes@fedoraproject.org>
> > > > > >
> > > > >
> > > > > I'd still be interested in gaining a better understanding as to why
> > > > > Fedora/RHEL think they need to change this value on arm64. In
> > > > > particular, whether it is to support ThunderX, or whether there are
> > > > > any good reasons for doing so that we are unaware of.
> > > >
> > > > Yeah, there still was no explanation why Fedora/RHEL had to increase
> > > > MAX_ORDER in their configs.
> > > >
> > > > I'm surely missing something, but I also don't understand why ThunderX
> > > > would need physically contiguous allocations larger than 4M.
> > >
> > > https://lore.kernel.org/all/1430686172-18222-5-git-send-email-rric@kernel.org/
> >
> > But does not the second patch in that series (now commit 30f2136346ca
> > ("irqchip/gicv3-its: Add range check for number of allocated pages"))
> > ensures that allocation is not larger than 256 pages?
> >
> > Or this is another allocation?
> >
> 
> I have no idea, but that it not really the point.
> 
> The point is that ThunderX is obsolete - it was never a very
> compelling value proposition in the first place, but today it is just
> a waste of electricity. So if it was the only reason for changing the
> max order, perhaps it's time to change it back?

Well, that's up to Fedora/RHEL to drop their changes to the configuration.
Since Kirill's changes to MAX_ORDER semantics they will have to update
their config anyway for 6.4 and onwards.

-- 
Sincerely yours,
Mike.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2023-05-05 23:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-03 12:33 [PATCH] arm64: Make the ARCH_FORCE_MAX_ORDER config input prompt unconditional Catalin Marinas
2023-05-03 14:58 ` Mike Rapoport
2023-05-03 15:35 ` Justin Forbes
2023-05-03 15:41   ` Ard Biesheuvel
2023-05-05 22:00     ` Mike Rapoport
2023-05-05 22:08       ` Ard Biesheuvel
2023-05-05 22:47         ` Mike Rapoport
2023-05-05 22:51           ` Ard Biesheuvel
2023-05-05 23:23             ` Mike Rapoport [this message]
2023-05-16 15:14 ` Will Deacon
2023-05-18 15:56 ` Marc Zyngier
2023-05-18 16:04   ` Catalin Marinas
2023-05-19 10:35     ` Will Deacon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZFWP22dVBuBKUdUJ@kernel.org \
    --to=rppt@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=ardb@kernel.org \
    --cc=catalin.marinas@arm.com \
    --cc=jforbes@fedoraproject.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.