From mboxrd@z Thu Jan 1 00:00:00 1970 From: Helmut Toplitzer Subject: Re: BUG?: VIA IDE transfer-rate problem Date: Thu, 19 Jan 2006 14:31:04 +0100 Message-ID: <200601191431.05126.pvrusb2@toplitzer.net> References: <200601131909.07981.pvrusb2@toplitzer.net> <200601190821.51702.pvrusb2@toplitzer.net> <58cb370e0601190419u36e2509bmf11ccc90ef244c0e@mail.gmail.com> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_YS5zDuHVV7/Xfgv" Return-path: Received: from toplitzer.net ([83.151.30.110]:37022 "EHLO toplitzer.net") by vger.kernel.org with ESMTP id S1161180AbWASNbK (ORCPT ); Thu, 19 Jan 2006 08:31:10 -0500 In-Reply-To: <58cb370e0601190419u36e2509bmf11ccc90ef244c0e@mail.gmail.com> Content-Disposition: inline Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Bartlomiej Zolnierkiewicz Cc: linux-ide@vger.kernel.org, dbrownell@users.sourceforge.net, linux-usb-devel@lists.sourceforge.net, Rene Herman --Boundary-00=_YS5zDuHVV7/Xfgv Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Content-Disposition: inline > > Yes, this mail explains it more: > http://www.uwsg.iu.edu/hypermail/linux/kernel/0207.0/0004.html > > If "HALT Command Detect is enabled" is enabled > STPGNT is issued on detection of HALT command. > > If "Disconnect Enable When STPGNT Detect" is enabled > bus disconnect is done on detection of STPGNT command. > > Now lets see which setting is to blame... > > Could you send full output of "lspci -vvv -xxx" command? > > Bartlomiej Ok. Did some tests too in the meantime. Since the last BIOS update my computer also has a switch called "Enable CPU HALT command detection". I noticed this after writing my last mail. And yes. It works as expected. :-) Now full transferrate even with ehci-hcd used when I disable it. So it looks like it was/is enabled by default on my MSI Board. Only difference from all the documents is that lspci shows its a "VIA Apollo KT266/A/333" but RxD2 & RxD5 (the one from the VIA KT333CF) are used instead of Rx92 and Rx95. Setting them by setpci as described in http://www.daniel.nofftz.net/linux/Athlon-Powersaving-HOWTO.html works also as expected. So my CPU is a bit louder now since the cooler is rotating at higher speed. However a: setpci -v -H1 -s 0:0.0 D5=$(printf %x $((0x$(setpci -H1 -s 0:0.0 D5) | 0x02))) is enough to get it down and drop transfer-rate. (STPGNT Disconnect is not needed at all, and has no influence on the problem) So maybe the best is to disable hlt instructions for VIA boards during dma-transfers as I described in one of my previous mails? lspci-output attached. (Only two bits differ) helmut -- My GNUpg fingerprint http://www.gnupg.org 4563 F4FB 0B7E 8698 53CD 00E9 E319 35BD 6A91 1656 --Boundary-00=_YS5zDuHVV7/Xfgv Content-Type: text/plain; charset="windows-1252"; name="lspcixx-cpuhlt.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="lspcixx-cpuhlt.txt" 0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333] Subsystem: VIA Technologies, Inc.: Unknown device 0000 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- Reset- FastB2B- Capabilities: [80] Power Management version 2 Flags: PMEClk- DSI- D1+ D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 00: 06 11 99 b0 07 01 30 22 00 00 04 06 00 00 01 00 10: 00 00 00 00 00 00 00 00 00 01 01 00 f0 00 00 00 20: e0 de e0 df d0 da c0 de 00 00 00 00 00 00 00 00 30: 00 00 00 00 80 00 00 00 00 00 00 00 00 00 0c 00 40: 81 c0 80 44 25 72 99 b0 00 00 00 00 00 00 00 00 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80: 01 00 02 02 00 00 00 00 00 00 00 00 00 00 00 00 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000:00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80) (prog-if 00 [UHCI]) Subsystem: Micro-Star International Co., Ltd.: Unknown device 7120 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- Reset- FastB2B- Capabilities: [80] Power Management version 2 Flags: PMEClk- DSI- D1+ D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 00: 06 11 99 b0 07 01 30 22 00 00 04 06 00 00 01 00 10: 00 00 00 00 00 00 00 00 00 01 01 00 f0 00 00 00 20: e0 de e0 df d0 da c0 de 00 00 00 00 00 00 00 00 30: 00 00 00 00 80 00 00 00 00 00 00 00 00 00 0c 00 40: 81 c0 80 44 25 72 99 b0 00 00 00 00 00 00 00 00 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80: 01 00 02 02 00 00 00 00 00 00 00 00 00 00 00 00 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000:00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80) (prog-if 00 [UHCI]) Subsystem: Micro-Star International Co., Ltd.: Unknown device 7120 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR-