<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/sys/dev/buslogic, branch release/3.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F3.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F3.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>1999-09-14T04:08:11Z</updated>
<entry>
<title>MFC: Almost everyone using the bus-dma interface copied a bug from my code.</title>
<updated>1999-09-14T04:08:11Z</updated>
<author>
<name>Justin T. Gibbs</name>
<email>gibbs@FreeBSD.org</email>
</author>
<published>1999-09-14T04:08:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=eafd6503e60fe7f47b9a45385b9171925e805d2f'/>
<id>urn:sha1:eafd6503e60fe7f47b9a45385b9171925e805d2f</id>
<content type='text'>
I fixed this in -current a month ago but forgot to MFC them.  I don't
know how the old code ever worked... 8-)

There is also two fixes for detaching devices in here.  One is for
disconnecting a device with bus-dma resources (busdma_machdep.c) and
the other is for cam queue resources.  These two fixes have been in
-current for over a month (Nick Himba found them using USB devices).

And finally, there is a fix for a compile warning in the advansys
driver.

Approved by:	jkh
</content>
</entry>
<entry>
<title>$Id$ -&gt; $FreeBSD$</title>
<updated>1999-08-29T16:33:42Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1999-08-29T16:33:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=c4f617ca01b475bdf034553dfe123deeb1589899'/>
<id>urn:sha1:c4f617ca01b475bdf034553dfe123deeb1589899</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC: Fix for PR 11799.</title>
<updated>1999-05-23T18:58:43Z</updated>
<author>
<name>Justin T. Gibbs</name>
<email>gibbs@FreeBSD.org</email>
</author>
<published>1999-05-23T18:58:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=f26d335ca0efa3ecbf4551cb0e489638367ad9c2'/>
<id>urn:sha1:f26d335ca0efa3ecbf4551cb0e489638367ad9c2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC:  Add a number of interrelated CAM feature enhancements and</title>
<updated>1999-05-07T00:43:47Z</updated>
<author>
<name>Kenneth D. Merry</name>
<email>ken@FreeBSD.org</email>
</author>
<published>1999-05-07T00:43:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=74775eaafade129ba98288883ccbd928401a0558'/>
<id>urn:sha1:74775eaafade129ba98288883ccbd928401a0558</id>
<content type='text'>
bug fixes.

NOTE:  These changes will require recompilation of any userland
applications, like cdrecord, xmcd, etc., that use the CAM passthrough
interface.  A make world is recommended.

camcontrol.[c8]:
 - We now support two new commands, "tags" and "negotiate".

	- The tags commands allows users to view the number of tagged
	  openings for a device as well as a number of other related
	  parameters, and it allows users to set tagged openings for
	  a device.

	- The negotiate command allows users to enable and disable
	  disconnection and tagged queueing, set sync rates, offsets
	  and bus width.  Note that not all of those features are
	  available for all controllers.  Only the adv, ahc, and ncr
	  drivers fully support all of the features at this point.
	  Some cards do not allow the setting of sync rates, offsets and
	  the like, and some of the drivers don't have any facilities to
	  do so.  Some drivers, like the adw driver, only support enabling
	  or disabling sync negotiation, but do not support setting sync
	  rates.

 - new description in the camcontrol man page of how to format a disk
 - cleanup of the camcontrol inquiry command
 - add support in the 'devlist' command for skipping unconfigured devices if
   -v was not specified on the command line.
 - make use of the new base_transfer_speed in the path inquiry CCB.
 - fix CCB bzero cases

cam_xpt.c, cam_sim.[ch], cam_ccb.h:

 - new flags on many CCB function codes to designate whether they're
   non-immediate, use a user-supplied CCB, and can only be passed from
   userland programs via the xpt device.  Use these flags in the transport
   layer and pass driver to categorize CCBs.

 - new flag in the transport layer device matching code for device nodes
   that indicates whether a device is unconfigured

 - bump the CAM version from 0x10 to 0x11

 - Change the CAM ioctls to use the version as their group code, so we can
   force users to recompile code even when the CCB size doesn't change.

 - add + fill in a new value in the path inquiry CCB, base_transfer_speed.
   Remove a corresponding field from the cam_sim structure, and add code to
   every SIM to set this field to the proper value.

 - Fix the set transfer settings code in the transport layer.

scsi_cd.c:

 - make some variables volatile instead of just casting them in various
   places
 - fix a race condition in the changer code
 - attach unless we get a "logical unit not supported" error.  This should
   fix all of the cases where people have devices that return weird errors
   when they don't have media in the drive.

scsi_da.c:

 - attach unless we get a "logical unit not supported" error

scsi_pass.c:

 - for immediate CCBs, just malloc a CCB to send the user request in.  This
   gets rid of the 'held' count problem in camcontrol tags.

