mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ian Hastie <ianh@iahastie.clara.net>
To: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org
Cc: Alan Cox <alan@redhat.com>
Subject: Re: PATCH: Add support for IT8212 IDE controllers
Date: Sun, 1 Aug 2004 20:22:28 +0100	[thread overview]
Message-ID: <200408012022.42516.ianh@iahastie.local.net> (raw)
In-Reply-To: <20040731232227.GA28455@devserv.devel.redhat.com>

On Sunday 01 Aug 2004 00:22, Alan Cox wrote:
> There is a messy scsi faking vendor driver for this card but this instead
> is a standard Linux IDE layer driver.
> + *  Documentation available from
> + *     http://www.ite.com.tw/pc/IT8212F_V04.pdf

A newer version than the one I have.  Looks like there's at least one newer 
chip revision than the 0x11 that I have too.

Just need to add something like this to get it to compile.

--- linux-2.6.8-rc2/include/linux/pci_ids.h.it8212	2004-08-01 
18:44:08.000000000 +0100
+++ linux-2.6.8-rc2/include/linux/pci_ids.h	2004-08-01 19:14:44.000000000 
+0100
@@ -1634,6 +1634,7 @@
 #define PCI_VENDOR_ID_ITE		0x1283
 #define PCI_DEVICE_ID_ITE_IT8172G	0x8172
 #define PCI_DEVICE_ID_ITE_IT8172G_AUDIO 0x0801
+#define	PCI_DEVICE_ID_ITE_8212		0x8212
 #define PCI_DEVICE_ID_ITE_8872		0x8872
 #define PCI_DEVICE_ID_ITE_IT8330G_0	0xe886
 
---

Some quick test results I just got.  My set up is a IT8212 PCI card running 
two UDMA133 discs in software RAID0.  I'd like to test the smart RAID some 
time, but that isn't really practical at the moment.

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

That makes sense.

        ide2: BM-DMA at 0xec00-0xec07, BIOS settings: hde:pio, hdf:pio
    it8212: controller in RAID mode.

That doesn't.  I have no RAID sets defined in the IT8212 card BIOS.  BTW, the 
BIOS is an old one and should be updated.  However when I tried the updater 
claimed success, but on reboot it hadn't changed.

        ide3: BM-DMA at 0xec08-0xec0f, BIOS settings: hdg:pio, hdh:pio
    hde: Maxtor 6Y120P0, ATA DISK drive
    it8212: selected 50MHz clock.

Nor does this as it really should be using the 66MHz clock setting.

    ide2 at 0xb000-0xb007,0xa802 on irq 17
    hde: max request size: 128KiB
    hde: recal_intr: status=0x51 { DriveReady SeekComplete Error }
    hde: recal_intr: error=0x04 { DriveStatusError }

Any idea what could be causing this?  My hacked driver doesn't get this in 
2.6.7, but then it could be a 2.6.8 problem.

    hde: 240121728 sectors (122942 MB) w/7936KiB Cache, CHS=65535/16/63, 
UDMA(33)

Oddly my driver reports UDMA(33) too, but that's probably bad coding as it is 
definitely running faster than that.

     /dev/ide/host2/bus0/target0/lun0: p1 p2
    hdg: Maxtor 6Y120P0, ATA DISK drive
    it8212: selected 50MHz clock.
    ide3 at 0xa400-0xa407,0xa002 on irq 17
    hdg: max request size: 128KiB
    hdg: recal_intr: status=0x51 { DriveReady SeekComplete Error }
    hdg: recal_intr: error=0x04 { DriveStatusError }
    hdg: 240121728 sectors (122942 MB) w/7936KiB Cache, CHS=65535/16/63, 
UDMA(33)
     /dev/ide/host2/bus1/target0/lun0: p1 p2

And the same speed problems again.

Now some speed tests with hdparm

# hdparm -Tt /dev/hd[eg] /dev/md[01]

/dev/hde:
 Timing buffer-cache reads:   3016 MB in  2.00 seconds = 1505.97 MB/sec
 Timing buffered disk reads:   86 MB in  3.02 seconds =  28.49 MB/sec

/dev/hdg:
 Timing buffer-cache reads:   3012 MB in  2.00 seconds = 1504.72 MB/sec
 Timing buffered disk reads:   86 MB in  3.02 seconds =  28.46 MB/sec

/dev/md0:
 Timing buffer-cache reads:   2928 MB in  2.00 seconds = 1462.03 MB/sec
 Timing buffered disk reads:  156 MB in  3.01 seconds =  51.90 MB/sec

/dev/md1:
 Timing buffer-cache reads:   2996 MB in  2.00 seconds = 1495.98 MB/sec
 Timing buffered disk reads:  156 MB in  3.01 seconds =  51.77 MB/sec

So I guess it actually is running at 33MHz!

Current results with my hack

# hdparm -Tt /dev/hd[eg] /dev/md[01]

/dev/hde:
 Timing buffer-cache reads:   2980 MB in  2.00 seconds = 1488.74 MB/sec
 Timing buffered disk reads:  172 MB in  3.02 seconds =  57.04 MB/sec

/dev/hdg:
 Timing buffer-cache reads:   2988 MB in  2.00 seconds = 1493.48 MB/sec
 Timing buffered disk reads:  170 MB in  3.03 seconds =  56.15 MB/sec

/dev/md0:
 Timing buffer-cache reads:   2964 MB in  2.00 seconds = 1480.74 MB/sec
 Timing buffered disk reads:  286 MB in  3.00 seconds =  95.25 MB/sec

/dev/md1:
 Timing buffer-cache reads:   2924 MB in  2.00 seconds = 1460.03 MB/sec
 Timing buffered disk reads:  290 MB in  3.01 seconds =  96.33 MB/sec

-- 
Ian.

  reply	other threads:[~2004-08-01 19:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-31 23:22 Alan Cox
2004-08-01 19:22 ` Ian Hastie [this message]
2004-08-01 20:10   ` Alan Cox
2004-08-01 23:05   ` Alan Cox
2004-08-06  0:45     ` Ian Hastie
     [not found] <2obsK-5Ni-13@gated-at.bofh.it>
2004-08-03 11:16 ` Elmar Hinz
2004-08-03 10:50   ` Alan Cox
2004-08-03 12:18     ` Elmar Hinz
2004-08-03 20:42       ` Elmar Hinz
2004-08-04 14:03 ` Elmar Hinz
2004-08-05 10:47   ` Alan Cox
2004-08-06 21:58     ` Elmar Hinz
2004-08-14 19:32   ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200408012022.42516.ianh@iahastie.local.net \
    --to=ianh@iahastie.clara.net \
    --cc=alan@redhat.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®