LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-11-2005, 09:16 AM   #1
ch_music
Member
 
Registered: Apr 2004
Location: Singapore
Distribution: Debian Sarge/Sid
Posts: 52

Rep: Reputation: 15
SATA problems (Silicon Image SIL3112A and Maxtor DiamondMax 9)


Hi guys,

I have a bit of problems (a lot of actually) installing my new SIL3112A PCI SATA card (with software RAID that I don't use) and Maxtor DiamondMax 9 120GB SATA harddrive. I'm using Debian Sarge with kernel 2.6.8. The SIL3112A BIOS detects the harddrive, but it can't be read in linux. Running cfdisk on /dev/sda both results in a program hang (nothing comes out, cfdisk can't be killed even with kill -KILL). I went through dmesg and found this (not very important chunk, I suppose... con't...):


...
libata version 1.02 loaded.
sata_sil version 0.54
ata1: SATA max UDMA/100 cmd 0xE0830080 ctl 0xE083008A bmdma 0xE0830000 irq 11
ata2: SATA max UDMA/100 cmd 0xE08300C0 ctl 0xE08300CA bmdma 0xE0830008 irq 11
irq 11: nobody cared!
[<c0107eca>] __report_bad_irq+0x2a/0x90
[<c0107fbc>] note_interrupt+0x6c/0xa0
[<c0108291>] do_IRQ+0x121/0x130
[<c01065dc>] common_interrupt+0x18/0x20
[<c011c5b0>] __do_softirq+0x30/0x80
[<c011c626>] do_softirq+0x26/0x30
[<c010826d>] do_IRQ+0xfd/0x130
[<c01065dc>] common_interrupt+0x18/0x20
[<c0110134>] delay_tsc+0x14/0x20
[<c01bc892>] __delay+0x12/0x20
[<c01ff5dd>] ata_busy_sleep+0x1d/0x130
[<c01fee09>] ata_dev_identify+0xd9/0x5f0
[<c01bc892>] __delay+0x12/0x20
[<c01ffa76>] ata_bus_reset+0x136/0x220
[<c01ff49e>] sata_phy_reset+0xbe/0x130
[<c01ff359>] ata_bus_probe+0x39/0xb0
[<c02017ac>] ata_device_add+0x1ac/0x250
[<c0201020>] ata_interrupt+0x0/0x1c0
[<c02035a1>] sil_init_one+0x271/0x310
[<c01c3c02>] pci_device_probe_static+0x52/0x70
[<c01c3c5b>] __pci_device_probe+0x3b/0x50
[<c01c3c9c>] pci_device_probe+0x2c/0x50
[<c01e42cf>] bus_match+0x3f/0x70
[<c01e43f9>] driver_attach+0x59/0x90
[<c01e48a1>] bus_add_driver+0x91/0xb0
[<c01e4e5f>] driver_register+0x2f/0x40
[<c0118bad>] printk+0x10d/0x170
[<c01c3f1c>] pci_register_driver+0x5c/0x90
[<c03604ff>] sil_init+0xf/0x50
[<c034c7fc>] do_initcalls+0x2c/0xc0
[<c0127a77>] init_workqueues+0x17/0x60
[<c0100410>] init+0x0/0x150
[<c010044a>] init+0x3a/0x150
[<c0103d8c>] kernel_thread_helper+0x0/0x14
[<c0103d91>] kernel_thread_helper+0x5/0x14
handlers:
[<c0201020>] (ata_interrupt+0x0/0x1c0)
Disabling IRQ #11
ata1: dev 0 cfg 49:2f00 82:7c6b 83:7b09 84:4003 85:7c69 86:3a01 87:4003 88:207f
ata1: dev 0 ATA, max UDMA/133, 240121728 sectors:
ata1: dev 0 configured for UDMA/100
scsi0 : sata_sil
ata2: no device found (phy stat 00000000)
scsi1 : sata_sil
Using anticipatory io scheduler
Vendor: ATA Model: Maxtor 6Y120M0 Rev: YAR5
Type: Direct-Access ANSI SCSI revision: 05
...


I found out that IRQ #11 is the RAID controller for SIL3112A but i'm not using RAID, so I thought I could ignore this. I also found this:


...
SCSI device sda: 240121728 512-byte hdwr sectors (122942 MB)
SCSI device sda: drive cache: write back
/dev/scsi/host0/bus0/target0/lun0:<3>ata1: command 0xc8 timeout, stat 0x50 host_stat 0x4
p1 p2 p3

Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
...


I thought the one in bold is important, but I'm not sure how. Anyone can help me? Is it the harddrive problems? Or Linux problems? I have no windows to test it. I'm trying to keep _that_ option (installing Windows) as last resort. Now, I can't read the drive at all. =S
 
Old 02-11-2005, 05:55 PM   #2
Jajamd
Member
 
Registered: Aug 2004
Posts: 37

Rep: Reputation: 0
Sorry for giving you a false hope, I have the same problem (I got the exact same sata hard drive, and the same sda thing issue...); If you ever manage to get it to work, could you please let us know how?
Thank you bro !
 
Old 02-12-2005, 02:29 AM   #3
ch_music
Member
 
Registered: Apr 2004
Location: Singapore
Distribution: Debian Sarge/Sid
Posts: 52

Original Poster
Rep: Reputation: 15
Btw, I'm using nForce2 chipset, are you using the same chipset? I heard it could be the problem with nForce2 BIOS. So far, I haven't got the chance to upgrade my BIOS (no floppy, no windows, no boot disk...).

http://12.24.47.40/display/2n/index....=2&r=0.4285395

You might want to read that, on Addin + MB sections, then SiI3112A. So I guess, I'll be trying to borrow some SATA controller from friends (difficult...).

So, tell me if your drive condition improves ya? thanks a lot bro!
 
Old 02-12-2005, 04:54 AM   #4
Jajamd
Member
 
Registered: Aug 2004
Posts: 37

Rep: Reputation: 0
Yes, I'm also using the same chipset ! nForce2... It used to work on my suse distro but not since i Upgraded my kernel... I'll let you know if I find out any trick
 
Old 02-12-2005, 05:19 AM   #5
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
Have you got the right things in your kernel? there has been a fair bit of shifting about for this chipset in the kernel. I too have this exact setup and it always works fine (though I have a second PATA drive which I installed to and then recompiled a new kernel). I don't bother with the RAID either.

My suggestion would be to use a PATA drive to install a base system on and then put your other stuff on the SATA drive? You can mount it easily into the filesystem so wouldn't look any different.

HTH

Alex

Last edited by webtoe; 02-12-2005 at 05:23 AM.
 
Old 02-12-2005, 08:47 AM   #6
ch_music
Member
 
Registered: Apr 2004
Location: Singapore
Distribution: Debian Sarge/Sid
Posts: 52

Original Poster
Rep: Reputation: 15
I know... In fact I have 2 PATA drives that work fine. I just seem can't partition this drive at all. cfdisk and parted just hang.

I compiled my kernel with all the following:

All the IDE support for my PATA drives
IDE support for SIL chipset
SCSI support
SCSI disc support
SCSI low level drivers for SIL SATA chipset

I tried compiling with all as modules and all as built-in to kernel. No luck so far. I tried putting the drive at SATA1 and SATA2 connectors, no luck. I think I've to try to get WinXP CD and try it there. Probably it's the drive error or the controller card error. I'll update once I can do that... =)
 
Old 02-12-2005, 10:33 AM   #7
ch_music
Member
 
Registered: Apr 2004
Location: Singapore
Distribution: Debian Sarge/Sid
Posts: 52

Original Poster
Rep: Reputation: 15
Okay, when you told me that the problem started as you upgrade your kernel, I tried using kernel 2.4.27 and voila! It works fine (at least so far.. I've only tried partitioning the drives and copying some files in and out, will put it into more stress tml).

Now that could only means that the problem lie with SCSI driver in kernel 2.6.8. I realised that kernel 2.4.27 detect the SATA drive as IDE drive in /dev/hde. Which kernel did you use before this??

Anyone have any comments? I want to find out what's wrong with the SCSI subsystem but I don't have sufficient experience. Is it a problem specific to 2.6.8 or all kernel 2.6?
 
Old 02-12-2005, 05:33 PM   #8
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
There are two things to note with SATA and the difference between 2.4 and 2.6.

1.) Under the 2.4 kernel's, SATA drives would show up as /dev/hdg or something like that (depending on how many drives you had in the system). Under 2.6 they will be one of the scsi names (so /dev/sda etc.)

2.) Under 2.4 there was only one driver for the sil series of SATA chips. Under 2.6 there are 2!!!! One is better than the other and is becoming more mainstream. If you do a bit of a google you should find out which is preferred (I think its the one in the SCSI subsystem, not the Parrallel IDE system). You can't have both in your kernel either. Needs to be one or the other.

