Re: Issuing a vendor specific ATA cmd on SATA Disk via ATA Pass Thru

2007-12-04 Thread sam song
 Tejun Heo wrote:
  sam song wrote:
  = Hmmm... It's timeout.  How long does the command take?  It's a bit
weird
  because 36000s but the reported command duration is 136s.  How long
did
  the command take actually?
  The command did actually take 136minutes25seconds. I set the timeout in
app
  as 36000seconds(10-hour).

Ummm, sorry, I made a false info. Later I FOUND that the timeout value was
1000 * 36000s
in app and the command could execute 136m. Once I changed back using 36000s,
the command could only take 27m.

  Right, 136m.  I wonder whether it's hitting some hard timeout limit in
  the kernel.  H... Does the attached patch fix your problem?
 
 Ping.  Did it work?

Sorry for keep you waiting. The test took so much time:-)

It did fix my problem. It took about 4-hour to zero the whole 1TB SATA disk
as required pattern. I also confirmed the result on LSI HBA SAS 1068E and
got succeed. Here was the whole debug process.

Tue Dec  4 14:42:42 CST 2007
[USI]: ata pass through(16) cdb: 85 0b 06 00 41 00 00 00 00 00 00 00 00 e0
fd 00
 [unknown opcode: 85 0b 06 00 41 00 00 00 00 00 00 00 00 e0 fd 00 ]
  scsi_status=0x0, host_status=0x0, driver_status=0x0
  info=0x0  duration=14272004 milliseconds
  status=0x0
Tue Dec  4 18:40:34 CST 2007
[USI] : Time to Perform Zero Disk on /dev/sdb was 237m52secs

No kernel message output during the executing.

Still one puzzle to consult with you. As you mentioned, the ATA Pass Thru in
SELS10 2.6.16.21-0.8 is broken. So what is the workable vanilla kernel
besides 2.6.23.X? I
need to have more choice on distribution. For example 2.6.18.X vanilla
kernel with your patch can work?

Highly appreciate your kind help,

Sam Song


-
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: Issuing a vendor specific ATA cmd on SATA Disk via ATA Pass Thru

2007-12-03 Thread sam song
 sam song wrote:
   [USI]: ata pass through(16) cdb: 85 0b 06 00 41 00 00 00 00 00 00 00 00
e0
  fd 00
   [unknown opcode: 85 0b 06 00 41 00 00 00 00 00 00 00 00 e0 fd 00 ]
scsi_status=0x2, host_status=0x0, driver_status=0x8
info=0x1  duration=8184280 milliseconds
 [--snip--]
  ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
  ata2.00: cmd fd/41:00:00:00:00/00:00:00:00:00/e0 tag 0 cdb 0x0 data
33280 out
   res 40/00:01:01:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout)
  ata2: port is slow to respond, please be patient (Status 0xd0)
  ata2: device not ready (errno=-16), forcing hardreset
  ata2: soft resetting port
  ata2.00: configured for UDMA/133
  ata2: EH complete
  sd 2:0:0:0: [sdb] 1953525168 512-byte hardware sectors (1000205 MB)
  sd 2:0:0:0: [sdb] Write Protect is off
  sd 2:0:0:0: [sdb] Mode Sense: 00 3a 00 00
  sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't
support DPO or FUA
 
 Hmmm... It's timeout.  How long does the command take?  It's a bit weird
 because 36000s but the reported command duration is 136s.  How long did
 the command take actually?

The command did actually take 136minutes25seconds. I set the timeout in app
as 36000seconds(10-hour). 

Thanks so much,

Sam Song

-
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: Issuing a vendor specific ATA cmd on SATA Disk via ATA Pass Thru

2007-11-30 Thread sam song
 Tejun Heo wrote:
 Yeah, that's SLE10 so no wonder ATA passthrough is broken.  Please try
 with the vanilla kernel.

Still one point to consultant with you. I have no successful experience with
vanilla kernel upgrade. So after getting the kernel 2.6.23.9, is it OK for
me to use the default configure file of SLE10 for the vanilla kernel
compiling?

