From owner-freebsd-current@FreeBSD.ORG Tue May 26 13:46:01 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 37BF91065670 for ; Tue, 26 May 2009 13:46:01 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from mail-gw1.york.ac.uk (mail-gw1.york.ac.uk [144.32.128.246]) by mx1.freebsd.org (Postfix) with ESMTP id A77C48FC15 for ; Tue, 26 May 2009 13:45:55 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from mail-gw6.york.ac.uk (mail-gw6.york.ac.uk [144.32.129.26]) by mail-gw1.york.ac.uk (8.13.6/8.13.6) with ESMTP id n4QDjr83003123; Tue, 26 May 2009 14:45:53 +0100 (BST) Received: from buffy-128.york.ac.uk ([144.32.128.160] helo=buffy.york.ac.uk) by mail-gw6.york.ac.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1M8wyX-0004va-9Z; Tue, 26 May 2009 14:45:53 +0100 Received: from buffy.york.ac.uk (localhost [127.0.0.1]) by buffy.york.ac.uk (8.14.3/8.14.3) with ESMTP id n4QDjq5L082391; Tue, 26 May 2009 14:45:52 +0100 (BST) (envelope-from gavin@FreeBSD.org) Received: (from ga9@localhost) by buffy.york.ac.uk (8.14.3/8.14.3/Submit) id n4QDjqjr082390; Tue, 26 May 2009 14:45:52 +0100 (BST) (envelope-from gavin@FreeBSD.org) X-Authentication-Warning: buffy.york.ac.uk: ga9 set sender to gavin@FreeBSD.org using -f From: Gavin Atkinson To: triosoft@triosoft.com.ua In-Reply-To: <1d05d65670fbc0f7e84d8b42351c63aa.squirrel@webmail.ic.uz.ua> References: <1d05d65670fbc0f7e84d8b42351c63aa.squirrel@webmail.ic.uz.ua> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 26 May 2009 14:45:52 +0100 Message-Id: <1243345552.80806.20.camel@buffy.york.ac.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 FreeBSD GNOME Team Port X-York-MailScanner: Found to be clean X-York-MailScanner-From: gavin@freebsd.org 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: Tue, 26 May 2009 13:46:01 -0000 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. Thanks, Gavin