Package: linux-image-3.1.0-1-ixp4xx
Severity: normal
While 3.0.0-6 booted OK on NSLU2 platform, 3.1.0-1 or -4 fails to do so.
Boot log:
Ethernet eth0: MAC address 00:14:bf:xx:yy:zz
IP: 192.168.0.1/255.255.255.0, Gateway: 192.168.0.1
Default server: 0.0.0.0, DNS server IP: 0.0.0.0
RedBoot(tm) bootstrap and debug environment [ROMRAM]
Red Hat certified release, version 1.92 - built 15:16:07, Feb 3 2004
Platform: IXDP425 Development Platform (XScale)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.
RAM: 0x00000000-0x02000000, 0x000723a0-0x01ff3000 available
FLASH: 0x50000000 - 0x50800000, 64 blocks of 0x00020000 bytes each.
== Executing boot script in 2.000 seconds - enter ^C to abort
RedBoot> boot;exec 0x01d00000
have eRcOmM
copy kernel code from flash to RAM
copy ramdisk file from flash to RAM
run kernel
Using base address 0x01d00000 and length 0x0000dc20
Ans
APEX Boot Loader 1.6.10 -- Copyright (c) 2004-2008 Marc Singer
compiled for Debian NSLU2 on 2009.Oct.06-18:59:32
APEX comes with ABSOLUTELY NO WARRANTY. It is free software and
you are welcome to redistribute it under certain circumstances.
For details, refer to the file COPYING in the program source.
Kernel: Linux 3.1.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111206194048.12063.82586.reportbug@vrnul03074nb. vr-netze.vrnet">http://lists.debian.org/20111206194048.12063.82586.reportbug@vrnul03074nb. vr-netze.vrnet
12-07-2011, 05:02 AM
Ben Hutchings
Bug#651215: Kernel fails to boot on NSLU2
On Tue, 2011-12-06 at 20:40 +0100, Jochen Friedrich wrote:
> Package: linux-image-3.1.0-1-ixp4xx
> Severity: normal
>
> While 3.0.0-6 booted OK on NSLU2 platform, 3.1.0-1 or -4 fails to do so.
>
> Boot log:
[...]
> [ 0.000000] Linux version 3.1.0-1-ixp4xx (Debian 3.1.4-1) (waldi@debian.org)
> (gcc version 4.6.2 (Debian 4.6.2-4) ) #1 Wed Nov 30 06:35:38 UTC 2011
> [ 0.000000] CPU: XScale-IXP42x Family [690541f1] revision 1 (ARMv5TE),
> cr=0000397f
> [ 0.000000] CPU: VIVT data cache, VIVT instruction cache
> [ 0.000000] Machine: Linksys NSLU2
[...]
> [ 3.269860] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
> [ 3.350596] PCI: enabling device 0000:00:01.2 (0140 -> 0142)
> [ 3.356553] ehci_hcd 0000:00:01.2: EHCI Host Controller
> [ 3.452053] ehci_hcd 0000:00:01.2: new USB bus registered, assigned bus
> number 1
> [ 3.459646] ehci_hcd 0000:00:01.2: coherent DMA mask 0x3ffffff is smaller
> than system GFP_DMA mask 0xffffffff
> [ 3.570085] ehci_hcd 0000:00:01.2: coherent DMA mask 0x3ffffff is smaller
> than system GFP_DMA mask 0xffffffff
> [ 3.680189] ehci_hcd 0000:00:01.2: coherent DMA mask 0x3ffffff is smaller
> than system GFP_DMA mask 0xffffffff
> (repeated over and over)
ARM: mach-ixp4xx: move from ARM_DMA_ZONE_SIZE to mdesc->dma_zone_size
It's clear that the DMA zone size is supposed to be 64 MB on this
machine and I don't see why the DMA mask hasn't propagated correctly.
Any idea, Nicholas?
Ben.
--
Ben Hutchings
Absolutum obsoletum. (If it works, it's out of date.) - Stafford Beer
12-07-2011, 09:05 PM
Arnaud Patard (Rtp)
Bug#651215: Kernel fails to boot on NSLU2
Ben Hutchings <ben@decadent.org.uk> writes:
Hi,
> On Tue, 2011-12-06 at 20:40 +0100, Jochen Friedrich wrote:
>> Package: linux-image-3.1.0-1-ixp4xx
>> Severity: normal
>>
>> While 3.0.0-6 booted OK on NSLU2 platform, 3.1.0-1 or -4 fails to do so.
>>
>> Boot log:
> [...]
>> [ 0.000000] Linux version 3.1.0-1-ixp4xx (Debian 3.1.4-1) (waldi@debian.org)
>> (gcc version 4.6.2 (Debian 4.6.2-4) ) #1 Wed Nov 30 06:35:38 UTC 2011
>> [ 0.000000] CPU: XScale-IXP42x Family [690541f1] revision 1 (ARMv5TE),
>> cr=0000397f
>> [ 0.000000] CPU: VIVT data cache, VIVT instruction cache
>> [ 0.000000] Machine: Linksys NSLU2
> [...]
>> [ 3.269860] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
>> [ 3.350596] PCI: enabling device 0000:00:01.2 (0140 -> 0142)
>> [ 3.356553] ehci_hcd 0000:00:01.2: EHCI Host Controller
>> [ 3.452053] ehci_hcd 0000:00:01.2: new USB bus registered, assigned bus
>> number 1
>> [ 3.459646] ehci_hcd 0000:00:01.2: coherent DMA mask 0x3ffffff is smaller
>> than system GFP_DMA mask 0xffffffff
>> [ 3.570085] ehci_hcd 0000:00:01.2: coherent DMA mask 0x3ffffff is smaller
>> than system GFP_DMA mask 0xffffffff
>> [ 3.680189] ehci_hcd 0000:00:01.2: coherent DMA mask 0x3ffffff is smaller
>> than system GFP_DMA mask 0xffffffff
>> (repeated over and over)
>
> I assume that this has something to do with:
>
> commit 650320181a08b64d4421c65c639cf47ad8cc2cd6
> Author: Nicolas Pitre <nico@fluxnic.net>
> Date: Mon Jul 18 15:05:10 2011 -0400
>
> ARM: change ARM_DMA_ZONE_SIZE into a variable
>
> commit 7553ee777b513c3bc8f45bb9fc75fb1bbc584ba1
> Author: Nicolas Pitre <nicolas.pitre@linaro.org>
> Date: Tue Jul 5 22:28:09 2011 -0400
>
> ARM: mach-ixp4xx: move from ARM_DMA_ZONE_SIZE to mdesc->dma_zone_size
>
> It's clear that the DMA zone size is supposed to be 64 MB on this
> machine and I don't see why the DMA mask hasn't propagated correctly.
> Any idea, Nicholas?
I may be wrong but it seems that arm_dma_zone_size is used before being
set. It would be interesting if someone can boot test a nslu2 kernel with
appended patch.
Thanks,
Arnaud
12-07-2011, 09:57 PM
Russell King - ARM Linux
Bug#651215: Kernel fails to boot on NSLU2
On Wed, Dec 07, 2011 at 11:05:58PM +0100, Arnaud Patard wrote:
> I may be wrong but it seems that arm_dma_zone_size is used before being
> set. It would be interesting if someone can boot test a nslu2 kernel with
> appended patch.
It does look like that's the case - arm_dma_zone_size is used in
arm_bootmem_free(), which is called from bootmem_init() and in turn
paging_init().
So, arm_dma_zone_size needs to be set before paging_init() is called.
I'd actually suggest moving it before:
if (mdesc->restart_mode)
reboot_setup(&mdesc->restart_mode);
so that it's set real early, to avoid any future problems with this.
The earlier these kinds of things are set, the less likely this kind
of bug will happen.
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111207225718.GI14542@n2100.arm.linux.org.uk">htt p://lists.debian.org/20111207225718.GI14542@n2100.arm.linux.org.uk
12-07-2011, 11:10 PM
Nicolas Pitre
Bug#651215: Kernel fails to boot on NSLU2
On Wed, 7 Dec 2011, Russell King - ARM Linux wrote:
> On Wed, Dec 07, 2011 at 11:05:58PM +0100, Arnaud Patard wrote:
> > I may be wrong but it seems that arm_dma_zone_size is used before being
> > set. It would be interesting if someone can boot test a nslu2 kernel with
> > appended patch.
>
> It does look like that's the case - arm_dma_zone_size is used in
> arm_bootmem_free(), which is called from bootmem_init() and in turn
> paging_init().
>
> So, arm_dma_zone_size needs to be set before paging_init() is called.
Oops, indeed.
> I'd actually suggest moving it before:
>
> if (mdesc->restart_mode)
> reboot_setup(&mdesc->restart_mode);
>
> so that it's set real early, to avoid any future problems with this.
> The earlier these kinds of things are set, the less likely this kind
> of bug will happen.
Arnaud: please resubmit your patch moving the call as suggested by
Russell and mark it with:
Acked-by: Nicolas Pitre <nico@linaro.org>
and
CC: stable@kernel.org
Thanks
Nicolas
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: alpine.LFD.2.02.1112071902360.2907@xanadu.home">ht tp://lists.debian.org/alpine.LFD.2.02.1112071902360.2907@xanadu.home
12-13-2011, 07:04 AM
Arnaud Patard (Rtp)
Bug#651215: Kernel fails to boot on NSLU2
Hi,
I've uploaded a 3.1.5-1 with a patch which should fix the boot failure
at http://www.rtp-net.org/misc/deb/. Can you please test it ?
Thanks,
Arnaud
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87vcpkvqwa.fsf@lebrac.rtp-net.org">http://lists.debian.org/87vcpkvqwa.fsf@lebrac.rtp-net.org
12-14-2011, 10:32 AM
Jochen Friedrich
Bug#651215: Kernel fails to boot on NSLU2
Hi Arnaud,
I've uploaded a 3.1.5-1 with a patch which should fix the boot failure
at http://www.rtp-net.org/misc/deb/. Can you please test it ?
Yes, this fixed the problem.
nslu2:~# uname -a
Linux nslu2 3.1.0-1-ixp4xx #1 Tue Dec 13 05:00:03 CET 2011 armv5tel GNU/Linux
nslu2:~#
Thanks,
Jochen
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4EE8895C.4070206@scram.de">http://lists.debian.org/4EE8895C.4070206@scram.de