Re: SC1200 failure in 2.6.23 and 2.6.24-rc1-git10

2007-11-08 Thread Alan Cox
On Thu, 8 Nov 2007 09:16:35 +0200
Denys Fedoryshchenko [EMAIL PROTECTED] wrote:

 Does it work as kernel parameter?
 
 I tried libata_dma_mask=0x4 and to set 0xf or 0xff - doesn't help. How to 
 disable DMA in libata, if it is compiled in kernel?

libata.dma_mask=3

will leave you with CD and disk DMA but not CF DMA

(Note libata[DOT] not underscore)
-
To unsubscribe from this list: send the line unsubscribe linux-ide in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: SC1200 failure in 2.6.23 and 2.6.24-rc1-git10

2007-11-08 Thread Jeff Garzik
On Thu, Nov 08, 2007 at 06:44:31PM +0200, Denys Fedoryshchenko wrote:
 Doesn't help
 
 WRAP ~ #cat /proc/cmdline
 console=ttyS0,38400n8 libata.dma_mask=3

It's libata.dma if its built into the kernel, or 'dma' module option
if built as a kernel module.

Jeff



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


Re: SC1200 failure in 2.6.23 and 2.6.24-rc1-git10

2007-11-08 Thread Alan Cox
On Thu, 8 Nov 2007 21:56:32 +0200
Denys Fedoryshchenko [EMAIL PROTECTED] wrote:

 Thanks, it works like that.
 
 Seems in libata there is no fall-back to non-DMA mode, if DMA didn't work.


It should be falling back from UDMA or MWDMA to PIO, if not please file a
bug

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


Re: SC1200 failure in 2.6.23 and 2.6.24-rc1-git10

2007-11-08 Thread Denys Fedoryshchenko
Thanks, it works like that.

Seems in libata there is no fall-back to non-DMA mode, if DMA didn't work.

On Thu, 8 Nov 2007 12:31:39 -0500, Jeff Garzik wrote
 On Thu, Nov 08, 2007 at 06:44:31PM +0200, Denys Fedoryshchenko wrote:
  Doesn't help
  
  WRAP ~ #cat /proc/cmdline
  console=ttyS0,38400n8 libata.dma_mask=3
 
 It's libata.dma if its built into the kernel, or 'dma' module 
 option if built as a kernel module.
 
   Jeff


--
Denys Fedoryshchenko
Technical Manager
Virtual ISP S.A.L.

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


Re: SC1200 failure in 2.6.23 and 2.6.24-rc1-git10

2007-11-08 Thread Tejun Heo
Denys Fedoryshchenko wrote:
 Thanks, it works like that.
 
 Seems in libata there is no fall-back to non-DMA mode, if DMA didn't work.

There is, it's just too conservative about that.  With improvements
pending for 2.6.24, it should be quite snappy at falling back to PIO if
configured transfer mode doesn't seem to work at all (consecutive IO
command failures after transfer mode configuration change).

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


Re: SC1200 failure in 2.6.23 and 2.6.24-rc1-git10

2007-11-07 Thread James Andrewartha
Denys Fedoryshchenko wrote:
 On Tue, 6 Nov 2007 22:15:21 -0800, Andrew Morton wrote
 On Thu, 1 Nov 2007 23:30:13 +0200 Denys [EMAIL PROTECTED] wrote:
 Finally i got full DMESG with 1GB card till end. Seems not readable too.
 scsi0 : sc1200
 scsi1 : sc1200
 ata1: PATA max UDMA/33 cmd 0x1f0 ctl 0x3f6 bmdma 0xfc00 irq 14
 ata2: DUMMY
 ata1.00: CFA: SanDisk SDCFH-1024, HDX 3.07, max MWDMA2
 ata1.00: 2001888 sectors, multi 0: LBA
 ata1.00: configured for MWDMA2
 scsi 0:0:0:0: Direct-Access ATA  SanDisk SDCFH-10 HDX  PQ: 0 
 ANSI: 5
 sd 0:0:0:0: [sda] 2001888 512-byte hardware sectors (1025 MB)
 sd 0:0:0:0: [sda] Write Protect is off
 sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't 
 support 
 DPO or FUA
 sd 0:0:0:0: [sda] 2001888 512-byte hardware sectors (1025 MB)
 sd 0:0:0:0: [sda] Write Protect is off
 sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't 
 support 
 DPO or FUA
  sda:4Clocksource tsc unstable (delta = -334501841 ns)
 Time: pit clocksource has been installed.
 ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
 ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 4096 
 in
  res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
 ata1.00: status: { DRDY }
 ata1: soft resetting link
 ata1.00: configured for MWDMA2
 ata1: EH complete
 ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
 ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 4096 
 in
  res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
 ata1.00: status: { DRDY }
 ata1: soft resetting link
 ata1.00: configured for MWDMA2
 ata1: EH complete
 ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
 ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 4096 
 in
  res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
 ata1.00: status: { DRDY }
 ata1: soft resetting link
 ata1.00: configured for MWDMA2
 ata1: EH complete
 ata1.00: limiting speed to MWDMA1:PIO4
 ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
 ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 4096 
 in
  res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
 ata1.00: status: { DRDY }
 ata1: soft resetting link
 ata1.00: configured for MWDMA1
 ata1: EH complete
 ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
 ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 4096 
 in
  res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
 ata1.00: status: { DRDY }
 ata1: soft resetting link
 ata1.00: configured for MWDMA1
 ata1: EH complete
 ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
 ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 4096 
 in
  res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
 ata1.00: status: { DRDY }
 ata1: soft resetting link
 ata1.00: configured for MWDMA1
 sd 0:0:0:0: [sda] Result: hostbyte=0x00 driverbyte=0x08
 sd 0:0:0:0: [sda] Sense Key : 0xb [current] [descriptor]
 Descriptor sense data with sense descriptors (in hex):
 72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
 00 00 00 00
 sd 0:0:0:0: [sda] ASC=0x0 ASCQ=0x0
 end_request: I/O error, dev sda, sector 0
 Buffer I/O error on device sda, logical block 0
 ata1: EH complete
 ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
 ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 4096 
 in
  res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
 ata1.00: status: { DRDY }
 ata1: soft resetting link
 ata1.00: configured for MWDMA1
 ata1: EH complete
 ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
 ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 4096 
 in
  res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
 ata1.00: status: { DRDY }
 ata1: soft resetting link
 ata1.00: configured for MWDMA1
 ata1: EH complete
 ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
 ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 4096 
 in
  res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
 ata1.00: status: { DRDY }
 ata1: soft resetting link
 ata1.00: configured for MWDMA1
 ata1: EH complete
 ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
 ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 4096 
 in
  res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
 ata1.00: status: { DRDY }
 ata1: soft resetting link
 ata1.00: configured for MWDMA1
 ata1: EH complete
 ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
 ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 4096 
 in
  res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
 ata1.00: status: { DRDY }
 ata1: soft resetting link
 ata1.00: configured for MWDMA1
 ata1: EH complete
 ata1.00: exception Emask 0x0 

