Skip to contentSkip to conversation

IT8212 in 2.6.9-ac6 no raid 0 or raid 1

DISCUSSION Robert Toole 2 participants 7 messages Nov 8, 2004 – Nov 10, 2004

lore
Share & tools
lore
#0 lore raw

Alan, thanks for your work on the ITE8212 controllers.

Just tried your ac-6 patch for 2.6.9 on my embedded Raid controller. with the controller set up in normal (No raid mode) everything is good.

When I try raid 0 or 1, I get the INVALID GEOMETRY: 0 PHYSICAL HEADS? error, and the raid device is not accessible after boot.

Maybe I am just missing something silly in the .config?

I put what I think is relevant below, I would be happy to provide extra info as requested and help test patches etc...

Please cc me as I am not subscribed to the list.

Thanks in advance,

Robert Toole
Systems Engineer
KN Logistics / Calgary
robert <dot> toole <at> kuehne <dash> nagel <dot> com

Hardware:

Gigabyte GA7N400M Pro 2 (Rev 2.0) Motherboard (with latest BIOS from Giga-byte) Athlon 2200+

Relevant portion of dmesg:

<--snip-->

IT8212: IDE controller at PCI slot 0000:01:0c.0
ACPI: PCI interrupt 0000:01:0c.0[A] -> GSI 11 (level, low) -> IRQ 11
IT8212: chipset revision 17
IT8212: 100% native mode on irq 11

    ide2: BM-DMA at 0xa400-0xa407, BIOS settings: hde:pio, hdf:pio
it8212: controller in smart mode.
    ide3: BM-DMA at 0xa408-0xa40f, BIOS settings: hdg:pio, hdh:pio

Probing IDE interface ide2...
hde: Integrated Technology Express Inc, ATA DISK drive ide2 at 0x9410-0x9417,0x9802 on irq 11 Probing IDE interface ide3...
Probing IDE interface ide3...
Probing IDE interface ide4...
ide4: Wait for ready failed before probe ! Probing IDE interface ide5...
ide5: Wait for ready failed before probe !
hda: max request size: 1024KiB
hda: Host Protected Area detected.

	current capacity is 78240863 sectors (40059 MB)
	native  capacity is 78242976 sectors (40060 MB)

hda: 78240863 sectors (40059 MB) w/2048KiB Cache, CHS=16383/255/63, UDMA(100)
hda: cache flushes supported
/dev/ide/host0/bus0/target0/lun0: p1 p2 p3
hde: max request size: 128KiB
hde: 0 sectors (0 MB)
hde: cache flushes not supported
hde: INVALID GEOMETRY: 0 PHYSICAL HEADS?

<--snip-->

lspci:

0000:00:00.0 Host bridge: nVidia Corporation nForce2 AGP (different version?) (rev c1)
0000:00:00.1 RAM memory: nVidia Corporation nForce2 Memory Controller 1 (rev c1)
0000:00:00.2 RAM memory: nVidia Corporation nForce2 Memory Controller 4 (rev c1)
0000:00:00.3 RAM memory: nVidia Corporation nForce2 Memory Controller 3 (rev c1)
0000:00:00.4 RAM memory: nVidia Corporation nForce2 Memory Controller 2 (rev c1)
0000:00:00.5 RAM memory: nVidia Corporation nForce2 Memory Controller 5 (rev c1)
0000:00:01.0 ISA bridge: nVidia Corporation nForce2 ISA Bridge (rev a4)
0000:00:01.1 SMBus: nVidia Corporation nForce2 SMBus (MCP) (rev a2)
0000:00:02.0 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)
0000:00:02.1 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)
0000:00:02.2 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)
0000:00:06.0 Multimedia audio controller: nVidia Corporation nForce2 AC97 Audio Controler (MCP) (rev a1)
0000:00:08.0 PCI bridge: nVidia Corporation nForce2 External PCI Bridge (rev a3)
0000:00:09.0 IDE interface: nVidia Corporation nForce2 IDE (rev a2)
0000:00:1e.0 PCI bridge: nVidia Corporation nForce2 AGP (rev c1)
0000:01:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
0000:01:0c.0 RAID bus controller: Integrated Technology Express, Inc. IT/ITE8212 Dual channel ATA RAID controller (PCI version seems to be IT8212, embedded seems (rev 11) 0000:01:0e.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link)
0000:02:00.0 VGA compatible controller: ATI Technologies Inc RV280 [Radeon 9200 SE] (rev 01)
0000:02:00.1 Display controller: ATI Technologies Inc RV280 [Radeon 9200 SE] (Secondary) (rev 01)

My .config:

<--snip-->

#
# ATA/ATAPI/MFM/RLL support
#
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y

#
# Please see Documentation/ide.txt for help/info on IDE drives #
# CONFIG_BLK_DEV_IDE_SATA is not set
# CONFIG_BLK_DEV_HD_IDE is not set CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
CONFIG_BLK_DEV_IDECD=y
# CONFIG_BLK_DEV_IDETAPE is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set CONFIG_BLK_DEV_IDESCSI=m
CONFIG_IDE_TASK_IOCTL=y
# CONFIG_IDE_TASKFILE_IO is not set