Thanks so much again,

Sam Song

-
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: Issuing a vendor specific ATA cmd on SATA Disk via ATA Pass Thru

2007-11-29 Thread sam song
 sam song wrote:
  Hi,
 
  I am convinced that the SATA Disk does support one vendor specific ATA
  command and got the whole bus trace via Trainer.
  However, I cannot implement that in the real cases with either HBA or
SATA
  Controller like ICH5/7 via ATA Pass Thru.
  So I wonder whether there is one possible setup including HW and SW
  supporting the ATA command via ATA Pass directly and no need to
understand
  the command meaning itself.
 
  Here is one result I got.
 
  [unknown opcode: 85 0b 06 00 01 00 00 00 00 00 00 00 00 e0 fd 00 ]
scsi_status=0x2, host_status=0x0, driver_status=0x8
info=0x1  duration=270111 milliseconds
status=0x2: sense_key=0x7 asc=0x1 ascq=0x0
 
 That sense key is data protect.  I don't think any code in ATA
 passthrough code path can raise that sense key.  What did you exactly
 do?  Can you post the source code?

I want to zero the whole disk as a certain pattern like 0 or else with
vendor specific WRITE command 0xFD on 1TB SATA Disk in my test. This command
0xFD can support issuing a 1 to 65 block zero pattern to the disk and should
be done about 4-hour on 1TB Disk rather than about 11-hour on 1TB Disk with
SCSI WRITE(10). 

Attached pls see the details debug log on SUSE Linux Enterprise 10 I just
did. As for code, I will send to you in private for it is kind of poor and
confidential. Really sorry for that.

Thanks so much for your input. I think my concern is a specific request but
it's reasonable in real world of SATA domain.

Sam Song
# Details WRITE FD debug info on SUSE Enterprise Linux Server 10.
# USI-SS
# Nov. 30, 2007

IT-0010737:/home/sam/upstream # vi makefile
IT-0010737:/home/sam/upstream # uname -a
Linux IT-0010737 2.6.16.21-0.8-smp #1 SMP Mon Jul 3 18:25:39 UTC 2006 i686 i686 
i386 GNU/Linux
IT-0010737:/home/sam/upstream # cat /proc/partitions
major minor  #blocks  name

   8 0   78150744 sda
   8 1   20482843 sda1
   8 2   20482875 sda2
   8 3  1 sda3
   8 5   18024898 sda5
   8 61052226 sda6
   8 7   18105223 sda7
   816  976762584 sdb
IT-0010737:/home/sam/upstream #

IT-0010737:/home/sam/smart/reference/image-smart # ./smartctl -i /dev/sdb
smartctl version 5.37 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model: HUA721010KLA330
Serial Number:PAGK65ZE
Firmware Version: GKAOA94A
User Capacity:1,000,204,886,016 bytes
Device is:Not in smartctl database [for details use: -P showall]
ATA Version is:   7
ATA Standard is:  ATA/ATAPI-7 T13 1532D revision 1
Local Time is:Fri Nov 30 10:28:28 2007 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

IT-0010737:/home/smart/reference/image-smart #

