* [PATCH v3 03/10] ARM: pxa: support arbitrary PAGE_OFFSET
[not found] <20261116124832.662455-1-arnd@kernel.org>
@ 2026-11-16 12:48 ` Arnd Bergmann
0 siblings, 0 replies; only message in thread
From: Arnd Bergmann @ 2026-11-16 12:48 UTC (permalink / raw)
To: linux-mm
Cc: Arnd Bergmann, Andreas Larsson, Andrew Morton,
Christophe Leroy (CS GROUP), Dave Hansen, David Hildenbrand (Arm),
H. Peter Anvin, Ingo Molnar, Jason Gunthorpe, Linus Walleij,
Lorenzo Stoakes (ARM), Lucas Stach, Madhavan Srinivasan,
Malin Jonsson, Matthew Wilcox, Michael Ellerman, Michal Simek,
Mike Rapoport, Nicholas Piggin, Nishanth Menon,
Richard Weinberger, Russell King, Thomas Gleixner,
linux-arm-kernel, linux-fsdevel, linuxppc-dev, x86, sashiko-bot,
stable
From: Arnd Bergmann <arnd@arndb.de>
The pxa3xx_cpu_pm_suspend() implementation hardcodes the default
PAGE_OFFSET value for CONFIG_VMSPLIT_3G. This has always been broken
for other configurations but becomes much worse now that the default
is changing.
Fix this to use the correct compile-time constant instead.
Reported-by: sashiko-bot@kernel.org
Fixes: c4d1fb627ff3 ("[ARM] pxa: add preliminary suspend/resume code for pxa3xx")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/all/sashiko-outbox-212719@kernel.org/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
arch/arm/mach-pxa/pxa3xx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c
index 06c578ea658e..253770075a8b 100644
--- a/arch/arm/mach-pxa/pxa3xx.c
+++ b/arch/arm/mach-pxa/pxa3xx.c
@@ -103,7 +103,7 @@ static void pxa3xx_cpu_standby(unsigned int pwrmode)
*/
static void pxa3xx_cpu_pm_suspend(void)
{
- volatile unsigned long *p = (volatile void *)0xc0000000;
+ volatile unsigned long *p = (volatile void *)PAGE_OFFSET;
unsigned long saved_data = *p;
#ifndef CONFIG_IWMMXT
u64 acc0;
--
2.53.0
^ permalink raw reply related [flat|nested] only message in thread