#
# IDE chipset support/bugfixes
#
CONFIG_IDE_GENERIC=y
# CONFIG_BLK_DEV_CMD640 is not set
CONFIG_BLK_DEV_IDEPNP=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
# CONFIG_BLK_DEV_OFFBOARD is not set
CONFIG_BLK_DEV_GENERIC=y
# CONFIG_BLK_DEV_OPTI621 is not set
# CONFIG_BLK_DEV_RZ1000 is not set
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
CONFIG_BLK_DEV_AMD74XX=y
# CONFIG_BLK_DEV_ATIIXP is not set
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_TRIFLEX is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_CS5520 is not set
# CONFIG_BLK_DEV_CS5530 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_BLK_DEV_HPT366 is not set
# CONFIG_BLK_DEV_SC1200 is not set
# CONFIG_BLK_DEV_PIIX is not set
CONFIG_BLK_DEV_IT8212=y
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_PDC202XX_OLD is not set
# CONFIG_BLK_DEV_PDC202XX_NEW is not set
# CONFIG_BLK_DEV_SVWKS is not set
# CONFIG_BLK_DEV_SIIMAGE is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
# CONFIG_BLK_DEV_VIA82CXXX is not set
# CONFIG_IDE_ARM is not set
# CONFIG_IDE_CHIPSETS is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_BLK_DEV_HD is not set

<--snip-->

#1 lore raw
Quoted 7 lines · Robert Toole

Alan, thanks for your work on the ITE8212 controllers.

Just tried your ac-6 patch for 2.6.9 on my embedded Raid controller. with the controller set up in normal (No raid mode) everything is good.

When I try raid 0 or 1, I get the INVALID GEOMETRY: 0 PHYSICAL HEADS? error, and the raid device is not accessible after boot.

RAID needs -ac7 which I'll post tomorrow. Bartlomiej found a bug in the -ac7 draft code when I submitted it for 2.6.10rc merging so it slipped a day.

Alan

#2 lore raw
Quoted 6 lines · Alan Cox
Quoted 4 lines · Robert Toole

Alan, thanks for your work on the ITE8212 controllers.

Just tried your ac-6 patch for 2.6.9 on my embedded Raid controller. with the controller set up in normal (No raid mode) everything is good.

Quoted 10 lines
Quoted 1 line

When I try raid 0 or 1, I get the INVALID GEOMETRY: 0 PHYSICAL HEADS? error, and the raid device is not accessible after boot.

RAID needs -ac7 which I'll post tomorrow. Bartlomiej found a bug in the -ac7 draft code when I submitted it for 2.6.10rc merging so it slipped a day.

Alan

