Subject: port-arm/29510: src/sys/arch/arm/xscale/i80321_pci.c: base+0x1000 breaks iyonix
To: None <port-arm-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <gavan@coolfactor.org>
List: netbsd-bugs
Date: 02/22/2005 22:55:00
>Number:         29510
>Category:       port-arm
>Synopsis:       src/sys/arch/arm/xscale/i80321_pci.c: base+0x1000 breaks iyonix
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    port-arm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 22 22:55:00 +0000 2005
>Originator:     Gavan Fantom
>Release:        any -current after Thu Dec  9 04:40:20 UTC 2004
>Organization:
>Environment:
NetBSD iambic 2.99.16 NetBSD 2.99.16 (iyonix-GENERIC) #0: Tue Feb 22 22:39:08 GMT 2005  abs@iris.absd.org:/home/gavan/current/obj/iyonix-GENERIC iyonix
>Description:
Revision 1.5 of src/sys/arch/arm/xscale/i80321_pci.c causes the iyonix port to hang after the following:

From a while ago:

NetBSD 2.99.11 (iyonix-GENERIC) #10: Sun Dec 12 19:41:34 GMT 2004
        root@iris.absd.org:/tmp/iyonix-GENERIC
total memory = 512 MB
avail memory = 496 MB
mainbus0 (root)
cpu0 at mainbus0: i80321 600MHz rev 2 (XScale core)
cpu0: DC enabled IC enabled WB enabled LABT branch prediction enabled
cpu0: 32KB/32B 32-way Instruction cache
cpu0: 32KB/32B 32-way write-back-locking Data cache
iopxs0 at mainbus0: i80321 I/O Processor, acting as PCI host
i80321: SBDR = 0xc0000000 SBR0 = 0x00000008 SBR1 = 0x00000010
i80321: BANK0 = 0x10000000 BANK1 = 0x10000000
iopxs0: configuring PCI bus


And again, with today's -current:

NetBSD 2.99.16 (iyonix-GENERIC) #1: Tue Feb 22 22:46:01 GMT 2005
        abs@iris.absd.org:/home/gavan/current/obj/iyonix-GENERIC
total memory = 128 MB
avail memory = 121 MB
mainbus0 (root)
cpu0 at mainbus0: i80321 600MHz rev 2 (XScale core)
cpu0: DC enabled IC enabled WB enabled LABT branch prediction enabled
cpu0: 32KB/32B 32-way Instruction cache
cpu0: 32KB/32B 32-way write-back-locking Data cache
iopxs0 at mainbus0: i80321 I/O Processor, acting as PCI host
i80321: SBDR = 0xc0000000 SBR0 = 0x00000004 SBR1 = 0x00000004
i80321: BANK0 = 0x08000000 BANK1 = 0x00000000
iopxs0: configuring PCI bus

>How-To-Repeat:
Attempt to boot a recent NetBSD/iyonix kernel.
>Fix:
The simple fix, for NetBSD/iyonix, is to revert the change between revisions 1.4 and 1.5 of i80321_pci.c. This obviously doesn't address the reason for making the change in the first place, though.