Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SATA on PPC - IBM RS/6000 B50
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
miclass
n00b
n00b


Joined: 06 Jan 2006
Posts: 13
Location: Genoa - Italy

PostPosted: Sun Apr 20, 2008 12:16 pm    Post subject: SATA on PPC - IBM RS/6000 B50 Reply with quote

Hi all!

I am trying to add the SATA support to a IBM RS/6000 B50.
This is the kernel and the machine:

Code:
Linux RS6000 2.6.24-gentoo-r3 #2 Sun Apr 13 14:55:39 CEST 2008 ppc 604r CHRP IBM,7046-B50 GNU/Linux


I have three SATA controllers available that I am testing:
1. Silicon Image SiI 3112
2. VIA VT6421 IDE RAID Controller (rev 50)
3. Initio inic162x

I have tested these three controllers on a x86 machine and I know they are in order. The same for the HD, a Maxtor SATA 320GB and the cable.
Until now I did not reach the complete success with any of these controllers, there are the results of my testings:

1. Silicon Image SiI 3112

The controller seems work, it recognizes correctly the HD and everything appears to work fine. According to the kernel log:

Code:
[   27.614318] sata_sil 0000:00:12.0: version 2.3
[   27.614633] PCI: Enabling device 0000:00:12.0 (0140 -> 0143)
[   27.711439] scsi1 : sata_sil
[   27.718750] scsi2 : sata_sil
[   27.719003] ata1: SATA max UDMA/100 mmio m512@0xfce3e000 tf 0xfce3e080 irq 19
[   27.719022] ata2: SATA max UDMA/100 mmio m512@0xfce3e000 tf 0xfce3e0c0 irq 19
[   28.183255] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   28.231968] ata1.00: ATA-7: ST3320620AS, 3.AAK, max UDMA/133
[   28.231994] ata1.00: 625142448 sectors, multi 0: LBA48 NCQ (depth 0/32)
[   28.295516] ata1.00: configured for UDMA/100
[   28.607171] ata2: SATA link down (SStatus 0 SControl 310)
[   28.607712] scsi 1:0:0:0: Direct-Access     ATA      ST3320620AS      3.AA PQ: 0 ANSI: 5
[   28.608201] sd 1:0:0:0: [sdc] 625142448 512-byte hardware sectors (320073 MB)
[   28.608296] sd 1:0:0:0: [sdc] Write Protect is off
[   28.608315] sd 1:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[   28.608443] sd 1:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   28.608740] sd 1:0:0:0: [sdc] 625142448 512-byte hardware sectors (320073 MB)
[   28.608820] sd 1:0:0:0: [sdc] Write Protect is off
[   28.608838] sd 1:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[   28.608960] sd 1:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   28.608983]  sdc: sdc1 sdc2
[   28.627113] sd 1:0:0:0: [sdc] Attached SCSI disk
[   28.627366] sd 1:0:0:0: Attached scsi generic sg2 type 0


But sometimes during heavy file transfer of deletion the system hangs for a second.
This is what I find in dmesg:

Code:
[13082.281977] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[13082.282022] ata1.00: BMDMA2 stat 0x80c2109
[13082.282062] ata1.00: cmd c8/00:60:57:db:38/00:00:00:00:00/e4 tag 0 dma 49152 in
[13082.282072]          res 51/04:00:b6:db:38/00:01:04:00:00/e4 Emask 0x1 (device error)
[13082.282090] ata1.00: status: { DRDY ERR }
[13082.282103] ata1.00: error: { ABRT }
[13082.391114] ata1.00: configured for UDMA/100
[13082.391225] ata1: EH complete
[13082.430394] sd 1:0:0:0: [sdc] 625142448 512-byte hardware sectors (320073 MB)
[13082.430519] sd 1:0:0:0: [sdc] Write Protect is off
[13082.430539] sd 1:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[13082.430672] sd 1:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[13112.432355] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
[13112.432419] ata1.00: cmd ca/00:08:3f:00:6c/00:00:00:00:00/e4 tag 0 dma 4096 out
[13112.432429]          res 40/00:00:b6:db:38/00:01:04:00:00/e4 Emask 0x4 (timeout)
[13112.432447] ata1.00: status: { DRDY }
[13117.784339] ata1: port is slow to respond, please be patient (Status 0xd8)
[13122.488328] ata1: device not ready (errno=-16), forcing hardreset
[13122.488360] ata1: hard resetting link
[13122.964348] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[13123.079674] ata1.00: configured for UDMA/100
[13123.079743] ata1: EH complete
[13123.104635] sd 1:0:0:0: [sdc] 625142448 512-byte hardware sectors (320073 MB)
[13123.105596] sd 1:0:0:0: [sdc] Write Protect is off
[13123.105768] sd 1:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[13123.107156] sd 1:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA


