From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Marek Szyprowski <m.szyprowski@samsung.com>,
Leon Romanovsky <leon@kernel.org>, Helge Deller <deller@gmx.de>,
Jason Gunthorpe <jgg@ziepe.ca>
Cc: linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org,
Guenter Roeck <linux@roeck-us.net>
Subject: Re: [PATCH] parisc: Set valid bit in high byte of 64‑bit physical address
Date: Fri, 19 Dec 2025 07:38:06 -0500 [thread overview]
Message-ID: <1528bd45c80a962dd172c9a9ed97c6ea3e8f295a.camel@HansenPartnership.com> (raw)
In-Reply-To: <eb983a65-ca78-4290-bad2-3e8955de5d69@samsung.com>
On Fri, 2025-12-19 at 09:35 +0100, Marek Szyprowski wrote:
> On 18.12.2025 22:28, Leon Romanovsky wrote:
> > On Thu, Dec 18, 2025, at 20:27, Helge Deller wrote:
> > > On 12/18/25 13:08, Leon Romanovsky wrote:
> > > > On 32‑bit systems, phys_addr_t is defined as u32. However,
> > > > parisc expects physical addresses to be 64‑bit values so it can
> > > > store a validity bit in the upper byte.
> > > > ...
> > > > Also remove the now‑obsolete macro.
> > > Your patch is OK, but could you please keep the lpa() macro?
> > > It's unrelated to your patch, and sometimes we need the lpa()
> > > e.g. when adding debug code, so I'd prefer to keep it.
> > The parch was already accepted and if Marek agrees, he can easily
> > revert the deleted hunk and rebase my parch.
> >
> > However from upstream perspective, we don't keep code which is not
> > used and if this macro would be function, we would get compilation
> > warning for that.
> >
> > Isn't lpa(x/) equal to virt_to_phys(x)?
>
> I can drop the lpa() related change, but let us know what is the
> advantage of it compared to virt_to_phys()?
Um, well same as on every architecture: virt_to_phys only gives correct
results on the offset map since it's defined as an offset map
subtraction; lpa() gives the the CPU view of the mapping through the
page table entries, so is correct even in the vmap (and iomap, etc)
range.
Regards,
James
next prev parent reply other threads:[~2025-12-19 12:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-18 12:08 Leon Romanovsky
2025-12-18 16:22 ` Guenter Roeck
2025-12-18 17:14 ` Marek Szyprowski
2025-12-18 18:27 ` Helge Deller
2025-12-18 21:28 ` Leon Romanovsky
2025-12-19 8:35 ` Marek Szyprowski
2025-12-19 12:38 ` James Bottomley [this message]
2025-12-19 12:48 ` Marek Szyprowski
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=1528bd45c80a962dd172c9a9ed97c6ea3e8f295a.camel@HansenPartnership.com \
--to=james.bottomley@hansenpartnership.com \
--cc=deller@gmx.de \
--cc=jgg@ziepe.ca \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-parisc@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=m.szyprowski@samsung.com \
/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
all inboxes | Powered by JetHome®