* IT8212 in 2.6.9-ac6 no raid 0 or raid 1
@ 2004-11-08 21:14 Robert Toole
2004-11-09 9:34 ` Alan Cox
0 siblings, 1 reply; 7+ messages in thread
From: Robert Toole @ 2004-11-08 21:14 UTC (permalink / raw)
To: alan; +Cc: linux-kernel
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-->
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: IT8212 in 2.6.9-ac6 no raid 0 or raid 1
2004-11-08 21:14 IT8212 in 2.6.9-ac6 no raid 0 or raid 1 Robert Toole
@ 2004-11-09 9:34 ` Alan Cox
2004-11-10 15:15 ` Robert Toole
0 siblings, 1 reply; 7+ messages in thread
From: Alan Cox @ 2004-11-09 9:34 UTC (permalink / raw)
To: Robert Toole; +Cc: alan, Linux Kernel Mailing List
On Llu, 2004-11-08 at 21:14, Robert Toole wrote:
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: IT8212 in 2.6.9-ac6 no raid 0 or raid 1
2004-11-09 9:34 ` Alan Cox
@ 2004-11-10 15:15 ` Robert Toole
2004-11-10 18:16 ` Alan Cox
0 siblings, 1 reply; 7+ messages in thread
From: Robert Toole @ 2004-11-10 15:15 UTC (permalink / raw)
To: Alan Cox; +Cc: Linux Kernel Mailing List
Alan Cox wrote:
> On Llu, 2004-11-08 at 21:14, Robert Toole wrote:
>
>>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
>
>
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: IT8212 in 2.6.9-ac6 no raid 0 or raid 1
2004-11-10 15:15 ` Robert Toole
@ 2004-11-10 18:16 ` Alan Cox
2004-11-10 21:22 ` Robert Toole
0 siblings, 1 reply; 7+ messages in thread
From: Alan Cox @ 2004-11-10 18:16 UTC (permalink / raw)
To: Robert Toole; +Cc: Linux Kernel Mailing List
On Mer, 2004-11-10 at 15:15, Robert Toole wrote:
> 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.
>
> 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 ;)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: IT8212 in 2.6.9-ac6 no raid 0 or raid 1
2004-11-10 18:16 ` Alan Cox
@ 2004-11-10 21:22 ` Robert Toole
2004-11-10 21:25 ` Robert Toole
2004-11-10 22:07 ` Alan Cox
0 siblings, 2 replies; 7+ messages in thread
From: Robert Toole @ 2004-11-10 21:22 UTC (permalink / raw)
To: Alan Cox; +Cc: Linux Kernel Mailing List
Alan Cox wrote:
> On Mer, 2004-11-10 at 15:15, Robert Toole wrote:
>
>>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.
-
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: IT8212 in 2.6.9-ac6 no raid 0 or raid 1
2004-11-10 21:22 ` Robert Toole
@ 2004-11-10 21:25 ` Robert Toole
2004-11-10 22:07 ` Alan Cox
1 sibling, 0 replies; 7+ messages in thread
From: Robert Toole @ 2004-11-10 21:25 UTC (permalink / raw)
To: Robert Toole; +Cc: Alan Cox, Linux Kernel Mailing List
> 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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: IT8212 in 2.6.9-ac6 no raid 0 or raid 1
2004-11-10 21:22 ` Robert Toole
2004-11-10 21:25 ` Robert Toole
@ 2004-11-10 22:07 ` Alan Cox
1 sibling, 0 replies; 7+ messages in thread
From: Alan Cox @ 2004-11-10 22:07 UTC (permalink / raw)
To: Robert Toole; +Cc: Linux Kernel Mailing List
On Mer, 2004-11-10 at 21:22, Robert Toole wrote:
> /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
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
> 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.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-11-10 23:11 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-08 21:14 IT8212 in 2.6.9-ac6 no raid 0 or raid 1 Robert Toole
2004-11-09 9:34 ` Alan Cox
2004-11-10 15:15 ` Robert Toole
2004-11-10 18:16 ` Alan Cox
2004-11-10 21:22 ` Robert Toole
2004-11-10 21:25 ` Robert Toole
2004-11-10 22:07 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).