Subject: Re: port-sparc64/30343 (NetBSD-sparc64 seems to have trouble initializing
To: None <martin@NetBSD.org, gnats-admin@netbsd.org,>
From: Tobias Nygren <tnn@NetBSD.org>
List: netbsd-bugs
Date: 04/24/2007 12:35:05
The following reply was made to PR port-sparc64/30343; it has been noted by GNATS.

From: Tobias Nygren <tnn@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-sparc64/30343 (NetBSD-sparc64 seems to have trouble initializing
 PCI interrupts)
Date: Tue, 24 Apr 2007 14:31:45 +0200

 This is a multi-part message in MIME format.
 --------------070409080506030201060508
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Looks like the Ultra60 has a pci-pci bridge.
 This problem might have been fixed in sparc64/dev/pci_machdep.c r1.54.
 If it still doesn't work maybe the attached diff will.
 
 
 
 --------------070409080506030201060508
 Content-Type: text/plain;
  name="test.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="test.diff"
 
 Index: pci_machdep.c
 ===================================================================
 RCS file: /cvsroot/src/sys/arch/sparc64/dev/pci_machdep.c,v
 retrieving revision 1.54
 diff -u -r1.54 pci_machdep.c
 --- pci_machdep.c	4 Apr 2007 11:04:33 -0000	1.54
 +++ pci_machdep.c	24 Apr 2007 12:30:27 -0000
 @@ -499,6 +499,9 @@
  		printf("OF_mapintr failed\n");
  		pci_find_ino(pa, &interrupts);
  	}
 +	/* experimental */
 +	if (interrupts == 0)
 +		pci_find_ino(pa, &interrupts);
  
  	/* Try to find an IPL for this type of device. */
  	prom_getpropstringA(node, "device_type", devtype, sizeof(devtype));
 
 --------------070409080506030201060508--