Moreover in the smart logs of the HD I get a lot of error:

Code:
RS6000 ~ # smartctl -a /dev/sdc -d ata
smartctl version 5.36 [powerpc-unknown-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model:     ST3320620AS
Serial Number:    6QF1K5Q6
Firmware Version: 3.AAK
User Capacity:    320,072,933,376 bytes
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   7
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Sun Apr 20 13:53:31 2008 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x82) Offline data collection activity
                                        was completed without error.
                                        Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total time to complete Offline
data collection:                 ( 430) seconds.
Offline data collection
capabilities:                    (0x5b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   1) minutes.
Extended self-test routine
recommended polling time:        ( 115) minutes.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   112   097   006    Pre-fail  Always       -       86506293
  3 Spin_Up_Time            0x0003   095   095   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       40
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   063   060   030    Pre-fail  Always       -       2461626
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       75
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       40
187 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
189 Unknown_Attribute       0x003a   100   100   000    Old_age   Always       -       0
190 Unknown_Attribute       0x0022   067   053   045    Old_age   Always       -       555089953
194 Temperature_Celsius     0x0022   033   047   000    Old_age   Always       -       33 (Lifetime Min/Max 0/21)
195 Hardware_ECC_Recovered  0x001a   069   062   000    Old_age   Always       -       75997844
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       265
200 Multi_Zone_Error_Rate   0x0000   100   253   000    Old_age   Offline      -       0
202 TA_Increase_Count       0x0032   100   253   000    Old_age   Always       -       0

SMART Error Log Version: 1
ATA Error Count: 265 (device log contains only the most recent five errors)
        CR = Command Register [HEX]
        FR = Features Register [HEX]
        SC = Sector Count Register [HEX]
        SN = Sector Number Register [HEX]
        CL = Cylinder Low Register [HEX]
        CH = Cylinder High Register [HEX]
        DH = Device/Head Register [HEX]
        DC = Device Command Register [HEX]
        ER = Error register [HEX]
        ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 265 occurred at disk power-on lifetime: 75 hours (3 days + 3 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  84 51 00 36 d5 72 e4  Error: ICRC, ABRT at LBA = 0x0472d536 = 74634550

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  c8 00 58 df d4 72 e4 00      03:23:26.526  READ DMA
  c8 00 10 c7 b4 72 e4 00      03:23:26.524  READ DMA
  c8 00 98 37 94 72 e4 00      03:23:26.523  READ DMA
  c8 00 60 d7 93 72 e4 00      03:23:26.523  READ DMA
  c8 00 10 bf 73 72 e4 00      03:23:26.522  READ DMA

Error 264 occurred at disk power-on lifetime: 74 hours (3 days + 2 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  84 51 ff d8 29 49 e0  Error: ICRC, ABRT 255 sectors at LBA = 0x004929d8 = 4794840

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  25 00 b0 27 29 49 e0 00      02:43:48.653  READ DMA EXT
  c8 00 10 27 21 49 e4 00      02:43:48.648  READ DMA
  c8 00 40 ff 18 49 e4 00      02:43:48.647  READ DMA
  ca 00 08 b7 f8 00 e0 00      02:43:48.642  WRITE DMA
  ca 00 40 77 f8 00 e0 00      02:43:48.642  WRITE DMA


2. VIA VT6421 IDE RAID Controller (rev 50)

The problem with this one is that the HD is not recognized by the controller, the device does not come up. In dmesg I found:

Code:
[   26.758826] sata_via 0000:00:12.0: version 2.3
[   26.758894] PCI: Enabling device 0000:00:12.0 (0080 -> 0081)
[   26.759330] sata_via 0000:00:12.0: routed to hard irq line 2
[   26.868056] scsi1 : sata_via
[   26.869787] scsi2 : sata_via
[   26.871107] scsi3 : sata_via
[   26.871305] ata1: SATA max UDMA/133 cmd 0xfdffa000 ctl 0xfdffa00a bmdma 0xfdffb400 irq 19
[   26.871327] ata2: SATA max UDMA/133 cmd 0xfdffa400 ctl 0xfdffa40a bmdma 0xfdffb408 irq 19
[   26.871346] ata3: PATA max UDMA/133 cmd 0xfdffa800 ctl 0xfdffa80a bmdma 0xfdffb410 irq 19
[   27.180170] ata1: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
[   27.495789] ata2: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)


It looks like if nothing were attached to the controller, but the HD is connected and on power.

3. Initio inic162x

The driver in the kernel for this controller is still heavy experimental and it does not support LBA48, so it is not possible to use it with a 320GB HD.

Do you have any hint to help me?
Thanks in advance!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum