Thread (4 messages) flat view 4 messages, 3 authors, 2020-01-29

Re: [PATCH v3 1/2] powerpc32/booke: consistently return phys_addr_t in __pa()

From: Michael Ellerman <hidden>
Date: 2020-01-29 05:17:40
Also in: lkml

On Mon, 2020-01-06 at 04:29:53 UTC, yingjie_bai@126.com wrote:
From: Bai Yingjie <redacted>

When CONFIG_RELOCATABLE=y is set, VIRT_PHYS_OFFSET is a 64bit variable,
thus __pa() returns as 64bit value.
But when CONFIG_RELOCATABLE=n, __pa() returns 32bit value.

When CONFIG_PHYS_64BIT is set, __pa() should consistently return as
64bit value irrelevant to CONFIG_RELOCATABLE.
So we'd make __pa() consistently return phys_addr_t, which is 64bit
when CONFIG_PHYS_64BIT is set.

Signed-off-by: Bai Yingjie <redacted>
Series applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/6ad4afc97bc6c5cca9786030492ddfab871ce79e

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help