I'm afraid my main machine with this chipset etc. is down at uni, and I'm on my mac (where I have none of these problems :P ).

Alex
 
Old 02-13-2005, 10:07 AM   #9
ch_music
Member
 
Registered: Apr 2004
Location: Singapore
Distribution: Debian Sarge/Sid
Posts: 52

Original Poster
Rep: Reputation: 15
Hmph, no luck. Tried to remove the IDE driver from kernel 2.6.8 and install only the SCSI driver as built-in and as module. Still got the same error and I still can't access the drive under 2.6.8. At least now, with 2.4.27, I can start doing my work. I'm downloading kernel 2.6.10 now. I shall try compiling it when I got the time around this coming week. Shall update you all =)

Chris =)
 
Old 02-13-2005, 11:53 AM   #10
miquelo
LQ Newbie
 
Registered: Feb 2005
Location: Finland
Distribution: Debian unstable
Posts: 9

Rep: Reputation: 0
I have the same controller and sata drive working.

Hi

I'am a nobo but my debian didn't install at first because couldn't partition harddrives(none found).

After I changed the installer to "stable(rc2)" and put the argument irq=11 to module sata_sil when loading it, on install, it worked.

So found my harddrive to partition and got installed.

Now when I open my etc/modules.conf it reads "options sata_sil irq=11" as a line.
Maybe you have to set up the irq or not. Maybe my install worked only because I changed the installer.
 
