lkml.org 
[lkml]   [2002]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[bk+patch] Support for UDMA133 on ICH2, ICH3 and C-ICH
    ChangeSet@1.570, 2002-04-28 14:11:19+02:00, vojtech@twilight.ucw.cz
    This patch adds experimental support for enabling UDMA133 modes even on
    ICH2, ICH2-M, ICH3, ICH3-M, ICH3-S and C-ICH chips, which can support the 133 MB/sec
    mode, even though the specs deny it. It's marked experimental, because it's beyond
    the specs, and also not really tested yet.


    Config.help | 9 +++++++++
    Config.in | 3 +++
    piix.c | 9 +++++++--
    3 files changed, 19 insertions(+), 2 deletions(-)


    diff -Nru a/drivers/ide/Config.help b/drivers/ide/Config.help
    --- a/drivers/ide/Config.help Sun Apr 28 14:11:40 2002
    +++ b/drivers/ide/Config.help Sun Apr 28 14:11:40 2002
    @@ -431,6 +431,15 @@
    the kernel to change PIO, DMA and UDMA speeds and to configure
    the chip to optimum performance.

    +CONFIG_BLK_DEV_PIIX_TRY133
    + The ICH2, ICH2-M, ICH3, ICH3-M, ICH3-S and CICH chips can support
    + UDMA133 in hardware, even though the specifications of the chips
    + say otherwise. By enabling this option, you allow the driver to
    + enable the UDMA133 mode on these chips.
    +
    + If you want to stay on the safe side, say N here.
    + If you prefer maximum performance, say Y here.
    +
    CONFIG_BLK_DEV_PDC202XX
    Promise Ultra33 or PDC20246
    Promise Ultra66 or PDC20262
    diff -Nru a/drivers/ide/Config.in b/drivers/ide/Config.in
    --- a/drivers/ide/Config.in Sun Apr 28 14:11:40 2002
    +++ b/drivers/ide/Config.in Sun Apr 28 14:11:40 2002
    @@ -61,6 +61,9 @@
    dep_mbool ' HPT34X AUTODMA support (WIP)' CONFIG_HPT34X_AUTODMA $CONFIG_BLK_DEV_HPT34X $CONFIG_IDEDMA_PCI_WIP
    dep_bool ' HPT366 chipset support' CONFIG_BLK_DEV_HPT366 $CONFIG_BLK_DEV_IDEDMA_PCI
    dep_bool ' Intel and Efar (SMsC) chipset support' CONFIG_BLK_DEV_PIIX $CONFIG_BLK_DEV_IDEDMA_PCI
    + if [ "$CONFIG_BLK_DEV_PIIX" = "y" ]; then
    + dep_bool ' Use UDMA133 even on ICH2, ICH3 and CICH chips (EXPERIMENTAL)' CONFIG_BLK_DEV_PIIX_TRY133 $CONFIG_EXPERIMENTAL
    + fi
    if [ "$CONFIG_MIPS_ITE8172" = "y" -o "$CONFIG_MIPS_IVR" = "y" ]; then
    dep_mbool ' IT8172 IDE support' CONFIG_BLK_DEV_IT8172 $CONFIG_BLK_DEV_IDEDMA_PCI
    dep_mbool ' IT8172 IDE Tuning support' CONFIG_IT8172_TUNING $CONFIG_BLK_DEV_IT8172 $CONFIG_IDEDMA_PCI_AUTO
    diff -Nru a/drivers/ide/piix.c b/drivers/ide/piix.c
    --- a/drivers/ide/piix.c Sun Apr 28 14:11:40 2002
    +++ b/drivers/ide/piix.c Sun Apr 28 14:11:40 2002
    @@ -69,6 +69,11 @@
    #define PIIX_CHECK_REV 0x40 /* May be a buggy revision of PIIX */
    #define PIIX_NODMA 0x80 /* Don't do DMA with this chip */

    +#ifdef CONFIG_BLK_DEV_PIIX_TRY133 /* I think even the older ICHs should be able to do UDMA133 */
    +#undef PIIX_UDMA_100
    +#define PIIX_UDMA_100 PIIX_UDMA_133
    +#endif
    +
    /*
    * Intel IDE chips
    */
    @@ -78,7 +83,7 @@
    unsigned char flags;
    } piix_ide_chips[] = {
    { PCI_DEVICE_ID_INTEL_82801DB_9, PIIX_UDMA_133 | PIIX_PINGPONG }, /* Intel 82801DB ICH4 */
    - { PCI_DEVICE_ID_INTEL_82801CA_11, PIIX_UDMA_100 | PIIX_PINGPONG }, /* Intel 82801CA ICH3 */
    + { PCI_DEVICE_ID_INTEL_82801CA_11, PIIX_UDMA_100 | PIIX_PINGPONG }, /* Intel 82801CA ICH3/ICH3-S */
    { PCI_DEVICE_ID_INTEL_82801CA_10, PIIX_UDMA_100 | PIIX_PINGPONG }, /* Intel 82801CAM ICH3-M */
    { PCI_DEVICE_ID_INTEL_82801E_9, PIIX_UDMA_100 | PIIX_PINGPONG }, /* Intel 82801E C-ICH */
    { PCI_DEVICE_ID_INTEL_82801BA_9, PIIX_UDMA_100 | PIIX_PINGPONG }, /* Intel 82801BA ICH2 */
    @@ -87,7 +92,7 @@
    { PCI_DEVICE_ID_INTEL_82801AA_1, PIIX_UDMA_66 | PIIX_PINGPONG }, /* Intel 82801AA ICH */
    { PCI_DEVICE_ID_INTEL_82372FB_1, PIIX_UDMA_66 }, /* Intel 82372FB PIIX5 */
    { PCI_DEVICE_ID_INTEL_82443MX_1, PIIX_UDMA_33 }, /* Intel 82443MX MPIIX4 */
    - { PCI_DEVICE_ID_INTEL_82371AB, PIIX_UDMA_33 }, /* Intel 82371AB/EB PIIX4/4E */
    + { PCI_DEVICE_ID_INTEL_82371AB, PIIX_UDMA_33 }, /* Intel 82371AB/EB PIIX4/PIIX4E */
    { PCI_DEVICE_ID_INTEL_82371SB_1, PIIX_UDMA_NONE }, /* Intel 82371SB PIIX3 */
    { PCI_DEVICE_ID_INTEL_82371FB_1, PIIX_UDMA_NONE | PIIX_NO_SITRE | PIIX_CHECK_REV }, /* Intel 82371FB PIIX */
    { PCI_DEVICE_ID_EFAR_SLC90E66_1, PIIX_UDMA_66 | PIIX_VICTORY }, /* Efar Victory66 */
    ===================================================================

    This BitKeeper patch contains the following changesets:
    +
    ## Wrapped with gzip_uu ##


    begin 664 bkpatch10557
    M'XL(`/SFRSP``[57?V_;-A#]V_H4AV1`M]:614G6#P\9FCA>*C1)C30=6JR#
    M04M4Q$46#5&.Z\W[[CM2MN,V<5)GB^+0T.'X[O%X]TCOPP?)RF[C1OQ9L3@S
    M]N&-D%6W4<UXSJ^RRIS&,S/^"^T70J"]G8DQ:R^]VZ/K-D]8RS8[!GH,:!5G
    M<,-*V6T0TUE;JOF$=1L7_9,/IX<7AG%P`+V,%E?L/:O@X,"H1'E#\T2^IE66
    M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:FE[O+5X\93&\AQPC`;P%'Z'O1_N:;`].("]^1[\\;.B5Z`O/@F;
    M#$="Y/`"](-WRG6M+N\AM[WH?-MS/_8_#OH7T5G__/+P]*<7L+VM8<5H<P92
    M2/F=HJR/K=TJ<I>S<^M%\Z&S4]TXW87M=3I$EZ']!&WWH64_6QG>J;C53;`6
    M(7EG5Y>JF5,^1DE#%.V`_`4*B%9$],KG)ARJFURL:4F0^","D*>Z"TI=U/HZ
    M\4!1UYE\2D7[!#K&/D\3ECY068WV2XB4(A?7*X%'A<T35$0L5&2,>I\G>$^%
    M6HP%)&*=C)=M8W]:J``:49F'F`-C'TV\8%];-]_PH-IG1<)35-5CO"T2(])C
    MXV\8]"+%,>KUA]'Q,#J_[)\.`SNP2`_GD6;C:\Q%C3J(SD\&[\Y/X)\FW/.H
    M-185RV$)I+NQO3P(<1''H:4HZ'$K!<<GAT?-Q@8!S,#]\1XBH&':_2--W&WK
    >L:](K'\VQAG*O9R.#]+4\EW7'AG_`@7(\2:M#@``
    `
    end
    -
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:25    [W:0.028 / U:119.856 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site