Re: INITIO scsi driver fails to work properly

2008-01-25 Thread Filippos Papadopoulos
On 1/25/08, James Bottomley [EMAIL PROTECTED] wrote:

 Actually, I suspect your issues should be fixed by this patch:

 http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e2d435ea4084022ab88efa74214accb45b1f9e92

 Could you download 2.6.24 and try it out to see if they are?

 Thanks,

 James



Well, 2.6.24 fixes the problem.
Thanks to all of you!
-
To unsubscribe from this list: send the line unsubscribe linux-scsi in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: INITIO scsi driver fails to work properly

2008-01-22 Thread Filippos Papadopoulos
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 [EMAIL PROTECTED] 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.0 +
 +++ linux-2.6.24-rc8-mm1/drivers/scsi/initio.c  2008-01-21 14:54:48.0 
 +
 @@ -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-scsi in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: INITIO scsi driver fails to work properly

2008-01-13 Thread Filippos Papadopoulos
On 1/11/08, James Bottomley [EMAIL PROTECTED] wrote:

 On Fri, 2008-01-11 at 18:44 +0200, Filippos Papadopoulos wrote:
  On Jan 11, 2008 5:44 PM, James Bottomley
  [EMAIL PROTECTED] wrote:
   
I havent reported initio: I/O port range 0x0 is busy.
  
   Sorry ... we appear to have several reporters of different bugs in this
   thread.  That message was copied by Chuck Ebbert from a Red Hat
   bugzilla ... I was assuming it was the same problem.
  
I applied the patch on 2.6.24-rc6-git9 but unfortunatelly same thing 
happens.
  
   First off, has this driver ever worked for you in 2.6?  Just booting
   SLES9 (2.6.5) or RHEL4 (2.6.9) ... or one of their open equivalents to
   check a really old kernel would be helpful.  If you can get it to work,
   then we can proceed with a patch reversion regime based on the
   assumption that the problem is a recent commit.
 
  Yes it works under 2.6.16.13.  See the beginning of this thread, i
  mention there some things about newer versions.

 Thanks, actually, I see this:

  I tried to install OpenSUSE 10.3 (kernel 2.6.22.5) and the latest
  OpenSUSE 11.0 Alpha 0  (kernel 2.6.24-rc4) but although the initio
  drivergets loaded during the installation process, yast reports that no hard
  disk is found.

 Could you try with a vanilla 2.6.22 kernel?  The reason for all of this
 is that 2.6.22 predates Alan's conversion of this driver (which was my
 95% candidate for the source of the bug).  I want you to try the vanilla
 kernel just in case the opensuse one contains a backport.


Yes you are right. I compiled the vanilla 2.6.22 and initio driver works.
Tell me if you want to apply any patch to it.



 Thanks,

 James



-
To unsubscribe from this list: send the line unsubscribe linux-scsi in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: INITIO scsi driver fails to work properly

2008-01-11 Thread Filippos Papadopoulos
On Jan 11, 2008 7:16 AM, James Bottomley
[EMAIL PROTECTED] wrote:

 On Fri, 2008-01-04 at 02:18 +0200, Filippos Papadopoulos wrote:
  First of all let me wish a happy new year.
  I come back from the vacations and i compiled the initio driver with
 
  #define DEBUG_INTERRUPT 1
  #define DEBUG_QUEUE 1
  #define DEBUG_STATE 1
  #define INT_DISC1
 
  I used the sources from 2.6.24-rc6-git9 kernel. At kernel boot time the 
  initio
  driver prints the following:
 
   scsi: Initio INI-9X00U/UW SCSI device driver
  Find scb at c0c0
  Append pend scb c0c0;
 
  After 3 seconds the whole system freezes there and i have to reboot.
 
 
 
  P.S  here is the info from 'lspci -vv' running 2.6.16.13 kernel:
 
  00:08.0 SCSI storage controller: Initio Corporation 360P (rev 02)
  Subsystem: Unknown device 9292:0202
  Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
  ParErr- Stepping- SERR- FastB2B-
  Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium
  TAbort- TAbort- MAbort- SERR- PERR-
  Latency: 32, Cache Line Size 08
  Interrupt: pin A routed to IRQ 11
  Region 0: I/O ports at d000 [size=256]

 This proves the BAR0 to be non zero, but I also take it from your report
 that the

 initio: I/O port range 0x0 is busy.

 message is also gone?



