From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 6 21:08:31 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B4035106564A for ; Thu, 6 Sep 2012 21:08:31 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 869D18FC08 for ; Thu, 6 Sep 2012 21:08:31 +0000 (UTC) Received: by pbbrp2 with SMTP id rp2so3263316pbb.13 for ; Thu, 06 Sep 2012 14:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=WQGjlO8WNTs+1XBq/QdVCRrF6HHc9vVykh6SbTQ33Cg=; b=OvwoRNi3QfJAqaQeCFbQTIsvQA9BHtqZ13b/f3AlO3X/YI11n49ttr8OYKBVY3x5Ir 4765BT42CGT8Nc/mHMZwekoBFqnx7Ynq6w6e+T+icSC85alBis+lxHs+liwmBPpG5GMc 0Fee+so5V8XQCFCzHUX51oU0Iu+8AA1Sw/rD/o/bFmlmimImHwMISWmNISk53xXCxi8b B+4vHyHymaUe72h7IzxkmlcAB8uioUOWsh3A61wdFDvpSOl7y1qDJKfcs/eTvQlpaxfW oN11KNrVhio8fMeEZieQE57vjEE6oqLqt/9pPM4ZqMWi+cP0FjPkQne3fsA1GK+Doep/ p8YA== Received: by 10.68.136.102 with SMTP id pz6mr6156684pbb.160.1346965711063; Thu, 06 Sep 2012 14:08:31 -0700 (PDT) Received: from [10.192.166.0] (stargate.chelsio.com. [67.207.112.58]) by mx.google.com with ESMTPS id kp3sm1929982pbc.64.2012.09.06.14.08.28 (version=SSLv3 cipher=OTHER); Thu, 06 Sep 2012 14:08:30 -0700 (PDT) Sender: Navdeep Parhar Message-ID: <504910CB.8050007@FreeBSD.org> Date: Thu, 06 Sep 2012 14:08:27 -0700 From: Navdeep Parhar User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:15.0) Gecko/20120902 Thunderbird/15.0 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Order in which a driver attaches to devices X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Sep 2012 21:08:31 -0000 I have a system with multiple cards supported by cxgbe(4). When I build a kernel with the driver compiled in, it attaches to the cards in a different order from when it's loaded as a module. Why? The network interfaces get re-ordered and this is quite annoying. Regards, Navdeep built-in: t4nex0: mem 0xf9fc0000-0xf9ffffff,0xfa000000-0xfa7fffff,0xf9fbe000-0xf9fbffff irq 26 at device 0.4 on pci8 cxgbe0: on t4nex0 cxgbe1: on t4nex0 cxgbe2: on t4nex0 cxgbe3: on t4nex0 t4nex1: mem 0xf8fc0000-0xf8ffffff,0xf9000000-0xf97fffff,0xf8fbe000-0xf8fbffff irq 32 at device 0.4 on pci6 cxgbe4: on t4nex1 cxgbe5: on t4nex1 kldload if_cxgb: t4nex0: mem 0xf8fc0000-0xf8ffffff,0xf9000000-0xf97fffff,0xf8fbe000-0xf8fbffff irq 32 at device 0.4 on pci6 cxgbe0: on t4nex0 cxgbe1: on t4nex0 t4nex1: mem 0xf9fc0000-0xf9ffffff,0xfa000000-0xfa7fffff,0xf9fbe000-0xf9fbffff irq 26 at device 0.4 on pci8 cxgbe2: on t4nex1 cxgbe3: on t4nex1 cxgbe4: on t4nex1 cxgbe5: on t4nex1