From owner-freebsd-current@FreeBSD.ORG Thu May 28 14:40:41 2009 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 F2B781065670 for ; Thu, 28 May 2009 14:40:41 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 0AA3F8FC18 for ; Thu, 28 May 2009 14:40:40 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id RAA00627; Thu, 28 May 2009 17:40:39 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <4A1EA266.3030204@icyb.net.ua> Date: Thu, 28 May 2009 17:40:38 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.21 (X11/20090406) MIME-Version: 1.0 To: Gavin Atkinson , triosoft@triosoft.com.ua References: <1d05d65670fbc0f7e84d8b42351c63aa.squirrel@webmail.ic.uz.ua> <1243345552.80806.20.camel@buffy.york.ac.uk> In-Reply-To: <1243345552.80806.20.camel@buffy.york.ac.uk> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=KOI8-U Content-Transfer-Encoding: 7bit Cc: freebsd-current@FreeBSD.org Subject: Re: ATA_STATIC_ID and AHCI bug or /dev/hands ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 May 2009 14:40:42 -0000 on 26/05/2009 16:45 Gavin Atkinson said the following: > On Sun, 2009-05-24 at 21:41 +0300, triosoft@triosoft.com.ua wrote: >> Hello! >> >> I found some odd behavior of ata device numbering. It seems, that there >> is no effect of option ATA_STATIC_ID in CURRENT. >> What I have: >> supermicro server with 4 sata ports onto Intel ICH7 SATA300 controller >> recent CURRENT >> sata mode in BIOS is Enhanced >> ahci support in BIOS in Enabled >> option ATA_STATIC_ID in KERNCONF >> >> So, if I boot with 4 HDD connected to sata i found ad4,ad6,ad8,ad10 as >> disks. but when I detach disk, which "was" ad8 in last case, and then >> reboot - I see ad4,ad6,ad8! and not ad4,ad6,ad10! atacontrol list >> doesn't show an empty ata channel. Only channels with HDDs connected. I >> check 6.x 7.x on the same server with _the same configuration in bios_ - >> and all works as suspected - there are empty ata channels, there are >> really static device numbers. when I set AHCI to Disabled I have just >> two ata channels (with AHCI - I have four, one for each sata disk) and >> with or without HDDs connected I see empty channels and have really >> static dev nums in the same CURRENT. >> So my question is - is it my fault? does I miss something? Or it is a bug? > > This sounds like a bug to me. I think you're probably best submitting a > PR, and please include (or link to) a verbose dmesg from both 7.x and > HEAD, and the output of "atacontrol list" from both. BTW, I can not reproduce this. I also have ATA_STATIC_ID in *both* kernel configurations (emphasis is just n case). My hardware is ICH9R-based. AHCI is enabled. Both recent head and stable/7 enumerate drives exactly the same (ad6, ad10, ad16). -- Andriy Gapon