From owner-freebsd-questions@FreeBSD.ORG Sat Jan 9 23:50:54 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CFD1106575E; Sat, 9 Jan 2010 23:50:53 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id 042B08FC17; Sat, 9 Jan 2010 23:50:52 +0000 (UTC) Received: by fxm27 with SMTP id 27so5697667fxm.3 for ; Sat, 09 Jan 2010 15:50:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type; bh=JYyl/a7bYwMQ0tsum70TVuez5AthrkZ/98tD9+tUHeg=; b=jfOSZ8afpFRNRDADHEEeIQoCA9VE7LlQM1KY/ZTGfgrNpqFwikdDa52KhVMAEq/jv0 x2AUYELV+zOcF4Wo130YY9GLYjGZoaYiRhS15ChOP0d5HzDpc2Obm3LX/GqLV1Qc7TxF Lr/NmcHTyO9jByQ9//4zKw2nMhejPi4cBRXcc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type; b=t+kNFbQ2+ekLEjPeS/KvrdBGzTsOryaTltAVQr1LgAXKqBeza1Xg4C1D7qnbfQBWxH shm2Z79qV99J0FpLVxoDoZEFM4pS2grMgQRcZxs0S44OzApw/qDm0t8WxrbYbFdxT/hq vDA5wTiOTq9eFVwADJ1GpxQAGKRSrNeg90hIY= Received: by 10.223.3.81 with SMTP id 17mr6808999fam.102.1263081047743; Sat, 09 Jan 2010 15:50:47 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 15sm8917997fxm.10.2010.01.09.15.50.46 (version=SSLv3 cipher=RC4-MD5); Sat, 09 Jan 2010 15:50:47 -0800 (PST) Sender: Alexander Motin Message-ID: <4B491655.5020103@FreeBSD.org> Date: Sun, 10 Jan 2010 01:50:45 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Abdullah Ibn Hamad Al-Marri References: <1263046981.00204595.1263034801@10.7.7.3> <4B4892DA.1060305@FreeBSD.org> <268178.64598.qm@web111315.mail.gq1.yahoo.com> In-Reply-To: <268178.64598.qm@web111315.mail.gq1.yahoo.com> X-Enigmail-Version: 0.96.0 Content-Type: multipart/mixed; boundary="------------040307070800060508070806" Cc: FreeBSD STABLE , FreeBSD Questions Subject: Re: FreeBSD 8.0 STABLE sata regression X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jan 2010 23:50:54 -0000 This is a multi-part message in MIME format. --------------040307070800060508070806 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Abdullah Ibn Hamad Al-Marri wrote: >> Abdullah Ibn Hamad Al-Marri wrote: >>> My servers are alright with FreeBSD 8.0-RELEASE, but not with -STABLE. >>> >>> FreeBSD NOC.WEArab.Net 8.0-STABLE FreeBSD 8.0-STABLE #0: Fri Jan 8 18:26:13 >> UTC 2010 admin@localhost.localdomain:/usr/obj/usr/src/sys/GENERIC amd64 >>> atapci0: port >> 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x20a0-0x20af mem 0x90200000-0x902003ff irq >> 19 at device 31.2 on pci0 >>> ata0: on atapci0 >>> ata0: [ITHREAD] >>> ata1: on atapci0 >>> ata1: [ITHREAD] >>> >>> when I upgraded to FreeBSD 8.0-STABLE it got many issues. >>> >>> ad2: 381554MB at ata1-master UDMA100 >> If UDMA mode reported instead of SATA speed is the only issue, then it >> is not an issue, but only a cosmetic change. It doesn't mean that your >> drives will work slower. >> >> Thanks for report, I'll plug ICH7 board a bit later to check this. >> To get more info about the problem, try `atacontrol mode ad2` command. > > Here is the result, > > VB# atacontrol mode ad4 > current mode = UDMA100 > VB# atacontrol mode ad6 > current mode = UDMA100 > VB# OK. I have attached my ICH7 board and found where is the problem. This chipset doesn't provide access to SATA control registers. As result, driver can't get SATA connection info and so doesn't report it. If you wish, you can restore previous behavior by applying attached patch. Here is what I have with it: %atacontrol mode ad0 current mode = UDMA100 %atacontrol mode ad4 current mode = UDMA100 SATA 1.5Gb/s %atacontrol mode ad5 current mode = UDMA100 SATA 1.5Gb/s %atacontrol mode ad6 current mode = UDMA100 SATA 1.5Gb/s %atacontrol mode ad7 current mode = UDMA100 SATA 1.5Gb/s But as I have said before, it is only a cosmetics. -- Alexander Motin --------------040307070800060508070806 Content-Type: text/plain; name="ugly.sata.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ugly.sata.patch" --- ata-pci.c.prev 2010-01-10 01:25:45.000000000 +0200 +++ ata-pci.c 2010-01-10 01:25:49.000000000 +0200 @@ -714,9 +714,12 @@ static int ata_pcichannel_getrev(device_t dev, int target) { struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); + struct ata_channel *ch = device_get_softc(dev); if (ctlr->getrev) return (ctlr->getrev(dev, target)); + else if (ch->flags & ATA_SATA) + return (1); else return (0); } --------------040307070800060508070806--