From owner-freebsd-current@FreeBSD.ORG Tue Nov 6 09:13:58 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0851A16A417 for ; Tue, 6 Nov 2007 09:13:58 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.freebsd.org (Postfix) with ESMTP id 6FA8C13C4A7 for ; Tue, 6 Nov 2007 09:13:57 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id C7FDBEB4744; Tue, 6 Nov 2007 17:13:53 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id klpTZBPwHmtj; Tue, 6 Nov 2007 17:13:49 +0800 (CST) Received: from charlie.delphij.net (c-67-161-39-180.hsd1.ca.comcast.net [67.161.39.180]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id 3F5BCEB4567; Tue, 6 Nov 2007 17:13:44 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:content-type:content-transfer-encoding; b=Ho/2inlRGNjxUubl8s4UWg0WF68ateUavXBbY4ICMfd4m6LNc9GLM/+KYS6GDmzkr VaE+nihBQIyZFAIavKVYw== Message-ID: <47303037.6040305@delphij.net> Date: Tue, 06 Nov 2007 01:13:27 -0800 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.6 (X11/20071031) MIME-Version: 1.0 To: "Andrey V. Elsukov" References: <472D56A1.7070206@gmail.com> <200711041119.45971.jrh29@alumni.cwru.edu> <472DD231.9030501@gmail.com> <472E67CC.9040201@delphij.net> <472E4FF0.3080801@gmail.com> <472EB211.7050001@delphij.net> <472EEADF.1000008@gmail.com> <472F466E.8050405@delphij.net> <472F5846.1020304@gmail.com> <472F5D9A.9050900@delphij.net> <472FCC15.9040903@gmail.com> <472FD0FB.9090608@delphij.net> <473001E7.2090201@yandex.ru> In-Reply-To: <473001E7.2090201@yandex.ru> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: "Aryeh M. Friedman" , freebsd-current@freebsd.org, d@delphij.net, Justin Hibbits Subject: Re: [ANNOUNCEMENT] Wiki for discussing P35/IHC9(R)/SATA issues set up X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2007 09:13:58 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Andrey V. Elsukov wrote: > Xin LI wrote: >> Thanks for the information, I'd appreciate if you would help me to test >> the attached patch against RELENG_7 (should apply to HEAD as well). > > Hi, Xin. > > This patch is not correct for me. I think we need implement a > full support for several new Marvell chips: > #define ATA_M88SE6101 0x610111ab /* ThorLite 1P */ > #define ATA_M88SE6111 0x611111ab /* ThorLite 1S/1P */ > #define ATA_M88SE6121 0x612111ab /* ThorLite 2S/1P */ > #define ATA_M88SE6122 0x612211ab /* ThorLite 2S/1P w/ flash */ > #define ATA_M88SE6141 0x614111ab /* Thor 4S/1P */ > #define ATA_M88SE6145 0x614511ab /* Thor 4S/1P */ Yes, you are correct, we need some AHCI stuff. > There is a linux driver from ASUS: > ftp://dlsvr01.asus.com/pub/ASUS/mb/socket775/P5E_WS_Professional/LinuxDrivers.zip Googl'ing did not revealed me some useful material like datasheets for this, so what we can do is probably to "guess" the meaning of the Linux driver (I have got one but that appears to be generated by some script containing a lot of redundant code and mostly "XXX not yet" comments :-/) The download from the site you mentioned is quite slow here. It's 1:00AM here so I have to go to sleep, and have the download continue. > These controllers have one PATA port and may have several SATA ports. > As i understand from the sources controller is mostly AHCI-like. It > use AHCI registers, but not fully AHCI. Also driver need some hacks > if we want to have both SATA and PATA support, because current our > ata driver uses methods from the parent atapci driver for each > channel, but we need different methods for SATA and PATA. > > I think the right way - try to fix ICH9 part of this problem and wait > until we will have a full support for the Marvell chips. Yes. Unfortunately one of the patch that attempts to address the speed mismatch was wrong due to a misread of the spec, so please don't bother to try that patcheset. BTW I have reproduced some READ_BIG issues but that's unrelated chipset, which could be some hardware problem because it is old. Do you have some more issues with ICH9 except those are mentioned in this thread? It seems that you have mentioned kern/113195 and kern/116125, according to my first glance these patches it seems that the second one contains all necessary bits in the first one (maybe some slight difference due to different KPI, though), and the risk seems to be controllable (does not seem to break previously supported chipset). I guess it might be ok to have it committed with some proper review, I will try to ping sos@ tomorrow morning after some careful inspect to it. Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHMDA2hcUczkLqiksRAuMQAJ9agNvjNAm4VztrKtdbM+rEPSYraQCdE2VC UOlzR0SAZ8Nl/sUZ/h6pN0g= =cx1Z -----END PGP SIGNATURE-----