Re: SC1200 failure in 2.6.23 and 2.6.24-rc1-git10

2007-11-07 Thread Mark Lord

WRAP ~ #./hdparm -I /dev/hda

/dev/hda:

ATAPI Write-once device, with non-removable media
Model Number:   SanDisk SDP3B-16
Serial Number:  24313671615
Firmware Revision:  vdd 1.00
Standards:
Likely used: 3
Configuration:
DRQ response: 50us.
Packet size: Unknown
Capabilities:
LBA, IORDY(may be)(cannot be disabled)
Buffer size: 1.0kB  bytes avail on r/w long: 4
DMA: not supported
PIO: pio0 pio1


ATAPI Write-once device  ???

That cannot be correct (??).  Is this with hdparm-7.7 (latest sourceforge) ??
Can you show us the hdparm --Istdout output as well, please.

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


Re: SC1200 failure in 2.6.23 and 2.6.24-rc1-git10

2007-11-07 Thread Denys Fedoryshchenko
On Tue, 6 Nov 2007 22:15:21 -0800, Andrew Morton wrote
  On Thu, 1 Nov 2007 23:30:13 +0200 Denys [EMAIL PROTECTED] wrote:
  Finally i got full DMESG with 1GB card till end. Seems not readable too.
  
  Linux version 2.6.24-rc1-git10-embedded ([EMAIL PROTECTED]) (gcc 
  version 4.1.2 (Gentoo 4.1.2 p1.0.1)) #1 Thu Nov 1 23:12:53 EET 2007
  BIOS-provided physical RAM map:
   BIOS-e801:  - 0009f000 (usable)
   BIOS-e801: 0010 - 0400 (usable)
  64MB LOWMEM available.
  Zone PFN ranges:
DMA 0 - 4096
Normal   4096 -16384
  Movable zone start PFN for each node
  early_node_map[1] active PFN ranges
  0:0 -16384
  DMI not present or invalid.
  Allocating PCI resources starting at 1000 (gap: 0400:fc00)
  Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
  Kernel command line: console=ttyS0,38400n8
  Initializing CPU#0
  PID hash table entries: 256 (order: 8, 1024 bytes)
  Detected 266.627 MHz processor.
  Console: colour dummy device 80x25
  console [ttyS0] enabled
  Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
  Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
  Memory: 62836k/65536k available (1020k kernel code, 2292k reserved, 317k 
  data, 112k init, 0k highmem)
  virtual kernel memory layout:
  fixmap  : 0xb000 - 0xf000   (  16 kB)
  vmalloc : 0xc480 - 0x9000   ( 951 MB)
  lowmem  : 0xc000 - 0xc400   (  64 MB)
.init : 0xc0252000 - 0xc026e000   ( 112 kB)
.data : 0xc01ff111 - 0xc024e6f4   ( 317 kB)
.text : 0xc010 - 0xc01ff111   (1020 kB)
  Checking if this processor honours the WP bit even in supervisor mode... 
Ok.
  SLUB: Genslabs=11, HWalign=32, Order=0-1, MinObjects=4, CPUs=1, Nodes=1
  Calibrating delay using timer specific routine.. 534.41 BogoMIPS 
(lpj=1068836)
  Mount-cache hash table entries: 512
  Compat vDSO mapped to e000.
  CPU: NSC Unknown stepping 01
  Checking 'hlt' instruction... OK.
  Freeing SMP alternatives: 0k freed
  net_namespace: 64 bytes
  NET: Registered protocol family 16
  PCI: PCI BIOS revision 2.10 entry at 0xfc3ad, last bus=0
  PCI: Using configuration type 1
  Setting up standard PCI resources
  SCSI subsystem initialized
  PCI: Probing PCI hardware
  PCI: Device :00:12.5 not found by BIOS
  Time: tsc clocksource has been installed.
  NET: Registered protocol family 2
  IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
  TCP established hash table entries: 2048 (order: 2, 16384 bytes)
  TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
  TCP: Hash tables configured (established 2048 bind 2048)
  TCP reno registered
  scx200: NatSemi SCx200 Driver
  scx200: GPIO base 0xf400
  scx200: Configuration Block base 0x9000
  io scheduler noop registered (default)
  Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
  serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a NS16550A
  serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a NS16550A
  natsemi dp8381x driver, version 2.1, Sept 11, 2006
