<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/cam/cam_queue.h, branch releng/10.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F10.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F10.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2013-08-05T11:48:40Z</updated>
<entry>
<title>MFprojects/camlock r249505:</title>
<updated>2013-08-05T11:48:40Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2013-08-05T11:48:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ea541bfdaa5b2e2a893c8d76c67a43948947c7c5'/>
<id>urn:sha1:ea541bfdaa5b2e2a893c8d76c67a43948947c7c5</id>
<content type='text'>
Change CCB queue resize logic to be able safely handle overallocations:
 - (re)allocate queue space in power of 2 chunks with 64 elements minimum
and never shrink it; with only 4/8 bytes per element size is insignificant.
 - automatically reallocate the queue to double size if it is overflowed.
 - if queue reallocation failed, store extra CCBs in unsorted TAILQ,
fetching them back as soon as some queue element is freed.

To free space in CCB for TAILQ linking, change highpowerq from keeping
high-power CCBs to keeping devices frozen due to high-power CCBs.

This encloses all pieces of queue resize logic inside of cam_queue.[ch],
removing some not obvious duties from xpt_release_ccb().
</content>
</entry>
<entry>
<title>Remove some more pieces of multilevel freeze mechanism, missed in r249466.</title>
<updated>2013-04-14T18:09:08Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2013-04-14T18:09:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1268d4813e88ad9eb1706237ab13cf9782124a81'/>
<id>urn:sha1:1268d4813e88ad9eb1706237ab13cf9782124a81</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFprojects/camlock r248890, r248897, r248898, r248900, r248903, r248905,</title>
<updated>2013-04-14T09:28:14Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2013-04-14T09:28:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cccf422080e22281bbcb96e29128a89ce00cd4d4'/>
<id>urn:sha1:cccf422080e22281bbcb96e29128a89ce00cd4d4</id>
<content type='text'>
r248917, r248918, r248978, r249001, r249014, r249030:

Remove multilevel freezing mechanism, implemented to handle specifics of
the ATA/SATA error recovery, when post-reset recovery commands should be
allocated when queues are already full of payload requests.  Instead of
removing frozen CCBs with specified range of priorities from the queue
to provide free openings, use simple hack, allowing explicit CCBs over-
allocation for requests with priority higher (numerically lower) then
CAM_PRIORITY_OOB threshold.

Simplify CCB allocation logic by removing SIM-level allocation queue.
After that SIM-level queue manages only CCBs execution, while allocation
logic is localized within each single device.

Suggested by:	gibbs
</content>
</entry>
<entry>
<title>MFp4: Large set of CAM inprovements.</title>
<updated>2010-01-28T08:41:30Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2010-01-28T08:41:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=83c5d981ac176d1cfae8d6dab3c0420ed9d43477'/>
<id>urn:sha1:83c5d981ac176d1cfae8d6dab3c0420ed9d43477</id>
<content type='text'>
- Unify bus reset/probe sequence. Whenever bus attached at boot or later,
CAM will automatically reset and scan it. It allows to remove duplicate
code from many drivers.
- Any bus, attached before CAM completed it's boot-time initialization,
will equally join to the process, delaying boot if needed.
- New kern.cam.boot_delay loader tunable should help controllers that
are still unable to register their buses in time (such as slow USB/
PCCard/ CardBus devices), by adding one more event to wait on boot.
- To allow synchronization between different CAM levels, concept of
requests priorities was extended. Priorities now split between several
"run levels". Device can be freezed at specified level, allowing higher
priority requests to pass. For example, no payload requests allowed,
until PMP driver enable port. ATA XPT negotiate transfer parameters,
periph driver configure caching and so on.
- Frozen requests are no more counted by request allocation scheduler.
It fixes deadlocks, when frozen low priority payload requests occupying
slots, required by higher levels to manage theit execution.
- Two last changes were holding proper ATA reinitialization and error
recovery implementation. Now it is done: SATA controllers and Port
Multipliers now implement automatic hot-plug and should correctly
recover from timeouts and bus resets.
- Improve SCSI error recovery for devices on buses without automatic sense
reporting, such as ATAPI or USB. For example, it allows CAM to wait, while
CD drive loads disk, instead of immediately return error status.
- Decapitalize diagnostic messages and make them more readable and sensible.
- Teach PMP driver to limit maximum speed on fan-out ports.
- Make boot wait for PMP scan completes, and make rescan more reliable.
- Fix pass driver, to return CCB to user level in case of error.
- Increase number of retries in cd driver, as device may return several UAs.
</content>
</entry>
<entry>
<title>MFp4:</title>
<updated>2009-11-14T20:30:42Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2009-11-14T20:30:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1f1158b28d08e72c5c25edbfd65275faf9664f50'/>
<id>urn:sha1:1f1158b28d08e72c5c25edbfd65275faf9664f50</id>
<content type='text'>
Some more missed parts from previous commits.
</content>
</entry>
<entry>
<title>After thinking again, implement cam_ccbq_fini().</title>
<updated>2009-10-22T21:07:32Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2009-10-22T21:07:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=20a7933f537f94048723ebea9e768dacc948aa7c'/>
<id>urn:sha1:20a7933f537f94048723ebea9e768dacc948aa7c</id>
<content type='text'>
This is effectively NULL change, but makes this API a bit more consistent.
</content>
</entry>
<entry>
<title>cam_ccbq_fini() declared for 11 years, but never implemented. Remove it.</title>
<updated>2009-10-22T20:44:55Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2009-10-22T20:44:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ab593611be01418440cf828e3be863c32e2e48d3'/>
<id>urn:sha1:ab593611be01418440cf828e3be863c32e2e48d3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Start each of the license/copyright comments with /*-</title>
<updated>2005-01-05T22:34:37Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2005-01-05T22:34:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=898b0535b73b62baaf1d386b169e4d215194a012'/>
<id>urn:sha1:898b0535b73b62baaf1d386b169e4d215194a012</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Back out the previous change to the queue(3) interface.</title>
<updated>2000-05-26T02:09:24Z</updated>
<author>
<name>Jake Burkholder</name>
<email>jake@FreeBSD.org</email>
</author>
<published>2000-05-26T02:09:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e39756439c7255bc16ba14b7b991cb01ba1c93bd'/>
<id>urn:sha1:e39756439c7255bc16ba14b7b991cb01ba1c93bd</id>
<content type='text'>
It was not discussed and should probably not happen.

Requested by:		msmith and others
</content>
</entry>
<entry>
<title>Change the way that the queue(3) structures are declared; don't assume that</title>
<updated>2000-05-23T20:41:01Z</updated>
<author>
<name>Jake Burkholder</name>
<email>jake@FreeBSD.org</email>
</author>
<published>2000-05-23T20:41:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=740a1973a62eaa8e1dc23e22f84dacb3346d303a'/>
<id>urn:sha1:740a1973a62eaa8e1dc23e22f84dacb3346d303a</id>
<content type='text'>
the type argument to *_HEAD and *_ENTRY is a struct.

Suggested by:	phk
Reviewed by:	phk
Approved by:	mdodd
</content>
</entry>
</feed>
