Re: PATCH: Add support for IT8212 IDE controllers

From: Ian Hastie (ianh_at_iahastie.clara.net)
Date: 08/01/04

  • Next message: Ingo Molnar: "[patch] voluntary-preempt-2.6.8-rc2-O2"
    To: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org
    Date:	Sun, 1 Aug 2004 20:22:28 +0100
    
    

    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.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Ingo Molnar: "[patch] voluntary-preempt-2.6.8-rc2-O2"

    Relevant Pages

    • RE: [UPDATED PATCH] EFI support for ia32 kernels
      ... >> reuse a single driver image for multiple architectures assuming there ... As one of the people responsible for the EFI Specification and our ... Perhaps the UNDI network card interface that Intel developed ... BIOS can't shadow that much ROM code. ...
      (Linux-Kernel)
    • Re: Linux, X, ld, gcc, linking, shared libraries and stuff
      ... >> because, originally, video cards / system RAM could NOT afford to have ... > GL actually "copies" everything, but it's done by the graphics card, so ... > anyway if it's not hardware accelerated. ... installed the proper driver, then it zooms around the screen... ...
      (alt.lang.asm)
    • Re: XXX_Init only being called once
      ... > My stream interface driver has been stripped right back to try to solve ... > I plug my card in the first time. ... > There are two new active keys in the registry PCMCIA and myDriver. ... > No entry points are called in my driver. ...
      (microsoft.public.windowsce.platbuilder)
    • Re: VIA Envy24PT sound card driver loads at startup properly 9 of 10 times
      ... driver updates including the latest and correct driver for the sound card. ... Onboard sound chip is disabled in BIOS and the driver for it is not installed. ... The sound card, Chaintech, Envy24 Family Audio Controller WDM, is installed/seated properly and uses the IRQ 16 exclusively. ...
      (microsoft.public.windowsxp.hardware)
    • Re: WDF storage driver is a dead-end street
      ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... AHCI controller card, etc. ... Since the extension is passed in the miniport at ... So I need to create a virtual adapter out of two physical adapters. ...
      (microsoft.public.development.device.drivers)