originally by Donald Becker [EMAIL PROTECTED]
2.4.x kernel port by Jeff Garzik, Tjeerd Mulder
  natsemi eth0: NatSemi DP8381[56] at 0x8000 (:00:0e.0), 
  00:0d:b9:00:8a:30, IRQ 10, port TP.
  scsi0 : sc1200
  scsi1 : sc1200
  ata1: PATA max UDMA/33 cmd 0x1f0 ctl 0x3f6 bmdma 0xfc00 irq 14
  ata2: DUMMY
  ata1.00: CFA: SanDisk SDCFH-1024, HDX 3.07, max MWDMA2
  ata1.00: 2001888 sectors, multi 0: LBA
  ata1.00: configured for MWDMA2
  scsi 0:0:0:0: Direct-Access ATA  SanDisk SDCFH-10 HDX  PQ: 0 
ANSI: 5
  sd 0:0:0:0: [sda] 2001888 512-byte hardware sectors (1025 MB)
  sd 0:0:0:0: [sda] Write Protect is off
  sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't 
support 
  DPO or FUA
  sd 0:0:0:0: [sda] 2001888 512-byte hardware sectors (1025 MB)
  sd 0:0:0:0: [sda] Write Protect is off
  sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't 
support 
  DPO or FUA
   sda:4Clocksource tsc unstable (delta = -334501841 ns)
  Time: pit clocksource has been installed.
  ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
  ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 4096 
in
   res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
  ata1.00: status: { DRDY }
  ata1: soft resetting link
  ata1.00: configured for MWDMA2
  ata1: EH complete
  ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
  ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 4096 
in
   res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
  ata1.00: status: { DRDY }
  ata1: soft resetting link
  ata1.00: configured for MWDMA2
  ata1: EH complete
  ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
  ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 4096 
in
   res 

Re: SC1200 failure in 2.6.23 and 2.6.24-rc1-git10

2007-11-07 Thread Denys Fedoryshchenko
On Thu, 08 Nov 2007 00:23:10 +0900, James Andrewartha wrote
 Denys Fedoryshchenko wrote:
  On Tue, 6 Nov 2007 22:15:21 -0800, Andrew Morton wrote
  On Thu, 1 Nov 2007 23:30:13 +0200 Denys [EMAIL PROTECTED] wrote:
  Finally i got full DMESG with 1GB card till end. Seems not readable too.
  scsi0 : sc1200
  scsi1 : sc1200
  ata1: PATA max UDMA/33 cmd 0x1f0 ctl 0x3f6 bmdma 0xfc00 irq 14
  ata2: DUMMY
  ata1.00: CFA: SanDisk SDCFH-1024, HDX 3.07, max MWDMA2
  ata1.00: 2001888 sectors, multi 0: LBA
  ata1.00: configured for MWDMA2
  scsi 0:0:0:0: Direct-Access ATA  SanDisk SDCFH-10 HDX  PQ: 0 
  ANSI: 5
  sd 0:0:0:0: [sda] 2001888 512-byte hardware sectors (1025 MB)
  sd 0:0:0:0: [sda] Write Protect is off
  sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't 
  support 
  DPO or FUA
  sd 0:0:0:0: [sda] 2001888 512-byte hardware sectors (1025 MB)
  sd 0:0:0:0: [sda] Write Protect is off
  sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't 
  support 
  DPO or FUA
   sda:4Clocksource tsc unstable (delta = -334501841 ns)
  Time: pit clocksource has been installed.
  ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
  ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 
4096 
  in
   res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
  ata1.00: status: { DRDY }
  ata1: soft resetting link
  ata1.00: configured for MWDMA2
  ata1: EH complete
  ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
  ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 
4096 
  in
   res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
  ata1.00: status: { DRDY }
  ata1: soft resetting link
  ata1.00: configured for MWDMA2
  ata1: EH complete
  ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
  ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 
4096 
  in
   res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
  ata1.00: status: { DRDY }
  ata1: soft resetting link
  ata1.00: configured for MWDMA2
  ata1: EH complete
  ata1.00: limiting speed to MWDMA1:PIO4
  ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
  ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 
4096 
  in
   res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
  ata1.00: status: { DRDY }
  ata1: soft resetting link
  ata1.00: configured for MWDMA1
  ata1: EH complete
  ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
  ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 
4096 
  in
   res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
  ata1.00: status: { DRDY }
  ata1: soft resetting link
  ata1.00: configured for MWDMA1
  ata1: EH complete
  ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
  ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 
4096 
  in
   res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
  ata1.00: status: { DRDY }
  ata1: soft resetting link
  ata1.00: configured for MWDMA1
  sd 0:0:0:0: [sda] Result: hostbyte=0x00 driverbyte=0x08
  sd 0:0:0:0: [sda] Sense Key : 0xb [current] [descriptor]
  Descriptor sense data with sense descriptors (in hex):
  72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
  00 00 00 00
  sd 0:0:0:0: [sda] ASC=0x0 ASCQ=0x0
  end_request: I/O error, dev sda, sector 0
  Buffer I/O error on device sda, logical block 0
  ata1: EH complete
  ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
  ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 
4096 
  in
   res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
  ata1.00: status: { DRDY }
  ata1: soft resetting link
  ata1.00: configured for MWDMA1
  ata1: EH complete
  ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
  ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 
4096 
  in
   res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
  ata1.00: status: { DRDY }
  ata1: soft resetting link
  ata1.00: configured for MWDMA1
  ata1: EH complete
  ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
  ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 
4096 
  in
   res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
  ata1.00: status: { DRDY }
  ata1: soft resetting link
  ata1.00: configured for MWDMA1
  ata1: EH complete
  ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
  ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 