I havent reported initio: I/O port range 0x0 is busy.


  Region 1: Memory at ef00 (32-bit, non-prefetchable) [size=4K]
  [virtual] Expansion ROM at 5000 [disabled] [size=128K]
  

 I think there's still one remaining bug from the sg_list conversion,
 namely that cblk-sglen is never set, but it is used to count the number
 of elements in the sg array.  Could you try this patch (on top of
 everything else) and see if the problem is finally fixed?


I applied the patch on 2.6.24-rc6-git9 but unfortunatelly same thing happens.


 Thanks,

 James

 ---
 diff --git a/drivers/scsi/initio.c b/drivers/scsi/initio.c
 index 01bf018..d038459 100644
 --- a/drivers/scsi/initio.c
 +++ b/drivers/scsi/initio.c
 @@ -2603,6 +2603,7 @@ static void initio_build_scb(struct initio_host * host, 
 struct scsi_ctrl_blk * c
 nseg = scsi_dma_map(cmnd);
 BUG_ON(nseg  0);
 if (nseg) {
 +   cblk-sglen = nseg;
 dma_addr = dma_map_single(host-pci_dev-dev, 
 cblk-sglist[0],
   sizeof(struct sg_entry) * 
 TOTAL_SG_ENTRY,
   DMA_BIDIRECTIONAL);



-
To unsubscribe from this list: send the line unsubscribe linux-scsi in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: INITIO scsi driver fails to work properly

2008-01-11 Thread Filippos Papadopoulos
On Jan 11, 2008 5:44 PM, James Bottomley
[EMAIL PROTECTED] wrote:
 
  I havent reported initio: I/O port range 0x0 is busy.

 Sorry ... we appear to have several reporters of different bugs in this
 thread.  That message was copied by Chuck Ebbert from a Red Hat
 bugzilla ... I was assuming it was the same problem.

  I applied the patch on 2.6.24-rc6-git9 but unfortunatelly same thing 
  happens.

 First off, has this driver ever worked for you in 2.6?  Just booting
 SLES9 (2.6.5) or RHEL4 (2.6.9) ... or one of their open equivalents to
 check a really old kernel would be helpful.  If you can get it to work,
 then we can proceed with a patch reversion regime based on the
 assumption that the problem is a recent commit.

Yes it works under 2.6.16.13.  See the beginning of this thread, i
mention there some things about newer versions.


 Thanks,

 James



-
To unsubscribe from this list: send the line unsubscribe linux-scsi in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: INITIO scsi driver fails to work properly

2008-01-03 Thread Filippos Papadopoulos
First of all let me wish a happy new year.
I come back from the vacations and i compiled the initio driver with

#define DEBUG_INTERRUPT 1
#define DEBUG_QUEUE 1
#define DEBUG_STATE 1
#define INT_DISC1

I used the sources from 2.6.24-rc6-git9 kernel. At kernel boot time the initio
driver prints the following:

 scsi: Initio INI-9X00U/UW SCSI device driver
Find scb at c0c0
Append pend scb c0c0;

After 3 seconds the whole system freezes there and i have to reboot.



P.S  here is the info from 'lspci -vv' running 2.6.16.13 kernel:

00:08.0 SCSI storage controller: Initio Corporation 360P (rev 02)
Subsystem: Unknown device 9292:0202
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium
TAbort- TAbort- MAbort- SERR- PERR-
Latency: 32, Cache Line Size 08
Interrupt: pin A routed to IRQ 11
Region 0: I/O ports at d000 [size=256]
Region 1: Memory at ef00 (32-bit, non-prefetchable) [size=4K]
[virtual] Expansion ROM at 5000 [disabled] [size=128K]

-
To unsubscribe from this list: send the line unsubscribe linux-scsi in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: INITIO scsi driver fails to work properly

2007-12-19 Thread Filippos Papadopoulos
On Dec 17, 2007 2:18 PM, Boaz Harrosh [EMAIL PROTECTED] wrote:
 I have found one problem. Please try patch [2] below and report.
 If it still fails try to enable debugging by setting with patch [1]
 these values at top of drivers/scsi/initio.c. And send dmsgs.

 Boaz



I tried patch[2] (addition of   sg++)  at 2.6.24-rc5-mm1 but the
system hangs after some seconds when the initio driver loads.
I will try patch[1] next week to see what happens.

Would it be better to open a bug report at bugzilla?





 
 patch [1]
 

 diff --git a/drivers/scsi/initio.c b/drivers/scsi/initio.c
 index 4c4465d..61edcd2 100644
 --- a/drivers/scsi/initio.c
 +++ b/drivers/scsi/initio.c
 @@ -138,10 +138,10 @@ static struct pci_device_id i91u_pci_devices[] = {
  };
  MODULE_DEVICE_TABLE(pci, i91u_pci_devices);

 -#define DEBUG_INTERRUPT 0
 -#define DEBUG_QUEUE 0
 -#define DEBUG_STATE 0
 -#define INT_DISC   0
 +#define DEBUG_INTERRUPT 1
 +#define DEBUG_QUEUE 1
 +#define DEBUG_STATE 1
 +#define INT_DISC   1

  /*--- forward references ---*/
  static struct scsi_ctrl_blk *initio_find_busy_scb(struct initio_host * host, 
 u16 tarlun);


 ---
 patch [2]
 ---
 git-diff --stat -p
  drivers/scsi/initio.c |1 +
  1 files changed, 1 insertions(+), 0 deletions(-)

 diff --git a/drivers/scsi/initio.c b/drivers/scsi/initio.c
 index 4c4465d..61595f6 100644
 --- a/drivers/scsi/initio.c
 +++ b/drivers/scsi/initio.c
 @@ -2616,6 +2616,7 @@ static void initio_build_scb(struct initio_host * host, 
 struct scsi_ctrl_blk * c
 scsi_for_each_sg(cmnd, sglist, cblk-sglen, i) {
 sg-data = cpu_to_le32((u32)sg_dma_address(sglist));
 total_len += sg-len = 
 cpu_to_le32((u32)sg_dma_len(sglist));
 +   sg++;
 }

 cblk-buflen = (scsi_bufflen(cmnd)  total_len) ?



-
To unsubscribe from this list: send the line unsubscribe linux-scsi in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: INITIO scsi driver fails to work properly

2007-12-17 Thread Filippos Papadopoulos
On Dec 17, 2007 1:18 PM, Andrew Morton [EMAIL PROTECTED] wrote:

 On Mon, 17 Dec 2007 11:39:47 +0200 Filippos Papadopoulos [EMAIL 
 PROTECTED] wrote:

  Hi,
  I have got an INITIO 9100 UW SCSI Controller with an IBM
  IC35L036UWD210-0 scsi hard disk on a 32 bit x86 system.
  Currently i have SUSE 10.1 (Kernel 2.6.16).
 
  I tried to install OpenSUSE 10.3 (kernel 2.6.22.5) and the latest
  OpenSUSE 11.0 Alpha 0  (kernel 2.6.24-rc4) but although the initio
  driver
  gets loaded during the installation process, yast reports that no hard
  disk is found. I believe that this isnt a bug in suse's yast but a
  problem
  in the initio scsi driver because i also tried to install Fedora 8
  (kernel 2.6.23) with the same problem.
  I have seen the relevant thread Conflict when loading initio driver
  and i suppose that the initio driver isnt fixed yet.
  I can help testing the new patches in the initio driver if someone is
  interested.

 initio doesn't seem to have a maintainer...

 Are you able to identify any earlier kernel which worked OK?


I have this PC configuration since 2002. The initio driver worked
perfectly with 2.4 kernel series.
With the release of 2.6 kernel series the driver had been marked as
BROKEN and fixed at 2.6.9
(see at 
http://www.gossamer-threads.com/lists/linux/kernel/482582?search_string=SCSI%20updates%20for%202.6.9;#482582
  Christoph Hellwig  -don't mark the initio 9100 driver broken)


 Maybe it's a new device?  If you can get the `lspci -vvxx' output
 for that device we can take a look.


No its not a new device.
-
To unsubscribe from this list: send the line unsubscribe linux-scsi in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html