* [PATCH] arm64: Use __pa_symbol for empty_zero_page
@ 2017-01-24 11:43 ` Geert Uytterhoeven
0 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2017-01-24 11:43 UTC (permalink / raw)
To: Laura Abbott, Catalin Marinas, Will Deacon, Mark Rutland
Cc: linux-arm-kernel, linux-renesas-soc, Geert Uytterhoeven
If CONFIG_DEBUG_VIRTUAL=y and CONFIG_ARM64_SW_TTBR0_PAN=y:
virt_to_phys used for non-linear address: ffffff8008cc0000 (empty_zero_page+0x0/0x1000)
WARNING: CPU: 0 PID: 0 at arch/arm64/mm/physaddr.c:14 __virt_to_phys+0x28/0x60
...
[<ffffff800809abb4>] __virt_to_phys+0x28/0x60
[<ffffff8008a02600>] setup_arch+0x46c/0x4d4
Fixes: 2077be6783b5936c ("arm64: Use __pa_symbol for kernel symbols")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
arch/arm64/kernel/setup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
index 669fc9ff728b227f..b5222094ab52db6f 100644
--- a/arch/arm64/kernel/setup.c
+++ b/arch/arm64/kernel/setup.c
@@ -298,7 +298,7 @@ void __init setup_arch(char **cmdline_p)
* faults in case uaccess_enable() is inadvertently called by the init
* thread.
*/
- init_task.thread_info.ttbr0 = virt_to_phys(empty_zero_page);
+ init_task.thread_info.ttbr0 = __pa_symbol(empty_zero_page);
#endif
#ifdef CONFIG_VT
--
1.9.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH] arm64: Use __pa_symbol for empty_zero_page
@ 2017-01-24 11:43 ` Geert Uytterhoeven
0 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2017-01-24 11:43 UTC (permalink / raw)
To: linux-arm-kernel
If CONFIG_DEBUG_VIRTUAL=y and CONFIG_ARM64_SW_TTBR0_PAN=y:
virt_to_phys used for non-linear address: ffffff8008cc0000 (empty_zero_page+0x0/0x1000)
WARNING: CPU: 0 PID: 0 at arch/arm64/mm/physaddr.c:14 __virt_to_phys+0x28/0x60
...
[<ffffff800809abb4>] __virt_to_phys+0x28/0x60
[<ffffff8008a02600>] setup_arch+0x46c/0x4d4
Fixes: 2077be6783b5936c ("arm64: Use __pa_symbol for kernel symbols")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
arch/arm64/kernel/setup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
index 669fc9ff728b227f..b5222094ab52db6f 100644
--- a/arch/arm64/kernel/setup.c
+++ b/arch/arm64/kernel/setup.c
@@ -298,7 +298,7 @@ void __init setup_arch(char **cmdline_p)
* faults in case uaccess_enable() is inadvertently called by the init
* thread.
*/
- init_task.thread_info.ttbr0 = virt_to_phys(empty_zero_page);
+ init_task.thread_info.ttbr0 = __pa_symbol(empty_zero_page);
#endif
#ifdef CONFIG_VT
--
1.9.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] arm64: Use __pa_symbol for empty_zero_page
2017-01-24 11:43 ` Geert Uytterhoeven
@ 2017-01-24 12:37 ` Mark Rutland
-1 siblings, 0 replies; 6+ messages in thread
From: Mark Rutland @ 2017-01-24 12:37 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Laura Abbott, Catalin Marinas, Will Deacon, linux-arm-kernel,
linux-renesas-soc
On Tue, Jan 24, 2017 at 12:43:40PM +0100, Geert Uytterhoeven wrote:
> If CONFIG_DEBUG_VIRTUAL=y and CONFIG_ARM64_SW_TTBR0_PAN=y:
>
> virt_to_phys used for non-linear address: ffffff8008cc0000 (empty_zero_page+0x0/0x1000)
> WARNING: CPU: 0 PID: 0 at arch/arm64/mm/physaddr.c:14 __virt_to_phys+0x28/0x60
> ...
> [<ffffff800809abb4>] __virt_to_phys+0x28/0x60
> [<ffffff8008a02600>] setup_arch+0x46c/0x4d4
>
> Fixes: 2077be6783b5936c ("arm64: Use __pa_symbol for kernel symbols")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Mark.
> ---
> arch/arm64/kernel/setup.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
> index 669fc9ff728b227f..b5222094ab52db6f 100644
> --- a/arch/arm64/kernel/setup.c
> +++ b/arch/arm64/kernel/setup.c
> @@ -298,7 +298,7 @@ void __init setup_arch(char **cmdline_p)
> * faults in case uaccess_enable() is inadvertently called by the init
> * thread.
> */
> - init_task.thread_info.ttbr0 = virt_to_phys(empty_zero_page);
> + init_task.thread_info.ttbr0 = __pa_symbol(empty_zero_page);
> #endif
>
> #ifdef CONFIG_VT
> --
> 1.9.1
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] arm64: Use __pa_symbol for empty_zero_page
@ 2017-01-24 12:37 ` Mark Rutland
0 siblings, 0 replies; 6+ messages in thread
From: Mark Rutland @ 2017-01-24 12:37 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Jan 24, 2017 at 12:43:40PM +0100, Geert Uytterhoeven wrote:
> If CONFIG_DEBUG_VIRTUAL=y and CONFIG_ARM64_SW_TTBR0_PAN=y:
>
> virt_to_phys used for non-linear address: ffffff8008cc0000 (empty_zero_page+0x0/0x1000)
> WARNING: CPU: 0 PID: 0 at arch/arm64/mm/physaddr.c:14 __virt_to_phys+0x28/0x60
> ...
> [<ffffff800809abb4>] __virt_to_phys+0x28/0x60
> [<ffffff8008a02600>] setup_arch+0x46c/0x4d4
>
> Fixes: 2077be6783b5936c ("arm64: Use __pa_symbol for kernel symbols")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Mark.
> ---
> arch/arm64/kernel/setup.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
> index 669fc9ff728b227f..b5222094ab52db6f 100644
> --- a/arch/arm64/kernel/setup.c
> +++ b/arch/arm64/kernel/setup.c
> @@ -298,7 +298,7 @@ void __init setup_arch(char **cmdline_p)
> * faults in case uaccess_enable() is inadvertently called by the init
> * thread.
> */
> - init_task.thread_info.ttbr0 = virt_to_phys(empty_zero_page);
> + init_task.thread_info.ttbr0 = __pa_symbol(empty_zero_page);
> #endif
>
> #ifdef CONFIG_VT
> --
> 1.9.1
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] arm64: Use __pa_symbol for empty_zero_page
2017-01-24 11:43 ` Geert Uytterhoeven
@ 2017-01-25 9:30 ` Laura Abbott
-1 siblings, 0 replies; 6+ messages in thread
From: Laura Abbott @ 2017-01-25 9:30 UTC (permalink / raw)
To: Geert Uytterhoeven, Catalin Marinas, Will Deacon, Mark Rutland
Cc: linux-arm-kernel, linux-renesas-soc
On 01/24/2017 12:43 PM, Geert Uytterhoeven wrote:
> If CONFIG_DEBUG_VIRTUAL=y and CONFIG_ARM64_SW_TTBR0_PAN=y:
>
> virt_to_phys used for non-linear address: ffffff8008cc0000 (empty_zero_page+0x0/0x1000)
> WARNING: CPU: 0 PID: 0 at arch/arm64/mm/physaddr.c:14 __virt_to_phys+0x28/0x60
> ...
> [<ffffff800809abb4>] __virt_to_phys+0x28/0x60
> [<ffffff8008a02600>] setup_arch+0x46c/0x4d4
>
> Fixes: 2077be6783b5936c ("arm64: Use __pa_symbol for kernel symbols")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> arch/arm64/kernel/setup.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
> index 669fc9ff728b227f..b5222094ab52db6f 100644
> --- a/arch/arm64/kernel/setup.c
> +++ b/arch/arm64/kernel/setup.c
> @@ -298,7 +298,7 @@ void __init setup_arch(char **cmdline_p)
> * faults in case uaccess_enable() is inadvertently called by the init
> * thread.
> */
> - init_task.thread_info.ttbr0 = virt_to_phys(empty_zero_page);
> + init_task.thread_info.ttbr0 = __pa_symbol(empty_zero_page);
> #endif
>
> #ifdef CONFIG_VT
>
(thought I sent this yesterday but SMTP was not set correctly)
Acked-by: Laura Abbott <labbott@redhat.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] arm64: Use __pa_symbol for empty_zero_page
@ 2017-01-25 9:30 ` Laura Abbott
0 siblings, 0 replies; 6+ messages in thread
From: Laura Abbott @ 2017-01-25 9:30 UTC (permalink / raw)
To: linux-arm-kernel
On 01/24/2017 12:43 PM, Geert Uytterhoeven wrote:
> If CONFIG_DEBUG_VIRTUAL=y and CONFIG_ARM64_SW_TTBR0_PAN=y:
>
> virt_to_phys used for non-linear address: ffffff8008cc0000 (empty_zero_page+0x0/0x1000)
> WARNING: CPU: 0 PID: 0 at arch/arm64/mm/physaddr.c:14 __virt_to_phys+0x28/0x60
> ...
> [<ffffff800809abb4>] __virt_to_phys+0x28/0x60
> [<ffffff8008a02600>] setup_arch+0x46c/0x4d4
>
> Fixes: 2077be6783b5936c ("arm64: Use __pa_symbol for kernel symbols")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> arch/arm64/kernel/setup.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
> index 669fc9ff728b227f..b5222094ab52db6f 100644
> --- a/arch/arm64/kernel/setup.c
> +++ b/arch/arm64/kernel/setup.c
> @@ -298,7 +298,7 @@ void __init setup_arch(char **cmdline_p)
> * faults in case uaccess_enable() is inadvertently called by the init
> * thread.
> */
> - init_task.thread_info.ttbr0 = virt_to_phys(empty_zero_page);
> + init_task.thread_info.ttbr0 = __pa_symbol(empty_zero_page);
> #endif
>
> #ifdef CONFIG_VT
>
(thought I sent this yesterday but SMTP was not set correctly)
Acked-by: Laura Abbott <labbott@redhat.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-01-25 9:30 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-24 11:43 [PATCH] arm64: Use __pa_symbol for empty_zero_page Geert Uytterhoeven
2017-01-24 11:43 ` Geert Uytterhoeven
2017-01-24 12:37 ` Mark Rutland
2017-01-24 12:37 ` Mark Rutland
2017-01-25 9:30 ` Laura Abbott
2017-01-25 9:30 ` Laura Abbott
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.