I installed -ac7 yesterday, and have been testing for 24 hours now with no problems. (It's way better than the scsi hack from ITE) There is just one thing, the driver did not enable DMA by default, needless to say performance was awful. I turned it on with hdparm and everything appears ok. Is this by design due to the experimental nature of the driver?

I am testing by copying about 400 mb of files from one folder to another on the raid array, over and over again. Is there a howto or test software out there for better method to *really* hammer on the driver?

Thanks,
Robert Toole

#3 lore raw
Quoted 5 lines · Robert Toole

I installed -ac7 yesterday, and have been testing for 24 hours now with no problems. (It's way better than the scsi hack from ITE) There is just one thing, the driver did not enable DMA by default, needless to say performance was awful. I turned it on with hdparm and everything appears ok. Is this by design due to the experimental nature of the driver?

Ah that is a bug. Please send me more info - drive info, hdparm etc.

Quoted 4 lines

I am testing by copying about 400 mb of files from one folder to another on the raid array, over and over again. Is there a howto or test software out there for better method to *really* hammer on the driver?

Just use it. Its been hammered a lot as part of my testing but the moment other people just use it it breaks ;)

#4 lore raw
Quoted 8 lines · Alan Cox
Quoted 1 line · Robert Toole

I installed -ac7 yesterday, and have been testing for 24 hours now with no problems. (It's way better than the scsi hack from ITE) There is just one thing, the driver did not enable DMA by default, needless to say performance was awful. I turned it on with hdparm and everything appears ok. Is this by design due to the experimental nature of the driver?

Ah that is a bug. Please send me more info - drive info, hdparm etc.

Ok here is what I have:

Gigabyte GA-7M400 Pro 2 (Rev 2.0) integrated IT8212 controller:

- Bios for the controller: 1.14, Firmware ver 02093030

Info from the setup utility:

- RAID resources
Ch0 Interrupt:B I/P port: 00009410
Ch1 Interrupt:B I/P port: 00009C10

- Auto rebuild is on

- The controller sets up the drives with UDMA6 on post.

Hard drive info:

2 x Maxtor 40GB 7200rpm ATA133 Model: 6E040L0 set up in a raid 1 config.

Right after I boot I do: hdparm -tT /dev/hde

/dev/hde:
Timing cached reads: 1620 MB in 2.00 seconds = 809.31 MB/sec
Timing buffered disk reads: 6 MB in 3.40 seconds = 1.77 MB/sec

hdparm /dev/hde

/dev/hde:

 multcount    =  0 (off)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 readonly     =  0 (off)

readahead = 256 (on)
geometry = 4998/255/63, sectors = 41110141952, start = 0

hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hde

- it does not like the multicount setting, saying HDIO_SET_MULTCOUNT failed: invalid argument. (I don't really understand this, and don't think I need it, I picked it up from the gentoo howto.) the drives work great anyway :) I included the error because it might tell you something.

/dev/hde:
setting fs readahead to 64
setting multcount to 16
setting unmaskirq to 1 (on)
setting using_dma to 1 (on)
setting drive read-lookahead to 1 (on)

 multcount    =  0 (off)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 readahead    = 64 (on)

hdparm -tT /dev/hde

/dev/hde:
Timing cached reads: 1604 MB in 2.00 seconds = 801.72 MB/sec
Timing buffered disk reads: 158 MB in 3.00 seconds = 52.59 MB/sec

For comparison, here is hdparm from /dev/hda which is attached to the nforce2 controller:

/dev/hda:
Timing cached reads: 1624 MB in 2.00 seconds = 810.10 MB/sec
Timing buffered disk reads: 150 MB in 3.01 seconds = 49.81 MB/sec

/dev/hda:

 multcount    = 16 (on)
 IO_support   =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 16383/255/63, sectors = 40059321856, start = 0

It works fantastic once you enable dma

Here is dmesg (snipped for brevity)

<--snip-->

Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
NFORCE2: IDE controller at PCI slot 0000:00:09.0
NFORCE2: chipset revision 162
NFORCE2: not 100% native mode: will probe irqs later
NFORCE2: BIOS didn't set cable bits correctly. Enabling workaround.
NFORCE2: 0000:00:09.0 (rev a2) UDMA133 controller

    ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:DMA

Probing IDE interface ide0...
hda: SAMSUNG SP0411N, ATA DISK drive
Using anticipatory io scheduler
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hdc: HL-DT-ST GCE-8525B, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
IT8212: IDE controller at PCI slot 0000:01:0c.0
ACPI: PCI interrupt 0000:01:0c.0[A] -> GSI 11 (level, low) -> IRQ 11
IT8212: chipset revision 17
IT8212: 100% native mode on irq 11

    ide2: BM-DMA at 0xa400-0xa407, BIOS settings: hde:pio, hdf:pio
it8212: controller in smart mode.
    ide3: BM-DMA at 0xa408-0xa40f, BIOS settings: hdg:pio, hdh:pio

Probing IDE interface ide2...
hde: Integrated Technology Express Inc, ATA DISK drive
hde: IT8212 RAID 1 volume.
ide2 at 0x9410-0x9417,0x9802 on irq 11
Probing IDE interface ide3...
Probing IDE interface ide3...
Probing IDE interface ide4...
ide4: Wait for ready failed before probe !
Probing IDE interface ide5...
ide5: Wait for ready failed before probe !
hda: max request size: 1024KiB
hda: Host Protected Area detected.
current capacity is 78240863 sectors (40059 MB)
native capacity is 78242976 sectors (40060 MB)
hda: 78240863 sectors (40059 MB) w/2048KiB Cache, CHS=16383/255/63, UDMA(100)
hda: cache flushes supported
/dev/ide/host0/bus0/target0/lun0: p1 p2 p3
hde: max request size: 128KiB
hde: 80293246 sectors (41110 MB), CHS=4998/255/63
hde: cache flushes not supported
/dev/ide/host2/bus0/target0/lun0: p1
hdc: ATAPI 52X CD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33) Uniform CD-ROM driver Revision: 3.20

Is there any more info you could use? My lspci, .config is in my first post. This is a pure test box, so I can do pretty much anything you want to it :)

Thanks,
Robert.

-

#5 lore raw
Quoted 8 lines

Ok here is what I have:

Gigabyte GA-7M400 Pro 2 (Rev 2.0) integrated IT8212 controller:

- Bios for the controller: 1.14, Firmware ver 02093030

Whoops! The Bios is 1.41, not 1.14, sorry about that.

Robert.

#6 lore raw
In reply to Robert Toole
Quoted 7 lines · Robert Toole

/dev/hde:

  multcount    =  0 (off)
  IO_support   =  0 (default 16-bit)
  unmaskirq    =  0 (off)
  using_dma    =  0 (off)
  keepsettings =  0 (off)
  readonly     =  0 (off)
Quoted 6 lines

readahead = 256 (on)
geometry = 4998/255/63, sectors = 41110141952, start = 0

hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hde

- it does not like the multicount setting, saying HDIO_SET_MULTCOUNT

Thats correct - in raid mode the controller emulates an IDE controller but is doing all the work (its actually hardware raid) and it doesn't support multisector PIO stuff (not that this matters for DMA). The -u1 and -d1 are the two that matter

Quoted 3 lines

Is there any more info you could use? My lspci, .config is in my first post. This is a pure test box, so I can do pretty much anything you want to it :)

No this makes sense - I need to adjust the fixup handling slightly. I fix up the IT8212 misreporting of DMA a little too late for the generic code to decide to turn DMA on.