Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jan 2007 13:22:09 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-alpha@freebsd.org
Subject:   Re: Alpha PWS 433au (MiataGL) halts when booting installation CD, with "halt code = 5"
Message-ID:  <200701171322.09584.jhb@freebsd.org>
In-Reply-To: <45AE57A6.1040104@truthsolo.net>
References:  <88F3FB25-A363-4E91-A637-213116F58356@avalon.net> <45AE57A6.1040104@truthsolo.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 17 January 2007 12:06, Rob Dosogne wrote:
> Tim,
> 
> I think you can disable the isp driver at the loader:
> 
> set hint.isp.0.disable="1"
> 
> although I have not tried this on my own machine yet.  After installing
> you could recompile the kernel without isp or leave the disable line in
> your device.hints

Hmm, couldn't we change isp to try memory mode first under #ifdef __alpha__?
Hmm, it looks like we already do.  Maybe this patch is in order:

Index: isp_pci.c
===================================================================
RCS file: /usr/cvs/src/sys/dev/isp/isp_pci.c,v
retrieving revision 1.131
diff -u -r1.131 isp_pci.c
--- isp_pci.c	5 Jan 2007 23:01:35 -0000	1.131
+++ isp_pci.c	17 Jan 2007 18:21:34 -0000
@@ -798,7 +798,7 @@
 {
 	struct resource *regs, *irq;
 	int rtp, rgd, iqd, m1, m2;
-	uint32_t data, cmd, linesz, psize, basetype;
+	uint32_t data, linesz, psize, basetype;
 	struct isp_pcisoftc *pcs;
 	ispsoftc_t *isp = NULL;
 	struct ispmdvec *mdvp;
@@ -839,13 +839,12 @@
 	irq = regs = NULL;
 	rgd = rtp = iqd = 0;
 
-	cmd = pci_read_config(dev, PCIR_COMMAND, 2);
-	if (cmd & m1) {
+	if (m1) {
 		rtp = (m1 == PCIM_CMD_MEMEN)? SYS_RES_MEMORY : SYS_RES_IOPORT;
 		rgd = (m1 == PCIM_CMD_MEMEN)? MEM_MAP_REG : IO_MAP_REG;
 		regs = bus_alloc_resource_any(dev, rtp, &rgd, RF_ACTIVE);
 	}
-	if (regs == NULL && (cmd & m2)) {
+	if (regs == NULL && m2) {
 		rtp = (m2 == PCIM_CMD_MEMEN)? SYS_RES_MEMORY : SYS_RES_IOPORT;
 		rgd = (m2 == PCIM_CMD_MEMEN)? MEM_MAP_REG : IO_MAP_REG;
 		regs = bus_alloc_resource_any(dev, rtp, &rgd, RF_ACTIVE);
@@ -1044,6 +1043,7 @@
 	 * Make sure that SERR, PERR, WRITE INVALIDATE and BUSMASTER
 	 * are set.
 	 */
+	cmd = pci_read_config(dev, PCIR_COMMAND, 2);
 	cmd |= PCIM_CMD_SEREN | PCIM_CMD_PERRESPEN |
 		PCIM_CMD_BUSMASTEREN | PCIM_CMD_INVEN;
 


> Tim McIntosh wrote:
> > Hi,
> > 
> > This problem has been reported by others numerous times over the last 
> > couple years; this is just a reminder that it still exists in 6.2R.  It 
> > would be great if somebody could address the issue.
> > 
> > This system has no PCI cards installed and no SCSI devices installed.  
> > The HDD is on IDE0 and the CDROM is on IDE1.
> > 
> > I'm guessing the issue described in the following post may be the cause 
> > of the problem?  
> > http://lists.freebsd.org/pipermail/freebsd-alpha/2005-April/002294.html
> > 
> > The thing is, the QLogic SCSI controller is built-in on this system, so 
> > there's no way to put it in front of the PCI-PCI bridge.  Is there any 
> > way to disable it, or disable the device driver, as a work-around?
> > 
> > Thanks!
> > Tim
> > 
> > 
> > (...)
> > 
> > FreeBSD/alpha SRM CD9660 boot, Revision 1.2
> > (root@ds10.freebie.xs4all.nl, Fri Jan 12 17:01:15 UTC 2007)
> > Memory: 65536 k
> > Loading /boot/defaults/loader.conf
> > /boot/kernel/kernel data=0x6fed50+0x39a70 syms=[0x8+0x76578+0x8+0x61c05]
> > -
> > Hit [Enter] to boot immediately, or any other key for command prompt.
> > Booting [/boot/kernel/kernel]...
> > Entering /boot/kernel/kernel at 0xfffffc00003523b0...
> > 
> > (...)
> > 
> > isp0: <Qlogic ISP 1020/1040 PCI SCSI Adapter> port 0x8000-0x80ff mem 
> > 0x800100001
> > isp0: interrupting at CIA irq 3
> > isp0: [GIANT-LOCKED]
> > 
> > halted CPU 0
> > 
> > halt code = 5
> > HALT instruction executed
> > PC = 0
> > 
> > (...)
> >  
> 
> -- 
> 
> cheers!
> 
> Rob Dosogne
> Systems Administrator
> http://www.truthsolo.net/
> 
> _______________________________________________
> freebsd-alpha@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-alpha
> To unsubscribe, send any mail to "freebsd-alpha-unsubscribe@freebsd.org"
> 

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701171322.09584.jhb>