All of lore.kernel.org
 help / color / mirror / Atom feed
* Initio 162x SATA controllers
@ 2008-05-05 15:57 Johan van den Berg
  2008-05-05 21:36 ` Alan Cox
  0 siblings, 1 reply; 3+ messages in thread
From: Johan van den Berg @ 2008-05-05 15:57 UTC (permalink / raw)
  To: linux-ide

I have run into the same issue as reported before and as is well known  
and discussed on this list:

ata14.00: ERROR: This driver doesn't support LBA48 yet and may cause
                data corruption on such devices.  Disabling.

Commenting out the LBA48 check and actually testing the driver did  
confirm that the driver causes problems:

sata_inic162x 0000:02:01.0: version 0.2
PCI: Enabling device 0000:02:01.0 (0110 -> 0113)
ACPI: PCI Interrupt 0000:02:01.0[A] -> GSI 22 (level, low) -> IRQ 201
scsi14 : sata_inic162x
scsi15 : sata_inic162x
ata15: SATA max UDMA/133 cmd 0x0001b800 ctl 0x0001b402 bmdma  
0x00000000 irq 201
ata16: SATA max UDMA/133 cmd 0x0001b000 ctl 0x0001a802 bmdma  
0x00000000 irq 201
ata15: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata15.00: Host Protected Area detected:
	current size: 1465149168 sectors
	native size: -279681296 sectors
ata15.00: ATA-8: ST3750330AS, SD15, max UDMA/133
ata15.00: 1465149168 sectors, multi 0: LBA48 NCQ (depth 0/32)
ata15.00: Host Protected Area detected:
	current size: 1465149168 sectors
	native size: -279681296 sectors
ata15.00: configured for UDMA/133
ata16: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata16.00: Host Protected Area detected:
	current size: 1465149168 sectors
	native size: -279681296 sectors
ata16.00: ATA-8: ST3750330AS, SD15, max UDMA/133
ata16.00: 1465149168 sectors, multi 0: LBA48 NCQ (depth 0/32)
ata16.00: Host Protected Area detected:
	current size: 1465149168 sectors
	native size: -279681296 sectors
ata16.00: configured for UDMA/133
  Vendor: ATA       Model: ST3750330AS       Rev: SD15
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sdb: 1465149168 512-byte hdwr sectors (750156 MB)
sdb: Write Protect is off
sdb: Mode Sense: 00 3a 00 00
SCSI device sdb: drive cache: write back
SCSI device sdb: 1465149168 512-byte hdwr sectors (750156 MB)
sdb: Write Protect is off
sdb: Mode Sense: 00 3a 00 00
SCSI device sdb: drive cache: write back
sdb: sdb1
sd 14:0:0:0: Attached scsi disk sdb

An mke2fs runs up to 1204 inodes and then starts spitting out the  
following on console:

ata15.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
ata15.00: cmd 35/00:00:cf:01:00/00:01:10:00:00/e0 tag 0 cdb 0x0 data  
131072 out
         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata15: hard resetting port
ata15: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata15.00: Host Protected Area detected:
	current size: 1465149168 sectors
	native size: -279681296 sectors
ata15.00: Host Protected Area detected:
	current size: 1465149168 sectors
	native size: -279681296 sectors
ata15.00: configured for UDMA/133
ata15: EH complete

I have read up as much as possible to start looking into hacking the  
driver to support LBA48. Any pointers / suggestions before I start  
bumping my head?

I am an experienced linux programmer with a lot of unpolished skills  
in kernel development.

I really need to get my drives working...

lspci -v produces the following:

02:01.0 SATA controller: Initio Corporation INI-1623 PCI SATA-II  
Controller (rev 02) (prog-if 00 [Vendor specific])
	Subsystem: Initio Corporation INI-1623 PCI SATA-II Controller
	Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 201
	I/O ports at b800 [size=256]
	I/O ports at b400 [size=256]
	I/O ports at b000 [size=256]
	I/O ports at a800 [size=256]
	I/O ports at a400 [size=256]
	Memory at ff941000 (32-bit, non-prefetchable) [size=4K]
	Expansion ROM at 50000000 [disabled] [size=256K]
	Capabilities: [dc] Power Management version 2

Johan van den Berg
Managing Director
Teqcle Information Technologies (Pty.) Ltd.

Email: johanvdb@teqcle.co.za
Cel: 0732013520





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Initio 162x SATA controllers
  2008-05-05 15:57 Initio 162x SATA controllers Johan van den Berg
@ 2008-05-05 21:36 ` Alan Cox
  2008-05-06  0:23   ` Johan van den Berg
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Cox @ 2008-05-05 21:36 UTC (permalink / raw)
  To: Johan van den Berg; +Cc: linux-ide

> I have read up as much as possible to start looking into hacking the  
> driver to support LBA48. Any pointers / suggestions before I start  
> bumping my head?

Tejun committed an updated driver to the devel tree so if you pull the
current git trees you should be able to get it to work.

Alan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Initio 162x SATA controllers
  2008-05-05 21:36 ` Alan Cox
@ 2008-05-06  0:23   ` Johan van den Berg
  0 siblings, 0 replies; 3+ messages in thread
From: Johan van den Berg @ 2008-05-06  0:23 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-ide

Thanks Alan

I have pulled the latest git and can confirm (via some reading of the  
code) that I have the latest patches for the inic162x  as modified by  
Tejun Heo.

I have now compiled and installed 2.6.26-rc1.

My boot disk is also SATA though and connected via an onboard intel  
chip (00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA  
Controller (rev 02)) which requires the ata_piix driver.

On RHEL5 2.6.18 I am able to boot off ata_piix but not access the  
inic162x, and on 2.6.26-rc1 I am unable to access ata_piix hardware  
but inic162x seems to work.

The issue I am experiencing with ata_piix is identical to: http://www.nabble.com/-2.6.18,19--SATA-boot-problems-(ICH6-ICH6W)-td7799939.html

Any directions would be appreciated.


Johan van den Berg
Managing Director
Teqcle Information Technologies (Pty.) Ltd.

Email: johanvdb@teqcle.co.za
Cel: 0732013520




On 05 May 2008, at 11:36 PM, Alan Cox wrote:

>> I have read up as much as possible to start looking into hacking the
>> driver to support LBA48. Any pointers / suggestions before I start
>> bumping my head?
>
> Tejun committed an updated driver to the devel tree so if you pull the
> current git trees you should be able to get it to work.
>
> Alan


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-05-06  0:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-05 15:57 Initio 162x SATA controllers Johan van den Berg
2008-05-05 21:36 ` Alan Cox
2008-05-06  0:23   ` Johan van den Berg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.