From owner-freebsd-drivers@FreeBSD.ORG Fri Mar 7 20:59:56 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CD331065692 for ; Fri, 7 Mar 2008 20:59:56 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id 8C78C8FC17 for ; Fri, 7 Mar 2008 20:59:55 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id 34B4561BA3B; Fri, 7 Mar 2008 12:59:55 -0800 (PST) Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26358-09; Fri, 7 Mar 2008 12:59:51 -0800 (PST) Received: from iago.office.miralink.com (iago.office.miralink.com [10.0.0.40]) by plato.miralink.com (Postfix) with ESMTP id EECEC61BA20; Fri, 7 Mar 2008 12:59:51 -0800 (PST) Message-ID: <47D1ACC7.3000203@miralink.com> Date: Fri, 07 Mar 2008 12:59:51 -0800 From: Sean Bruno User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: "Andrey V. Elsukov" References: <47CEF71D.6060600@miralink.com> <47CF786D.2000805@yandex.ru> <47CF7C73.70403@miralink.com> <47CF82FA.20706@miralink.com> <47CF9420.1060204@yandex.ru> In-Reply-To: <47CF9420.1060204@yandex.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-DSPAM-Result: Innocent X-DSPAM-Processed: Fri Mar 7 12:59:52 2008 X-DSPAM-Confidence: 0.9997 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 47d1acc8105231336712104 X-DSPAM-Factors: 27, X-Virus-Scanned: amavisd-new at X-Spam-Status: No, score=-4.355 tagged_above=-10 required=6.6 autolearn=ham tests=[ALL_TRUSTED=-1.8, AWL=0.144, BAYES_00=-2.599, DSPAM_HAM=-0.1] X-Spam-Score: -4.355 X-Spam-Level: Cc: freebsd-drivers@freebsd.org Subject: Re: ICH9 based IDE speed negotiation error X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Mar 2008 20:59:56 -0000 Andrey V. Elsukov wrote: > Sean Bruno wrote: >> Sean Bruno wrote: >>> Andrey V. Elsukov wrote: >>>> Sean Bruno wrote: >>>>> I have an IBM x3250M with a CF IDE flash device in the IDE >>>>> controller socket instead of the CDROM. >>>>> It appears that the ICH9 IDE chipset is negotiating to UDMA66 >>>>> instead of UDMA33 on this board, and that is not the speed of my >>>>> CF IDE device: >>>>> http://www.transcendusa.com/Products/ModDetail.asp?ModNo=26&LangNo=0 >>>> >>>> ICH9 doesn't have an IDE function. Can you show `pciconf -l` and >>>> `grep ata /var/run/dmesg.boot` outputs? >>>> >>> Done and done. Wierd huh? I was confused as well. > > >ata3: on atapci1 > >atapci1: Reserved 0x8 bytes for rid 0x18 type 4 at 0x1c28 > >atapci1: Reserved 0x4 bytes for rid 0x1c type 4 at 0x1c20 > >ata3: reset tp1 mask=03 ostat0=50 ostat1=00 > >ata3: stat0=0x50 err=0x01 lsb=0x00 msb=0x00 > >ata3: stat1=0x00 err=0x01 lsb=0x00 msb=0x00 > >ata3: reset tp2 stat0=50 stat1=00 devices=0x1 > >ata3: [MPSAFE] > >ata: ata0 already exists; skipping it > >ata: ata1 already exists; skipping it > >ata3-master: pio=PIO4 wdma=WDMA2 udma=UDMA66 cable=40 wire > >ad6: 488MB at ata3-master UDMA66 > > Try the attached patch. > Maybe Soren can suggest more properer patch? > This works for me on RELENG_6. I can't test it on 7 or HEAD. Thanks! Sean