From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754796AbYAVRuu (ORCPT ); Tue, 22 Jan 2008 12:50:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752490AbYAVRul (ORCPT ); Tue, 22 Jan 2008 12:50:41 -0500 Received: from wx-out-0506.google.com ([66.249.82.235]:45979 "EHLO wx-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752079AbYAVRuk (ORCPT ); Tue, 22 Jan 2008 12:50:40 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=O9+CIZS9WAacU7zK2JMyy9cv9n2g83AaV0ZiHI8PBcFUnHv41P5Q8dkerHtut1l3O4awvCwN9gt9dZ6a5QLmYgPz1fIdVlHWd4JxIH0nOdXU8lbLDkcKEVR15OWXqr0RNRD6JPvpl5j8MVmJkjyNZs637nRSyVn1urZfclzr8iY= Message-ID: <9f00bd9d0801220950r49de29abl8fbb2495a65c9a10@mail.gmail.com> Date: Tue, 22 Jan 2008 19:50:37 +0200 From: "Filippos Papadopoulos" To: "Alan Cox" Subject: Re: INITIO scsi driver fails to work properly Cc: "James Bottomley" , "FUJITA Tomonori" , linux-scsi@vger.kernel.org, cebbert@redhat.com, bharrosh@panasas.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org In-Reply-To: <20080121222037.3d8b46a1@lxorguk.ukuu.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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> <20080121222037.3d8b46a1@lxorguk.ukuu.org.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I get the following: SAH SSH SCB Q SCB EXEC SCB EXEC DONE After ~3 secs the system freezes. On Jan 22, 2008 12:20 AM, Alan Cox wrote: > 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: >