IT-0010737:/home/sam/upstream # lspci
00:00.0 Host bridge: Intel Corporation 945G/GZ/P/PL Express Memory Controller 
Hub (rev 02)
00:01.0 PCI bridge: Intel Corporation 945G/GZ/P/PL Express PCI Express Root 
Port (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 945G/GZ Express Integrated 
Graphics Controller (rev 02)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition 
Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 
(rev 01)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 
(rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 
01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 
01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 
01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 
01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI 
Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface 
Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) Serial ATA 
Storage Controller IDE (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
01:00.0 PCI bridge: Intel Corporation 80333 Segment-A PCI Express-to-PCI 
Express Bridge
01:00.2 PCI bridge: Intel Corporation 80333 Segment-B PCI Express-to-PCI 
Express Bridge
02:0e.0 RAID bus controller: Adaptec AAC-RAID
05:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5789 Gigabit 
Ethernet PCI Express (rev 11)
06:07.0 FireWire (IEEE 1394): Texas Instruments TSB82AA2 IEEE-1394b Link Layer 
Controller (rev 01)
IT-0010737:/home/sam/upstream #

IT-0010737:/home/sam/upstream # ./WriteFD /dev/sdb
[USI] : parameter input is /dev/sdb
[USI] : Now prepare for zeroing SATA Drive /dev/sdb ...
[USI] WriteFD : version is 0.4 20071121
[USI] WriteFD : Now prepare Zero Pattern Block ...
 00 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 10 ed 5e ff 7f 00 00 00

Re: Issuing a vendor specific ATA cmd on SATA Disk via ATA Pass Thru

2007-11-29 Thread sam song
 sam song wrote:
  Attached pls see the details debug log on SUSE Linux Enterprise 10 I
just
  did. As for code, I will send to you in private for it is kind of poor
and
  confidential. Really sorry for that.
 
 Aieee... SLES10.  Is it SLES10SP1 or just SLES10.  I'm fairly sure
 passthrough support is broken in SLES10.  Can you please try the program
 on vanilla kernel (2.6.23.X)?

Well, how to know the distribution is SLES10SP1 or SLES10?

OK. I will upgrade the kernel to vanilla 2.6.23.9 on the server to try and
feedback to you the result.

Thanks so much again,

Sam Song

-
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: Issuing a vendor specific ATA cmd on SATA Disk via ATA Pass Thru

2007-11-29 Thread sam song
 sam song wrote:
  sam song wrote:
  Attached pls see the details debug log on SUSE Linux Enterprise 10 I
  just
  did. As for code, I will send to you in private for it is kind of poor
  and
  confidential. Really sorry for that.
  Aieee... SLES10.  Is it SLES10SP1 or just SLES10.  I'm fairly sure
  passthrough support is broken in SLES10.  Can you please try the
program
  on vanilla kernel (2.6.23.X)?
 
  Well, how to know the distribution is SLES10SP1 or SLES10?
 
 On my machine...
 
 $ cat /etc/SuSE-release
 openSUSE 10.3 (X86-64)
 VERSION = 10.3

Here is mine.

IT-0010737:/ # cat /etc/SuSE-release
SUSE Linux Enterprise Server 10 (i586)
VERSION = 10
IT-0010737:/ #

Thanks you so much,

Sam Song

-
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


答复: Disk spin down issue on s hut down/suspend to disk

2007-08-07 Thread sam song
Tejun Heo wrote:
 Michael Sedkowski wrote:
  Dnia 07-08-2007, Wt o godzinie 15:56 +0900, Tejun Heo napisał(a):
  192 Power-Off_Retract_Count 0x0032   100   100   000Old_age
  Always   -   388
[snip]
 On power off, the r/w heads in a disk should be unloaded (parked).  This
 is usually achieved by either putting the disk into standby/sleep mode
 during shutdown.  However, all modern disks can automatically unload
 their heads when the power is removed abruptly.  This is called
 emergency unload.  Emergency unload does shorten the lifespan of the
 disk but you don't have to worry too much about it.  Disks are designed
 to withstand certain number of emergency unloads.

Out of interest, does Power-Off_Retract_Count attribute only record emergency 
unloads
rather than normal power off by Linux shutdown command?

Thanks in advance,

Sam

-
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: [smartmontools-support] Adaptec RAID 1200A (Highpoint HPT370A)access problem

2007-05-30 Thread sam song
 This controller's driver is likely implemented as a SCSI miniport
 driver. These usually don't support SMART, even if the RAID
 functionality is not used.
 http://smartmontools.sourceforge.net/#FAQ-win-ata-as-scsi
 
 Christian

Hello Christian,

May you confirm the conclusion for Adaptec 3085/3805 RAID controller under
Linux platform? If I need to access SMART data of SATA Disk behind it, is it
a MUST to do some work on its Linux driver?

Thanks in advance,

Sam

-
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