From owner-freebsd-scsi@FreeBSD.ORG Sun Dec 3 20:50:34 2006 Return-Path: X-Original-To: freebsd-scsi@hub.freebsd.org Delivered-To: freebsd-scsi@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 225DC16A416 for ; Sun, 3 Dec 2006 20:50:34 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FCC643CA8 for ; Sun, 3 Dec 2006 20:49:59 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kB3KoRPY042310 for ; Sun, 3 Dec 2006 20:50:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kB3KoRVc042309; Sun, 3 Dec 2006 20:50:27 GMT (envelope-from gnats) Date: Sun, 3 Dec 2006 20:50:27 GMT Message-Id: <200612032050.kB3KoRVc042309@freefall.freebsd.org> To: freebsd-scsi@FreeBSD.org From: Gianni Cc: Subject: Re: kern/99954: [ahc] reading from DVD failes on 6.x (regression) X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gianni List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Dec 2006 20:50:34 -0000 The following reply was made to PR kern/99954; it has been noted by GNATS. From: Gianni To: bug-followup@freebsd.org, jumpyboy@infinito.it Cc: Subject: Re: kern/99954: [ahc] reading from DVD failes on 6.x (regression) Date: Sun, 3 Dec 2006 21:51:46 +0100 The problem happen when I try to copy a file from a mounted CD/DVD. I get that I/O error after I installed FreeBSD 6.2-RC1 from FTP. I'm not able to see a DVD, or copy data from CD/DVD on hard disk drive ATM. I tryed to reboot FreeBSD with ACPI disabled but the problem is still there. From owner-freebsd-scsi@FreeBSD.ORG Sun Dec 3 21:20:22 2006 Return-Path: X-Original-To: freebsd-scsi@hub.freebsd.org Delivered-To: freebsd-scsi@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D4B9716A407 for ; Sun, 3 Dec 2006 21:20:22 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 069B943CB8 for ; Sun, 3 Dec 2006 21:19:52 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kB3LKL0D044560 for ; Sun, 3 Dec 2006 21:20:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kB3LKLRP044559; Sun, 3 Dec 2006 21:20:21 GMT (envelope-from gnats) Date: Sun, 3 Dec 2006 21:20:21 GMT Message-Id: <200612032120.kB3LKLRP044559@freefall.freebsd.org> To: freebsd-scsi@FreeBSD.org From: Gianni Cc: Subject: Re: kern/99954: [ahc] reading from DVD failes on 6.x (regression) X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gianni List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Dec 2006 21:20:22 -0000 The following reply was made to PR kern/99954; it has been noted by GNATS. From: Gianni To: bug-followup@freebsd.org, jumpyboy@infinito.it Cc: Subject: Re: kern/99954: [ahc] reading from DVD failes on 6.x (regression) Date: Sun, 3 Dec 2006 22:21:49 +0100 This is a cutted "dmesg" on the I/O error. Waiting 5 seconds for SCSI devices to settle cd0 at ahc0 bus 0 target 6 lun 0 cd0: Removable CD-ROM SCSI-2 device cd0: 10.000MB/s transfers (10.000MHz, offset 8) cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed Trying to mount root from ufs:/dev/ad0s1a sk0: link state changed to UP pid 51774 (conftest), uid 0: exited on signal 11 (core dumped) g_vfs_done():cd0[READ(offset=32768, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=7837378560, length=2048)]error = 5 vm_fault: pager read error, pid 95734 (cp) acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=7851186176, length=2048)]error = 5 vm_fault: pager read error, pid 96284 (cp) acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 g_vfs_done():acd0[READ(offset=7959300096, length=65536)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=700416, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=7798812672, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=866304, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 g_vfs_done():acd0[READ(offset=950272, length=65536)]error = 5 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 g_vfs_done():acd0[READ(offset=549795840, length=65536)]error = 5 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 g_vfs_done():acd0[READ(offset=1623361536, length=65536)]error = 5 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 g_vfs_done():acd0[READ(offset=2696927232, length=65536)]error = 5 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 g_vfs_done():acd0[READ(offset=3770492928, length=65536)]error = 5 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 g_vfs_done():acd0[READ(offset=4844058624, length=65536)]error = 5 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 g_vfs_done():acd0[READ(offset=5917624320, length=65536)]error = 5 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 g_vfs_done():acd0[READ(offset=6991190016, length=65536)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=7822241792, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=7798906880, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=7798923264, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 g_vfs_done():acd0[READ(offset=7799078912, length=65536)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=7837134848, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=7822264320, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 g_vfs_done():acd0[READ(offset=7822278656, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 g_vfs_done():acd0[READ(offset=7822432256, length=65536)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=7837145088, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=7837179904, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=7837331456, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=7851186176, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=7837366272, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 g_vfs_done():acd0[READ(offset=7837384704, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 g_vfs_done():acd0[READ(offset=7837534208, length=65536)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=7921960960, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=7851212800, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=7851225088, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 g_vfs_done():acd0[READ(offset=7851380736, length=65536)]error = 5 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 g_vfs_done():acd0[READ(offset=7921991680, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 g_vfs_done():acd0[READ(offset=7922147328, length=65536)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=7959105536, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=7935416320, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=7935438848, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 g_vfs_done():acd0[READ(offset=7935592448, length=65536)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=8004775936, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=7959123968, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x6f ascq=0x03 g_vfs_done():acd0[READ(offset=7959150592, length=2048)]error = 5 vm_fault: pager read error, pid 97450 (cp) g_vfs_done():cd0[READ(offset=32768, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=61440, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=61440, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=61440, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=61440, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=61440, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=61440, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=61440, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=61440, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=61440, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=61440, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=102400, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=102400, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=102400, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=102400, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=102400, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=102400, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=102400, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=102400, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=102400, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=102400, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=102400, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=102400, length=2048)]error = 5 acd0: FAILURE - READ_BIG HARDWARE ERROR asc=0x08 ascq=0x03 g_vfs_done():acd0[READ(offset=102400, length=2048)]error = 5 (cd0:ahc0:0:6:0): READ(10). CDB: 28 0 0 0 6 99 0 0 1 0 (cd0:ahc0:0:6:0): CAM Status: SCSI Status Error (cd0:ahc0:0:6:0): SCSI Status: Check Condition (cd0:ahc0:0:6:0): ILLEGAL REQUEST asc:64,0 (cd0:ahc0:0:6:0): Illegal mode for this track (cd0:ahc0:0:6:0): Unretryable error (cd0:ahc0:0:6:0): cddone: got error 0x6 back g_vfs_done():cd0[READ(offset=3459072, length=2048)]error = 6 vm_fault: pager read error, pid 13337 (cp) (cd0:ahc0:0:6:0): READ(10). CDB: 28 0 0 0 d 23 0 0 1 0 (cd0:ahc0:0:6:0): CAM Status: SCSI Status Error (cd0:ahc0:0:6:0): SCSI Status: Check Condition (cd0:ahc0:0:6:0): ILLEGAL REQUEST asc:64,0 (cd0:ahc0:0:6:0): Illegal mode for this track (cd0:ahc0:0:6:0): Unretryable error (cd0:ahc0:0:6:0): cddone: got error 0x6 back g_vfs_done():cd0[READ(offset=6887424, length=2048)]error = 6 vm_fault: pager read error, pid 13337 (cp) (cd0:ahc0:0:6:0): READ(10). CDB: 28 0 0 0 25 1d 0 0 1 0 (cd0:ahc0:0:6:0): CAM Status: SCSI Status Error (cd0:ahc0:0:6:0): SCSI Status: Check Condition (cd0:ahc0:0:6:0): ILLEGAL REQUEST asc:64,0 (cd0:ahc0:0:6:0): Illegal mode for this track (cd0:ahc0:0:6:0): Unretryable error (cd0:ahc0:0:6:0): cddone: got error 0x6 back g_vfs_done():cd0[READ(offset=19458048, length=2048)]error = 6 vm_fault: pager read error, pid 13337 (cp) From owner-freebsd-scsi@FreeBSD.ORG Mon Dec 4 11:09:11 2006 Return-Path: X-Original-To: freebsd-scsi@FreeBSD.org Delivered-To: freebsd-scsi@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D848D16A4D1 for ; Mon, 4 Dec 2006 11:09:11 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id D857043CBF for ; Mon, 4 Dec 2006 11:08:13 +0000 (GMT) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kB4B8jAd045518 for ; Mon, 4 Dec 2006 11:08:45 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kB4B8i5o045514 for freebsd-scsi@FreeBSD.org; Mon, 4 Dec 2006 11:08:44 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 4 Dec 2006 11:08:44 GMT Message-Id: <200612041108.kB4B8i5o045514@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-scsi@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Dec 2006 11:09:11 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/27059 scsi [sym] SCSI subsystem hangs under heavy load on (Server o kern/28508 scsi problems with backup to Tandberg SLR40 strimmer o kern/39388 scsi ncr/sym drivers fail with 53c810 and more than 256MB m o kern/40895 scsi wierd kernel / device driver bug o kern/52638 scsi [panic] SCSI U320 on SMP server won't run faster than s kern/57398 scsi [mly] Current fails to install on mly(4) based RAID di o kern/60598 scsi wire down of scsi devices conflicts with config o kern/60641 scsi [sym] Sporadic SCSI bus resets with 53C810 under load s kern/61165 scsi [panic] kernel page fault after calling cam_send_ccb o kern/74627 scsi [ahc] [hang] Adaptec 2940U2W Can't boot 5.3 o kern/81887 scsi [aac] Adaptec SCSI 2130S aac0: GetDeviceProbeInfo comm o kern/90282 scsi [sym] SCSI bus resets cause loss of ch device o kern/92798 scsi [ahc] SCSI problem with timeouts o kern/93128 scsi [sym] FreeBSD 6.1 BETA 1 has problems with Symbios/LSI o kern/94838 scsi Kernel panic while mounting SD card with lock switch o o kern/99954 scsi [ahc] reading from DVD failes on 6.x (regression) 16 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/23314 scsi aic driver fails to detect Adaptec 1520B unless PnP is o kern/35234 scsi World access to /dev/pass? (for scanner) requires acce o kern/38828 scsi [feature request] DPT PM2012B/90 doesn't work o kern/44587 scsi dev/dpt/dpt.h is missing defines required for DPT_HAND o kern/76178 scsi [ahd] Problem with ahd and large SCSI Raid system o kern/96133 scsi [scsi] [patch] add scsi quirk for joyfly 128mb flash u o kern/103702 scsi [cam] [patch] ChipsBnk: Unsupported USB memory stick 7 problems total. From owner-freebsd-scsi@FreeBSD.ORG Mon Dec 4 23:11:14 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C811716A403; Mon, 4 Dec 2006 23:11:14 +0000 (UTC) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id B8B5443CBB; Mon, 4 Dec 2006 23:10:38 +0000 (GMT) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (localhost [127.0.0.1]) by ns1.feral.com (8.13.8/8.13.8) with ESMTP id kB4NB3cv018523; Mon, 4 Dec 2006 15:11:13 -0800 (PST) (envelope-from mjacob@freebsd.org) Received: from localhost (mjacob@localhost) by ns1.feral.com (8.13.8/8.13.8/Submit) with ESMTP id kB4NB3uk018520; Mon, 4 Dec 2006 15:11:03 -0800 (PST) (envelope-from mjacob@freebsd.org) X-Authentication-Warning: ns1.feral.com: mjacob owned process doing -bs Date: Mon, 4 Dec 2006 15:11:03 -0800 (PST) From: mjacob@freebsd.org X-X-Sender: mjacob@ns1.feral.com To: Attilio Rao In-Reply-To: <3bbf2fe10611201418m15d50703m37d9d5620e5c832d@mail.gmail.com> Message-ID: <20061204150922.F18492@ns1.feral.com> References: <20061119161631.L44297@ns1.feral.com> <3bbf2fe10611191631h6883b862uf8088533913a7bc6@mail.gmail.com> <20061120221153.GA5155@lor.one-eyed-alien.net> <3bbf2fe10611201418m15d50703m37d9d5620e5c832d@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-scsi@freebsd.org Subject: Re: a code reduction function addition to cam_xpt X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mjacob@freebsd.org List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Dec 2006 23:11:14 -0000 Was there ever a consensus about this to the point of: a) Yes, this is a nice thing to have b) Should it be a define or a function? I obviously think yes for #a. I lean toward a function. Comments? >> > >+void xpt_print(struct cam_path *path, const char >> *fmt, >> > >...); >> > > int xpt_path_string(struct cam_path *path, char >> *str, >> > > size_t str_len); >> > > path_id_t xpt_path_path_id(struct cam_path *path); >> > >> > Would not be better a preprocessing stub? >> > >> > something like: >> > >> > #define XPT_PRINT(path, fmt, ...) do { >> > \ >> > xpt_print_path(path); >> > \ >> > printf(fmt, __VA_ARGS__); >> > \ >> > } while (0) >> >> Why? What is gained? FWIW, when I added if_printif it reduced kernel >> size by several KB. If there's a similar effect here we should take >> advantage of it. > > It is simply faster (one function calling less), even if probabilly > this could be mitigated with -fomit-frame-pointer (IMHO, this is not > as over used as if_printf...). > > Attilio > > > -- > Peace can only be achieved by understanding - A. Einstein > From owner-freebsd-scsi@FreeBSD.ORG Mon Dec 4 23:33:59 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C960516A40F for ; Mon, 4 Dec 2006 23:33:59 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA96E43D8D for ; Mon, 4 Dec 2006 23:32:19 +0000 (GMT) (envelope-from asmrookie@gmail.com) Received: by nf-out-0910.google.com with SMTP id x37so44041nfc for ; Mon, 04 Dec 2006 15:32:54 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=lV+5Ti9nu8SQHGuI+tRI0NyJcHivybkCvJgZoCSRCDTgCP1Hvf2qA0ZgcmWk+YqFp/4y888nOJi2g8PcpZGpjScCyKHjs3xeMkaDMmRHJAYa90NHKCvPHpbeunD3E3YodnlDsDHBEbIHuP+8Ce8tXjdQ9Fkei44ZJh5jStrcUuI= Received: by 10.82.183.19 with SMTP id g19mr1596053buf.1165275173777; Mon, 04 Dec 2006 15:32:53 -0800 (PST) Received: by 10.82.189.18 with HTTP; Mon, 4 Dec 2006 15:32:53 -0800 (PST) Message-ID: <3bbf2fe10612041532r24989510g90e41eb6f41cadb5@mail.gmail.com> Date: Tue, 5 Dec 2006 00:32:53 +0100 From: "Attilio Rao" Sender: asmrookie@gmail.com To: mjacob@freebsd.org In-Reply-To: <20061204150922.F18492@ns1.feral.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061119161631.L44297@ns1.feral.com> <3bbf2fe10611191631h6883b862uf8088533913a7bc6@mail.gmail.com> <20061120221153.GA5155@lor.one-eyed-alien.net> <3bbf2fe10611201418m15d50703m37d9d5620e5c832d@mail.gmail.com> <20061204150922.F18492@ns1.feral.com> X-Google-Sender-Auth: 868f71ad8e91ad6d Cc: freebsd-scsi@freebsd.org Subject: Re: a code reduction function addition to cam_xpt X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Dec 2006 23:33:59 -0000 2006/12/5, mjacob@freebsd.org : > > > Was there ever a consensus about this to the point of: > > a) Yes, this is a nice thing to have > b) Should it be a define or a function? > > I obviously think yes for #a. I lean toward a function. Comments? a) yes b) define Attilio -- Peace can only be achieved by understanding - A. Einstein From owner-freebsd-scsi@FreeBSD.ORG Tue Dec 5 03:11:50 2006 Return-Path: X-Original-To: freebsd-scsi@FreeBSD.org Delivered-To: freebsd-scsi@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7DEA216A417; Tue, 5 Dec 2006 03:11:50 +0000 (UTC) (envelope-from bde@zeta.org.au) Received: from mailout1.pacific.net.au (mailout1-3.pacific.net.au [61.8.2.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F36843CA2; Tue, 5 Dec 2006 03:11:13 +0000 (GMT) (envelope-from bde@zeta.org.au) Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout1.pacific.net.au (Postfix) with ESMTP id 8F8CA5A0E9A; Tue, 5 Dec 2006 14:11:43 +1100 (EST) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id AC28727415; Tue, 5 Dec 2006 14:11:42 +1100 (EST) Date: Tue, 5 Dec 2006 14:11:42 +1100 (EST) From: Bruce Evans X-X-Sender: bde@delplex.bde.org To: mjacob@FreeBSD.org In-Reply-To: <20061204150922.F18492@ns1.feral.com> Message-ID: <20061205140644.Q28464@delplex.bde.org> References: <20061119161631.L44297@ns1.feral.com> <3bbf2fe10611191631h6883b862uf8088533913a7bc6@mail.gmail.com> <20061120221153.GA5155@lor.one-eyed-alien.net> <3bbf2fe10611201418m15d50703m37d9d5620e5c832d@mail.gmail.com> <20061204150922.F18492@ns1.feral.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Attilio Rao , freebsd-scsi@FreeBSD.org Subject: Re: a code reduction function addition to cam_xpt X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2006 03:11:50 -0000 On Mon, 4 Dec 2006 mjacob@FreeBSD.org wrote: > Was there ever a consensus about this to the point of: > > a) Yes, this is a nice thing to have > b) Should it be a define or a function? > > I obviously think yes for #a. I lean toward a function. Comments? I wouldn't have thought of using a macro except for an entry in IOCCC. Bruce From owner-freebsd-scsi@FreeBSD.ORG Tue Dec 5 03:27:53 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9CA8616A412; Tue, 5 Dec 2006 03:27:53 +0000 (UTC) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF00843CA2; Tue, 5 Dec 2006 03:27:16 +0000 (GMT) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (localhost [127.0.0.1]) by ns1.feral.com (8.13.8/8.13.8) with ESMTP id kB53RgcW019799; Mon, 4 Dec 2006 19:27:52 -0800 (PST) (envelope-from mjacob@freebsd.org) Received: from localhost (mjacob@localhost) by ns1.feral.com (8.13.8/8.13.8/Submit) with ESMTP id kB53RfVO019795; Mon, 4 Dec 2006 19:27:42 -0800 (PST) (envelope-from mjacob@freebsd.org) X-Authentication-Warning: ns1.feral.com: mjacob owned process doing -bs Date: Mon, 4 Dec 2006 19:27:41 -0800 (PST) From: mjacob@freebsd.org X-X-Sender: mjacob@ns1.feral.com To: Bruce Evans In-Reply-To: <20061205140644.Q28464@delplex.bde.org> Message-ID: <20061204192720.P19791@ns1.feral.com> References: <20061119161631.L44297@ns1.feral.com> <3bbf2fe10611191631h6883b862uf8088533913a7bc6@mail.gmail.com> <20061120221153.GA5155@lor.one-eyed-alien.net> <3bbf2fe10611201418m15d50703m37d9d5620e5c832d@mail.gmail.com> <20061204150922.F18492@ns1.feral.com> <20061205140644.Q28464@delplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Attilio Rao , freebsd-scsi@freebsd.org Subject: Re: a code reduction function addition to cam_xpt X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mjacob@freebsd.org List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2006 03:27:53 -0000 > > I wouldn't have thought of using a macro except for an entry in IOCCC. IOCCC? From owner-freebsd-scsi@FreeBSD.ORG Tue Dec 5 03:46:09 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A928D16A417; Tue, 5 Dec 2006 03:46:09 +0000 (UTC) (envelope-from ade@lovett.com) Received: from mail.lovett.com (foo.lovett.com [67.134.38.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA38943CA6; Tue, 5 Dec 2006 03:45:32 +0000 (GMT) (envelope-from ade@lovett.com) Received: from hellfire.canal.lovett.com ([172.16.32.20]:61445) by mail.lovett.com with esmtpa (Exim 4.63 (FreeBSD)) (envelope-from ) id 1GrRFx-000Pfk-5x; Mon, 04 Dec 2006 19:46:09 -0800 In-Reply-To: <20061204192720.P19791@ns1.feral.com> References: <20061119161631.L44297@ns1.feral.com> <3bbf2fe10611191631h6883b862uf8088533913a7bc6@mail.gmail.com> <20061120221153.GA5155@lor.one-eyed-alien.net> <3bbf2fe10611201418m15d50703m37d9d5620e5c832d@mail.gmail.com> <20061204150922.F18492@ns1.feral.com> <20061205140644.Q28464@delplex.bde.org> <20061204192720.P19791@ns1.feral.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Ade Lovett Date: Mon, 4 Dec 2006 19:46:08 -0800 To: mjacob@freebsd.org X-Mailer: Apple Mail (2.752.2) Sender: ade@lovett.com Cc: freebsd-scsi@freebsd.org Subject: Re: a code reduction function addition to cam_xpt X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2006 03:46:09 -0000 On Dec 04, 2006, at 19:27 , mjacob@freebsd.org wrote: > IOCCC? http://www.ioccc.org/ Consider this another vote for "function" ;) -aDe From owner-freebsd-scsi@FreeBSD.ORG Tue Dec 5 04:27:21 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3AD9F16A40F; Tue, 5 Dec 2006 04:27:21 +0000 (UTC) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04E2943C9D; Tue, 5 Dec 2006 04:26:43 +0000 (GMT) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (localhost [127.0.0.1]) by ns1.feral.com (8.13.8/8.13.8) with ESMTP id kB54RAQW020250; Mon, 4 Dec 2006 20:27:20 -0800 (PST) (envelope-from mjacob@freebsd.org) Received: from localhost (mjacob@localhost) by ns1.feral.com (8.13.8/8.13.8/Submit) with ESMTP id kB54RA1H020247; Mon, 4 Dec 2006 20:27:10 -0800 (PST) (envelope-from mjacob@freebsd.org) X-Authentication-Warning: ns1.feral.com: mjacob owned process doing -bs Date: Mon, 4 Dec 2006 20:27:10 -0800 (PST) From: mjacob@freebsd.org X-X-Sender: mjacob@ns1.feral.com To: Ade Lovett In-Reply-To: Message-ID: <20061204202639.B20246@ns1.feral.com> References: <20061119161631.L44297@ns1.feral.com> <3bbf2fe10611191631h6883b862uf8088533913a7bc6@mail.gmail.com> <20061120221153.GA5155@lor.one-eyed-alien.net> <3bbf2fe10611201418m15d50703m37d9d5620e5c832d@mail.gmail.com> <20061204150922.F18492@ns1.feral.com> <20061205140644.Q28464@delplex.bde.org> <20061204192720.P19791@ns1.feral.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-scsi@freebsd.org Subject: Re: a code reduction function addition to cam_xpt X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mjacob@freebsd.org List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2006 04:27:21 -0000 > On Dec 04, 2006, at 19:27 , mjacob@freebsd.org wrote: >> IOCCC? > > http://www.ioccc.org/ > > Consider this another vote for "function" ;) Bruce is usually less indirect. What gives? From owner-freebsd-scsi@FreeBSD.ORG Tue Dec 5 04:42:55 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7ECCE16A412; Tue, 5 Dec 2006 04:42:55 +0000 (UTC) (envelope-from ade@lovett.com) Received: from mail.lovett.com (foo.lovett.com [67.134.38.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3840A43CA3; Tue, 5 Dec 2006 04:42:18 +0000 (GMT) (envelope-from ade@lovett.com) Received: from hellfire.canal.lovett.com ([172.16.32.20]:61482) by mail.lovett.com with esmtpa (Exim 4.63 (FreeBSD)) (envelope-from ) id 1GrS8s-0000CO-QY; Mon, 04 Dec 2006 20:42:54 -0800 In-Reply-To: <20061204202639.B20246@ns1.feral.com> References: <20061119161631.L44297@ns1.feral.com> <3bbf2fe10611191631h6883b862uf8088533913a7bc6@mail.gmail.com> <20061120221153.GA5155@lor.one-eyed-alien.net> <3bbf2fe10611201418m15d50703m37d9d5620e5c832d@mail.gmail.com> <20061204150922.F18492@ns1.feral.com> <20061205140644.Q28464@delplex.bde.org> <20061204192720.P19791@ns1.feral.com> <20061204202639.B20246@ns1.feral.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <02408F0C-838D-496A-8BE3-6049C9E77C76@freebsd.org> Content-Transfer-Encoding: 7bit From: Ade Lovett Date: Mon, 4 Dec 2006 20:42:54 -0800 To: mjacob@freebsd.org X-Mailer: Apple Mail (2.752.2) Sender: ade@lovett.com Cc: freebsd-scsi@freebsd.org Subject: Re: a code reduction function addition to cam_xpt X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2006 04:42:55 -0000 On Dec 04, 2006, at 20:27 , mjacob@freebsd.org wrote: >> On Dec 04, 2006, at 19:27 , mjacob@freebsd.org wrote: >>> IOCCC? >> >> http://www.ioccc.org/ >> >> Consider this another vote for "function" ;) > > Bruce is usually less indirect. What gives? Multi-line #define's are 'orrible (IMO) -- of course, our tree is littered with them, but it's highly preferable to have a function over a define, particularly when it comes to reading the code n months later, trying to track something down. In this particular case, the minimal overhead of calling a function rather than having it inline (via #define) is vastly outweighed by code-readability, and reduction in kernel size. -aDe From owner-freebsd-scsi@FreeBSD.ORG Tue Dec 5 05:27:27 2006 Return-Path: X-Original-To: freebsd-scsi@FreeBSD.org Delivered-To: freebsd-scsi@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0064D16A416; Tue, 5 Dec 2006 05:27:26 +0000 (UTC) (envelope-from bde@zeta.org.au) Received: from mailout1.pacific.net.au (mailout1-3.pacific.net.au [61.8.2.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F89B43C9D; Tue, 5 Dec 2006 05:26:49 +0000 (GMT) (envelope-from bde@zeta.org.au) Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout1.pacific.net.au (Postfix) with ESMTP id C24345A3C12; Tue, 5 Dec 2006 16:27:19 +1100 (EST) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id 77D1327407; Tue, 5 Dec 2006 16:27:18 +1100 (EST) Date: Tue, 5 Dec 2006 16:27:17 +1100 (EST) From: Bruce Evans X-X-Sender: bde@delplex.bde.org To: Ade Lovett In-Reply-To: <02408F0C-838D-496A-8BE3-6049C9E77C76@freebsd.org> Message-ID: <20061205161849.S28896@delplex.bde.org> References: <20061119161631.L44297@ns1.feral.com> <3bbf2fe10611191631h6883b862uf8088533913a7bc6@mail.gmail.com> <20061120221153.GA5155@lor.one-eyed-alien.net> <3bbf2fe10611201418m15d50703m37d9d5620e5c832d@mail.gmail.com> <20061204150922.F18492@ns1.feral.com> <20061205140644.Q28464@delplex.bde.org> <20061204192720.P19791@ns1.feral.com> <20061204202639.B20246@ns1.feral.com> <02408F0C-838D-496A-8BE3-6049C9E77C76@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-scsi@FreeBSD.org, mjacob@FreeBSD.org Subject: Re: a code reduction function addition to cam_xpt X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2006 05:27:27 -0000 On Mon, 4 Dec 2006, Ade Lovett wrote: > On Dec 04, 2006, at 20:27 , mjacob@freebsd.org wrote: >>> On Dec 04, 2006, at 19:27 , mjacob@freebsd.org wrote: >>>> IOCCC? >>> >>> http://www.ioccc.org/ Or just google it. >>> Consider this another vote for "function" ;) >> >> Bruce is usually less indirect. What gives? You haven't talked to me enough :-). > Multi-line #define's are 'orrible (IMO) -- of course, our tree is littered > with them, but it's highly preferable to have a function over a define, > particularly when it comes to reading the code n months later, trying to > track something down. In this particular case, the minimal overhead of > calling a function rather than having it inline (via #define) is vastly > outweighed by code-readability, and reduction in kernel size. And in many cases reducing the kernel size also reduces time due to it reducing cache misses. Here I think the code is so rarely executed that neither space or time efficiency really matters. Bruce From owner-freebsd-scsi@FreeBSD.ORG Tue Dec 5 07:40:18 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F08A116A407; Tue, 5 Dec 2006 07:40:18 +0000 (UTC) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0459A43C9D; Tue, 5 Dec 2006 07:39:40 +0000 (GMT) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (localhost [127.0.0.1]) by ns1.feral.com (8.13.8/8.13.8) with ESMTP id kB57e8dF021097; Mon, 4 Dec 2006 23:40:18 -0800 (PST) (envelope-from mjacob@freebsd.org) Received: from localhost (mjacob@localhost) by ns1.feral.com (8.13.8/8.13.8/Submit) with ESMTP id kB57e7b5021094; Mon, 4 Dec 2006 23:40:07 -0800 (PST) (envelope-from mjacob@freebsd.org) X-Authentication-Warning: ns1.feral.com: mjacob owned process doing -bs Date: Mon, 4 Dec 2006 23:40:07 -0800 (PST) From: mjacob@freebsd.org X-X-Sender: mjacob@ns1.feral.com To: Attilio Rao , Ade Lovett , Bruce Evans In-Reply-To: <3bbf2fe10612041532r24989510g90e41eb6f41cadb5@mail.gmail.com> Message-ID: <20061204233902.K21080@ns1.feral.com> References: <20061119161631.L44297@ns1.feral.com> <3bbf2fe10611191631h6883b862uf8088533913a7bc6@mail.gmail.com> <20061120221153.GA5155@lor.one-eyed-alien.net> <3bbf2fe10611201418m15d50703m37d9d5620e5c832d@mail.gmail.com> <20061204150922.F18492@ns1.feral.com> <3bbf2fe10612041532r24989510g90e41eb6f41cadb5@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-scsi@freebsd.org Subject: Re: a code reduction function addition to cam_xpt X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mjacob@freebsd.org List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2006 07:40:19 -0000 > 2006/12/5, mjacob@freebsd.org : >> >> >> Was there ever a consensus about this to the point of: >> >> a) Yes, this is a nice thing to have >> b) Should it be a define or a function? >> >> I obviously think yes for #a. I lean toward a function. Comments? > > a) yes > b) define > A number of folks have spoken. On balance, the function is more readable. Thanks all. From owner-freebsd-scsi@FreeBSD.ORG Tue Dec 5 13:20:10 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A3DC916A407 for ; Tue, 5 Dec 2006 13:20:10 +0000 (UTC) (envelope-from kawaja@ece.ufl.edu) Received: from ece.ufl.edu (dash.ece.ufl.edu [128.227.220.23]) by mx1.FreeBSD.org (Postfix) with SMTP id BD56243CBB for ; Tue, 5 Dec 2006 13:19:30 +0000 (GMT) (envelope-from kawaja@ece.ufl.edu) Received: (qmail 4677 invoked by uid 0); 5 Dec 2006 13:20:08 -0000 Received: from 128.227.180.138 by dash.ece.ufl.edu (envelope-from , uid 0) with qmail-scanner-1.25 (uvscan: v4.40.0/vDec 4 05:34. Clear:RC:1(128.227.180.138):. Processed in 0.022993 secs); 05 Dec 2006 13:20:08 -0000 Received: from unknown (HELO ?128.227.180.138?) (128.227.180.138) by dot.ece.ufl.edu with SMTP; 5 Dec 2006 13:20:08 -0000 Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-scsi@freebsd.org From: jason kawaja Date: Tue, 5 Dec 2006 08:19:52 -0500 X-Mailer: Apple Mail (2.752.3) Subject: determine wwn within freebsd X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2006 13:20:10 -0000 unable to determine wwn within freebsd, is there a way (already done)? thanks. my logs of isp0 : isp0: port 0x4000-0x40ff mem 0xdefff000-0xdeffffff irq 72 at device 3.0 on pci3 isp0: [GIANT-LOCKED] isp0: bad hard address 125- resetting to zero -- Jason Kawaja, 2-4568 IT Expert, UF Dept of ECE From owner-freebsd-scsi@FreeBSD.ORG Tue Dec 5 21:22:48 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 76B8C16A415 for ; Tue, 5 Dec 2006 21:22:48 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [64.129.166.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E6AF43CAD for ; Tue, 5 Dec 2006 21:22:01 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.8/8.13.8) with ESMTP id kB5LMaBT059027; Tue, 5 Dec 2006 15:22:37 -0600 (CST) (envelope-from anderson@centtech.com) Message-ID: <4575E325.3010603@centtech.com> Date: Tue, 05 Dec 2006 15:22:45 -0600 From: Eric Anderson User-Agent: Thunderbird 1.5.0.7 (X11/20061015) MIME-Version: 1.0 To: jason kawaja References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/2285/Tue Dec 5 07:58:47 2006 on mh1.centtech.com X-Virus-Status: Clean Cc: freebsd-scsi@freebsd.org Subject: Re: determine wwn within freebsd X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2006 21:22:48 -0000 On 12/05/06 07:19, jason kawaja wrote: > unable to determine wwn within freebsd, is there a way (already > done)? thanks. > > my logs of isp0 : > > isp0: port 0x4000-0x40ff mem > 0xdefff000-0xdeffffff irq 72 at device 3.0 on pci3 > isp0: [GIANT-LOCKED] > isp0: bad hard address 125- resetting to zero Boot with boot_verbose set to 1 (boot -v). Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology An undefined problem has an infinite number of solutions. ------------------------------------------------------------------------ From owner-freebsd-scsi@FreeBSD.ORG Sat Dec 9 19:08:14 2006 Return-Path: X-Original-To: scsi@FreeBSD.org Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 20F9716A4B3; Sat, 9 Dec 2006 19:08:14 +0000 (UTC) (envelope-from nork@FreeBSD.org) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 295BD43C9D; Sat, 9 Dec 2006 19:07:07 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [219.127.74.122]) by sakura.ninth-nine.com (8.13.8/8.13.8/NinthNine) with SMTP id kB9J8B91040458; Sun, 10 Dec 2006 04:08:11 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Sun, 10 Dec 2006 04:08:11 +0900 From: Norikatsu Shigemura To: FreeBSD-gnats-submit@FreeBSD.org Message-Id: <20061210040811.83f1171e.nork@FreeBSD.org> X-Mailer: Sylpheed version 2.3.0beta5 (GTK+ 2.10.6; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (sakura.ninth-nine.com [219.127.74.121]); Sun, 10 Dec 2006 04:08:12 +0900 (JST) Cc: scsi@FreeBSD.org, ken@FreeBSD.org, Norikatsu Shigemura , Matt Jacob Subject: kldload mpt(4) doesn't work. X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Dec 2006 19:08:14 -0000 >Submitter-Id: current-users >Originator: Norikatsu Shigemura >Organization: Ensure Technology LTD. >Confidential: no >Synopsis: kldload mpt(4) doesn't work. >Severity: critical >Priority: high >Category: kern >Class: sw-bug >Release: FreeBSD 6.2-PRERELEASE i386 >Environment: System: FreeBSD melfina.ninth-nine.com 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #39: Thu Nov 16 05:36:03 JST 2006 nork@melfina.ninth-nine.com:/usr/obj/usr/src/sys/MELFINA i386 >Description: I would try to kldload mpt(4). But no works. Because mpt.ko couldn't resolve cam related symbols. >How-To-Repeat: # kldload mpt kldload: can't load mpt: No such file or directory # dmesg link_elf: symbol xpt_periph undefined >Fix: SEE ALSO: http://lists.freebsd.org/pipermail/freebsd-current/2004-September/037056.html http://lists.freebsd.org/pipermail/freebsd-current/2004-September/037065.html http://lists.freebsd.org/pipermail/freebsd-current/2004-September/037067.html http://lists.freebsd.org/pipermail/freebsd-current/2004-September/037071.html http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061908.html http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061908.html http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061923.html http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061925.html http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061926.html http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061930.html http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061946.html http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061965.html http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061924.html http://www.freebsd.org/cgi/query-pr.cgi?pr=105989 mpt62.diff: for RELENG_6_2 mpt6x.diff: for RELENG_6 mpt70.diff: for HEAD --- mpt62.diff begins here --- Index: mpt_pci.c =================================================================== RCS file: /home/ncvs/src/sys/dev/mpt/mpt_pci.c,v retrieving revision 1.20.2.6 diff -u -r1.20.2.6 mpt_pci.c --- mpt_pci.c 16 Sep 2006 05:42:06 -0000 1.20.2.6 +++ mpt_pci.c 9 Dec 2006 18:54:29 -0000 @@ -211,6 +211,8 @@ static devclass_t mpt_devclass; DRIVER_MODULE(mpt, pci, mpt_driver, mpt_devclass, 0, 0); MODULE_VERSION(mpt, 1); +MODULE_DEPEND(mpt, cam, 1, 1, 1); +MODULE_DEPEND(mpt, pci, 1, 1, 1); static int mpt_pci_probe(device_t dev) --- mpt62.diff ends here --- --- mpt6x.diff begins here --- Index: mpt_pci.c =================================================================== RCS file: /home/ncvs/src/sys/dev/mpt/mpt_pci.c,v retrieving revision 1.20.2.6 diff -u -r1.20.2.6 mpt_pci.c --- mpt_pci.c 16 Sep 2006 05:42:06 -0000 1.20.2.6 +++ mpt_pci.c 9 Dec 2006 18:53:10 -0000 @@ -211,6 +211,8 @@ static devclass_t mpt_devclass; DRIVER_MODULE(mpt, pci, mpt_driver, mpt_devclass, 0, 0); MODULE_VERSION(mpt, 1); +MODULE_DEPEND(mpt, cam, 1, 1, 1); +MODULE_DEPEND(mpt, pci, 1, 1, 1); static int mpt_pci_probe(device_t dev) --- mpt6x.diff ends here --- --- mpt7x.diff begins here --- Index: mpt_pci.c =================================================================== RCS file: /home/ncvs/src/sys/dev/mpt/mpt_pci.c,v retrieving revision 1.44 diff -u -r1.44 mpt_pci.c --- mpt_pci.c 19 Nov 2006 23:24:52 -0000 1.44 +++ mpt_pci.c 9 Dec 2006 18:52:27 -0000 @@ -211,6 +211,8 @@ static devclass_t mpt_devclass; DRIVER_MODULE(mpt, pci, mpt_driver, mpt_devclass, 0, 0); MODULE_VERSION(mpt, 1); +MODULE_DEPEND(mpt, cam, 1, 1, 1); +MODULE_DEPEND(mpt, pci, 1, 1, 1); static int mpt_pci_probe(device_t dev) --- mpt7x.diff ends here --- From owner-freebsd-scsi@FreeBSD.ORG Sat Dec 9 19:09:10 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 585D116A403 for ; Sat, 9 Dec 2006 19:09:10 +0000 (UTC) (envelope-from howard@leadmon.net) Received: from ibm.leadmon.net (ibm.leadmon.net [207.114.24.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FD0943C9F for ; Sat, 9 Dec 2006 19:08:03 +0000 (GMT) (envelope-from howard@leadmon.net) Received: from HDLDesktop (hdl-desktop.leadmon.net [207.114.24.8]) (authenticated bits=0) by ibm.leadmon.net (8.13.8/8.13.8/LNSG+ORDB+SCOP+NJABL+SBL+DSBL+SORBS+CBL+RHSBL) with ESMTP id kB9J95LY038891 for ; Sat, 9 Dec 2006 14:09:08 -0500 (EST) (envelope-from howard@leadmon.net) X-DKIM: Sendmail DKIM Filter v0.5.2 ibm.leadmon.net kB9J95LY038891 DKIM-Signature: a=rsa-sha1; c=relaxed/simple; d=leadmon.net; s=default; t=1165691348; bh=6GWyMj79XsryXOi1l63cBNk7AXw=; h=X-DomainKeys: DomainKey-Signature:Authentication-Results:X-SenderID:From:To: Subject:Date:Organization:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:X-Mailer:Thread-Index:X-MimeOLE; b=B8ZgJF Drd8EvTRp2dQAt6PIHVzlQHTP7VJQ0C5BTS3xQkrkt5Eatsn75jc444VY3iK8mKr5SL Exht/V12WzU6/VClqsEXm4OPvwKE1FSzJnNsXHWbHMuA2azioWMcJgTorhjzgEWujE6 dYL2Ih5V5wjIyJKT/X7L3huxjky+ZXo= X-DomainKeys: Sendmail DomainKeys Filter v0.4.1 ibm.leadmon.net kB9J95LY038891 DomainKey-Signature: a=rsa-sha1; s=default; d=leadmon.net; c=nofws; q=dns; h=authentication-results:x-senderid:from:to:subject:date: organization:message-id:mime-version:content-type: content-transfer-encoding:x-mailer:thread-index:x-mimeole; b=TV454iq+Hp1BPEJdQq7os+I1+Yu8Vm1+ucXFm8U6Kyath1pr5fA87ZjWwMglxcvCR dyqAaMMA3K1blQMKmZ2owjCbJLUnqc5Uo9SFHnOaL9hxsKQMzUqWQfsLjezvhGPUQoN QNXU+i3kR6zCPDftRKrKJ9xkZLyiJKN+d4IhZ6I= Authentication-Results: ibm.leadmon.net from=howard@leadmon.net; sender-id=pass; spf=pass X-SenderID: Sendmail Sender-ID Filter v0.2.14 ibm.leadmon.net kB9J95LY038891 From: "Howard Leadmon" To: Date: Sat, 9 Dec 2006 14:09:00 -0500 Organization: Leadmon Networking Message-ID: <011801c71bc5$7eed0bc0$081872cf@Leadmon.local> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AccbxXulglzDfJYyStOOnk+MmdppvA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-Virus-Scanned: ClamAV version 0.88.6, clamav-milter version 0.88.6 on ibm.leadmon.net X-Virus-Status: Clean Subject: Adaptec/IBM ServerRaid-6i and tape backups.. X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Dec 2006 19:09:10 -0000 Does anyone here know if there is any way to use the ServerRaid 6i with a tape backup device? I have an LTO2 SCSI drive, and when plugged in it shows in the controllers BIOS that it's a Tape Drive on the second channel, ID 6. Yet in FBSD a big nothing. If there is any trick to making this SCSI device work, hints would be most appreciated... --- Howard Leadmon http://www.leadmon.net From owner-freebsd-scsi@FreeBSD.ORG Sat Dec 9 22:25:39 2006 Return-Path: X-Original-To: scsi@FreeBSD.org Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F036B16A4A7; Sat, 9 Dec 2006 22:25:38 +0000 (UTC) (envelope-from nork@FreeBSD.org) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A8D443D5E; Sat, 9 Dec 2006 22:24:09 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [219.127.74.122]) by sakura.ninth-nine.com (8.13.8/8.13.8/NinthNine) with SMTP id kB9MPDMu045394; Sun, 10 Dec 2006 07:25:13 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Sun, 10 Dec 2006 07:25:13 +0900 From: Norikatsu Shigemura To: FreeBSD-gnats-submit@FreeBSD.org Message-Id: <20061210072513.441a55f9.nork@FreeBSD.org> X-Mailer: Sylpheed version 2.3.0beta5 (GTK+ 2.10.6; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (sakura.ninth-nine.com [219.127.74.121]); Sun, 10 Dec 2006 07:25:14 +0900 (JST) Cc: re@FreeBSD.org, scsi@FreeBSD.org, ken@FreeBSD.org, Norikatsu Shigemura , gibbs@FreeBSD.org, mjacob@FreeBSD.org, aradford@amcc.com Subject: kldload CAMs doesn't work. X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Dec 2006 22:25:39 -0000 >Submitter-Id: current-users >Originator: Norikatsu Shigemura >Organization: Ensure Technology LTD. >Confidential: no >Synopsis: kldload CAMs doesn't work. >Severity: critical >Priority: high >Category: kern >Class: sw-bug >Release: FreeBSD 6.2-PRERELEASE i386 >Environment: System: FreeBSD melfina.ninth-nine.com 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #39: Thu Nov 16 05:36:03 JST 2006 nork@melfina.ninth-nine.com:/usr/obj/usr/src/sys/MELFINA i386 >Description: I would try to kldload CAMs(4). But no works. Because CAMs.ko couldn't resolve cam related symbols. CAMs are following kernel modules: (I confirmed) ahb(4), amr(4), arcmsr(4), asr(4), dpt(4), hptmv(4), iir(4), mly(4), twa(4) I don't confirm following kernel modules, but I think that they have same problems. ncr(4), adv(4), adw(4), bt(4) I can't fix this problem: isp(4), ispfw(4) They should be depended on cam(4) and firmware(4). But I didn't know how to fix:-(. >How-To-Repeat: # kldload CAMs kldload: can't load CAMs: No such file or directory # dmesg link_elf: symbol xpt_periph undefined link_elf: symbol xpt_free_path undefined link_elf: symbol xpt_done undefined link_elf: symbol firmware_register undefined KLD isp.ko: depends on ispfw - not available link_elf: symbol cam_simq_alloc undefined link_elf: symbol xpt_path_target_id undefined link_elf: symbol xpt_bus_deregister undefined Fix: SEE ALSO: http://lists.freebsd.org/pipermail/freebsd-current/2004-September/037056.html http://lists.freebsd.org/pipermail/freebsd-current/2004-September/037065.html http://lists.freebsd.org/pipermail/freebsd-current/2004-September/037067.html http://lists.freebsd.org/pipermail/freebsd-current/2004-September/037071.html http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061908.html http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061908.html http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061923.html http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061925.html http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061926.html http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061930.html http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061946.html http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061965.html http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061924.html http://www.freebsd.org/cgi/query-pr.cgi?pr=105989 http://www.freebsd.org/cgi/query-pr.cgi?pr=106536 cam70.diff: for HEAD cam6x.diff: for RELENG_6 cam62.diff: for RELENG_6_2 --- cam7x.diff begins here --- Index: sys/dev/ahb/ahb.c =================================================================== RCS file: /home/ncvs/src/sys/dev/ahb/ahb.c,v retrieving revision 1.37 diff -u -r1.37 ahb.c --- sys/dev/ahb/ahb.c 2 Nov 2006 00:54:34 -0000 1.37 +++ sys/dev/ahb/ahb.c 9 Dec 2006 20:52:15 -0000 @@ -1366,3 +1366,5 @@ static devclass_t ahb_devclass; DRIVER_MODULE(ahb, eisa, ahb_eisa_driver, ahb_devclass, 0, 0); +MODULE_DEPEND(mpt, cam, 1, 1, 1); +MODULE_DEPEND(mpt, eisa, 1, 1, 1); Index: sys/dev/amr/amr_pci.c =================================================================== RCS file: /home/ncvs/src/sys/dev/amr/amr_pci.c,v retrieving revision 1.36 diff -u -r1.36 amr_pci.c --- sys/dev/amr/amr_pci.c 8 Apr 2006 05:08:17 -0000 1.36 +++ sys/dev/amr/amr_pci.c 9 Dec 2006 20:53:12 -0000 @@ -119,6 +119,8 @@ static devclass_t amr_devclass; DRIVER_MODULE(amr, pci, amr_pci_driver, amr_devclass, 0, 0); +MODULE_DEPEND(amr, cam, 1, 1, 1); +MODULE_DEPEND(amr, pci, 1, 1, 1); static struct amr_ident { Index: sys/dev/arcmsr/arcmsr.c =================================================================== RCS file: /home/ncvs/src/sys/dev/arcmsr/arcmsr.c,v retrieving revision 1.13 diff -u -r1.13 arcmsr.c --- sys/dev/arcmsr/arcmsr.c 2 Nov 2006 00:54:35 -0000 1.13 +++ sys/dev/arcmsr/arcmsr.c 9 Dec 2006 20:53:44 -0000 @@ -198,6 +198,8 @@ static devclass_t arcmsr_devclass; DRIVER_MODULE(arcmsr,pci,arcmsr_driver,arcmsr_devclass,0,0); +MODULE_DEPEND(arcmsr, cam, 1, 1, 1); +MODULE_DEPEND(arcmsr, pci, 1, 1, 1); #if __FreeBSD_version >= 502010 static struct cdevsw arcmsr_cdevsw={ Index: sys/dev/asr/asr.c =================================================================== RCS file: /home/ncvs/src/sys/dev/asr/asr.c,v retrieving revision 1.81 diff -u -r1.81 asr.c --- sys/dev/asr/asr.c 6 Nov 2006 13:41:51 -0000 1.81 +++ sys/dev/asr/asr.c 9 Dec 2006 20:54:24 -0000 @@ -427,6 +427,8 @@ static devclass_t asr_devclass; DRIVER_MODULE(asr, pci, asr_driver, asr_devclass, 0, 0); +MODULE_DEPEND(asr, cam, 1, 1, 1); +MODULE_DEPEND(asr, pci, 1, 1, 1); /* * devsw for asr hba driver Index: sys/dev/dpt/dpt_eisa.c =================================================================== RCS file: /home/ncvs/src/sys/dev/dpt/dpt_eisa.c,v retrieving revision 1.20 diff -u -r1.20 dpt_eisa.c --- sys/dev/dpt/dpt_eisa.c 29 May 2005 04:42:19 -0000 1.20 +++ sys/dev/dpt/dpt_eisa.c 9 Dec 2006 20:54:55 -0000 @@ -212,3 +212,5 @@ }; DRIVER_MODULE(dpt, eisa, dpt_eisa_driver, dpt_devclass, 0, 0); +MODULE_DEPEND(dpt, cam, 1, 1, 1); +MODULE_DEPEND(dpt, eisa, 1, 1, 1); Index: sys/dev/dpt/dpt_isa.c =================================================================== RCS file: /home/ncvs/src/sys/dev/dpt/dpt_isa.c,v retrieving revision 1.9 diff -u -r1.9 dpt_isa.c --- sys/dev/dpt/dpt_isa.c 29 May 2005 04:42:19 -0000 1.9 +++ sys/dev/dpt/dpt_isa.c 9 Dec 2006 20:55:10 -0000 @@ -268,3 +268,5 @@ }; DRIVER_MODULE(dpt, isa, dpt_isa_driver, dpt_devclass, 0, 0); +MODULE_DEPEND(dpt, cam, 1, 1, 1); +mODULE_DEPEND(dpt, isa, 1, 1, 1); Index: sys/dev/dpt/dpt_pci.c =================================================================== RCS file: /home/ncvs/src/sys/dev/dpt/dpt_pci.c,v retrieving revision 1.34 diff -u -r1.34 dpt_pci.c --- sys/dev/dpt/dpt_pci.c 29 May 2005 04:42:19 -0000 1.34 +++ sys/dev/dpt/dpt_pci.c 9 Dec 2006 20:55:36 -0000 @@ -195,3 +195,5 @@ }; DRIVER_MODULE(dpt, pci, dpt_pci_driver, dpt_devclass, 0, 0); +MODULE_DEPEND(dpt, cam, 1, 1, 1); +MODULE_DEPEND(dpt, pci, 1, 1, 1); Index: sys/dev/hptmv/entry.c =================================================================== RCS file: /home/ncvs/src/sys/dev/hptmv/entry.c,v retrieving revision 1.12 diff -u -r1.12 entry.c --- sys/dev/hptmv/entry.c 16 May 2006 14:36:25 -0000 1.12 +++ sys/dev/hptmv/entry.c 9 Dec 2006 21:30:51 -0000 @@ -106,7 +106,10 @@ static devclass_t hpt_devclass; #define __DRIVER_MODULE(p1, p2, p3, p4, p5, p6) DRIVER_MODULE(p1, p2, p3, p4, p5, p6) +#define __MODULE_DEPEND(p1, p2, p3, p4, p5) MODULE_DEPEND(p1, p2, p3, p4, p5) __DRIVER_MODULE(PROC_DIR_NAME, pci, hpt_pci_driver, hpt_devclass, 0, 0); +__MODULE_DEPEND(PROC_DIR_NAME, cam, 1, 1, 1); +__MODULE_DEPEND(PROC_DIR_NAME, pci, 1, 1, 1); #define ccb_ccb_ptr spriv_ptr0 #define ccb_adapter ccb_h.spriv_ptr1 Index: sys/dev/iir/iir_pci.c =================================================================== RCS file: /home/ncvs/src/sys/dev/iir/iir_pci.c,v retrieving revision 1.17 diff -u -r1.17 iir_pci.c --- sys/dev/iir/iir_pci.c 16 May 2006 14:36:26 -0000 1.17 +++ sys/dev/iir/iir_pci.c 9 Dec 2006 20:59:12 -0000 @@ -158,6 +158,8 @@ static devclass_t iir_devclass; DRIVER_MODULE(iir, pci, iir_pci_driver, iir_devclass, 0, 0); +MODULE_DEPEND(iir, cam, 1, 1, 1); +MODULE_DEPEND(iir, pci, 1, 1, 1); static int iir_pci_probe(device_t dev) Index: sys/dev/mly/mly.c =================================================================== RCS file: /home/ncvs/src/sys/dev/mly/mly.c,v retrieving revision 1.41 diff -u -r1.41 mly.c --- sys/dev/mly/mly.c 2 Nov 2006 00:54:37 -0000 1.41 +++ sys/dev/mly/mly.c 9 Dec 2006 21:06:25 -0000 @@ -147,6 +147,8 @@ static devclass_t mly_devclass; DRIVER_MODULE(mly, pci, mly_pci_driver, mly_devclass, 0, 0); +MODULE_DEPEND(mly, cam, 1, 1, 1); +MODULE_DEPEND(mly, pci, 1, 1, 1); static struct cdevsw mly_cdevsw = { .d_version = D_VERSION, Index: sys/dev/twa/tw_osl_freebsd.c =================================================================== RCS file: /home/ncvs/src/sys/dev/twa/tw_osl_freebsd.c,v retrieving revision 1.4 diff -u -r1.4 tw_osl_freebsd.c --- sys/dev/twa/tw_osl_freebsd.c 8 Nov 2005 22:51:43 -0000 1.4 +++ sys/dev/twa/tw_osl_freebsd.c 9 Dec 2006 21:06:58 -0000 @@ -207,6 +207,8 @@ }; DRIVER_MODULE(twa, pci, twa_pci_driver, twa_devclass, 0, 0); +MODULE_DEPEND(twa, cam, 1, 1, 1); +MODULE_DEPEND(twa, pci, 1, 1, 1); --- cam7x.diff ends here --- --- cam6x.diff begins here --- Index: sys/dev/ahb/ahb.c =================================================================== RCS file: /home/ncvs/src/sys/dev/ahb/ahb.c,v retrieving revision 1.34.2.1 diff -u -r1.34.2.1 ahb.c --- sys/dev/ahb/ahb.c 29 Jun 2006 18:12:18 -0000 1.34.2.1 +++ sys/dev/ahb/ahb.c 9 Dec 2006 21:15:24 -0000 @@ -1349,3 +1349,5 @@ static devclass_t ahb_devclass; DRIVER_MODULE(ahb, eisa, ahb_eisa_driver, ahb_devclass, 0, 0); +MODULE_DEPEND(ahb, cam, 1, 1, 1); +MODULE_DEPEND(ahb, eisa, 1, 1, 1); Index: sys/dev/amr/amr_pci.c =================================================================== RCS file: /home/ncvs/src/sys/dev/amr/amr_pci.c,v retrieving revision 1.29.2.3 diff -u -r1.29.2.3 amr_pci.c --- sys/dev/amr/amr_pci.c 15 Jun 2006 16:44:27 -0000 1.29.2.3 +++ sys/dev/amr/amr_pci.c 9 Dec 2006 21:16:00 -0000 @@ -119,6 +119,8 @@ static devclass_t amr_devclass; DRIVER_MODULE(amr, pci, amr_pci_driver, amr_devclass, 0, 0); +MODULE_DEPEND(amr, cam, 1, 1, 1); +MODULE_DEPEND(amr, pci, 1, 1, 1); static struct amr_ident { Index: sys/dev/arcmsr/arcmsr.c =================================================================== RCS file: /home/ncvs/src/sys/dev/arcmsr/arcmsr.c,v retrieving revision 1.8 diff -u -r1.8 arcmsr.c --- sys/dev/arcmsr/arcmsr.c 5 Jun 2005 23:05:26 -0000 1.8 +++ sys/dev/arcmsr/arcmsr.c 9 Dec 2006 21:16:36 -0000 @@ -199,6 +199,8 @@ static devclass_t arcmsr_devclass; DRIVER_MODULE(arcmsr,pci,arcmsr_driver,arcmsr_devclass,0,0); +MODULE_DEPEND(arcmsr, cam, 1, 1, 1); +MODULE_DEPEND(arcmsr, pci, 1, 1, 1); #if __FreeBSD_version >= 502010 static struct cdevsw arcmsr_cdevsw={ Index: sys/dev/asr/asr.c =================================================================== RCS file: /home/ncvs/src/sys/dev/asr/asr.c,v retrieving revision 1.68 diff -u -r1.68 asr.c --- sys/dev/asr/asr.c 29 Apr 2005 04:47:11 -0000 1.68 +++ sys/dev/asr/asr.c 9 Dec 2006 21:17:28 -0000 @@ -415,6 +415,8 @@ static devclass_t asr_devclass; DRIVER_MODULE(asr, pci, asr_driver, asr_devclass, 0, 0); +MODULE_DEPEND(asr, cam, 1, 1, 1); +MODULE_DEPEND(asr, pci, 1, 1, 1); /* * devsw for asr hba driver Index: sys/dev/dpt/dpt_eisa.c =================================================================== RCS file: /home/ncvs/src/sys/dev/dpt/dpt_eisa.c,v retrieving revision 1.20 diff -u -r1.20 dpt_eisa.c --- sys/dev/dpt/dpt_eisa.c 29 May 2005 04:42:19 -0000 1.20 +++ sys/dev/dpt/dpt_eisa.c 9 Dec 2006 21:18:05 -0000 @@ -212,3 +212,5 @@ }; DRIVER_MODULE(dpt, eisa, dpt_eisa_driver, dpt_devclass, 0, 0); +MODULE_DEPEND(dpt, cam, 1, 1, 1); +MODULE_DEPEND(dpt, eisa, 1, 1, 1); Index: sys/dev/dpt/dpt_isa.c =================================================================== RCS file: /home/ncvs/src/sys/dev/dpt/dpt_isa.c,v retrieving revision 1.9 diff -u -r1.9 dpt_isa.c --- sys/dev/dpt/dpt_isa.c 29 May 2005 04:42:19 -0000 1.9 +++ sys/dev/dpt/dpt_isa.c 9 Dec 2006 21:18:16 -0000 @@ -268,3 +268,5 @@ }; DRIVER_MODULE(dpt, isa, dpt_isa_driver, dpt_devclass, 0, 0); +MODULE_DEPEND(dpt, cam, 1, 1, 1); +MODULE_DEPEND(dpt, isa, 1, 1, 1); Index: sys/dev/dpt/dpt_pci.c =================================================================== RCS file: /home/ncvs/src/sys/dev/dpt/dpt_pci.c,v retrieving revision 1.34 diff -u -r1.34 dpt_pci.c --- sys/dev/dpt/dpt_pci.c 29 May 2005 04:42:19 -0000 1.34 +++ sys/dev/dpt/dpt_pci.c 9 Dec 2006 21:18:23 -0000 @@ -195,3 +195,5 @@ }; DRIVER_MODULE(dpt, pci, dpt_pci_driver, dpt_devclass, 0, 0); +MODULE_DEPEND(dpt, cam, 1, 1, 1); +MODULE_DEPEND(dpt, pci, 1, 1, 1); Index: sys/dev/hptmv/entry.c =================================================================== RCS file: /home/ncvs/src/sys/dev/hptmv/entry.c,v retrieving revision 1.8.2.1 diff -u -r1.8.2.1 entry.c --- sys/dev/hptmv/entry.c 6 Oct 2005 18:47:57 -0000 1.8.2.1 +++ sys/dev/hptmv/entry.c 9 Dec 2006 21:31:00 -0000 @@ -107,7 +107,10 @@ static devclass_t hpt_devclass; #define __DRIVER_MODULE(p1, p2, p3, p4, p5, p6) DRIVER_MODULE(p1, p2, p3, p4, p5, p6) +#define __MODULE_DEPEND(p1, p2, p3, p4, p5) MODULE_DEPEND(p1, p2, p3, p4, p5) __DRIVER_MODULE(PROC_DIR_NAME, pci, hpt_pci_driver, hpt_devclass, 0, 0); +__MODULE_DEPEND(PROC_DIR_NAME, cam, 1, 1, 1); +__MODULE_DEPEND(PROC_DIR_NAME, pci, 1, 1, 1); #define ccb_ccb_ptr spriv_ptr0 #define ccb_adapter ccb_h.spriv_ptr1 Index: sys/dev/iir/iir_pci.c =================================================================== RCS file: /home/ncvs/src/sys/dev/iir/iir_pci.c,v retrieving revision 1.15.2.1 diff -u -r1.15.2.1 iir_pci.c --- sys/dev/iir/iir_pci.c 12 Mar 2006 16:38:28 -0000 1.15.2.1 +++ sys/dev/iir/iir_pci.c 9 Dec 2006 21:19:13 -0000 @@ -159,6 +159,8 @@ static devclass_t iir_devclass; DRIVER_MODULE(iir, pci, iir_pci_driver, iir_devclass, 0, 0); +MODULE_DEPEND(iir, cam, 1, 1, 1); +MODULE_DEPEND(iir, pci, 1, 1, 1); static int iir_pci_probe(device_t dev) Index: sys/dev/mly/mly.c =================================================================== RCS file: /home/ncvs/src/sys/dev/mly/mly.c,v retrieving revision 1.38 diff -u -r1.38 mly.c --- sys/dev/mly/mly.c 29 May 2005 04:42:23 -0000 1.38 +++ sys/dev/mly/mly.c 9 Dec 2006 21:19:42 -0000 @@ -147,6 +147,8 @@ static devclass_t mly_devclass; DRIVER_MODULE(mly, pci, mly_pci_driver, mly_devclass, 0, 0); +MODULE_DEPEND(mly, cam, 1, 1, 1); +MODULE_DEPEND(mly, pci, 1, 1, 1); static struct cdevsw mly_cdevsw = { .d_version = D_VERSION, Index: sys/dev/twa/tw_osl_freebsd.c =================================================================== RCS file: /home/ncvs/src/sys/dev/twa/tw_osl_freebsd.c,v retrieving revision 1.1.4.1 diff -u -r1.1.4.1 tw_osl_freebsd.c --- sys/dev/twa/tw_osl_freebsd.c 7 Dec 2005 18:18:05 -0000 1.1.4.1 +++ sys/dev/twa/tw_osl_freebsd.c 9 Dec 2006 21:20:03 -0000 @@ -207,6 +207,8 @@ }; DRIVER_MODULE(twa, pci, twa_pci_driver, twa_devclass, 0, 0); +MODULE_DEPEND(twa, cam, 1, 1, 1); +MODULE_DEPEND(twa, pci, 1, 1, 1); --- cam6x.diff ends here --- --- cam62.diff begins here --- Index: sys/dev/ahb/ahb.c =================================================================== RCS file: /home/ncvs/src/sys/dev/ahb/ahb.c,v retrieving revision 1.34.2.1 diff -u -r1.34.2.1 ahb.c --- sys/dev/ahb/ahb.c 29 Jun 2006 18:12:18 -0000 1.34.2.1 +++ sys/dev/ahb/ahb.c 9 Dec 2006 21:25:03 -0000 @@ -1349,3 +1349,5 @@ static devclass_t ahb_devclass; DRIVER_MODULE(ahb, eisa, ahb_eisa_driver, ahb_devclass, 0, 0); +MODULE_DEPEND(ahb, cam, 1, 1, 1); +MODULE_DEPEND(ahb, eisa, 1, 1, 1); Index: sys/dev/amr/amr_pci.c =================================================================== RCS file: /home/ncvs/src/sys/dev/amr/amr_pci.c,v retrieving revision 1.29.2.3 diff -u -r1.29.2.3 amr_pci.c --- sys/dev/amr/amr_pci.c 15 Jun 2006 16:44:27 -0000 1.29.2.3 +++ sys/dev/amr/amr_pci.c 9 Dec 2006 21:25:32 -0000 @@ -119,6 +119,8 @@ static devclass_t amr_devclass; DRIVER_MODULE(amr, pci, amr_pci_driver, amr_devclass, 0, 0); +MODULE_DEPEND(amr, cam, 1, 1, 1); +MODULE_DEPEND(amr, pci, 1, 1, 1); static struct amr_ident { Index: sys/dev/arcmsr/arcmsr.c =================================================================== RCS file: /home/ncvs/src/sys/dev/arcmsr/arcmsr.c,v retrieving revision 1.8 diff -u -r1.8 arcmsr.c --- sys/dev/arcmsr/arcmsr.c 5 Jun 2005 23:05:26 -0000 1.8 +++ sys/dev/arcmsr/arcmsr.c 9 Dec 2006 21:25:53 -0000 @@ -199,6 +199,8 @@ static devclass_t arcmsr_devclass; DRIVER_MODULE(arcmsr,pci,arcmsr_driver,arcmsr_devclass,0,0); +MODULE_DEPEND(arcmsr, cam, 1, 1, 1); +MODULE_DEPEND(arcmsr, pci, 1, 1, 1); #if __FreeBSD_version >= 502010 static struct cdevsw arcmsr_cdevsw={ Index: sys/dev/asr/asr.c =================================================================== RCS file: /home/ncvs/src/sys/dev/asr/asr.c,v retrieving revision 1.68 diff -u -r1.68 asr.c --- sys/dev/asr/asr.c 29 Apr 2005 04:47:11 -0000 1.68 +++ sys/dev/asr/asr.c 9 Dec 2006 21:26:13 -0000 @@ -415,6 +415,8 @@ static devclass_t asr_devclass; DRIVER_MODULE(asr, pci, asr_driver, asr_devclass, 0, 0); +MODULE_DEPEND(asr, cam, 1, 1, 1); +MODULE_DEPEND(asr, pci, 1, 1, 1); /* * devsw for asr hba driver Index: sys/dev/dpt/dpt_eisa.c =================================================================== RCS file: /home/ncvs/src/sys/dev/dpt/dpt_eisa.c,v retrieving revision 1.20 diff -u -r1.20 dpt_eisa.c --- sys/dev/dpt/dpt_eisa.c 29 May 2005 04:42:19 -0000 1.20 +++ sys/dev/dpt/dpt_eisa.c 9 Dec 2006 21:26:43 -0000 @@ -212,3 +212,5 @@ }; DRIVER_MODULE(dpt, eisa, dpt_eisa_driver, dpt_devclass, 0, 0); +MODULE_DEPEND(dpt, cam, 1, 1, 1); +MODULE_DEPEND(dpt, eisa, 1, 1, 1); Index: sys/dev/dpt/dpt_isa.c =================================================================== RCS file: /home/ncvs/src/sys/dev/dpt/dpt_isa.c,v retrieving revision 1.9 diff -u -r1.9 dpt_isa.c --- sys/dev/dpt/dpt_isa.c 29 May 2005 04:42:19 -0000 1.9 +++ sys/dev/dpt/dpt_isa.c 9 Dec 2006 21:26:49 -0000 @@ -268,3 +268,5 @@ }; DRIVER_MODULE(dpt, isa, dpt_isa_driver, dpt_devclass, 0, 0); +MODULE_DEPEND(dpt, cam, 1, 1, 1); +MODULE_DEPEND(dpt, isa, 1, 1, 1); Index: sys/dev/dpt/dpt_pci.c =================================================================== RCS file: /home/ncvs/src/sys/dev/dpt/dpt_pci.c,v retrieving revision 1.34 diff -u -r1.34 dpt_pci.c --- sys/dev/dpt/dpt_pci.c 29 May 2005 04:42:19 -0000 1.34 +++ sys/dev/dpt/dpt_pci.c 9 Dec 2006 21:26:54 -0000 @@ -195,3 +195,5 @@ }; DRIVER_MODULE(dpt, pci, dpt_pci_driver, dpt_devclass, 0, 0); +MODULE_DEPEND(dpt, cam, 1, 1, 1); +MODULE_DEPEND(dpt, pci, 1, 1, 1); Index: sys/dev/hptmv/entry.c =================================================================== RCS file: /home/ncvs/src/sys/dev/hptmv/entry.c,v retrieving revision 1.8.2.1 diff -u -r1.8.2.1 entry.c --- sys/dev/hptmv/entry.c 6 Oct 2005 18:47:57 -0000 1.8.2.1 +++ sys/dev/hptmv/entry.c 9 Dec 2006 21:30:02 -0000 @@ -107,7 +107,10 @@ static devclass_t hpt_devclass; #define __DRIVER_MODULE(p1, p2, p3, p4, p5, p6) DRIVER_MODULE(p1, p2, p3, p4, p5, p6) +#define __MODULE_DEPEND(p1, p2, p3, p4, p5) MODULE_DEPEND(p1, p2, p3, p4, p5) __DRIVER_MODULE(PROC_DIR_NAME, pci, hpt_pci_driver, hpt_devclass, 0, 0); +__MODULE_DEPEND(PROC_DIR_NAME, cam, 1, 1, 1); +__MODULE_DEPEND(PROC_DIR_NAME, pci, 1, 1, 1); #define ccb_ccb_ptr spriv_ptr0 #define ccb_adapter ccb_h.spriv_ptr1 Index: sys/dev/iir/iir_pci.c =================================================================== RCS file: /home/ncvs/src/sys/dev/iir/iir_pci.c,v retrieving revision 1.15.2.1 diff -u -r1.15.2.1 iir_pci.c --- sys/dev/iir/iir_pci.c 12 Mar 2006 16:38:28 -0000 1.15.2.1 +++ sys/dev/iir/iir_pci.c 9 Dec 2006 21:31:35 -0000 @@ -159,6 +159,8 @@ static devclass_t iir_devclass; DRIVER_MODULE(iir, pci, iir_pci_driver, iir_devclass, 0, 0); +MODULE_DEPEND(iir, cam, 1, 1, 1); +MODULE_DEPEND(iir, pci, 1, 1, 1); static int iir_pci_probe(device_t dev) Index: sys/dev/mly/mly.c =================================================================== RCS file: /home/ncvs/src/sys/dev/mly/mly.c,v retrieving revision 1.38 diff -u -r1.38 mly.c --- sys/dev/mly/mly.c 29 May 2005 04:42:23 -0000 1.38 +++ sys/dev/mly/mly.c 9 Dec 2006 21:32:08 -0000 @@ -147,6 +147,8 @@ static devclass_t mly_devclass; DRIVER_MODULE(mly, pci, mly_pci_driver, mly_devclass, 0, 0); +MODULE_DEPEND(mly, cam, 1, 1, 1); +MODULE_DEPEND(mly, pci, 1, 1, 1); static struct cdevsw mly_cdevsw = { .d_version = D_VERSION, Index: sys/dev/twa/tw_osl_freebsd.c =================================================================== RCS file: /home/ncvs/src/sys/dev/twa/tw_osl_freebsd.c,v retrieving revision 1.1.4.1 diff -u -r1.1.4.1 tw_osl_freebsd.c --- sys/dev/twa/tw_osl_freebsd.c 7 Dec 2005 18:18:05 -0000 1.1.4.1 +++ sys/dev/twa/tw_osl_freebsd.c 9 Dec 2006 21:32:27 -0000 @@ -207,6 +207,8 @@ }; DRIVER_MODULE(twa, pci, twa_pci_driver, twa_devclass, 0, 0); +MODULE_DEPEND(twa, cam, 1, 1, 1); +MODULE_DEPEND(twa, pci, 1, 1, 1); --- cam62.diff ends here --- From owner-freebsd-scsi@FreeBSD.ORG Sat Dec 9 23:14:27 2006 Return-Path: X-Original-To: scsi@freebsd.org Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4BAA516A407; Sat, 9 Dec 2006 23:14:27 +0000 (UTC) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 260FB43CA0; Sat, 9 Dec 2006 23:13:20 +0000 (GMT) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (localhost [127.0.0.1]) by ns1.feral.com (8.13.8/8.13.8) with ESMTP id kB9NEGmY045741; Sat, 9 Dec 2006 15:14:26 -0800 (PST) (envelope-from mjacob@freebsd.org) Received: from localhost (mjacob@localhost) by ns1.feral.com (8.13.8/8.13.8/Submit) with ESMTP id kB9NEG5A045738; Sat, 9 Dec 2006 15:14:16 -0800 (PST) (envelope-from mjacob@freebsd.org) X-Authentication-Warning: ns1.feral.com: mjacob owned process doing -bs Date: Sat, 9 Dec 2006 15:14:16 -0800 (PST) From: mjacob@freebsd.org X-X-Sender: mjacob@ns1.feral.com To: Norikatsu Shigemura In-Reply-To: <20061210072513.441a55f9.nork@FreeBSD.org> Message-ID: <20061209150010.B45639@ns1.feral.com> References: <20061210072513.441a55f9.nork@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-bugs@freebsd.org, FreeBSD-gnats-submit@freebsd.org, scsi@freebsd.org Subject: Re: kern/106543: kldload CAMs doesn't work. X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mjacob@freebsd.org List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Dec 2006 23:14:27 -0000 Talk about overkill mail-to. Trimmed. Look- thanks for doing all of this, but it won't matter until periph drivers are loadable. That is, you can make CAM a loadable module, but none of the periph drivers (da, ses, and so on) are loadable modules, so you can load the sim, which would load cam, but there you'd be. Put it another way -was this fucntionality that used to work and now doesn't, or it's something you (and every one else) On Sun, 10 Dec 2006, Norikatsu Shigemura wrote: > >> Number: 106543 >> Category: kern >> Synopsis: kldload CAMs doesn't work. >> Confidential: no >> Severity: critical >> Priority: high >> Responsible: freebsd-bugs >> State: open >> Quarter: >> Keywords: >> Date-Required: >> Class: sw-bug >> Submitter-Id: current-users >> Arrival-Date: Sat Dec 09 22:30:08 GMT 2006 >> Closed-Date: >> Last-Modified: >> Originator: Norikatsu Shigemura >> Release: FreeBSD 6.2-PRERELEASE i386 >> Organization: > Ensure Technology LTD. >> Environment: > System: FreeBSD melfina.ninth-nine.com 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #39: Thu Nov 16 05:36:03 JST 2006 nork@melfina.ninth-nine.com:/usr/obj/usr/src/sys/MELFINA i386 > >> Description: > I would try to kldload CAMs(4). But no works. Because CAMs.ko > couldn't resolve cam related symbols. > > CAMs are following kernel modules: (I confirmed) > ahb(4), amr(4), arcmsr(4), asr(4), dpt(4), hptmv(4), > iir(4), mly(4), twa(4) > > I don't confirm following kernel modules, but I think that they > have same problems. > ncr(4), adv(4), adw(4), bt(4) > > I can't fix this problem: > isp(4), ispfw(4) > They should be depended on cam(4) and firmware(4). But I didn't > know how to fix:-(. > >> How-To-Repeat: > # kldload CAMs > kldload: can't load CAMs: No such file or directory > # dmesg > link_elf: symbol xpt_periph undefined > link_elf: symbol xpt_free_path undefined > link_elf: symbol xpt_done undefined > link_elf: symbol firmware_register undefined > KLD isp.ko: depends on ispfw - not available > link_elf: symbol cam_simq_alloc undefined > link_elf: symbol xpt_path_target_id undefined > link_elf: symbol xpt_bus_deregister undefined > > Fix: > > SEE ALSO: > http://lists.freebsd.org/pipermail/freebsd-current/2004-September/037056.html > http://lists.freebsd.org/pipermail/freebsd-current/2004-September/037065.html > http://lists.freebsd.org/pipermail/freebsd-current/2004-September/037067.html > http://lists.freebsd.org/pipermail/freebsd-current/2004-September/037071.html > > http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061908.html > http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061908.html > http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061923.html > http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061925.html > http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061926.html > http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061930.html > http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061946.html > http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061965.html > http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061924.html > > http://www.freebsd.org/cgi/query-pr.cgi?pr=105989 > http://www.freebsd.org/cgi/query-pr.cgi?pr=106536 > > > cam70.diff: for HEAD > cam6x.diff: for RELENG_6 > cam62.diff: for RELENG_6_2 > > --- cam7x.diff begins here --- > Index: sys/dev/ahb/ahb.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/ahb/ahb.c,v > retrieving revision 1.37 > diff -u -r1.37 ahb.c > --- sys/dev/ahb/ahb.c 2 Nov 2006 00:54:34 -0000 1.37 > +++ sys/dev/ahb/ahb.c 9 Dec 2006 20:52:15 -0000 > @@ -1366,3 +1366,5 @@ > static devclass_t ahb_devclass; > > DRIVER_MODULE(ahb, eisa, ahb_eisa_driver, ahb_devclass, 0, 0); > +MODULE_DEPEND(mpt, cam, 1, 1, 1); > +MODULE_DEPEND(mpt, eisa, 1, 1, 1); > Index: sys/dev/amr/amr_pci.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/amr/amr_pci.c,v > retrieving revision 1.36 > diff -u -r1.36 amr_pci.c > --- sys/dev/amr/amr_pci.c 8 Apr 2006 05:08:17 -0000 1.36 > +++ sys/dev/amr/amr_pci.c 9 Dec 2006 20:53:12 -0000 > @@ -119,6 +119,8 @@ > > static devclass_t amr_devclass; > DRIVER_MODULE(amr, pci, amr_pci_driver, amr_devclass, 0, 0); > +MODULE_DEPEND(amr, cam, 1, 1, 1); > +MODULE_DEPEND(amr, pci, 1, 1, 1); > > static struct amr_ident > { > Index: sys/dev/arcmsr/arcmsr.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/arcmsr/arcmsr.c,v > retrieving revision 1.13 > diff -u -r1.13 arcmsr.c > --- sys/dev/arcmsr/arcmsr.c 2 Nov 2006 00:54:35 -0000 1.13 > +++ sys/dev/arcmsr/arcmsr.c 9 Dec 2006 20:53:44 -0000 > @@ -198,6 +198,8 @@ > > static devclass_t arcmsr_devclass; > DRIVER_MODULE(arcmsr,pci,arcmsr_driver,arcmsr_devclass,0,0); > +MODULE_DEPEND(arcmsr, cam, 1, 1, 1); > +MODULE_DEPEND(arcmsr, pci, 1, 1, 1); > > #if __FreeBSD_version >= 502010 > static struct cdevsw arcmsr_cdevsw={ > Index: sys/dev/asr/asr.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/asr/asr.c,v > retrieving revision 1.81 > diff -u -r1.81 asr.c > --- sys/dev/asr/asr.c 6 Nov 2006 13:41:51 -0000 1.81 > +++ sys/dev/asr/asr.c 9 Dec 2006 20:54:24 -0000 > @@ -427,6 +427,8 @@ > > static devclass_t asr_devclass; > DRIVER_MODULE(asr, pci, asr_driver, asr_devclass, 0, 0); > +MODULE_DEPEND(asr, cam, 1, 1, 1); > +MODULE_DEPEND(asr, pci, 1, 1, 1); > > /* > * devsw for asr hba driver > Index: sys/dev/dpt/dpt_eisa.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/dpt/dpt_eisa.c,v > retrieving revision 1.20 > diff -u -r1.20 dpt_eisa.c > --- sys/dev/dpt/dpt_eisa.c 29 May 2005 04:42:19 -0000 1.20 > +++ sys/dev/dpt/dpt_eisa.c 9 Dec 2006 20:54:55 -0000 > @@ -212,3 +212,5 @@ > }; > > DRIVER_MODULE(dpt, eisa, dpt_eisa_driver, dpt_devclass, 0, 0); > +MODULE_DEPEND(dpt, cam, 1, 1, 1); > +MODULE_DEPEND(dpt, eisa, 1, 1, 1); > Index: sys/dev/dpt/dpt_isa.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/dpt/dpt_isa.c,v > retrieving revision 1.9 > diff -u -r1.9 dpt_isa.c > --- sys/dev/dpt/dpt_isa.c 29 May 2005 04:42:19 -0000 1.9 > +++ sys/dev/dpt/dpt_isa.c 9 Dec 2006 20:55:10 -0000 > @@ -268,3 +268,5 @@ > }; > > DRIVER_MODULE(dpt, isa, dpt_isa_driver, dpt_devclass, 0, 0); > +MODULE_DEPEND(dpt, cam, 1, 1, 1); > +mODULE_DEPEND(dpt, isa, 1, 1, 1); > Index: sys/dev/dpt/dpt_pci.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/dpt/dpt_pci.c,v > retrieving revision 1.34 > diff -u -r1.34 dpt_pci.c > --- sys/dev/dpt/dpt_pci.c 29 May 2005 04:42:19 -0000 1.34 > +++ sys/dev/dpt/dpt_pci.c 9 Dec 2006 20:55:36 -0000 > @@ -195,3 +195,5 @@ > }; > > DRIVER_MODULE(dpt, pci, dpt_pci_driver, dpt_devclass, 0, 0); > +MODULE_DEPEND(dpt, cam, 1, 1, 1); > +MODULE_DEPEND(dpt, pci, 1, 1, 1); > Index: sys/dev/hptmv/entry.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/hptmv/entry.c,v > retrieving revision 1.12 > diff -u -r1.12 entry.c > --- sys/dev/hptmv/entry.c 16 May 2006 14:36:25 -0000 1.12 > +++ sys/dev/hptmv/entry.c 9 Dec 2006 21:30:51 -0000 > @@ -106,7 +106,10 @@ > static devclass_t hpt_devclass; > > #define __DRIVER_MODULE(p1, p2, p3, p4, p5, p6) DRIVER_MODULE(p1, p2, p3, p4, p5, p6) > +#define __MODULE_DEPEND(p1, p2, p3, p4, p5) MODULE_DEPEND(p1, p2, p3, p4, p5) > __DRIVER_MODULE(PROC_DIR_NAME, pci, hpt_pci_driver, hpt_devclass, 0, 0); > +__MODULE_DEPEND(PROC_DIR_NAME, cam, 1, 1, 1); > +__MODULE_DEPEND(PROC_DIR_NAME, pci, 1, 1, 1); > > #define ccb_ccb_ptr spriv_ptr0 > #define ccb_adapter ccb_h.spriv_ptr1 > Index: sys/dev/iir/iir_pci.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/iir/iir_pci.c,v > retrieving revision 1.17 > diff -u -r1.17 iir_pci.c > --- sys/dev/iir/iir_pci.c 16 May 2006 14:36:26 -0000 1.17 > +++ sys/dev/iir/iir_pci.c 9 Dec 2006 20:59:12 -0000 > @@ -158,6 +158,8 @@ > static devclass_t iir_devclass; > > DRIVER_MODULE(iir, pci, iir_pci_driver, iir_devclass, 0, 0); > +MODULE_DEPEND(iir, cam, 1, 1, 1); > +MODULE_DEPEND(iir, pci, 1, 1, 1); > > static int > iir_pci_probe(device_t dev) > Index: sys/dev/mly/mly.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/mly/mly.c,v > retrieving revision 1.41 > diff -u -r1.41 mly.c > --- sys/dev/mly/mly.c 2 Nov 2006 00:54:37 -0000 1.41 > +++ sys/dev/mly/mly.c 9 Dec 2006 21:06:25 -0000 > @@ -147,6 +147,8 @@ > > static devclass_t mly_devclass; > DRIVER_MODULE(mly, pci, mly_pci_driver, mly_devclass, 0, 0); > +MODULE_DEPEND(mly, cam, 1, 1, 1); > +MODULE_DEPEND(mly, pci, 1, 1, 1); > > static struct cdevsw mly_cdevsw = { > .d_version = D_VERSION, > Index: sys/dev/twa/tw_osl_freebsd.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/twa/tw_osl_freebsd.c,v > retrieving revision 1.4 > diff -u -r1.4 tw_osl_freebsd.c > --- sys/dev/twa/tw_osl_freebsd.c 8 Nov 2005 22:51:43 -0000 1.4 > +++ sys/dev/twa/tw_osl_freebsd.c 9 Dec 2006 21:06:58 -0000 > @@ -207,6 +207,8 @@ > }; > > DRIVER_MODULE(twa, pci, twa_pci_driver, twa_devclass, 0, 0); > +MODULE_DEPEND(twa, cam, 1, 1, 1); > +MODULE_DEPEND(twa, pci, 1, 1, 1); > > > > --- cam7x.diff ends here --- > > --- cam6x.diff begins here --- > Index: sys/dev/ahb/ahb.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/ahb/ahb.c,v > retrieving revision 1.34.2.1 > diff -u -r1.34.2.1 ahb.c > --- sys/dev/ahb/ahb.c 29 Jun 2006 18:12:18 -0000 1.34.2.1 > +++ sys/dev/ahb/ahb.c 9 Dec 2006 21:15:24 -0000 > @@ -1349,3 +1349,5 @@ > static devclass_t ahb_devclass; > > DRIVER_MODULE(ahb, eisa, ahb_eisa_driver, ahb_devclass, 0, 0); > +MODULE_DEPEND(ahb, cam, 1, 1, 1); > +MODULE_DEPEND(ahb, eisa, 1, 1, 1); > Index: sys/dev/amr/amr_pci.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/amr/amr_pci.c,v > retrieving revision 1.29.2.3 > diff -u -r1.29.2.3 amr_pci.c > --- sys/dev/amr/amr_pci.c 15 Jun 2006 16:44:27 -0000 1.29.2.3 > +++ sys/dev/amr/amr_pci.c 9 Dec 2006 21:16:00 -0000 > @@ -119,6 +119,8 @@ > > static devclass_t amr_devclass; > DRIVER_MODULE(amr, pci, amr_pci_driver, amr_devclass, 0, 0); > +MODULE_DEPEND(amr, cam, 1, 1, 1); > +MODULE_DEPEND(amr, pci, 1, 1, 1); > > static struct amr_ident > { > Index: sys/dev/arcmsr/arcmsr.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/arcmsr/arcmsr.c,v > retrieving revision 1.8 > diff -u -r1.8 arcmsr.c > --- sys/dev/arcmsr/arcmsr.c 5 Jun 2005 23:05:26 -0000 1.8 > +++ sys/dev/arcmsr/arcmsr.c 9 Dec 2006 21:16:36 -0000 > @@ -199,6 +199,8 @@ > > static devclass_t arcmsr_devclass; > DRIVER_MODULE(arcmsr,pci,arcmsr_driver,arcmsr_devclass,0,0); > +MODULE_DEPEND(arcmsr, cam, 1, 1, 1); > +MODULE_DEPEND(arcmsr, pci, 1, 1, 1); > > #if __FreeBSD_version >= 502010 > static struct cdevsw arcmsr_cdevsw={ > Index: sys/dev/asr/asr.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/asr/asr.c,v > retrieving revision 1.68 > diff -u -r1.68 asr.c > --- sys/dev/asr/asr.c 29 Apr 2005 04:47:11 -0000 1.68 > +++ sys/dev/asr/asr.c 9 Dec 2006 21:17:28 -0000 > @@ -415,6 +415,8 @@ > > static devclass_t asr_devclass; > DRIVER_MODULE(asr, pci, asr_driver, asr_devclass, 0, 0); > +MODULE_DEPEND(asr, cam, 1, 1, 1); > +MODULE_DEPEND(asr, pci, 1, 1, 1); > > /* > * devsw for asr hba driver > Index: sys/dev/dpt/dpt_eisa.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/dpt/dpt_eisa.c,v > retrieving revision 1.20 > diff -u -r1.20 dpt_eisa.c > --- sys/dev/dpt/dpt_eisa.c 29 May 2005 04:42:19 -0000 1.20 > +++ sys/dev/dpt/dpt_eisa.c 9 Dec 2006 21:18:05 -0000 > @@ -212,3 +212,5 @@ > }; > > DRIVER_MODULE(dpt, eisa, dpt_eisa_driver, dpt_devclass, 0, 0); > +MODULE_DEPEND(dpt, cam, 1, 1, 1); > +MODULE_DEPEND(dpt, eisa, 1, 1, 1); > Index: sys/dev/dpt/dpt_isa.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/dpt/dpt_isa.c,v > retrieving revision 1.9 > diff -u -r1.9 dpt_isa.c > --- sys/dev/dpt/dpt_isa.c 29 May 2005 04:42:19 -0000 1.9 > +++ sys/dev/dpt/dpt_isa.c 9 Dec 2006 21:18:16 -0000 > @@ -268,3 +268,5 @@ > }; > > DRIVER_MODULE(dpt, isa, dpt_isa_driver, dpt_devclass, 0, 0); > +MODULE_DEPEND(dpt, cam, 1, 1, 1); > +MODULE_DEPEND(dpt, isa, 1, 1, 1); > Index: sys/dev/dpt/dpt_pci.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/dpt/dpt_pci.c,v > retrieving revision 1.34 > diff -u -r1.34 dpt_pci.c > --- sys/dev/dpt/dpt_pci.c 29 May 2005 04:42:19 -0000 1.34 > +++ sys/dev/dpt/dpt_pci.c 9 Dec 2006 21:18:23 -0000 > @@ -195,3 +195,5 @@ > }; > > DRIVER_MODULE(dpt, pci, dpt_pci_driver, dpt_devclass, 0, 0); > +MODULE_DEPEND(dpt, cam, 1, 1, 1); > +MODULE_DEPEND(dpt, pci, 1, 1, 1); > Index: sys/dev/hptmv/entry.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/hptmv/entry.c,v > retrieving revision 1.8.2.1 > diff -u -r1.8.2.1 entry.c > --- sys/dev/hptmv/entry.c 6 Oct 2005 18:47:57 -0000 1.8.2.1 > +++ sys/dev/hptmv/entry.c 9 Dec 2006 21:31:00 -0000 > @@ -107,7 +107,10 @@ > static devclass_t hpt_devclass; > > #define __DRIVER_MODULE(p1, p2, p3, p4, p5, p6) DRIVER_MODULE(p1, p2, p3, p4, p5, p6) > +#define __MODULE_DEPEND(p1, p2, p3, p4, p5) MODULE_DEPEND(p1, p2, p3, p4, p5) > __DRIVER_MODULE(PROC_DIR_NAME, pci, hpt_pci_driver, hpt_devclass, 0, 0); > +__MODULE_DEPEND(PROC_DIR_NAME, cam, 1, 1, 1); > +__MODULE_DEPEND(PROC_DIR_NAME, pci, 1, 1, 1); > > #define ccb_ccb_ptr spriv_ptr0 > #define ccb_adapter ccb_h.spriv_ptr1 > Index: sys/dev/iir/iir_pci.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/iir/iir_pci.c,v > retrieving revision 1.15.2.1 > diff -u -r1.15.2.1 iir_pci.c > --- sys/dev/iir/iir_pci.c 12 Mar 2006 16:38:28 -0000 1.15.2.1 > +++ sys/dev/iir/iir_pci.c 9 Dec 2006 21:19:13 -0000 > @@ -159,6 +159,8 @@ > static devclass_t iir_devclass; > > DRIVER_MODULE(iir, pci, iir_pci_driver, iir_devclass, 0, 0); > +MODULE_DEPEND(iir, cam, 1, 1, 1); > +MODULE_DEPEND(iir, pci, 1, 1, 1); > > static int > iir_pci_probe(device_t dev) > Index: sys/dev/mly/mly.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/mly/mly.c,v > retrieving revision 1.38 > diff -u -r1.38 mly.c > --- sys/dev/mly/mly.c 29 May 2005 04:42:23 -0000 1.38 > +++ sys/dev/mly/mly.c 9 Dec 2006 21:19:42 -0000 > @@ -147,6 +147,8 @@ > > static devclass_t mly_devclass; > DRIVER_MODULE(mly, pci, mly_pci_driver, mly_devclass, 0, 0); > +MODULE_DEPEND(mly, cam, 1, 1, 1); > +MODULE_DEPEND(mly, pci, 1, 1, 1); > > static struct cdevsw mly_cdevsw = { > .d_version = D_VERSION, > Index: sys/dev/twa/tw_osl_freebsd.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/twa/tw_osl_freebsd.c,v > retrieving revision 1.1.4.1 > diff -u -r1.1.4.1 tw_osl_freebsd.c > --- sys/dev/twa/tw_osl_freebsd.c 7 Dec 2005 18:18:05 -0000 1.1.4.1 > +++ sys/dev/twa/tw_osl_freebsd.c 9 Dec 2006 21:20:03 -0000 > @@ -207,6 +207,8 @@ > }; > > DRIVER_MODULE(twa, pci, twa_pci_driver, twa_devclass, 0, 0); > +MODULE_DEPEND(twa, cam, 1, 1, 1); > +MODULE_DEPEND(twa, pci, 1, 1, 1); > > > > --- cam6x.diff ends here --- > > --- cam62.diff begins here --- > Index: sys/dev/ahb/ahb.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/ahb/ahb.c,v > retrieving revision 1.34.2.1 > diff -u -r1.34.2.1 ahb.c > --- sys/dev/ahb/ahb.c 29 Jun 2006 18:12:18 -0000 1.34.2.1 > +++ sys/dev/ahb/ahb.c 9 Dec 2006 21:25:03 -0000 > @@ -1349,3 +1349,5 @@ > static devclass_t ahb_devclass; > > DRIVER_MODULE(ahb, eisa, ahb_eisa_driver, ahb_devclass, 0, 0); > +MODULE_DEPEND(ahb, cam, 1, 1, 1); > +MODULE_DEPEND(ahb, eisa, 1, 1, 1); > Index: sys/dev/amr/amr_pci.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/amr/amr_pci.c,v > retrieving revision 1.29.2.3 > diff -u -r1.29.2.3 amr_pci.c > --- sys/dev/amr/amr_pci.c 15 Jun 2006 16:44:27 -0000 1.29.2.3 > +++ sys/dev/amr/amr_pci.c 9 Dec 2006 21:25:32 -0000 > @@ -119,6 +119,8 @@ > > static devclass_t amr_devclass; > DRIVER_MODULE(amr, pci, amr_pci_driver, amr_devclass, 0, 0); > +MODULE_DEPEND(amr, cam, 1, 1, 1); > +MODULE_DEPEND(amr, pci, 1, 1, 1); > > static struct amr_ident > { > Index: sys/dev/arcmsr/arcmsr.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/arcmsr/arcmsr.c,v > retrieving revision 1.8 > diff -u -r1.8 arcmsr.c > --- sys/dev/arcmsr/arcmsr.c 5 Jun 2005 23:05:26 -0000 1.8 > +++ sys/dev/arcmsr/arcmsr.c 9 Dec 2006 21:25:53 -0000 > @@ -199,6 +199,8 @@ > > static devclass_t arcmsr_devclass; > DRIVER_MODULE(arcmsr,pci,arcmsr_driver,arcmsr_devclass,0,0); > +MODULE_DEPEND(arcmsr, cam, 1, 1, 1); > +MODULE_DEPEND(arcmsr, pci, 1, 1, 1); > > #if __FreeBSD_version >= 502010 > static struct cdevsw arcmsr_cdevsw={ > Index: sys/dev/asr/asr.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/asr/asr.c,v > retrieving revision 1.68 > diff -u -r1.68 asr.c > --- sys/dev/asr/asr.c 29 Apr 2005 04:47:11 -0000 1.68 > +++ sys/dev/asr/asr.c 9 Dec 2006 21:26:13 -0000 > @@ -415,6 +415,8 @@ > > static devclass_t asr_devclass; > DRIVER_MODULE(asr, pci, asr_driver, asr_devclass, 0, 0); > +MODULE_DEPEND(asr, cam, 1, 1, 1); > +MODULE_DEPEND(asr, pci, 1, 1, 1); > > /* > * devsw for asr hba driver > Index: sys/dev/dpt/dpt_eisa.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/dpt/dpt_eisa.c,v > retrieving revision 1.20 > diff -u -r1.20 dpt_eisa.c > --- sys/dev/dpt/dpt_eisa.c 29 May 2005 04:42:19 -0000 1.20 > +++ sys/dev/dpt/dpt_eisa.c 9 Dec 2006 21:26:43 -0000 > @@ -212,3 +212,5 @@ > }; > > DRIVER_MODULE(dpt, eisa, dpt_eisa_driver, dpt_devclass, 0, 0); > +MODULE_DEPEND(dpt, cam, 1, 1, 1); > +MODULE_DEPEND(dpt, eisa, 1, 1, 1); > Index: sys/dev/dpt/dpt_isa.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/dpt/dpt_isa.c,v > retrieving revision 1.9 > diff -u -r1.9 dpt_isa.c > --- sys/dev/dpt/dpt_isa.c 29 May 2005 04:42:19 -0000 1.9 > +++ sys/dev/dpt/dpt_isa.c 9 Dec 2006 21:26:49 -0000 > @@ -268,3 +268,5 @@ > }; > > DRIVER_MODULE(dpt, isa, dpt_isa_driver, dpt_devclass, 0, 0); > +MODULE_DEPEND(dpt, cam, 1, 1, 1); > +MODULE_DEPEND(dpt, isa, 1, 1, 1); > Index: sys/dev/dpt/dpt_pci.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/dpt/dpt_pci.c,v > retrieving revision 1.34 > diff -u -r1.34 dpt_pci.c > --- sys/dev/dpt/dpt_pci.c 29 May 2005 04:42:19 -0000 1.34 > +++ sys/dev/dpt/dpt_pci.c 9 Dec 2006 21:26:54 -0000 > @@ -195,3 +195,5 @@ > }; > > DRIVER_MODULE(dpt, pci, dpt_pci_driver, dpt_devclass, 0, 0); > +MODULE_DEPEND(dpt, cam, 1, 1, 1); > +MODULE_DEPEND(dpt, pci, 1, 1, 1); > Index: sys/dev/hptmv/entry.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/hptmv/entry.c,v > retrieving revision 1.8.2.1 > diff -u -r1.8.2.1 entry.c > --- sys/dev/hptmv/entry.c 6 Oct 2005 18:47:57 -0000 1.8.2.1 > +++ sys/dev/hptmv/entry.c 9 Dec 2006 21:30:02 -0000 > @@ -107,7 +107,10 @@ > static devclass_t hpt_devclass; > > #define __DRIVER_MODULE(p1, p2, p3, p4, p5, p6) DRIVER_MODULE(p1, p2, p3, p4, p5, p6) > +#define __MODULE_DEPEND(p1, p2, p3, p4, p5) MODULE_DEPEND(p1, p2, p3, p4, p5) > __DRIVER_MODULE(PROC_DIR_NAME, pci, hpt_pci_driver, hpt_devclass, 0, 0); > +__MODULE_DEPEND(PROC_DIR_NAME, cam, 1, 1, 1); > +__MODULE_DEPEND(PROC_DIR_NAME, pci, 1, 1, 1); > > #define ccb_ccb_ptr spriv_ptr0 > #define ccb_adapter ccb_h.spriv_ptr1 > Index: sys/dev/iir/iir_pci.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/iir/iir_pci.c,v > retrieving revision 1.15.2.1 > diff -u -r1.15.2.1 iir_pci.c > --- sys/dev/iir/iir_pci.c 12 Mar 2006 16:38:28 -0000 1.15.2.1 > +++ sys/dev/iir/iir_pci.c 9 Dec 2006 21:31:35 -0000 > @@ -159,6 +159,8 @@ > static devclass_t iir_devclass; > > DRIVER_MODULE(iir, pci, iir_pci_driver, iir_devclass, 0, 0); > +MODULE_DEPEND(iir, cam, 1, 1, 1); > +MODULE_DEPEND(iir, pci, 1, 1, 1); > > static int > iir_pci_probe(device_t dev) > Index: sys/dev/mly/mly.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/mly/mly.c,v > retrieving revision 1.38 > diff -u -r1.38 mly.c > --- sys/dev/mly/mly.c 29 May 2005 04:42:23 -0000 1.38 > +++ sys/dev/mly/mly.c 9 Dec 2006 21:32:08 -0000 > @@ -147,6 +147,8 @@ > > static devclass_t mly_devclass; > DRIVER_MODULE(mly, pci, mly_pci_driver, mly_devclass, 0, 0); > +MODULE_DEPEND(mly, cam, 1, 1, 1); > +MODULE_DEPEND(mly, pci, 1, 1, 1); > > static struct cdevsw mly_cdevsw = { > .d_version = D_VERSION, > Index: sys/dev/twa/tw_osl_freebsd.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/twa/tw_osl_freebsd.c,v > retrieving revision 1.1.4.1 > diff -u -r1.1.4.1 tw_osl_freebsd.c > --- sys/dev/twa/tw_osl_freebsd.c 7 Dec 2005 18:18:05 -0000 1.1.4.1 > +++ sys/dev/twa/tw_osl_freebsd.c 9 Dec 2006 21:32:27 -0000 > @@ -207,6 +207,8 @@ > }; > > DRIVER_MODULE(twa, pci, twa_pci_driver, twa_devclass, 0, 0); > +MODULE_DEPEND(twa, cam, 1, 1, 1); > +MODULE_DEPEND(twa, pci, 1, 1, 1); > > > > --- cam62.diff ends here --- >> Fix: >> Release-Note: >> Audit-Trail: >> Unformatted: > _______________________________________________ > freebsd-bugs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-bugs > To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org" >