From owner-freebsd-current@FreeBSD.ORG Fri Sep 10 17:17:18 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B754416A4CE for ; Fri, 10 Sep 2004 17:17:18 +0000 (GMT) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45D1F43D41 for ; Fri, 10 Sep 2004 17:17:18 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from pelsia.ninth-nine.com (pelsia.ninth-nine.com [219.127.74.123]) (authenticated bits=0) by sakura.ninth-nine.com (8.12.11/8.12.11/NinthNine) with ESMTP id i8AHHGWR044322 for ; Sat, 11 Sep 2004 02:17:16 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Sat, 11 Sep 2004 02:17:16 +0900 (JST) Message-Id: <200409101717.i8AHHGWR044322@sakura.ninth-nine.com> From: Norikatsu Shigemura To: freebsd-current@FreeBSD.org X-Mailer: Sylpheed version 0.9.12-gtk2-20040622 (GTK+ 2.4.4; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.5.6 (sakura.ninth-nine.com [219.127.74.121]); Sat, 11 Sep 2004 02:17:17 +0900 (JST) Subject: PANIC: sym(4) didn't MODULE_DEPEND cam(4). X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 10 Sep 2004 17:17:18 -0000 I found a problem. sym(4) module didn't MODULE_DEPEND on cam(4). So modulaized sym(4) will be panic on boot with following message. - - - - - - - - - - - - - - - - - - - - - - - - - - - (snip) link_elf: symbol xpt_print_path undefined KLD file sym.ko - could not finalize loading kernel trap 12 with interrupts disabled (snip) - - - - - - - - - - - - - - - - - - - - - - - - - - - I made a patch to fix this problem. In my environment, this looks good works. Anyone, please commit following patch. Index: sym_hipd.c =================================================================== RCS file: /home/ncvs/src/sys/dev/sym/sym_hipd.c,v retrieving revision 1.48 diff -u -r1.48 sym_hipd.c --- sym_hipd.c 17 Mar 2004 17:50:45 -0000 1.48 +++ sym_hipd.c 10 Sep 2004 17:10:34 -0000 @@ -8501,6 +8501,7 @@ static devclass_t sym_devclass; DRIVER_MODULE(sym, pci, sym_pci_driver, sym_devclass, 0, 0); +MODULE_DEPEND(sym, cam, 1, 1, 1); static struct sym_pci_chip sym_pci_dev_table[] = {