From cagney@tpgi.com.au Thu Mar 18 18:46:27 1999
Return-Path: <cagney@tpgi.com.au>
Received: from andrew1.lnk.telstra.net (andrew1.lnk.telstra.net [139.130.51.121])
	by hub.freebsd.org (Postfix) with ESMTP id 21A5B14F0F
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 18 Mar 1999 18:46:22 -0800 (PST)
	(envelope-from cagney@tpgi.com.au)
Received: (from cagney@localhost)
	by andrew1.lnk.telstra.net (8.9.2/8.8.8) id NAA63230;
	Fri, 19 Mar 1999 13:46:03 +1100 (EST)
	(envelope-from cagney)
Message-Id: <199903190246.NAA63230@andrew1.lnk.telstra.net>
Date: Fri, 19 Mar 1999 13:46:03 +1100 (EST)
From: Andrew Cagney <cagney@tpgi.com.au>
Reply-To: cagney@tpgi.com.au
To: FreeBSD-gnats-submit@freebsd.org
Subject: hpscan doesn't like 3.1's pt device
X-Send-Pr-Version: 3.2

>Number:         10663
>Category:       kern
>Synopsis:       hpscan doesn't like 3.1's pt device
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 18 18:50:00 PST 1999
>Closed-Date:    Sun Dec 2 10:55:33 PST 2001
>Last-Modified:  Sun Dec 02 10:59:58 PST 2001
>Originator:     Andrew Cagney
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
>Environment:

FreeBSD b1.cygnus.com 3.1-RELEASE FreeBSD 3.1-RELEASE #3: Thu Mar 18
19:43:54 EST 1999 cagney@b1.cygnus.com:/usr/src/sys/compile/B2pcm i386

I've added bktr et.al., pcm, cam* and pt devices to the kernel.

pt0 at ahc0 bus 0 target 2 lun 0
pt0: <HP C5110A 3701> Fixed Processor SCSI-2 device 
pt0: 3.300MB/s transfers

>Description:

	hpscan doesn't work with 3.1's version of the pt driver.
	It worked just find with 2.2.8 (yes I did re-compile it
	:-):

cagney@b1.cygnus.com$ hpscan
scanner_send: Operation not supported by device
scanner_send: Operation not supported by device
scanner_send: Operation not supported by device
scanner_send: Operation not supported by device
scanner_send: Operation not supported by device
scanner_send: Operation not supported by device
scanner_send: Operation not supported by device
Floating point exception
cagney@b1.cygnus.com$ ls -l /dev/scanner
lrwxr-xr-x  1 root  wheel  3 Mar 18 23:12 /dev/scanner -> pt0
cagney@b1.cygnus.com$ ls -l /dev/pt0
crw-rw-rw-  1 root  wheel   61,   0 Mar 18 21:34 /dev/pt0

	Looking at the code it would appear that the pt driver
	received a serious re-write in moving from 2.2.8 to 3.1 :-)

	The above error is from a failed IOCTL on the device.


>How-To-Repeat:

	See above, e-mail me.

>Fix:
	
	Workaround:

	Switch to the ``sane'' scanner but then find that that has
	other problems (do I really need ``chmod a+rw /dev/xpt0''? ;-).

>Release-Note:
>Audit-Trail:

From: "Justin T. Gibbs" <gibbs@plutotech.com>
To: cagney@tpgi.com.au
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/10663: hpscan doesn't like 3.1's pt device 
Date: Thu, 18 Mar 1999 20:30:56 -0700

 >	Looking at the code it would appear that the pt driver
 >	received a serious re-write in moving from 2.2.8 to 3.1 :-)
 >
 >	The above error is from a failed IOCTL on the device.
 
 
 My guess is that hpscan is attempting to send raw SCSI commands through the
 PT device, or invoke one of the other 'pass-thru' ioctls the old pt driver
 (and all drivers of the old SCSI system actually) supported.  This
 functionality has been moved to the pass-thru device in CAM. I would
 suggest you modify hpscan to use the pass-thru device instead or cease
 using whatever other unsupported ioctls it is performing.
 
 --
 Justin
 
 
 

