From owner-svn-src-stable@FreeBSD.ORG Wed Mar 16 23:56:36 2011 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0DA7106564A; Wed, 16 Mar 2011 23:56:35 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4229E8FC0A; Wed, 16 Mar 2011 23:56:34 +0000 (UTC) Received: by fxm11 with SMTP id 11so2550011fxm.13 for ; Wed, 16 Mar 2011 16:56:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:message-id:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=nOyUqGcmKmiyr+2hGiGjyIUU3ab0/HfJxdSgGcg/ZHY=; b=JvHYGvV8XeEUvFpi3JgsrF+oB1f44chjKtOW/H8Ei4Z8wIxsqjyC97pe2cNIwNXwJ5 w72C+rb4/iYwUUmET+r0sbkU8V2XznCoaZT1vB4iKpJlt6MyRb4IbV+UVFhrIRlSz8ek p0sw6Xm6Dxq9Gpc8hS5OJ6zeTvezRIeYySpeQ= 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:content-type:content-transfer-encoding; b=jKDnVqIzF6DINvgCoBMSXFrAxk9ZcsNTltjuhYwcrYAVFi+TKkfc0gmlWdCVDqqX2M lmnappH+8HK5pWwhguDgnG4VoFY/xi+nNJfgwSnv8CNNTQ4xX4nVSc/UBuJgjdAqYI7/ 9Vb5e/+zjWjpYhkiELt0gfmomizcOmyASaDIM= Received: by 10.223.27.129 with SMTP id i1mr380443fac.24.1300319389949; Wed, 16 Mar 2011 16:49:49 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id l2sm81548fam.5.2011.03.16.16.49.48 (version=SSLv3 cipher=OTHER); Wed, 16 Mar 2011 16:49:49 -0700 (PDT) Sender: Alexander Motin Message-ID: <4D814C90.5090304@FreeBSD.org> Date: Thu, 17 Mar 2011 01:49:36 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110310 Thunderbird/3.1.9 MIME-Version: 1.0 To: Bob Willcox References: <201102052134.p15LYRmw041695@svn.freebsd.org> <20110316135122.GB7185@rancor.immure.com> <4D814AAA.3070801@FreeBSD.org> In-Reply-To: <4D814AAA.3070801@FreeBSD.org> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-stable@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-8@freebsd.org Subject: Re: svn commit: r218347 - stable/8/sys/dev/ata/chipsets X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2011 23:56:36 -0000 On 17.03.2011 01:41, Alexander Motin wrote: > On 16.03.2011 15:51, Bob Willcox wrote: >> This change has broken SATA disk support on my Intel Atom D525 ITX >> system. By >> reverting this change 8.2-STABLE works again on this system. >> >> My 'uname -a' output is: >> >> FreeBSD maul.immure.com 8.2-STABLE FreeBSD 8.2-STABLE #6: Wed Mar 16 >> 08:15:43 CDT 2011 bob@maul.immure.com:/usr/obj/usr/src/sys/MAUL amd64 >> >> When booting the system I get tons of these messages: >> >> Mar 16 07:38:19 maul kernel: ad4: WARNING - SETFEATURES ENABLE RCACHE >> requeued due to channel reset >> Mar 16 07:38:19 maul kernel: ad4: interrupt on idle channel ignored > > As I can see, it means that channel has some active request, but it is > in IDLE state. It is strange, but I won't be surprised much if it is the > result of some locking problem in ata(4) in non-CAM mode. > >> repeated over and over, and then lots of these: >> >> Mar 16 07:38:21 maul kernel: ad4: WARNING - READ_DMA48 requeued due to >> channel reset LBA=617964479 >> Mar 16 07:38:21 maul kernel: ata2: FAILURE - already active DMA on >> this device >> Mar 16 07:38:21 maul kernel: ata2: setting up DMA failed >> >> for different LBA values. >> >> As one might expect, I then start seeing I/O errors on the disk and >> programs >> failing >> >> I've attached the 'pciconf -lv' output. > > Send me please full verbose log, if you can save it. I am especially > interested in place around first errors. > > You may try to build kernel with `options ATA_CAM` to see if it helps. > I've mostly tested this patch in that mode. PS: I think commenting "ch->flags |= ATA_PERIODIC_POLL;" lines in ata-intel.c should effectively neutralize this change and probably hide the problem back. As last resort. >> On Sat, Feb 05, 2011 at 09:34:27PM +0000, Alexander Motin wrote: >>> Author: mav >>> Date: Sat Feb 5 21:34:26 2011 >>> New Revision: 218347 >>> URL: http://svn.freebsd.org/changeset/base/218347 >>> >>> Log: >>> MFC r217774: >>> ICH7 SATA controller in legacy mode can provide access to SATA registers >>> via AHCI-like memory resource at BAR(5). Use it if BIOS was so kind to >>> allocate memory for that BAR. This allows hot-plug support and >>> connection >>> speed reporting. -- Alexander Motin