Re: 2.3.99-pre3 UDMA33 Errors

From: Andre Hedrick (andre@linux-ide.org)
Date: Fri Mar 31 2000 - 14:48:45 EST


The silly me........I lost my 'n'........

Thanks.....

On Fri, 31 Mar 2000, Dragos Acostachioaie wrote:

>
> > Brute forcing UDMA on my [ALi] M5229 IDE (rev 20) I got my second
> > hd WDC completely f... Since that bad day I've put :
> >
> > /sbin/hdparm -d0 /dev/hdc >/dev/null 2>/dev/null
> >
> > on my rc.local ;)
> >
> > Btw this is only a my problem because m5229_revision <= 20
> > can't do UDMA ( WDC or not ).
> >
> > What about your lspci?
> > Is the WDC workaround too permissive ?
>
> The WDC workaround turns UDMA/33 off when activated and on when
> not. The following patch fixes this:
>
> --- alim15x3.c.orig Fri Mar 24 23:22:04 2000
> +++ alim15x3.c Sat Mar 25 00:02:08 2000
> @@ -409,14 +409,14 @@
>
> static byte ali15x3_can_ultra (ide_drive_t *drive)
> {
> -#ifdef CONFIG_WDC_ALI15X3
> +#ifndef CONFIG_WDC_ALI15X3
> struct hd_driveid *id = drive->id;
> #endif /* CONFIG_WDC_ALI15X3 */
>
> if (m5229_revision <= 0x20) {
> return 0;
> } else if ((m5229_revision < 0xC2) &&
> -#ifdef CONFIG_WDC_ALI15X3
> +#ifndef CONFIG_WDC_ALI15X3
> ((chip_is_1543c_e && strstr(id->model, "WDC ")) ||
> (drive->media!=ide_disk))) {
> #else /* CONFIG_WDC_ALI15X3 */
>
> (already sent to cjtsai@ali.com.tw)
>
> > if (m5229_revision < 0xC2) && ((chip_is_1543c_e && strstr(id->model, "WDC "))
> > then NOUDMA
>
>
> Regards,
> Dragos.
>
> ---------------------------------------------------------------------
> Dragos Acostachioaie dragos@iname.com
> Magic Pinguin SRL http://www.arbornet.org/~dragos
> Iasi, Romania Phone: +40-94-564548
> Fax: +40-32-143902
> ---------------------------------------------------------------------
>

Andre Hedrick
The Linux ATA/IDE guy

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:30 EST