From: Andrew Cagney <cagney@cygnus.com>
To: cagney@tpgi.com.au, gibbs@plutotech.com
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/10663: hpscan doesn't like 3.1's pt device
Date: Fri, 19 Mar 1999 15:01:35 +1100 (WET)

 Excerpts from mail: 18-Mar-99 Re: kern/10663: hpscan does..
 @plutotech.com (609*)
 
 > >	Looking at the code it would appear that the pt driver
 > >	received a serious re-write in moving from 2.2.8 to 3.1 :-)
 > >
 > >	The above error is from a failed IOCTL on the device.
 
 
 > My guess is that hpscan is attempting to send raw SCSI commands through the
 > PT device, or invoke one of the other 'pass-thru' ioctls the old pt driver
 > (and all drivers of the old SCSI system actually) supported.  This
 > functionality has been moved to the pass-thru device in CAM. I would
 > suggest you modify hpscan to use the pass-thru device instead or cease
 > using whatever other unsupported ioctls it is performing.
 
 I rather like the pt driver - it's simple.  These new CAM drivers scare
 me.  I'll try to take a proper look at it.
 
 	Andrew
 

From: Andrew Cagney <cagney@tpgi.com.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc:  
Subject: kern/10663: hpscan doesn't like 3.1's pt device
Date: Fri, 19 Mar 1999 13:46:03 +1100 (EST)

 >Number:         10663
 >Category:       kern
 >Synopsis:       hpscan doesn't like 3.1's pt device
 >Confidential:   yes
 >Severity:       non-critical
 >Priority:       medium
 >Responsible:    freebsd-bugs
 >State:          open
 >Quarter:        
 >Keywords:       
 >Date-Required:
 >Class:          sw-bug
 >Submitter-Id:   current-users
 >Arrival-Date:   Thu Mar 18 18:50:00 PST 1999
 >Closed-Date:
 >Last-Modified:
 >Originator:     Andrew Cagney
 >Release:        FreeBSD 3.1-RELEASE i386
 >Organization:
 >Environment:
 
 FreeBSD b1.cygnus.com 3.1-RELEASE FreeBSD 3.1-RELEASE #3: Thu Mar 18
 19:43:54 EST 1999 cagney@b1.cygnus.com:/usr/src/sys/compile/B2pcm i386
 
 I've added bktr et.al., pcm, cam* and pt devices to the kernel.
 
 pt0 at ahc0 bus 0 target 2 lun 0
 pt0: <HP C5110A 3701> Fixed Processor SCSI-2 device 
 pt0: 3.300MB/s transfers
 
 >Description:
 
 	hpscan doesn't work with 3.1's version of the pt driver.
 	It worked just find with 2.2.8 (yes I did re-compile it
 	:-):
 
 cagney@b1.cygnus.com$ hpscan
 scanner_send: Operation not supported by device
 scanner_send: Operation not supported by device
 scanner_send: Operation not supported by device
 scanner_send: Operation not supported by device
 scanner_send: Operation not supported by device
 scanner_send: Operation not supported by device
 scanner_send: Operation not supported by device
 Floating point exception
 cagney@b1.cygnus.com$ ls -l /dev/scanner
 lrwxr-xr-x  1 root  wheel  3 Mar 18 23:12 /dev/scanner -> pt0
 cagney@b1.cygnus.com$ ls -l /dev/pt0
 crw-rw-rw-  1 root  wheel   61,   0 Mar 18 21:34 /dev/pt0
 
 	Looking at the code it would appear that the pt driver
 	received a serious re-write in moving from 2.2.8 to 3.1 :-)
 
 	The above error is from a failed IOCTL on the device.
 
 
 >How-To-Repeat:
 
 	See above, e-mail me.
 
 >Fix:
 	
 	Workaround:
 
 	Switch to the ``sane'' scanner but then find that that has
 	other problems (do I really need ``chmod a+rw /dev/xpt0''? ;-).
 
 >Release-Note:
 >Audit-Trail:
 >Unformatted:
 
 
 To Unsubscribe: send mail to majordomo@FreeBSD.org
 with "unsubscribe freebsd-bugs" in the body of the message
 
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: iedowse 
State-Changed-When: Sun Dec 2 10:55:33 PST 2001 
State-Changed-Why:  

The hpscan port was removed earlier this year with the message 
"Remove hpscan port - it's totally obsolete", so I guess there's 
no point in keeping this PR open any longer. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=10663 
>Unformatted:
