From owner-freebsd-bugs@FreeBSD.ORG Sun Feb 10 02:40:01 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0649B16A419 for ; Sun, 10 Feb 2008 02:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DA7B513C447 for ; Sun, 10 Feb 2008 02:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1A2e0AF055368 for ; Sun, 10 Feb 2008 02:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1A2e0VW055367; Sun, 10 Feb 2008 02:40:00 GMT (envelope-from gnats) Resent-Date: Sun, 10 Feb 2008 02:40:00 GMT Resent-Message-Id: <200802100240.m1A2e0VW055367@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Rick Voland Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10B6216A417 for ; Sun, 10 Feb 2008 02:37:06 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id BC49B13C44B for ; Sun, 10 Feb 2008 02:37:05 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m1A2Ytvh056632 for ; Sun, 10 Feb 2008 02:34:55 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m1A2YtLX056631; Sun, 10 Feb 2008 02:34:55 GMT (envelope-from nobody) Message-Id: <200802100234.m1A2YtLX056631@www.freebsd.org> Date: Sun, 10 Feb 2008 02:34:55 GMT From: Rick Voland To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/120487: scsi_sg incompatible with scanners X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Feb 2008 02:40:01 -0000 >Number: 120487 >Category: misc >Synopsis: scsi_sg incompatible with scanners >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Feb 10 02:40:00 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Rick Voland >Release: FreeBSD 6.3-RELEASE >Organization: >Environment: FreeBSD brian.local.bsd 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Mon Jan 21 08:23:32 CST 2008 root@brian.local.bsd:/usr/obj/usr/src/sys/BRIAN i386 >Description: My scanners are not detected in the dmesg output when I use the new scsi_sg device added to my usual SMP kernel. I added the following line to my usual kernel: device sg # pass-through device for Linux The sg* devices were only created when I used the new (sg) kernel and the scanners were turned off. When the scanners were turned on, the new (sg) kernel did not detect the scanners in the dmesg output. I normally use an Adaptec AHA-1542CP for these external SCSI devices. The scanners are correctly identified and pass* devices created with my usual (lacking sg) kernel. The sg* devices were only created with the new (sg) kernel when the scanners were turned off. For diagnosis only, I moved these external scanners to my DPT PM2044UW PCI SCSI controller. The scanners were not detected on this controller when I booted with the new (sg) kernel, nor were the sg* or pass* devices created. In all cases, the SCSI devices were correctly enumerated by the SCSI controllers prior to the FreeBSD boot selection menu. All SCSI devices had appropriately unique SCSI ID numbers. One scanner works fine already in FreeBSD with SANE, but the other has no driver in SANE, so I hope to use the sg* devices for the Linux version of Vuescan (www.hamrick.com) which loads fine but does not yet see the scanners. 1) I could find no documentation for the scsi_sg devices, so I assume that one line above is the correct way to make the sg* devices available. 2) It is odd that the sg* devices are only created when the scanners are not detected, and this is true for both SCSI controllers. >How-To-Repeat: Boot FreeBSD with kernel containing scsi_sg device and scanners turned on >Fix: >Release-Note: >Audit-Trail: >Unformatted: