Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Feb 2008 02:34:55 GMT
From:      Rick Voland <rpvoland@spamcop.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/120487: scsi_sg incompatible with scanners
Message-ID:  <200802100234.m1A2YtLX056631@www.freebsd.org>
Resent-Message-ID: <200802100240.m1A2e0VW055367@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802100234.m1A2YtLX056631>