Skip to contentSkip to conversation

Conflict when loading initio driver

DISCUSSION Scott Simpson 2 participants 3 messages Oct 6, 2007 – Oct 10, 2007

lore
Share & tools
lore
#0 lore raw
Quoted 10 lines · Alan Cox

Humm not a collision - thats a bug in the driver updating. Looks like the changes I made and combined with Christoph's lost a line somewhere when I was merging it all. Try the following

diff -u --new-file --exclude-from /usr/src/exclude --recursive linux.vanilla-2.6.23rc8-mm1/drivers/scsi/initio.c linux-2.6.23rc8-mm1/drivers/scsi/initio.c

drivers/scsi/initio.c line 2873

Quoted 7 lines
drivers/scsi/initio.c +1 -0
@@ -2867,6 +2867,7 @@
 	}
 	host = (struct initio_host *)shost->hostdata;
 	memset(host, 0, sizeof(struct initio_host));
+	host->addr = pci_resource_start(pdev, 0);
 
 	if (!request_region(host->addr, 256, "i91u")) {
 		printk(KERN_WARNING "initio: I/O port range 0x%x is busy.\n", host->addr);

I tried this fix on my SuSE 10.3 system (2.6.22.5-29 kernel) and it didn't work. The system froze on boot. I think there might be more to it.
Scott

#1 lore raw
Quoted 8 lines

Review

Quoted 4 lines
(quoted diff) +1 -0
+	host->addr = pci_resource_start(pdev, 0);
 
 	if (!request_region(host->addr, 256, "i91u")) {
 		printk(KERN_WARNING "initio: I/O port range 0x%x is busy.\n", host->addr);

I tried this fix on my SuSE 10.3 system (2.6.22.5-29 kernel) and it didn't work. The system froze on boot. I think there might be more to it.

Can you stick some printk statements in so we can see where it hangs roughly ?

#2 lore raw

OK. I did some debugging in this initio.c driver. I put printk statements at the beginning of each routine and I got the following output:

initio_se2_rd
initio_se2_instr
(The previous two routines repeat a bunch of times then I get:) initio_stop_bm
i91u: PCI Base=0xEC00, IRQ=0, BIOS=0x0000, SCSI ID=7
i91u: Reset SCSI Bus...
initio_reset_scsi
scsi2: Initio INI-9X00U/UW SCSI device driver i91u_queuecommand
initio_alloc_scb

So it seems to be dieing in initio_alloc_scb. I think it is dieing on the first spin lock if that makes any sense, but it could be dieing somewhere else in that routine. Hope this helps.