4096 
  in
   res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
  ata1.00: status: { DRDY }
  ata1: soft resetting link
  ata1.00: configured for MWDMA1
  ata1: EH complete
  ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
  ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 
4096 
  in
   res 

Re: SC1200 failure in 2.6.23 and 2.6.24-rc1-git10

2007-11-07 Thread Denys Fedoryshchenko
On Wed, 07 Nov 2007 14:12:55 -0500, Mark Lord wrote
  WRAP ~ #./hdparm -I /dev/hda
  
  /dev/hda:
  
  ATAPI Write-once device, with non-removable media
  Model Number:   SanDisk SDP3B-16
  Serial Number:  24313671615
  Firmware Revision:  vdd 1.00
  Standards:
  Likely used: 3
  Configuration:
  DRQ response: 50us.
  Packet size: Unknown
  Capabilities:
  LBA, IORDY(may be)(cannot be disabled)
  Buffer size: 1.0kB  bytes avail on r/w long: 4
  DMA: not supported
  PIO: pio0 pio1
 
 ATAPI Write-once device  ???
 
 That cannot be correct (??).  Is this with hdparm-7.7 (latest 
 sourceforge) ?? Can you show us the hdparm --Istdout output as 
 well, please.
 
 thanks.
Yes latest hdparm-7.7. But maybe it is related to git kernel? Cause lines
[8.658485] hda: applying conservative PIO downgrade
[8.674009] hda: host max PIO4 wanted PIO255(auto-tune) selected PIO0
[8.674264] hda: set_drive_speed_status: status=0x51 { DriveReady SeekComplet
e Error }
[8.698231] hda: set_drive_speed_status: error=0x04 { DriveStatusError }
[8.718590] hda: applying conservative PIO downgrade
[8.734085] hda: host max PIO4 wanted PIO255(auto-tune) selected PIO0
[8.734337] hda: set_drive_speed_status: status=0x51 { DriveReady SeekComplet
e Error }
[8.758315] hda: set_drive_speed_status: error=0x04 { DriveStatusError }

appeared only in those kernels (2.6.24-git/rc)


Anyways:

WRAP ~ #./hdparm --Istdout /dev/hda

/dev/hda:
844a 01ea  0002  0240 0020 
7a80  2020 2020 2020 2020 2032 3433
3133 3637 3136 3135 0002 0002 0004 7664
6420 312e 3030 5361 6e44 6973 6b20 5344
5033 422d 3136 2020 2020 2020 2020 2020
2020 2020 2020 2020 2020 2020 2020 0001
 0200  0100  0001 01ea 0002
0020 7a80  0100 7a80   
       
       
       
       
       
       
       
       
       2020
2020 2020 2020 2020 2020 2032 3433 3133
3637 3136 3135     
       
       
       
       
       
       
       
       
       
       
       
       
       




--
Denys Fedoryshchenko
Technical Manager
Virtual ISP S.A.L.

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


Re: SC1200 failure in 2.6.23 and 2.6.24-rc1-git10

2007-11-07 Thread Denys Fedoryshchenko
This is another flash (1GB probably original Sandisk), 16MB one is called 
SHARP, and it is 2-4 years old. Maybe it is some noname with incorrect 
identification data. But it works well in USB card reader.

[   12.434864] ide: Assuming 33MHz system bus speed for PIO modes; override 
with idebus=xx
[   12.459739] SC1200: IDE controller (0x100b:0x0502 rev 0x01) at  PCI slot 
:00:12.2
[   12.483360] SC1200: not 100% native mode: will probe irqs later
[   12.501235] ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hda:pio, 
hdb:pio
[   12.523191] ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc:pio, 
hdd:pio
[   12.545128] Probing IDE interface ide0...
[   12.558292] Clocksource tsc unstable (delta = -497091188 ns)
[   12.575348] Time: pit clocksource has been installed.
[   12.593376] hda: SanDisk SDCFH-1024, CFA DISK drive
[   12.608342] hda: applying conservative PIO downgrade
[   12.623867] hda: host max PIO4 wanted PIO255(auto-tune) selected PIO1
[   12.624015] hda: selected mode 0x22
[   12.624308] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
[   12.638802] Probing IDE interface ide1...
[   12.653412] hda: max request size: 128KiB
[   12.665560] hda: 2001888 sectors (1024 MB) w/1KiB Cache, CHS=1986/16/63, 
DMA
[   12.687374]  hda:4hda: dma_timer_expiry: dma status == 0x21
[   12.906900] hda: DMA timeout error
[   12.917152]  ide_dma_end dma_stat=21 err=1 newerr=0
[   12.931812] hda: dma timeout error: status=0x58 { DriveReady SeekComplete 
DataRequest }
[   12.956039] ide: failed opcode was: unknown
[   12.968807] hda: DMA disabled
[   12.978108] ide0: reset: success
[   12.989416]  hda1
[   12.998883] scx200_wdt: NatSemi SCx200 Watchdog Driver
[   12.998957] scx200_wdt: timer margin 60 seconds
[   13.012656] scx200_wdt: disabling watchdog timer
[   13.013427] cpuidle: using governor ladder
[   13.025906] cpuidle: using governor menu
[   13.037808] enabling scx200 high-res timer (1 MHz +0 ppm)
[   13.054084] Netfilter messages via NETLINK v0.30.
[   13.068256] Time: scx200_hrt clocksource has been installed.
[   13.085331] Switched to high resolution mode on CPU 0
[   13.100573] TCP cubic registered
[   13.110312] NET: Registered protocol family 1
[   13.123516] NET: Registered protocol family 17
[   13.136915] Using IPI Shortcut mode
[   13.154057] Freeing unused kernel memory: 680k freed
[   14.340096] eth0: DSPCFG accepted after 0 usec.
[   14.353718] eth0: link up.
[   14.361893] eth0: Setting full-duplex based on negotiated link capability.

