From: Jessica Clarke <jrtc27@jrtc27.com>
To: Matthew Wilcox <willy@infradead.org>
Cc: Mike Rapoport <rppt@kernel.org>,
John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>,
Tony Luck <tony.luck@intel.com>,
linux-ia64@vger.kernel.org, Anatoly Pugachev <matorola@gmail.com>,
Sergei Trofimovich <slyfox@gentoo.org>,
Linux MM <linux-mm@kvack.org>,
Frank Scheiner <frank.scheiner@web.de>,
Mike Rapoport <rppt@linux.ibm.com>
Subject: Re: [PATCH v5] arch/ia64: Restore arch-specific pgd_offset_k implementation
Date: Thu, 13 Aug 2020 22:44:58 +0100 [thread overview]
Message-ID: <F4600526-D387-4147-A1BA-435FCA2C6618@jrtc27.com> (raw)
In-Reply-To: <20200813213631.GQ17456@casper.infradead.org>
On 13 Aug 2020, at 22:36, Matthew Wilcox <willy@infradead.org> wrote:
>
> On Thu, Aug 13, 2020 at 11:55:21PM +0300, Mike Rapoport wrote:
>> +/*
>> + * In the kernel's mapped region we know everything is in region number 5, so
>> + * as an optimisation its PGD already points to the area for that region.
>
> Is it actually an optimisation? Are there any benchmarks where this
> makes any difference whatsoever? Or should the comment be closer to
>
> /* ia64 is gratuitously different. Cope with it. */
>
> I might suggest that pgd be changed to be the same as every other pgd
> in the system, and every other architecture.
IA-64 is just weird. There's an optional hardware page table walker,
and two different options for how to use it within that, short-format
and long-format. My understanding is that Linux uses the short-format,
and that means that the VHPTs (Virtual Hashed Page Table) are
per-region. My assumption therefore is that the kernel's PGD is a
completely separate allocation from the userspace ones, and it's not
just a case of "moving the pointer back to the start" but that "that is
all there is", so unifying the two would be a significant undertaking
that avoids one special case at the cost of invasive refactoring and a
performance hit by duplication and/or unused space. My knowledge of
IA-64 translation is pretty limited, that's about all I know (and this
likely has mistakes in it), but I know enough to avoid finding out too
much more. Never make the mistake of assuming IA-64 can be made to look
like any other architecture :)
Jess
next prev parent reply other threads:[~2020-08-13 21:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-13 20:55 Mike Rapoport
2020-08-13 21:36 ` Matthew Wilcox
2020-08-13 21:44 ` Jessica Clarke [this message]
2020-08-13 22:21 ` Mike Rapoport
2020-08-17 7:33 ` Mike Rapoport
2020-08-17 16:05 ` Luck, Tony
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=F4600526-D387-4147-A1BA-435FCA2C6618@jrtc27.com \
--to=jrtc27@jrtc27.com \
--cc=frank.scheiner@web.de \
--cc=glaubitz@physik.fu-berlin.de \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=matorola@gmail.com \
--cc=rppt@kernel.org \
--cc=rppt@linux.ibm.com \
--cc=slyfox@gentoo.org \
--cc=tony.luck@intel.com \
--cc=willy@infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox