* [arnd-playground:highmem-7.4 5/6] arch/powerpc/mm/init_32.c:49:2: error: #error "You must adjust CONFIG_LOWMEM_SIZE or CONFIG_KERNEL_START"
@ 2026-11-12 16:13 kernel test robot
2026-11-12 16:30 ` Arnd Bergmann
0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2026-11-12 16:13 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git highmem-7.4
head: df4e49b4b5aba7b756a58be9b221e8b431540dca
commit: e3546fc56cb085d7ddcab90dd243f250ad7830af [5/6] arch/*: increase lowmem size to avoid highmem use
config: powerpc-randconfig-2000-20261112 (https://download.01.org/0day-ci/archive/20261112/202611121726.xboRqpix-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261112/202611121726.xboRqpix-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202611121726.xboRqpix-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/powerpc/mm/init_32.c:49:2: error: #error "You must adjust CONFIG_LOWMEM_SIZE or CONFIG_KERNEL_START"
#error "You must adjust CONFIG_LOWMEM_SIZE or CONFIG_KERNEL_START"
^~~~~
vim +49 arch/powerpc/mm/init_32.c
14cf11af6cf608 arch/powerpc/mm/init.c Paul Mackerras 2005-09-26 45
14cf11af6cf608 arch/powerpc/mm/init.c Paul Mackerras 2005-09-26 46 #if defined(CONFIG_KERNEL_START_BOOL) || defined(CONFIG_LOWMEM_SIZE_BOOL)
9ddc5b6f18fbac arch/powerpc/mm/init_32.c Uwe Kleine-König 2010-01-20 47 /* The amount of lowmem must be within 0xF0000000 - KERNELBASE. */
ccdcef72c249c2 arch/powerpc/mm/init_32.c Dale Farnsworth 2008-12-17 48 #if (CONFIG_LOWMEM_SIZE > (0xF0000000 - PAGE_OFFSET))
b615f4b3f962ff arch/powerpc/mm/init_32.c Paul Bolle 2013-05-29 @49 #error "You must adjust CONFIG_LOWMEM_SIZE or CONFIG_KERNEL_START"
14cf11af6cf608 arch/powerpc/mm/init.c Paul Mackerras 2005-09-26 50 #endif
14cf11af6cf608 arch/powerpc/mm/init.c Paul Mackerras 2005-09-26 51 #endif
14cf11af6cf608 arch/powerpc/mm/init.c Paul Mackerras 2005-09-26 52 #define MAX_LOW_MEM CONFIG_LOWMEM_SIZE
14cf11af6cf608 arch/powerpc/mm/init.c Paul Mackerras 2005-09-26 53
:::::: The code at line 49 was first introduced by commit
:::::: b615f4b3f962ffedb8d4a7122ca049abdb420547 ppc: init_32: Fix error typo "CONFIG_START_KERNEL"
:::::: TO: Paul Bolle <pebolle@tiscali.nl>
:::::: CC: Jiri Kosina <jkosina@suse.cz>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [arnd-playground:highmem-7.4 5/6] arch/powerpc/mm/init_32.c:49:2: error: #error "You must adjust CONFIG_LOWMEM_SIZE or CONFIG_KERNEL_START"
2026-11-12 16:13 [arnd-playground:highmem-7.4 5/6] arch/powerpc/mm/init_32.c:49:2: error: #error "You must adjust CONFIG_LOWMEM_SIZE or CONFIG_KERNEL_START" kernel test robot
@ 2026-11-12 16:30 ` Arnd Bergmann
2026-11-16 5:09 ` Philip Li
0 siblings, 1 reply; 3+ messages in thread
From: Arnd Bergmann @ 2026-11-12 16:30 UTC (permalink / raw)
To: kernel test robot; +Cc: oe-kbuild-all, linuxppc-dev
On Thu, Nov 12, 2026, at 17:13, kernel test robot wrote:
>
> If you fix the issue in a separate patch/commit (i.e. not just a new
> version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes:
> https://lore.kernel.org/oe-kbuild-all/202611121726.xboRqpix-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
>>> arch/powerpc/mm/init_32.c:49:2: error: #error "You must adjust CONFIG_LOWMEM_SIZE or CONFIG_KERNEL_START"
> #error "You must adjust CONFIG_LOWMEM_SIZE or CONFIG_KERNEL_START"
> ^~~~~
The randconfig file contains
# CONFIG_LOWMEM_SIZE_BOOL is not set
CONFIG_LOWMEM_SIZE=0x80000000
CONFIG_PAGE_OFFSET_BOOL=y
CONFIG_PAGE_OFFSET=0xc0000000
CONFIG_KERNEL_START_BOOL=y
CONFIG_KERNEL_START=0xc0000000
which is an invalid configuration
My patch changed the defaults for both PAGE_OFFSET and LOWMEM_SIZE
in a way that should still work:
config LOWMEM_SIZE
hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
- default "0x30000000"
+ default "0x80000000" if HIGHMEM
+ default "0x40000000"
config PAGE_OFFSET
hex "Virtual address of memory base" if PAGE_OFFSET_BOOL
- default "0xc0000000"
+ default "0x70000000" if HIGHMEM
+ default "0xb0000000"
What I'm guessing happened is that the .config file was generated
with the old defaults by running 'make randconfig' on an unpatched
tree, but then running 'make olddefconfig' changes the default
for LOWMEM_SIZE without changing the others.
Arnd
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [arnd-playground:highmem-7.4 5/6] arch/powerpc/mm/init_32.c:49:2: error: #error "You must adjust CONFIG_LOWMEM_SIZE or CONFIG_KERNEL_START"
2026-11-12 16:30 ` Arnd Bergmann
@ 2026-11-16 5:09 ` Philip Li
0 siblings, 0 replies; 3+ messages in thread
From: Philip Li @ 2026-11-16 5:09 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: kernel test robot, oe-kbuild-all, linuxppc-dev
On Thu, Nov 12, 2026 at 05:30:25PM +0100, Arnd Bergmann wrote:
> On Thu, Nov 12, 2026, at 17:13, kernel test robot wrote:
> >
> > If you fix the issue in a separate patch/commit (i.e. not just a new
> > version of
> > the same patch/commit), kindly add following tags
> > | Reported-by: kernel test robot <lkp@intel.com>
> > | Closes:
> > https://lore.kernel.org/oe-kbuild-all/202611121726.xboRqpix-lkp@intel.com/
> >
> > All errors (new ones prefixed by >>):
> >
> >>> arch/powerpc/mm/init_32.c:49:2: error: #error "You must adjust CONFIG_LOWMEM_SIZE or CONFIG_KERNEL_START"
> > #error "You must adjust CONFIG_LOWMEM_SIZE or CONFIG_KERNEL_START"
> > ^~~~~
>
> The randconfig file contains
>
> # CONFIG_LOWMEM_SIZE_BOOL is not set
> CONFIG_LOWMEM_SIZE=0x80000000
> CONFIG_PAGE_OFFSET_BOOL=y
> CONFIG_PAGE_OFFSET=0xc0000000
> CONFIG_KERNEL_START_BOOL=y
> CONFIG_KERNEL_START=0xc0000000
>
> which is an invalid configuration
>
> My patch changed the defaults for both PAGE_OFFSET and LOWMEM_SIZE
> in a way that should still work:
>
> config LOWMEM_SIZE
> hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
> - default "0x30000000"
> + default "0x80000000" if HIGHMEM
> + default "0x40000000"
>
> config PAGE_OFFSET
> hex "Virtual address of memory base" if PAGE_OFFSET_BOOL
> - default "0xc0000000"
> + default "0x70000000" if HIGHMEM
> + default "0xb0000000"
>
> What I'm guessing happened is that the .config file was generated
> with the old defaults by running 'make randconfig' on an unpatched
> tree, but then running 'make olddefconfig' changes the default
> for LOWMEM_SIZE without changing the others.
Sorry about this false report, you are right, the randconfig is not generated
correctly as you mentioned. I will follow up to fix the bot to avoid the wrong
reports.
>
> Arnd
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-16 5:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-12 16:13 [arnd-playground:highmem-7.4 5/6] arch/powerpc/mm/init_32.c:49:2: error: #error "You must adjust CONFIG_LOWMEM_SIZE or CONFIG_KERNEL_START" kernel test robot
2026-11-12 16:30 ` Arnd Bergmann
2026-11-16 5:09 ` Philip Li
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.