here i am trying to mount partition (1Gb) /dev/hda1 to /mnt

[   14.456362] hda: dma_timer_expiry: dma status == 0x21
[   14.491812] hda: DMA timeout error
[   14.502061]  ide_dma_end dma_stat=21 err=1 newerr=0
[   14.516718] hda: dma timeout error: status=0x58 { DriveReady SeekComplete 
DataRequest }
[   14.540944] ide: failed opcode was: unknown
[   14.553712] hda: DMA disabled
[   14.562712] ide0: reset: success
[   14.789644] hda: dma_timer_expiry: dma status == 0x21
[   14.862229] hda: DMA timeout error
[   14.872491]  ide_dma_end dma_stat=21 err=1 newerr=0
[   14.887148] hda: dma timeout error: status=0x58 { DriveReady SeekComplete 
DataRequest }
[   14.911375] ide: failed opcode was: unknown
[   14.924143] hda: DMA disabled
[   14.933142] ide0: reset: success
[   14.988000] hda: dma_timer_expiry: dma status == 0x21
[   15.023352] hda: DMA timeout error
[   15.033608]  ide_dma_end dma_stat=21 err=1 newerr=0
[   15.048267] hda: dma timeout error: status=0x58 { DriveReady SeekComplete 
DataRequest }
[   15.072494] ide: failed opcode was: unknown
[   15.085261] hda: DMA disabled
[   15.094269] ide0: reset: success

and it is failed.

WRAP ~ #./hdparm -I /dev/hda

/dev/hda:

CompactFlash ATA device, with removable media
Model Number:   SanDisk SDCFH-1024
Serial Number:  111718F1705D0016
Firmware Revision:  HDX 3.07
Standards:
Supported: 4
Likely used: 4
Configuration:
Logical max current
cylinders   19861986
heads   16  16
sectors/track   63  63
--
CHS current addressable sectors:2001888
LBAuser addressable sectors:2001888
device size with M = 1024*1024: 977 MBytes
device size with M = 1000*1000:1024 MBytes (1 GB)
Capabilities:
LBA, IORDY(may be)(cannot be disabled)
Standby timer values: spec'd by Vendor
R/W multiple sector transfer: Max = 4   Current = 0
DMA: mdma0 mdma1 mdma2 (?)
 Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
 Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
Enabled Supported:
   *CFA feature set

WRAP ~ #./hdparm --Istdout /dev/hda

/dev/hda:
848a 07c2  0010  0240 003f 001e
8be0  2020 2020 3131 3137 3138 4631
3730 3544 3030 3136 0002 0002 0004 4844
5820 332e 3037 5361 6e44 6973 6b20 5344
4346 482d 3130 3234 

Re: SC1200 failure in 2.6.23 and 2.6.24-rc1-git10

2007-11-07 Thread Mark Lord

Denys Fedoryshchenko wrote:

On Wed, 07 Nov 2007 14:12:55 -0500, Mark Lord wrote

WRAP ~ #./hdparm -I /dev/hda

/dev/hda:

ATAPI Write-once device, with non-removable media
Model Number:   SanDisk SDP3B-16
Serial Number:  24313671615
Firmware Revision:  vdd 1.00
Standards:
Likely used: 3
Configuration:
DRQ response: 50us.
Packet size: Unknown
Capabilities:
LBA, IORDY(may be)(cannot be disabled)
Buffer size: 1.0kB  bytes avail on r/w long: 4
DMA: not supported
PIO: pio0 pio1

ATAPI Write-once device  ???

That cannot be correct (??).  Is this with hdparm-7.7 (latest 
sourceforge) ?? Can you show us the hdparm --Istdout output as 
well, please.


thanks.

Yes latest hdparm-7.7.

...


WRAP ~ #./hdparm --Istdout /dev/hda

/dev/hda:
844a 01ea  0002  0240 0020 

..

CFA spec requires 848a in word[0], not 844a, which explains
why hdparm thought it might be ATAPI.  I've updated my hdparm
source to detect this for hdparm-7.8 (unreleased).
That card (16MB) is definitely buggy.
But your other (1GB) card looks fine.

Thanks.  Somebody else may help with the libata issue.



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


Re: SC1200 failure in 2.6.23 and 2.6.24-rc1-git10

2007-11-07 Thread Alan Cox
 CFA spec requires 848a in word[0], not 844a, which explains
 why hdparm thought it might be ATAPI.  I've updated my hdparm
 source to detect this for hdparm-7.8 (unreleased).
 That card (16MB) is definitely buggy.
 But your other (1GB) card looks fine.
 
 Thanks.  Somebody else may help with the libata issue.

848A is the preferred configuration value

The use of 044A is also allowed in the case of it being non-removable.
Guess someone got muddled up in the middle.

844A is a bit iffy and it should still be detectable as Word 83 bit 2
should be set ?


As to the old IDE (not libata ?) issue - I suspect a convertor without
DMA support as a first guess.

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


Re: SC1200 failure in 2.6.23 and 2.6.24-rc1-git10

2007-11-07 Thread Jeff Garzik
On Wed, Nov 07, 2007 at 02:12:55PM -0500, Mark Lord wrote:
 That cannot be correct (??).  Is this with hdparm-7.7 (latest sourceforge) 
 ??
 Can you show us the hdparm --Istdout output as well, please.