Old 02-14-2005, 04:19 PM   #11
ronalde
LQ Newbie
 
Registered: Feb 2005
Posts: 4

Rep: Reputation: 0
Same problem with different hd and controller

since yesterday, I'm having the exact same problem here, with a ICH5 controller on a Intel D865PERL motherboard with the Maxtor 6Y080M0 (80GB SATA).

The problems I get after having a lot of disc activity (reading) on a jfs formatted partition with any kernel all start with:

ata1: command 0xc8 timeout, stat 0x59 host_stat 0x21

After that, the programs that are using this partition get non-responsive and i get a number of errors:

ata1: status=0x59 { DriveReady SeekComplete DataRequest Error }
ata1: error=0x40 { UncorrectableError }
SCSI error : <0 0 0 0> return code = 0x8000002
Current sda: sense key Medium Error
Additional sense: Unrecovered read error - auto reallocate failed
end_request: I/O error, dev sda, sector 117496206
Buffer I/O error on device sda10, logical block 31831164
ATA: abnormal status 0x59 on port 0xEC07
ATA: abnormal status 0x59 on port 0xEC07
ATA: abnormal status 0x59 on port 0xEC07
ata1: command 0xc8 timeout, stat 0x59 host_stat 0x21
ata1: status=0x59 { DriveReady SeekComplete DataRequest Error }
ata1: error=0x40 { UncorrectableError }
SCSI error : <0 0 0 0> return code = 0x8000002
Current sda: sense key Medium Error
Additional sense: Unrecovered read error - auto reallocate failed

I've tried this with Ubuntu Warty (2.6.8-1 and 2.6.8-3), Hoarthy (2.6.10-3) and knoppix 3.7 (2.4.27 (?))

I could save some of my data by first running jfs_fsck on the partitions, then mounting then and copying small portions at a time to a working IDE-disc (connected to the also embedded IDE-ICH5 controller on the same motherboard).

Regards,
Ronald
 
Old 02-14-2005, 06:10 PM   #12
Jajamd
Member
 
Registered: Aug 2004
Posts: 37

Rep: Reputation: 0
Problem solved, here's what I found out checking another forum:

you have compiled under device drivers --> ATA/ATAPI/MFM/RLL support the old SilIm3112 driver. Choose there only the AMD and nVidia IDE support( for your CDROM/DVD), but no SATA and others.
Go to the SCSI driver part and compile SCSI device support, SCSI disk support and under low level drivers the libata Serial ATA (SATA) support and then there finally the Silicon Image SATA support! Do not forget your Filesystem driver like reiserfs, ext3 to be compiled in the kernel, if you want to boot from it if it is on / the root.

Works like a charm !!
 
Old 02-14-2005, 06:50 PM   #13
ronalde
LQ Newbie
 
Registered: Feb 2005
Posts: 4

Rep: Reputation: 0
jajam wrote:
> Problem solved ...

I don't think so, because I already had configured SCSI SATA instead of IDE SATA.
 
Old 02-15-2005, 12:25 PM   #14
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
did you make sure the old ide sata isn't still in your kernel? Maybe its jsut an issue with that specific kernel or maybe its coz mine is an onboard jobby not a separate card.

Alex
 
Old 02-15-2005, 10:56 PM   #15
ch_music
Member
 
Registered: Apr 2004
Location: Singapore
Distribution: Debian Sarge/Sid
Posts: 52

Original Poster
Rep: Reputation: 15
I've tried 2.6.8 and the latest 2.6.10. I _think_ I disabled the standard ATA driver and got only the SCSI driver. I'm at work so I can't confirm for sure. I compiled the kernel yesterday night and installed it this morning. SATA still not running with any of the 2. The problem is still the same, any program that tries to access the SATA drive freeze and could not be killed. So I'm still using 2.4.27 now (which I thought is far more difficult to compile compared to 2.6 due to the many patches and extra modules that I have to build separately, eg. alsa). Any other idea?

Cheers (at least it's running with 2.4.27),
Chris
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
silicon image 3112 and seagate 200GB sata(non-raid) ganja_guru Linux - Hardware 16 08-08-2005 09:12 AM
SATA Issues Silicon Image / Seagate oneman00 Linux - Hardware 5 03-08-2005 05:41 PM
Sata hdd on Silicon Image controller errors Am0eba Linux - Hardware 0 10-25-2004 03:44 PM
Silicon Image SATA driver in Redhat 9 Dauer Linux - Software 4 09-09-2004 12:08 PM
enabling sata support for silicon image on kernel 2.6.2 fobius Linux - Software 3 02-06-2004 07:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration