From owner-freebsd-drivers@FreeBSD.ORG Sun Mar 2 16:26:47 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 E01F01065670 for ; Sun, 2 Mar 2008 16:26:47 +0000 (UTC) (envelope-from kazuhiro@robios.org) Received: from mgdnp1.nw.wakwak.com (mgdnp1.nw.wakwak.com [219.103.130.24]) by mx1.freebsd.org (Postfix) with ESMTP id 9D6E68FC15 for ; Sun, 2 Mar 2008 16:26:47 +0000 (UTC) (envelope-from kazuhiro@robios.org) Received: from vckyb1.nw.wakwak.com (postfix@vckyb1.nw.wakwak.com [211.9.230.144]) by mgdnp1.nw.wakwak.com (8.14.2/8.14.2/2007-12-27) with SMTP id m22GQkhr013635; Mon, 3 Mar 2008 01:26:46 +0900 (JST) (envelope-from kazuhiro@robios.org) Received: from ab.bb-east.ne.jp (ab.bb-east.ne.jp [211.9.230.70]) by vckyb1.nw.wakwak.com (Postfix) with ESMTP id 50DB430052; Mon, 3 Mar 2008 01:26:46 +0900 (JST) Received: from [192.168.1.199] (usr029.bb117-01.udi.im.wakwak.ne.jp [218.225.176.31]) (pbs=j9v8of) by ab.bb-east.ne.jp (8.14.2/8.14.2/2007-12-26) with ESMTP/inet id m22GQjWO053400; Mon, 3 Mar 2008 01:26:46 +0900 (JST) (envelope-from kazuhiro@robios.org) In-Reply-To: <93d633890802291447s71ac4a11k4b6e9bffdb3a2c67@mail.gmail.com> References: <93d633890802291447s71ac4a11k4b6e9bffdb3a2c67@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v753) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <3A4ABD17-1405-46B7-96B4-336AC30E9291@robios.org> Content-Transfer-Encoding: 7bit From: "Sakai, Kazuhiro" Date: Mon, 3 Mar 2008 01:26:44 +0900 To: James Records X-Mailer: Apple Mail (2.753) Cc: freebsd-drivers@freebsd.org Subject: Re: Running FreeBSD on Firebox III 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: Sun, 02 Mar 2008 16:26:48 -0000 Hi, Yes, I found it, and I'm sure it will help your problem, too. I found the difference between the FreeBSD ata driver and the Linux ata driver. It is called the VLB (Vesa Local Bus, maybe) Sync, and seems it's been introduced since the Linux 1.2 kernel. The VLB Sync is a very small routine. Here's the Linux version (2.2.26) (ide.c): #if SUPPORT_VLB_SYNC /* * Some localbus EIDE interfaces require a special access sequence * when using 32-bit I/O instructions to transfer data. We call this * the "vlb_sync" sequence, which consists of three successive reads * of the sector count register location, with interrupts disabled * to ensure that the reads all happen together. */ static inline void do_vlb_sync (ide_ioreg_t port) { (void) inb (port); (void) inb (port); (void) inb (port); } #endif /* SUPPORT_VLB_SYNC */ So I ported it to FreeBSD 4.11 for the m0n0wall as: /sys/dev/ata/ata-disk.c: * Add ad_vlb_sync static __inline void ad_vlb_sync(struct resource *port) { (void)ATA_INB(port, ATA_SECTOR); (void)ATA_INB(port, ATA_SECTOR); (void)ATA_INB(port, ATA_SECTOR); } * Modify ad_transfer and ad_interrupt int ad_transfer(struct ad_request *request) { ... /* output the data */ if (adp->device->channel->flags & ATA_USE_16BIT) ATA_OUTSW(adp->device->channel->r_io, ATA_DATA, (void *)((uintptr_t)request->data + request->donecount), request->currentsize / sizeof(int16_t)); - else + else { + disable_intr(); + ad_vlb_sync(adp->device->channel->r_io); ATA_OUTSL(adp->device->channel->r_io, ATA_DATA, (void *)((uintptr_t)request->data + request- >donecount), request->currentsize / sizeof(int32_t)); + enable_intr(); + } ... } int ad_interrupt(struct ad_request *request) { ... /* ready to receive data? */ if ((adp->device->channel->status & (ATA_S_READY|ATA_S_DSC| ATA_S_DRQ)) != (ATA_S_READY|ATA_S_DSC|ATA_S_DRQ)) ata_prtdev(adp->device, "read interrupt arrived early"); if (ata_wait(adp->device, (ATA_S_READY | ATA_S_DSC | ATA_S_DRQ)) != 0) { ata_prtdev(adp->device, "read error detected (too) late"); request->flags |= ADR_F_ERROR; } else { /* data ready, read in */ if (adp->device->channel->flags & ATA_USE_16BIT) ATA_INSW(adp->device->channel->r_io, ATA_DATA, (void*)((uintptr_t)request->data + request- >donecount), request->currentsize / sizeof(int16_t)); - else + else { + disable_intr(); + ad_vlb_sync(adp->device->channel->r_io); ATA_INSL(adp->device->channel->r_io, ATA_DATA, (void*)((uintptr_t)request->data + request- >donecount), request->currentsize / sizeof(int32_t)); + enable_intr(); + } } } ... } Next, to get a correct Ether Station Address (MAC Address), make a following change (just commenting out) in the Tulip driver: /sys/pci/if_dc.c (/sys/dev/ic/dc.c for OpenBSD): * Modify dc_attach /* * Get station address from the EEPROM. */ switch(sc->dc_type) { case DC_TYPE_98713: case DC_TYPE_98713A: - case DC_TYPE_987x5: + /*case DC_TYPE_987x5:*/ case DC_TYPE_PNICII: These should help. P.S. I'm wondering why the VLB Sync is not implemented in the BSD family. I am planning to submit a patch to the m0n0wall community, as well as the FreeBSD itself maybe. On 2008/03/01, at 7:47, James Records wrote: > Hi, > > I was just wondering if you ever found a workaround to this, I'm in > the process of trying to run OpenBSD and running into the exact > same thing. > > If you have any update I would really like to know. > > Thanks, > Jim Sakai, Kazuhiro kazuhiro@robios.org From owner-freebsd-drivers@FreeBSD.ORG Wed Mar 5 20:12:48 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 A35161065673 for ; Wed, 5 Mar 2008 20:12:48 +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 8534C8FC22 for ; Wed, 5 Mar 2008 20:12:48 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id 9087A61B9D3; Wed, 5 Mar 2008 11:40:14 -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 28385-09; Wed, 5 Mar 2008 11:40:13 -0800 (PST) Received: from iago.office.miralink.com (iago.office.miralink.com [10.0.0.40]) by plato.miralink.com (Postfix) with ESMTP id 7009F61B9CD; Wed, 5 Mar 2008 11:40:13 -0800 (PST) Message-ID: <47CEF71D.6060600@miralink.com> Date: Wed, 05 Mar 2008 11:40:13 -0800 From: Sean Bruno User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: freebsd-drivers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DSPAM-Result: Innocent X-DSPAM-Processed: Wed Mar 5 11:40:13 2008 X-DSPAM-Confidence: 0.9997 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 47cef71d276291091686056 X-DSPAM-Factors: 27, X-Virus-Scanned: amavisd-new at X-Spam-Status: No, score=-4.499 tagged_above=-10 required=6.6 autolearn=ham tests=[ALL_TRUSTED=-1.8, BAYES_00=-2.599, DSPAM_HAM=-0.1] X-Spam-Score: -4.499 X-Spam-Level: Subject: 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: Wed, 05 Mar 2008 20:12:48 -0000 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 The same device in three other motherboards (ICH7 and SiS181) don't seem to have the negotiation issue. This negotiation failure causes CRC errors writing to the disk: ad6: WARNING - WRITE_DMA UDMA ICRC error (retrying request) LBA=357735 ad6: WARNING - WRITE_DMA UDMA ICRC error (retrying request) LBA=359015 Setting the mode down to UDMA33 fixes the issue.(atacontrol mode ad6 UDMA33). Sean From owner-freebsd-drivers@FreeBSD.ORG Thu Mar 6 03:23:43 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 0F3AB1065673 for ; Thu, 6 Mar 2008 03:23:43 +0000 (UTC) (envelope-from arhimed@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 5B8858FC2D for ; Thu, 6 Mar 2008 03:23:42 +0000 (UTC) (envelope-from arhimed@gmx.net) Received: (qmail invoked by alias); 06 Mar 2008 02:57:00 -0000 Received: from BAA1e28.baa.pppool.de (EHLO hmac.security.de) [77.128.30.40] by mail.gmx.net (mp009) with SMTP; 06 Mar 2008 03:57:00 +0100 X-Authenticated: #18080636 X-Provags-ID: V01U2FsdGVkX1/Ueuo6i1DUWvbgSunhnF/9PBaNMRoTKll92aaVJ+ IHppjlSKZ4HdGX Date: Thu, 6 Mar 2008 03:56:59 +0100 From: Alexandre Fiveg To: freebsd-drivers@freebsd.org Message-ID: <20080306035659.150cd6b7@hmac.security.de> Organization: home X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.8; i386-portbld-freebsd6.3) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 Subject: =?utf-8?b?0L/QtdGA0LXQutC70Y7Rh9C10L3QuNC1INGA0LDRgdC60LvQsNC0?= =?utf-8?b?0LrQuCDQutC70LDQstC40LDRgtGD0YDRiw==?= 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: Thu, 06 Mar 2008 03:23:43 -0000 Доброго времени суток! Следующая проблемка: При переключении раскладки клавиатуры (в моем случае между немецкой и русской) кратковременно возникает повышенная активность CPU (>4% user, >35% system), что заметно влияет на работу выполняющихся приложений, хотя и коротко, но все же... На секунду, во время переключения может подвиснуть звук и приостановиться изображение в mplayer. Если кто сталкивался с данной проблемой и знает как это дело лечится, буду очень рад получить инфу по данной теме. ... /etc/X11/xorg.conf Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "CoreKeyboard" Option "XkbRules" "xorg" Option "XkbModel" "pc105" Option "XkbLayout" "de,ru(winkeys)" Option "XkbOptions" "grp:ctrl_shift_toggle" EndSection ... $ uname -a FreeBSD hmac.security.de 7.0-STABLE FreeBSD 7.0-STABLE $ X -version X.Org X Server 1.4.0 Release Date: 5 September 2007 X Protocol Version 11, Revision 0 ... Александр -- Alexandre Fiveg Key fingerprint = 0B23 EB52 3944 E440 CFF3 C1F1 7D05 8D00 34F7 A6BD From owner-freebsd-drivers@FreeBSD.ORG Thu Mar 6 05:05:26 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 48EA01065671 for ; Thu, 6 Mar 2008 05:05:26 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp8.yandex.ru (smtp8.yandex.ru [213.180.200.213]) by mx1.freebsd.org (Postfix) with ESMTP id 92DAC8FC1F for ; Thu, 6 Mar 2008 05:05:25 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from ns.kirov.so-cdu.ru ([77.72.136.145]:16363 "EHLO [127.0.0.1]" smtp-auth: "bu7cher" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S7454815AbYCFEv5 (ORCPT ); Thu, 6 Mar 2008 07:51:57 +0300 X-Yandex-Spam: 1 X-Yandex-Front: smtp8 X-Yandex-TimeMark: 1204779117 X-MsgDayCount: 2 X-Comment: RFC 2476 MSA function at smtp8.yandex.ru logged sender identity as: bu7cher Message-ID: <47CF786D.2000805@yandex.ru> Date: Thu, 06 Mar 2008 07:51:57 +0300 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Sean Bruno References: <47CEF71D.6060600@miralink.com> In-Reply-To: <47CEF71D.6060600@miralink.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit 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: Thu, 06 Mar 2008 05:05:26 -0000 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? -- WBR, Andrey V. Elsukov From owner-freebsd-drivers@FreeBSD.ORG Thu Mar 6 05:09:11 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 586FA1065671 for ; Thu, 6 Mar 2008 05:09:11 +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 25EA98FC22 for ; Thu, 6 Mar 2008 05:09:10 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id 7ED2961BB52; Wed, 5 Mar 2008 21:09:10 -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 22497-05; Wed, 5 Mar 2008 21:09:08 -0800 (PST) Received: from [10.47.1.62] (vpn.office.miralink.com [10.0.0.5]) by plato.miralink.com (Postfix) with ESMTP id 96D4961BB50; Wed, 5 Mar 2008 21:09:07 -0800 (PST) Message-ID: <47CF7C73.70403@miralink.com> Date: Wed, 05 Mar 2008 21:09:07 -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> In-Reply-To: <47CF786D.2000805@yandex.ru> Content-Type: multipart/mixed; boundary="------------070701000606050604020606" X-DSPAM-Result: Innocent X-DSPAM-Processed: Wed Mar 5 21:09:09 2008 X-DSPAM-Confidence: 0.9997 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 47cf7c75211408539715904 X-DSPAM-Factors: 27, X-Virus-Scanned: amavisd-new at X-Spam-Status: No, score=-4.379 tagged_above=-10 required=6.6 autolearn=ham tests=[ALL_TRUSTED=-1.8, AWL=0.120, BAYES_00=-2.599, DSPAM_HAM=-0.1] X-Spam-Score: -4.379 X-Spam-Level: X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: Thu, 06 Mar 2008 05:09:11 -0000 This is a multi-part message in MIME format. --------------070701000606050604020606 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit 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. Sean --------------070701000606050604020606 Content-Type: text/plain; name="pciconf.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="pciconf.txt" hostb0@pci0:0:0: class=0x060000 card=0x03771014 chip=0x29f08086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = '(Bearlake) Processor to I/O Controller' class = bridge subclass = HOST-PCI pcib1@pci0:1:0: class=0x060400 card=0x03771014 chip=0x29f18086 rev=0x01 hdr=0x01 vendor = 'Intel Corporation' device = '(Bearlake) PCIe Root Port 1' class = bridge subclass = PCI-PCI pcib2@pci0:28:0: class=0x060400 card=0x03771014 chip=0x29408086 rev=0x02 hdr=0x01 vendor = 'Intel Corporation' device = '82801IB/IR/IH (ICH9 Family) PCIe Root Port 1' class = bridge subclass = PCI-PCI pcib4@pci0:28:4: class=0x060400 card=0x03771014 chip=0x29488086 rev=0x02 hdr=0x01 vendor = 'Intel Corporation' device = '82801IB/IR/IH (ICH9 Family) PCIe Root Port 5' class = bridge subclass = PCI-PCI uhci0@pci0:29:0: class=0x0c0300 card=0x03771014 chip=0x29348086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801IB/IR/IH (ICH9 Family) USB Universal Host Controller' class = serial bus ...skipping... atapci0@pci0:31:2: class=0x01018a card=0x03771014 chip=0x29218086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801IB/IR/IH (ICH9 Family) 2 port Serial ATA Storage Controller 1' class = mass storage subclass = ATA none0@pci0:31:3: class=0x0c0500 card=0x03771014 chip=0x29308086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801IB/IR/IH (ICH9 Family) SMBus Controller' class = serial bus subclass = SMBus atapci1@pci0:31:5: class=0x010185 card=0x03771014 chip=0x29268086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801IB/IR/IH (ICH9 Family) 2 port Serial ATA Storage Controller 2' class = mass storage subclass = ATA pcib3@pci8:0:0: class=0x060400 card=0x00000000 chip=0x811410b5 rev=0xbc hdr=0x01 vendor = 'PLX Technology Inc.' class = bridge subclass = PCI-PCI isp0@pci9:4:0: class=0x0c0400 card=0x01011077 chip=0x23121077 rev=0x02 hdr=0x00 vendor = 'QLogic Corporation' device = 'QLA2312 SANblade 2300 64-bit FC-AL Adapter' class = serial bus subclass = Fibre Channel hostb0@pci0:0:0: class=0x060000 card=0x03771014 chip=0x29f08086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = '(Bearlake) Processor to I/O Controller' class = bridge subclass = HOST-PCI pcib1@pci0:1:0: class=0x060400 card=0x03771014 chip=0x29f18086 rev=0x01 hdr=0x01 vendor = 'Intel Corporation' device = '(Bearlake) PCIe Root Port 1' class = bridge subclass = PCI-PCI pcib2@pci0:28:0: class=0x060400 card=0x03771014 chip=0x29408086 rev=0x02 hdr=0x01 vendor = 'Intel Corporation' device = '82801IB/IR/IH (ICH9 Family) PCIe Root Port 1' class = bridge subclass = PCI-PCI pcib4@pci0:28:4: class=0x060400 card=0x03771014 chip=0x29488086 rev=0x02 hdr=0x01 vendor = 'Intel Corporation' device = '82801IB/IR/IH (ICH9 Family) PCIe Root Port 5' class = bridge subclass = PCI-PCI uhci0@pci0:29:0: class=0x0c0300 card=0x03771014 chip=0x29348086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801IB/IR/IH (ICH9 Family) USB Universal Host Controller' class = serial bus ...skipping... device = '82801IB/IR/IH (ICH9 Family) 2 port Serial ATA Storage Controller 1' class = mass storage subclass = ATA none0@pci0:31:3: class=0x0c0500 card=0x03771014 chip=0x29308086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801IB/IR/IH (ICH9 Family) SMBus Controller' class = serial bus subclass = SMBus atapci1@pci0:31:5: class=0x010185 card=0x03771014 chip=0x29268086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801IB/IR/IH (ICH9 Family) 2 port Serial ATA Storage Controller 2' class = mass storage subclass = ATA pcib3@pci8:0:0: class=0x060400 card=0x00000000 chip=0x811410b5 rev=0xbc hdr=0x01 vendor = 'PLX Technology Inc.' class = bridge subclass = PCI-PCI isp0@pci9:4:0: class=0x0c0400 card=0x01011077 chip=0x23121077 rev=0x02 hdr=0x00 vendor = 'QLogic Corporation' device = 'QLA2312 SANblade 2300 64-bit FC-AL Adapter' class = serial bus subclass = Fibre Channel isp1@pci9:4:1: class=0x0c0400 card=0x01011077 chip=0x23121077 rev=0x02 hdr=0x00 vendor = 'QLogic Corporation' device = 'QLA2312 SANblade 2300 64-bit FC-AL Adapter' class = serial bus subclass = Fibre Channel bge0@pci2:0:0: class=0x020000 card=0x03781014 chip=0x165a14e4 rev=0x00 hdr=0x00 vendor = 'Broadcom Corporation' device = 'NetXtreme BCM5722 Gigabit Ethernet PCIe' class = network subclass = ethernet bge1@pci3:1:0: class=0x020000 card=0x026f1014 chip=0x16c714e4 rev=0x10 hdr=0x00 vendor = 'Broadcom Corporation' device = 'BCM5703A3 NetXtreme Gigabit Ethernet' class = network hostb0@pci0:0:0: class=0x060000 card=0x03771014 chip=0x29f08086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = '(Bearlake) Processor to I/O Controller' class = bridge subclass = HOST-PCI pcib1@pci0:1:0: class=0x060400 card=0x03771014 chip=0x29f18086 rev=0x01 hdr=0x01 vendor = 'Intel Corporation' device = '(Bearlake) PCIe Root Port 1' class = bridge subclass = PCI-PCI pcib2@pci0:28:0: class=0x060400 card=0x03771014 chip=0x29408086 rev=0x02 hdr=0x01 vendor = 'Intel Corporation' device = '82801IB/IR/IH (ICH9 Family) PCIe Root Port 1' class = bridge subclass = PCI-PCI pcib4@pci0:28:4: class=0x060400 card=0x03771014 chip=0x29488086 rev=0x02 hdr=0x01 vendor = 'Intel Corporation' device = '82801IB/IR/IH (ICH9 Family) PCIe Root Port 5' class = bridge subclass = PCI-PCI uhci0@pci0:29:0: class=0x0c0300 card=0x03771014 chip=0x29348086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801IB/IR/IH (ICH9 Family) USB Universal Host Controller' class = serial bus --------------070701000606050604020606-- From owner-freebsd-drivers@FreeBSD.ORG Thu Mar 6 05:31:32 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 233EF1065677 for ; Thu, 6 Mar 2008 05:31:32 +0000 (UTC) (envelope-from arhimed@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 886B68FC15 for ; Thu, 6 Mar 2008 05:31:31 +0000 (UTC) (envelope-from arhimed@gmx.net) Received: (qmail invoked by alias); 06 Mar 2008 05:31:29 -0000 Received: from BAA1e28.baa.pppool.de (EHLO hmac.security.de) [77.128.30.40] by mail.gmx.net (mp014) with SMTP; 06 Mar 2008 06:31:29 +0100 X-Authenticated: #18080636 X-Provags-ID: V01U2FsdGVkX19l+09MBNZlozm2PRXPHvi6AAPNh6oH/3zX2IbwD0 1Aqby9XDzEspsv Date: Thu, 6 Mar 2008 06:31:27 +0100 From: Alexandre Fiveg To: rapter@inbox.ru Message-ID: <20080306063127.4f4befc9@hmac.security.de> In-Reply-To: <47CF6A32.10300@inbox.ru> References: <20080306035659.150cd6b7@hmac.security.de> <47CF6A32.10300@inbox.ru> Organization: home X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.8; i386-portbld-freebsd6.3) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 Cc: freebsd-drivers@freebsd.org Subject: Re: =?utf-8?b?0L/QtdGA0LXQutC70Y7Rh9C10L3QuNC1INGA0LDRgdC60Ls=?= =?utf-8?b?0LDQtNC60Lgg0LrQu9Cw0LLQuNCw0YLRg9GA0Ys=?= 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: Thu, 06 Mar 2008 05:31:32 -0000 В Thu, 06 Mar 2008 09:51:14 +0600 Dmitry пишет: > Alexandre Fiveg пишет: > > Доброго времени суток! > > Следующая проблемка: > > При переключении раскладки клавиатуры (в моем случае между немецкой > > и русской) кратковременно возникает повышенная активность CPU (>4% > > user, > >> 35% system), что заметно влияет на работу выполняющихся приложений, > >> > > хотя и коротко, но все же... На секунду, во время переключения может > > подвиснуть звук и приостановиться изображение в mplayer. > > > > Если кто сталкивался с данной проблемой и знает как это дело > > лечится, буду очень рад получить инфу по данной теме. > > > > > > > > > > > > .... > > /etc/X11/xorg.conf > > > > Section "InputDevice" > > Identifier "Keyboard0" > > Driver "kbd" > > Option "CoreKeyboard" > > Option "XkbRules" "xorg" > > Option "XkbModel" "pc105" > > Option "XkbLayout" "de,ru(winkeys)" > > Option "XkbOptions" "grp:ctrl_shift_toggle" > > EndSection > > > > .... > > $ uname -a > > FreeBSD hmac.security.de 7.0-STABLE FreeBSD 7.0-STABLE > > > > $ X -version > > X.Org X Server 1.4.0 > > Release Date: 5 September 2007 > > X Protocol Version 11, Revision 0 > > .... > > > > > > > > Александр > > > > > > чувак, это англоизычная рассылка, сомневаюсь, что тебе кто то > ответит :D а вообще погляди, может у тебя что ни будь из запущенного > софта ловит нажатия контрола или шифта. > Opsss.... sorry , my mistake. I will send it to the russian list. Anyway thanx for sugestions. -- Alexandre Fiveg Key fingerprint = 0B23 EB52 3944 E440 CFF3 C1F1 7D05 8D00 34F7 A6BD From owner-freebsd-drivers@FreeBSD.ORG Thu Mar 6 05:37:01 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 4157A1065670 for ; Thu, 6 Mar 2008 05:37:01 +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 10EA58FC20 for ; Thu, 6 Mar 2008 05:37:01 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id CD0E561BB6A; Wed, 5 Mar 2008 21:37:00 -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 32587-06; Wed, 5 Mar 2008 21:36:59 -0800 (PST) Received: from [10.47.1.62] (vpn.office.miralink.com [10.0.0.5]) by plato.miralink.com (Postfix) with ESMTP id 116B761BB60; Wed, 5 Mar 2008 21:36:59 -0800 (PST) Message-ID: <47CF82FA.20706@miralink.com> Date: Wed, 05 Mar 2008 21:36:58 -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> In-Reply-To: <47CF7C73.70403@miralink.com> Content-Type: multipart/mixed; boundary="------------020106010502070507070902" X-DSPAM-Result: Innocent X-DSPAM-Processed: Wed Mar 5 21:37:00 2008 X-DSPAM-Confidence: 0.9997 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 47cf82fc65931186327471 X-DSPAM-Factors: 27, X-Virus-Scanned: amavisd-new at X-Spam-Status: No, score=-4.499 tagged_above=-10 required=6.6 autolearn=ham tests=[ALL_TRUSTED=-1.8, BAYES_00=-2.599, DSPAM_HAM=-0.1] X-Spam-Score: -4.499 X-Spam-Level: X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: Thu, 06 Mar 2008 05:37:01 -0000 This is a multi-part message in MIME format. --------------020106010502070507070902 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit 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. > > Sean > ------------------------------------------------------------------------ > > _______________________________________________ > freebsd-drivers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-drivers > To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.org" And the dmesg output. Sean --------------020106010502070507070902-- From owner-freebsd-drivers@FreeBSD.ORG Thu Mar 6 05:12:40 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 13C701065674 for ; Thu, 6 Mar 2008 05:12:40 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp7.yandex.ru (smtp7.yandex.ru [213.180.200.45]) by mx1.freebsd.org (Postfix) with ESMTP id 607698FC16 for ; Thu, 6 Mar 2008 05:12:39 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from mail.kirov.so-cdu.ru ([77.72.136.145]:60868 "EHLO [127.0.0.1]" smtp-auth: "bu7cher" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S738487AbYCFE6P (ORCPT ); Thu, 6 Mar 2008 07:58:15 +0300 X-Yandex-Spam: 1 X-Yandex-Front: smtp7 X-Yandex-TimeMark: 1204779495 X-MsgDayCount: 4 X-Comment: RFC 2476 MSA function at smtp7.yandex.ru logged sender identity as: bu7cher Message-ID: <47CF79E6.5000008@yandex.ru> Date: Thu, 06 Mar 2008 07:58:14 +0300 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Alexandre Fiveg References: <20080306035659.150cd6b7@hmac.security.de> In-Reply-To: <20080306035659.150cd6b7@hmac.security.de> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Thu, 06 Mar 2008 05:47:02 +0000 Cc: freebsd-drivers@freebsd.org Subject: Re: =?koi8-r?b?0MXSxcvMwN7FzsnFINLB08vMwcTLySDLzMHXycHU1dLZ?= 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: Thu, 06 Mar 2008 05:12:40 -0000 Alexandre Fiveg wrote: > : > ( > ) CPU (>4% user, >> 35% system), , > , ... , > mplayer. Hi, Alexandr. It isn't Russian mail-list. You should use English here. You can subscribe to the Russian mail-list here: http://www.opennet.ru/opennews/subscribe.shtml -- WBR, Andrey V. Elsukov From owner-freebsd-drivers@FreeBSD.ORG Thu Mar 6 06:26:36 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 C85F51065673 for ; Thu, 6 Mar 2008 06:26:36 +0000 (UTC) (envelope-from rapter@inbox.ru) Received: from mx28.mail.ru (mx28.mail.ru [194.67.23.67]) by mx1.freebsd.org (Postfix) with ESMTP id 837338FC15 for ; Thu, 6 Mar 2008 06:26:36 +0000 (UTC) (envelope-from rapter@inbox.ru) Received: from mx30.mail.ru (mx30.mail.ru [194.67.23.238]) by mx28.mail.ru (mPOP.Fallback_MX) with ESMTP id 19FEC2F7CC8 for ; Thu, 6 Mar 2008 06:52:11 +0300 (MSK) Received: from [90.188.131.238] (port=62334 helo=[192.168.1.196]) by mx30.mail.ru with asmtp id 1JX79N-000Cys-00; Thu, 06 Mar 2008 06:52:09 +0300 Message-ID: <47CF6A32.10300@inbox.ru> Date: Thu, 06 Mar 2008 09:51:14 +0600 From: Dmitry User-Agent: Thunderbird 1.5.0.7 (X11/20060915) MIME-Version: 1.0 To: Alexandre Fiveg References: <20080306035659.150cd6b7@hmac.security.de> In-Reply-To: <20080306035659.150cd6b7@hmac.security.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-drivers@freebsd.org Subject: Re: =?utf-8?b?0L/QtdGA0LXQutC70Y7Rh9C10L3QuNC1INGA0LDRgdC60Ls=?= =?utf-8?b?0LDQtNC60Lgg0LrQu9Cw0LLQuNCw0YLRg9GA0Ys=?= X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rapter@inbox.ru List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Mar 2008 06:26:36 -0000 Alexandre Fiveg пишет: > Доброго времени суток! > Следующая проблемка: > При переключении раскладки клавиатуры (в моем случае между немецкой и > русской) кратковременно возникает повышенная активность CPU (>4% user, > >> 35% system), что заметно влияет на работу выполняющихся приложений, >> > хотя и коротко, но все же... На секунду, во время переключения может > подвиснуть звук и приостановиться изображение в mplayer. > > Если кто сталкивался с данной проблемой и знает как это дело лечится, > буду очень рад получить инфу по данной теме. > > > > > > .... > /etc/X11/xorg.conf > > Section "InputDevice" > Identifier "Keyboard0" > Driver "kbd" > Option "CoreKeyboard" > Option "XkbRules" "xorg" > Option "XkbModel" "pc105" > Option "XkbLayout" "de,ru(winkeys)" > Option "XkbOptions" "grp:ctrl_shift_toggle" > EndSection > > .... > $ uname -a > FreeBSD hmac.security.de 7.0-STABLE FreeBSD 7.0-STABLE > > $ X -version > X.Org X Server 1.4.0 > Release Date: 5 September 2007 > X Protocol Version 11, Revision 0 > .... > > > > Александр > > чувак, это англоизычная рассылка, сомневаюсь, что тебе кто то ответит :D а вообще погляди, может у тебя что ни будь из запущенного софта ловит нажатия контрола или шифта. From owner-freebsd-drivers@FreeBSD.ORG Thu Mar 6 06:50:20 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 2700C1065672 for ; Thu, 6 Mar 2008 06:50:20 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp2.yandex.ru (smtp2.yandex.ru [213.180.200.18]) by mx1.freebsd.org (Postfix) with ESMTP id 68E628FC3A for ; Thu, 6 Mar 2008 06:50:19 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from ns.kirov.so-cdu.ru ([77.72.136.145]:12271 "EHLO [127.0.0.1]" smtp-auth: "bu7cher" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S4395521AbYCFGuL (ORCPT ); Thu, 6 Mar 2008 09:50:11 +0300 X-Yandex-Spam: 1 X-Yandex-Front: smtp2 X-Yandex-TimeMark: 1204786211 X-MsgDayCount: 10 X-Comment: RFC 2476 MSA function at smtp2.yandex.ru logged sender identity as: bu7cher Message-ID: <47CF9420.1060204@yandex.ru> Date: Thu, 06 Mar 2008 09:50:08 +0300 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Sean Bruno References: <47CEF71D.6060600@miralink.com> <47CF786D.2000805@yandex.ru> <47CF7C73.70403@miralink.com> <47CF82FA.20706@miralink.com> In-Reply-To: <47CF82FA.20706@miralink.com> Content-Type: multipart/mixed; boundary="------------070100040804080403010604" 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: Thu, 06 Mar 2008 06:50:20 -0000 This is a multi-part message in MIME format. --------------070100040804080403010604 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit 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? -- WBR, Andrey V. Elsukov --------------070100040804080403010604 Content-Type: text/plain; name="ata.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ata.diff" Index: src/sys/dev/ata/ata-chipset.c =================================================================== RCS file: /ncvs/src/sys/dev/ata/ata-chipset.c,v retrieving revision 1.211 diff -u -b -p -r1.211 ata-chipset.c --- src/sys/dev/ata/ata-chipset.c 13 Dec 2007 11:47:36 -0000 1.211 +++ src/sys/dev/ata/ata-chipset.c 6 Mar 2008 06:49:24 -0000 @@ -2049,7 +2049,7 @@ ata_intel_sata_setmode(device_t dev, int atadev->mode = ATA_SA150; } else { - mode = ata_limit_mode(dev, mode, ATA_UDMA5); + mode = ata_check_80pin(dev, ATA_UDMA5); if (!ata_controlcmd(dev, ATA_SETFEATURES, ATA_SF_SETXFER, 0, mode)) atadev->mode = mode; } --------------070100040804080403010604-- 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