If this is applicable...  FWIW hdparm was only recently (in past 72
hours) updated from 6.9 to 7.7 in Fedora...

Jeff



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


Re: SC1200 failure in 2.6.23 and 2.6.24-rc1-git10

2007-11-07 Thread Mark Lord

Jeff Garzik wrote:

On Wed, Nov 07, 2007 at 02:12:55PM -0500, Mark Lord wrote:
That cannot be correct (??).  Is this with hdparm-7.7 (latest sourceforge) 
??

Can you show us the hdparm --Istdout output as well, please.


If this is applicable...  FWIW hdparm was only recently (in past 72
hours) updated from 6.9 to 7.7 in Fedora...

Jeff


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


Re: SC1200 failure in 2.6.23 and 2.6.24-rc1-git10

2007-11-07 Thread Bartlomiej Zolnierkiewicz
On Thursday 08 November 2007, Denys Fedoryshchenko wrote:
 2.6.24-rc2 not working very well
 
 
 dmesg
 [   12.386395] Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
 [   12.405579] ide: Assuming 33MHz system bus speed for PIO modes; override 
 with idebus=xx
 [   12.430441] SC1200: IDE controller (0x100b:0x0502 rev 0x01) at  PCI slot 
 :00:12.2
 [   12.454070] SC1200: not 100% native mode: will probe irqs later
 [   12.471947] ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hda:pio, 
 hdb:pio
 [   12.493873] ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc:pio, 
 hdd:pio
 [   12.515810] Probing IDE interface ide0...
 [   12.528810] Clocksource tsc unstable (delta = -497423729 ns)
 [   12.545888] Time: pit clocksource has been installed.
 [   12.563379] hda: SanDisk SDCFH-1024, CFA DISK drive
 [   12.578340] hda: applying conservative PIO downgrade
 [   12.593869] hda: host max PIO4 wanted PIO255(auto-tune) selected PIO1
 [   12.594006] hda: MW DMA 2 mode selected
 [   12.594297] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
 [   12.608778] Probing IDE interface ide1...
 [   12.623192] hda: max request size: 128KiB
 [   12.635322] hda: 2001888 sectors (1024 MB) w/1KiB Cache, CHS=1986/16/63, 
 DMA
 [   12.657134]  hda:4hda: dma_timer_expiry: dma status == 0x21
 [   12.865846] hda: DMA timeout error
 [   12.876092]  ide_dma_end dma_stat=21 err=1 newerr=0
 [   12.890753] hda: dma timeout error: status=0x58 { DriveReady SeekComplete 
 DataRequest }
 [   12.914977] ide: failed opcode was: unknown
 [   12.927743] hda: DMA disabled
 [   12.937035] ide0: reset: success
 [   12.948324]  hda1
 
 Mounting taking long time on 1GB card cause of DMA issues. In dmesg i am not 
 sure about timestamp showing few seconds, in real life it took about 2 
 minutes.

Please try booting with hda=nodma.

It could be a hardware problem (CF adapter without DMA lines).

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


Re: SC1200 failure in 2.6.23 and 2.6.24-rc1-git10

2007-11-07 Thread Denys Fedoryshchenko
2.6.24-rc2 not working very well


dmesg
[   12.386395] Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
[   12.405579] ide: Assuming 33MHz system bus speed for PIO modes; override 
with idebus=xx
[   12.430441] SC1200: IDE controller (0x100b:0x0502 rev 0x01) at  PCI slot 
:00:12.2
[   12.454070] SC1200: not 100% native mode: will probe irqs later
[   12.471947] ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hda:pio, 
hdb:pio
[   12.493873] ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc:pio, 
hdd:pio
[   12.515810] Probing IDE interface ide0...
[   12.528810] Clocksource tsc unstable (delta = -497423729 ns)
[   12.545888] Time: pit clocksource has been installed.
[   12.563379] hda: SanDisk SDCFH-1024, CFA DISK drive
[   12.578340] hda: applying conservative PIO downgrade
[   12.593869] hda: host max PIO4 wanted PIO255(auto-tune) selected PIO1
[   12.594006] hda: MW DMA 2 mode selected
[   12.594297] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
[   12.608778] Probing IDE interface ide1...
[   12.623192] hda: max request size: 128KiB
[   12.635322] hda: 2001888 sectors (1024 MB) w/1KiB Cache, CHS=1986/16/63, 
DMA
[   12.657134]  hda:4hda: dma_timer_expiry: dma status == 0x21
[   12.865846] hda: DMA timeout error
[   12.876092]  ide_dma_end dma_stat=21 err=1 newerr=0
[   12.890753] hda: dma timeout error: status=0x58 { DriveReady SeekComplete 
DataRequest }
[   12.914977] ide: failed opcode was: unknown
[   12.927743] hda: DMA disabled
[   12.937035] ide0: reset: success
[   12.948324]  hda1

Mounting taking long time on 1GB card cause of DMA issues. In dmesg i am not 
sure about timestamp showing few seconds, in real life it took about 2 
minutes.