scsi_pass.h:

 - change the CAM ioctls to use the CAM version as their group code.

adv driver:

 - Allow changing the sync rate and offset separately.

adw driver

 - Allow changing the sync rate and offset separately.

aha driver:

 - Don't return CAM_REQ_CMP for SET_TRAN_SETTINGS CCBs.

ahc driver:

 - Allow setting offset and sync rate separately

bt driver:

 - Don't return CAM_REQ_CMP for SET_TRAN_SETTINGS CCBs.

NCR driver:

 - Fix the ultra/ultra 2 negotiation bug
 - allow setting both the sync rate and offset separately

Other HBA drivers:
 - Put code in to set the base_transfer_speed field for
   XPT_GET_TRAN_SETTINGS CCBs.

Reviewed by:	gibbs, imp (aha), mjacob (isp)
</content>
</entry>
<entry>
<title>MFC: Improve bt_cmd().</title>
<updated>1999-04-07T23:11:20Z</updated>
<author>
<name>Justin T. Gibbs</name>
<email>gibbs@FreeBSD.org</email>
</author>
<published>1999-04-07T23:11:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=cb41e73fdf5a3ac22ba6ef26f7e2724ee6aebd21'/>
<id>urn:sha1:cb41e73fdf5a3ac22ba6ef26f7e2724ee6aebd21</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC: Add a routine for asking the card for IRQ/DRQ info.  Fix comparision bug</title>
<updated>1999-03-08T21:39:35Z</updated>
<author>
<name>Justin T. Gibbs</name>
<email>gibbs@FreeBSD.org</email>
</author>
<published>1999-03-08T21:39:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4553a0ee27c343ed5b4f0e6a4873df718426ae74'/>
<id>urn:sha1:4553a0ee27c343ed5b4f0e6a4873df718426ae74</id>
<content type='text'>
     in syncrate code so we don't attempt unsupported commands.
</content>
</entry>
<entry>
<title>This commit was manufactured by cvs2svn to create branch 'RELENG_3'.</title>
<updated>1999-01-21T00:55:31Z</updated>
<author>
<name>cvs2svn</name>
<email>cvs2svn@FreeBSD.org</email>
</author>
<published>1999-01-21T00:55:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4b4d01da6f07f7754ff6a6e4f5223e9f0984d1a6'/>
<id>urn:sha1:4b4d01da6f07f7754ff6a6e4f5223e9f0984d1a6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>    probe function changed from returning char * to const char *.</title>
<updated>1998-12-14T06:37:37Z</updated>
<author>
<name>Matthew Dillon</name>
<email>dillon@FreeBSD.org</email>
</author>
<published>1998-12-14T06:37:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=2cbe36f7259481bdc879887e0afc0394e15be45a'/>
<id>urn:sha1:2cbe36f7259481bdc879887e0afc0394e15be45a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove unsued variable.</title>
<updated>1998-12-11T03:50:35Z</updated>
<author>
<name>Justin T. Gibbs</name>
<email>gibbs@FreeBSD.org</email>
</author>
<published>1998-12-11T03:50:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4c196f451ca07f07ecfa3e18d5c64c451af40def'/>
<id>urn:sha1:4c196f451ca07f07ecfa3e18d5c64c451af40def</id>
<content type='text'>
If we are not transfering any data, use a non S/G ccb type that doesn't
return residual information.  It seems that some firmware revisions dislike
S/G ccbs with 0 length S/G lists.

Correct bt_cmd() so that we always honor command status that was latched
by our interrupt routine while polling for completion..
</content>
</entry>
<entry>
<title>Examine all occurrences of sprintf(), strcat(), and str[n]cpy()</title>
<updated>1998-12-04T22:54:57Z</updated>
<author>
<name>Archie Cobbs</name>
<email>archie@FreeBSD.org</email>
</author>
<published>1998-12-04T22:54:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=2127f26023a9be443e05b592b35c77b454ba8f77'/>
<id>urn:sha1:2127f26023a9be443e05b592b35c77b454ba8f77</id>
<content type='text'>
for possible buffer overflow problems. Replaced most sprintf()'s
with snprintf(); for others cases, added terminating NUL bytes where
appropriate, replaced constants like "16" with sizeof(), etc.

These changes include several bug fixes, but most changes are for
maintainability's sake. Any instance where it wasn't "immediately
obvious" that a buffer overflow could not occur was made safer.

Reviewed by:	Bruce Evans &lt;bde@zeta.org.au&gt;
Reviewed by:	Matthew Dillon &lt;dillon@apollo.backplane.com&gt;
Reviewed by:	Mike Spengler &lt;mks@networkcs.com&gt;
</content>
</entry>
</feed>
