Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757185AbYAUW1X (ORCPT ); Mon, 21 Jan 2008 17:27:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754330AbYAUW1K (ORCPT ); Mon, 21 Jan 2008 17:27:10 -0500 Received: from outpipe-village-512-1.bc.nu ([81.2.110.250]:50548 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1754544AbYAUW1J (ORCPT ); Mon, 21 Jan 2008 17:27:09 -0500 Date: Mon, 21 Jan 2008 22:20:37 +0000 From: Alan Cox To: James Bottomley Cc: FUJITA Tomonori , psybases@gmail.com, linux-scsi@vger.kernel.org, cebbert@redhat.com, bharrosh@panasas.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: INITIO scsi driver fails to work properly Message-ID: <20080121222037.3d8b46a1@lxorguk.ukuu.org.uk> In-Reply-To: <1200495471.3136.1.camel@localhost.localdomain> References: <1200070903.3286.28.camel@localhost.localdomain> <9f00bd9d0801130428s5e4c034apf21052b918470f99@mail.gmail.com> <1200410166.9273.4.camel@localhost.localdomain> <20080116145916A.fujita.tomonori@lab.ntt.co.jp> <1200495471.3136.1.camel@localhost.localdomain> X-Mailer: Claws Mail 3.2.0 (GTK+ 2.12.3; x86_64-redhat-linux-gnu) Organization: Red Hat UK Cyf., Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, Y Deyrnas Gyfunol. Cofrestrwyd yng Nghymru a Lloegr o'r rhif cofrestru 3798903 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1975 Lines: 66 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: -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/