after that in dmesg
[   14.965070] hda: dma_timer_expiry: dma status == 0x21
[   15.107909] hda: DMA timeout error
[   15.118149]  ide_dma_end dma_stat=21 err=1 newerr=0
[   15.132809] hda: dma timeout error: status=0x58 { DriveReady SeekComplete 
DataRequest }
[   15.157035] ide: failed opcode was: unknown
[   15.169799] hda: DMA disabled
[   15.178797] ide0: reset: success
[   15.312698] hda: dma_timer_expiry: dma status == 0x21
[   15.650705] hda: DMA timeout error
[   15.660952]  ide_dma_end dma_stat=21 err=1 newerr=0
[   15.675614] hda: dma timeout error: status=0x58 { DriveReady SeekComplete 
DataRequest }
[   15.699836] ide: failed opcode was: unknown
[   15.712601] hda: DMA disabled
[   15.721603] ide0: reset: success
[   16.325999] hda: dma_timer_expiry: dma status == 0x21
[   16.565756] hda: DMA timeout error
[   16.576001]  ide_dma_end dma_stat=21 err=1 newerr=0
[   16.590661] hda: dma timeout error: status=0x58 { DriveReady SeekComplete 
DataRequest }
[   16.614886] ide: failed opcode was: unknown
[   16.627651] hda: DMA disabled
[   16.636659] ide0: reset: success
[   16.650061] EXT2-fs warning: mounting unchecked fs, running e2fsck is 
recommended


On Wed, 7 Nov 2007 18:20:45 -0500, Jeff Garzik wrote
 On Wed, Nov 07, 2007 at 02:12:55PM -0500, Mark Lord wrote:
  That cannot be correct (??).  Is this with hdparm-7.7 (latest 
sourceforge) 
  ??
  Can you show us the hdparm --Istdout output as well, please.
 
 If this is applicable...  FWIW hdparm was only recently (in past 72
 hours) updated from 6.9 to 7.7 in Fedora...
 
   Jeff


--
Denys Fedoryshchenko
Technical Manager
Virtual ISP S.A.L.

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


Re: SC1200 failure in 2.6.23 and 2.6.24-rc1-git10

2007-11-07 Thread Denys Fedoryshchenko
I am using Gentoo (and it is custom build of linux, actually only busybox + 
kernel + uclibc and few other tools), hdparm is vanilla 7.7

I will try to compile now -rc2 to see if there any changes.

With 16MB 2.6.24-rc1 works fine, 1GB working also with some errors in dmesg. 

And IF that all is important, cause it is relatively old hardware and 
probably if it is only this hardware-specific bug, it is enough to issue 
workaround just to be able to use it. I dont think so someone using them now 
much, but IMHO things must work in kernel if they are there.

On Wed, 7 Nov 2007 18:20:45 -0500, Jeff Garzik wrote
 On Wed, Nov 07, 2007 at 02:12:55PM -0500, Mark Lord wrote:
  That cannot be correct (??).  Is this with hdparm-7.7 (latest 
sourceforge) 
  ??
  Can you show us the hdparm --Istdout output as well, please.
 
 If this is applicable...  FWIW hdparm was only recently (in past 72
 hours) updated from 6.9 to 7.7 in Fedora...
 
   Jeff


--
Denys Fedoryshchenko
Technical Manager
Virtual ISP S.A.L.

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


Re: SC1200 failure in 2.6.23 and 2.6.24-rc1-git10

2007-11-07 Thread Denys Fedoryshchenko
You are right, seems no dma lines in adapter. hda=nodma helped, no errors 
anymore. I will try now also libata_dma_mask and will mail result. Btw there 
is no notes in Documentation/kernel-parameters.txt about it.

In any case it is complete board, WRAP.2C made by PCEngines in 2003. Kind of 
popular and mass produced, before was widely used by StarOS, probably known 
GPL violator, who didn't bother himself to supply patches, but at same time 
used it in his projects.

If it is valid for all board with this revision, maybe it is better to put it 
in some kind of fixup/quirk/black list, or how it is called?

On Wed, 07 Nov 2007 19:41:15 -0600, Robert Hancock wrote
 Denys wrote:
  Finally i got full DMESG with 1GB card till end. Seems not readable too.
 
 
 ...
 
  ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
  ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 4096 
in
   res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
  ata1.00: status: { DRDY }
  ata1: soft resetting link
  ata1.00: configured for MWDMA1
  sd 0:0:0:0: [sda] Result: hostbyte=0x00 driverbyte=0x08
  sd 0:0:0:0: [sda] Sense Key : 0xb [current] [descriptor]
  Descriptor sense data with sense descriptors (in hex):
  72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
  00 00 00 00
  sd 0:0:0:0: [sda] ASC=0x0 ASCQ=0x0
  end_request: I/O error, dev sda, sector 0
  Buffer I/O error on device sda, logical block 0
  ata1: EH complete
 
 I'm guessing that your CF-to-IDE adapter doesn't have the correct 
 lines wired up for DMA to work properly, and the card indicates DMA 
 support, which libata tries to use but which doesn't work. It looks 
 like it never tried falling back to PIO after DMA failed. Seems like 
 a deficiency in the speed-down logic?
 
 -- 
 Robert Hancock  Saskatoon, SK, Canada
 To email, remove nospam from [EMAIL PROTECTED]
 Home Page: http://www.roberthancock.com/


--
Denys Fedoryshchenko
Technical Manager
Virtual ISP S.A.L.

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


Re: SC1200 failure in 2.6.23 and 2.6.24-rc1-git10

2007-11-07 Thread Robert Hancock

Denys wrote:

Finally i got full DMESG with 1GB card till end. Seems not readable too.



..



ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 4096 in
 res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata1.00: status: { DRDY }
ata1: soft resetting link
ata1.00: configured for MWDMA1
sd 0:0:0:0: [sda] Result: hostbyte=0x00 driverbyte=0x08
sd 0:0:0:0: [sda] Sense Key : 0xb [current] [descriptor]
Descriptor sense data with sense descriptors (in hex):
72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
00 00 00 00
sd 0:0:0:0: [sda] ASC=0x0 ASCQ=0x0
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
ata1: EH complete


I'm guessing that your CF-to-IDE adapter doesn't have the correct lines 
wired up for DMA to work properly, and the card indicates DMA support, 
which libata tries to use but which doesn't work. It looks like it never 
tried falling back to PIO after DMA failed. Seems like a deficiency in 
the speed-down logic?


