Re: dc395x: Report

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 13 Aug 2006, Robert Annessi wrote:

> On 08/12/06 20:06, Guennadi Liakhovetski wrote:
> > Great, maybe you still could test the patch below (applied on the top of 
> > all my patches until now)?
> 
> Sure.
> 
> The warning still occurs (I used 2.6.18-rc4):
> 
> dc395x: Tekram DC395(U/UW/F), DC315(U) - ASIC TRM-S1040 v2.05, 2004/03/08
> PCI: setting IRQ 11 as level-triggered
> PCI: Found IRQ 11 for device 0000:00:02.0
> dc395x: Used settings: AdapterID=07, Speed=0(20.0MHz), dev_mode=0x37
> dc395x:                AdaptMode=0x4e, Tags=0(01), DelayReset=1s
> dc395x: (Wide) Connectors: int68  Termination: Auto Low High
> dc395x: Performing initial SCSI bus reset
> scsi0 : Tekram DC395(U/UW/F), DC315(U) - ASIC TRM-S1040 v2.05, 2004/03/08
> dc395x: Target 00: Wide16 Sync: 48ns Offset 15 (41.7 MB/s)
>   Vendor: SEAGATE   Model: ST3146807LC       Rev: 0007
>   Type:   Direct-Access                      ANSI SCSI revision: 03
> SCSI device sda: 286749488 512-byte hdwr sectors (146816 MB)
> dc395x: inconsistent counters: FIFOCNT 64, left 16777215, wide

Emn, sorry, I have to ask - are you sure this is the correct output 
(applied the patch, recompiled and reloaded the driver)? The output looks 
EXACTLY the same as last time, and this is pretty strange. Well, there is 
still one semi-logical explanation I can come up with:

at first FIFOCNT = 1 and SCSICNT = 0xfffffe, therefore d_left_counter = 
0xfffffe + (1 << 1) = 0x1000000. Then after one loop iteration 
d_left_counter = 0xffffff, and now FIFOCNT = 0x40. So we break out of the 
loop with the above funny value of d_left_counter. If this is the case, 
well, I don't know what this value of SCSICNT means and what to do with 
it (in the absence of a datasheet).

To verify this could you, please, replace the printk at line 2335 with 
this one:

					printk(KERN_WARNING "dc395x: inconsistent counters: "
					       "FIFOCNT %u, SCSICNT %u, left %u, %s\n", fc, sc, d_left_counter,
					       srb->dcb->sync_period & WIDE_SYNC ?
					       "wide" : "narrow");

Thanks
Guennadi
---
Guennadi Liakhovetski
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux