Re: INITIO scsi driver fails to work properly

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Cox
Date: Monday, January 21, 2008 - 3:20 pm

Ok my attempt to get the card failed so we are going to have to do this
the hard way. See where this patch crashes and what it prints

(On top of the other patches)

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.24-rc8-mm1/drivers/scsi/initio.c linux-2.6.24-rc8-mm1/drivers/scsi/initio.c
--- linux.vanilla-2.6.24-rc8-mm1/drivers/scsi/initio.c	2008-01-19 14:22:43.000000000 +0000
+++ linux-2.6.24-rc8-mm1/drivers/scsi/initio.c	2008-01-21 14:54:48.000000000 +0000
@@ -2537,10 +2537,12 @@
 	struct Scsi_Host *dev = dev_id;
 	unsigned long flags;
 	int r;
-	
+
+	printk("ISR\n");	
 	spin_lock_irqsave(dev->host_lock, flags);
 	r = initio_isr((struct initio_host *)dev->hostdata);
 	spin_unlock_irqrestore(dev->host_lock, flags);
+	printk("ISR DONE %d\n", r);
 	if (r)
 		return IRQ_HANDLED;
 	else
@@ -2643,6 +2645,7 @@
 	struct initio_host *host = (struct initio_host *) cmd->device->host->hostdata;
 	struct scsi_ctrl_blk *cmnd;
 
+	printk("SCB QUEUE\n");
 	cmd->scsi_done = done;
 
 	cmnd = initio_alloc_scb(host);
@@ -2650,7 +2653,9 @@
 		return SCSI_MLQUEUE_HOST_BUSY;
 
 	initio_build_scb(host, cmnd, cmd);
+	printk("SCB EXEC\n");
 	initio_exec_scb(host, cmnd);
+	printk("SCB EXEC DONE\n");
 	return 0;
 }
 
@@ -2766,6 +2771,8 @@
 	struct scsi_cmnd *cmnd;	/* Pointer to SCSI request block */
 	struct initio_host *host;
 	struct scsi_ctrl_blk *cblk;
+	
+	printk("SCB POST\n");
 
 	host = (struct initio_host *) host_mem;
 	cblk = (struct scsi_ctrl_blk *) cblk_mem;
@@ -2934,9 +2941,11 @@
 
 	pci_set_drvdata(pdev, shost);
 
+	printk("SAH\n");
 	error = scsi_add_host(shost, &pdev->dev);
 	if (error)
 		goto out_free_irq;
+	printk("SSH\n");
 	scsi_scan_host(shost);
 	return 0;
 out_free_irq:
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: INITIO scsi driver fails to work properly, Filippos Papadopoulos, (Wed Dec 19, 1:48 am)
Re: INITIO scsi driver fails to work properly, Boaz Harrosh, (Wed Dec 19, 3:08 am)
Re: INITIO scsi driver fails to work properly, Matthew Wilcox, (Wed Dec 19, 6:29 am)
Re: INITIO scsi driver fails to work properly, James Bottomley, (Wed Dec 19, 9:50 am)
Re: INITIO scsi driver fails to work properly, Matthew Wilcox, (Wed Dec 19, 10:05 am)
Re: INITIO scsi driver fails to work properly, Natalie Protasevich, (Thu Dec 20, 2:32 am)
Re: INITIO scsi driver fails to work properly, James Bottomley, (Thu Dec 20, 8:08 am)
Re: INITIO scsi driver fails to work properly, Chuck Ebbert, (Fri Dec 21, 12:30 pm)
Re: INITIO scsi driver fails to work properly, James Bottomley, (Fri Dec 21, 2:03 pm)
Re: INITIO scsi driver fails to work properly, Chuck Ebbert, (Fri Dec 21, 3:43 pm)
Re: INITIO scsi driver fails to work properly, James Bottomley, (Fri Dec 21, 3:49 pm)
Re: INITIO scsi driver fails to work properly, James Bottomley, (Thu Jan 10, 10:16 pm)
Re: INITIO scsi driver fails to work properly, James Bottomley, (Fri Jan 11, 8:44 am)
Re: INITIO scsi driver fails to work properly, Filippos Papadopoulos, (Fri Jan 11, 9:44 am)
Re: INITIO scsi driver fails to work properly, Alan Cox, (Fri Jan 11, 10:01 am)
Re: INITIO scsi driver fails to work properly, James Bottomley, (Fri Jan 11, 10:01 am)
Re: INITIO scsi driver fails to work properly, James Bottomley, (Fri Jan 11, 10:33 am)
Re: INITIO scsi driver fails to work properly, Chuck Ebbert, (Fri Jan 11, 10:52 am)
Re: INITIO scsi driver fails to work properly, Filippos Papadopoulos, (Sun Jan 13, 5:28 am)
Re: INITIO scsi driver fails to work properly, FUJITA Tomonori, (Tue Jan 15, 10:59 pm)
Re: INITIO scsi driver fails to work properly, James Bottomley, (Wed Jan 16, 7:57 am)
Re: INITIO scsi driver fails to work properly, Alan Cox, (Mon Jan 21, 3:20 pm)
Re: INITIO scsi driver fails to work properly, Filippos Papadopoulos, (Tue Jan 22, 10:50 am)
Re: INITIO scsi driver fails to work properly, James Bottomley, (Fri Jan 25, 9:49 am)
Re: INITIO scsi driver fails to work properly, Filippos Papadopoulos, (Fri Jan 25, 2:04 pm)