--
Robert Hancock  Saskatoon, SK, Canada
To email, remove nospam from [EMAIL PROTECTED]
Home Page: http://www.roberthancock.com/

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


Re: SC1200 failure in 2.6.23 and 2.6.24-rc1-git10

2007-11-06 Thread Andrew Morton
 On Thu, 1 Nov 2007 23:30:13 +0200 Denys [EMAIL PROTECTED] wrote:
 Finally i got full DMESG with 1GB card till end. Seems not readable too.
 
 Linux version 2.6.24-rc1-git10-embedded ([EMAIL PROTECTED]) (gcc 
 version 4.1.2 (Gentoo 4.1.2 p1.0.1)) #1 Thu Nov 1 23:12:53 EET 2007
 BIOS-provided physical RAM map:
  BIOS-e801:  - 0009f000 (usable)
  BIOS-e801: 0010 - 0400 (usable)
 64MB LOWMEM available.
 Zone PFN ranges:
   DMA 0 - 4096
   Normal   4096 -16384
 Movable zone start PFN for each node
 early_node_map[1] active PFN ranges
 0:0 -16384
 DMI not present or invalid.
 Allocating PCI resources starting at 1000 (gap: 0400:fc00)
 Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
 Kernel command line: console=ttyS0,38400n8
 Initializing CPU#0
 PID hash table entries: 256 (order: 8, 1024 bytes)
 Detected 266.627 MHz processor.
 Console: colour dummy device 80x25
 console [ttyS0] enabled
 Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
 Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
 Memory: 62836k/65536k available (1020k kernel code, 2292k reserved, 317k 
 data, 112k init, 0k highmem)
 virtual kernel memory layout:
 fixmap  : 0xb000 - 0xf000   (  16 kB)
 vmalloc : 0xc480 - 0x9000   ( 951 MB)
 lowmem  : 0xc000 - 0xc400   (  64 MB)
   .init : 0xc0252000 - 0xc026e000   ( 112 kB)
   .data : 0xc01ff111 - 0xc024e6f4   ( 317 kB)
   .text : 0xc010 - 0xc01ff111   (1020 kB)
 Checking if this processor honours the WP bit even in supervisor mode... Ok.
 SLUB: Genslabs=11, HWalign=32, Order=0-1, MinObjects=4, CPUs=1, Nodes=1
 Calibrating delay using timer specific routine.. 534.41 BogoMIPS (lpj=1068836)
 Mount-cache hash table entries: 512
 Compat vDSO mapped to e000.
 CPU: NSC Unknown stepping 01
 Checking 'hlt' instruction... OK.
 Freeing SMP alternatives: 0k freed
 net_namespace: 64 bytes
 NET: Registered protocol family 16
 PCI: PCI BIOS revision 2.10 entry at 0xfc3ad, last bus=0
 PCI: Using configuration type 1
 Setting up standard PCI resources
 SCSI subsystem initialized
 PCI: Probing PCI hardware
 PCI: Device :00:12.5 not found by BIOS
 Time: tsc clocksource has been installed.
 NET: Registered protocol family 2
 IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
 TCP established hash table entries: 2048 (order: 2, 16384 bytes)
 TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
 TCP: Hash tables configured (established 2048 bind 2048)
 TCP reno registered
 scx200: NatSemi SCx200 Driver
 scx200: GPIO base 0xf400
 scx200: Configuration Block base 0x9000
 io scheduler noop registered (default)
 Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
 serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a NS16550A
 serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a NS16550A
 natsemi dp8381x driver, version 2.1, Sept 11, 2006
   originally by Donald Becker [EMAIL PROTECTED]
   2.4.x kernel port by Jeff Garzik, Tjeerd Mulder
 natsemi eth0: NatSemi DP8381[56] at 0x8000 (:00:0e.0), 
 00:0d:b9:00:8a:30, IRQ 10, port TP.
 scsi0 : sc1200
 scsi1 : sc1200
 ata1: PATA max UDMA/33 cmd 0x1f0 ctl 0x3f6 bmdma 0xfc00 irq 14
 ata2: DUMMY
 ata1.00: CFA: SanDisk SDCFH-1024, HDX 3.07, max MWDMA2
 ata1.00: 2001888 sectors, multi 0: LBA
 ata1.00: configured for MWDMA2
 scsi 0:0:0:0: Direct-Access ATA  SanDisk SDCFH-10 HDX  PQ: 0 ANSI: 5
 sd 0:0:0:0: [sda] 2001888 512-byte hardware sectors (1025 MB)
 sd 0:0:0:0: [sda] Write Protect is off
 sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support 
 DPO or FUA
 sd 0:0:0:0: [sda] 2001888 512-byte hardware sectors (1025 MB)
 sd 0:0:0:0: [sda] Write Protect is off
 sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support 
 DPO or FUA
  sda:4Clocksource tsc unstable (delta = -334501841 ns)
 Time: pit clocksource has been installed.
 ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
 ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 4096 in
  res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
 ata1.00: status: { DRDY }
 ata1: soft resetting link
 ata1.00: configured for MWDMA2
 ata1: EH complete
 ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
 ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 4096 in
  res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
 ata1.00: status: { DRDY }
 ata1: soft resetting link
 ata1.00: configured for MWDMA2
 ata1: EH complete
 ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
 ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data 4096 in
  res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
 ata1.00: status: { DRDY }
 ata1: soft resetting link
 ata1.00: configured for MWDMA2
 ata1: EH complete
 ata1.00: limiting speed to MWDMA1:PIO4