From: Bartlomiej Zolnierkiewicz Subject: Re: piix dma setup code Date: Thu, 20 May 2004 00:59:19 +0200 Sender: linux-ide-owner@vger.kernel.org Message-ID: <200405200059.19575.bzolnier@elka.pw.edu.pl> References: <40A9F150.4070209@turbolinux.co.jp> <200405191851.06281.bzolnier@elka.pw.edu.pl> <40ABE058.7070705@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from mion.elka.pw.edu.pl ([194.29.160.35]:62391 "EHLO mion.elka.pw.edu.pl") by vger.kernel.org with ESMTP id S264647AbUESXL4 (ORCPT ); Wed, 19 May 2004 19:11:56 -0400 In-Reply-To: <40ABE058.7070705@pobox.com> Content-Disposition: inline List-Id: linux-ide@vger.kernel.org To: Jeff Garzik Cc: Go Taniguchi , linux-ide@vger.kernel.org, "Nakajima, Jun" On Thursday 20 of May 2004 00:31, Jeff Garzik wrote: > (added Jun to CC) > > Bartlomiej Zolnierkiewicz wrote: > > On Tuesday 18 of May 2004 13:19, Go Taniguchi wrote: > >>If speed is XFER_UDMA_6, base clock is set to low base clock. > >>It should be "speed >= XFER_UDMA_5". My ICH6 system reported XFER_UDMA_6, > > > > Jeff, does ICH6 support UDMA6? > > ICH5 doesn't but ata_piix.c allows it. > > Good question. AFAICS ICH5 and ICH6 are the same such that: > * PATA does not support UDMA6 > * internal base clock is 133Mhz for UDMA5 strange, it is 100MHz according to the datasheet > * SATA PCI device exports, but completely ignores, PATA timing registers > > So for ata_piix at least, I would prefer to do > * patch1: your patch, based on Go's patch > * patch2: only configure timing registers for PATA port (PATA is only > used when an #ifdef is defined) > * patch3: do not limit SATA to udma5 OK this reminds me that long time ago I spotted small bug in configuring PATA timing registers in ata_piix.c but was too lazy to send a patch because code is #ifdef-ed and bug was (is?) only for slave device 8) Bartlomiej