linux-next: kbuild tree build failure
Roman Zippel
zippel at linux-m68k.org
Tue Jul 8 12:55:49 EST 2008
Hi,
On Tue, 8 Jul 2008, Michael Ellerman wrote:
> I don't really see why it "doesn't make sense" for users to input 64-bit
> values, they're configuring addresses for a 64-bit kernel, so some of
> the values are going to be 64 bit.
Do you really expect users to insert random 64bit addresses without making
a mistake?
Please make a realistic case, where the user input of a full 64bit value
is required (i.e. where it's not easier to just offer the user a few
choices).
Currently there is simply no need for this, as even powerpc only used them
as constants here.
> > Index: linux-2.6/arch/powerpc/Kconfig
> > ===================================================================
> > --- linux-2.6.orig/arch/powerpc/Kconfig
> > +++ linux-2.6/arch/powerpc/Kconfig
> > @@ -714,8 +714,8 @@ config PHYSICAL_START_BOOL
> >
> > config PHYSICAL_START
> > hex "Physical address where the kernel is loaded" if PHYSICAL_START_BOOL
> > - default "0x02000000" if PPC_STD_MMU && CRASH_DUMP
> > - default "0x00000000"
> > + default "0x2000000" if PPC_STD_MMU && CRASH_DUMP
> > + default "0"
> >
> > config PHYSICAL_ALIGN
> > hex
> > @@ -763,7 +763,7 @@ config CONSISTENT_SIZE_BOOL
> >
> > config CONSISTENT_SIZE
> > hex "Size of consistent memory pool" if CONSISTENT_SIZE_BOOL
> > - default "0x00200000" if NOT_COHERENT_CACHE
> > + default "0x200000" if NOT_COHERENT_CACHE
> >
> > config PIN_TLB
> > bool "Pinned Kernel TLBs (860 ONLY)"
> > @@ -773,15 +773,11 @@ endmenu
> > if PPC64
> > config PAGE_OFFSET
> > hex
> > - default "0xc000000000000000"
> > -config KERNEL_START
> > - hex
> > - default "0xc000000002000000" if CRASH_DUMP
> > - default "0xc000000000000000"
> > + default "0xc0000000"
>
> I don't see where you cope with the "if CRASH_DUMP" case, and in fact my
> config changes for the worse when I apply your patch and regenerate my
> config:
>
> --- .config.orig 2008-07-08 09:30:00.000000000 +1000
> +++ .config 2008-07-08 09:30:43.000000000 +1000
> @@ -370,9 +370,8 @@
> CONFIG_HOTPLUG_PCI_RPA=m
> CONFIG_HOTPLUG_PCI_RPA_DLPAR=m
> # CONFIG_HAS_RAPIDIO is not set
> -CONFIG_PAGE_OFFSET=0xc000000000000000
> -CONFIG_KERNEL_START=0xc000000002000000
> -CONFIG_PHYSICAL_START=0x02000000
> +CONFIG_PAGE_OFFSET=0xc0000000
> +CONFIG_PHYSICAL_START=0x2000000
Why is this worse? These are constants, you're not supposed to change them
anyway.
The remaining values are generated in page.h and should be the same as
before. If that isn't the case and this patch produces a nonworking
kernel, I'd like to hear about it.
bye, Roman
More information about the Linuxppc-dev
mailing list