History log of /src/sys/dev/scsipi/stvar.h |
Revision | | Date | Author | Comments |
1.26 |
| 24-Mar-2018 |
mlelstv | Use separate lock to protect internal state and release locks when calling biodone.
|
1.25 |
| 13-Apr-2015 |
riastradh | branches: 1.25.10; 1.25.16; Convert sys/dev to use <sys/rndsource.h>.
|
1.24 |
| 28-Feb-2012 |
mbalmer | branches: 1.24.2; 1.24.16; Convert st(4) to device_t, while here clean up the code and use uintXX_t instead of u_intXX_t.
|
1.23 |
| 02-Feb-2012 |
tls | branches: 1.23.2; Entropy-pool implementation move and cleanup.
1) Move core entropy-pool code and source/sink/sample management code to sys/kern from sys/dev.
2) Remove use of NRND as test for presence of entropy-pool code throughout source tree.
3) Remove use of RND_ENABLED in device drivers as microoptimization to avoid expensive operations on disabled entropy sources; make the rnd_add calls do this directly so all callers benefit.
4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might have lead to slight entropy overestimation for some sources.
5) Add new source types for environmental sensors, power sensors, VM system events, and skew between clocks, with a sample implementation for each.
ok releng to go in before the branch due to the difficulty of later pullup (widespread #ifdef removal and moved files). Tested with release builds on amd64 and evbarm and live testing on amd64.
|
1.22 |
| 19-Nov-2011 |
tls | branches: 1.22.2; First step of random number subsystem rework described in <20111022023242.BA26F14A158@mail.netbsd.org>. This change includes the following:
An initial cleanup and minor reorganization of the entropy pool code in sys/dev/rnd.c and sys/dev/rndpool.c. Several bugs are fixed. Some effort is made to accumulate entropy more quickly at boot time.
A generic interface, "rndsink", is added, for stream generators to request that they be re-keyed with good quality entropy from the pool as soon as it is available.
The arc4random()/arc4randbytes() implementation in libkern is adjusted to use the rndsink interface for rekeying, which helps address the problem of low-quality keys at boot time.
An implementation of the FIPS 140-2 statistical tests for random number generator quality is provided (libkern/rngtest.c). This is based on Greg Rose's implementation from Qualcomm.
A new random stream generator, nist_ctr_drbg, is provided. It is based on an implementation of the NIST SP800-90 CTR_DRBG by Henric Jungheim. This generator users AES in a modified counter mode to generate a backtracking-resistant random stream.
An abstraction layer, "cprng", is provided for in-kernel consumers of randomness. The arc4random/arc4randbytes API is deprecated for in-kernel use. It is replaced by "cprng_strong". The current cprng_fast implementation wraps the existing arc4random implementation. The current cprng_strong implementation wraps the new CTR_DRBG implementation. Both interfaces are rekeyed from the entropy pool automatically at intervals justifiable from best current cryptographic practice.
In some quick tests, cprng_fast() is about the same speed as the old arc4randbytes(), and cprng_strong() is about 20% faster than rnd_extract_data(). Performance is expected to improve.
The AES code in src/crypto/rijndael is no longer an optional kernel component, as it is required by cprng_strong, which is not an optional kernel component.
The entropy pool output is subjected to the rngtest tests at startup time; if it fails, the system will reboot. There is approximately a 3/10000 chance of a false positive from these tests. Entropy pool _input_ from hardware random numbers is subjected to the rngtest tests at attach time, as well as the FIPS continuous-output test, to detect bad or stuck hardware RNGs; if any are detected, they are detached, but the system continues to run.
A problem with rndctl(8) is fixed -- datastructures with pointers in arrays are no longer passed to userspace (this was not a security problem, but rather a major issue for compat32). A new kernel will require a new rndctl.
The sysctl kern.arandom() and kern.urandom() nodes are hooked up to the new generators, but the /dev/*random pseudodevices are not, yet.
Manual pages for the new kernel interfaces are forthcoming.
|
1.21 |
| 06-Dec-2009 |
dyoung | branches: 1.21.12; Delete do-nothing device-activation hooks.
|
1.20 |
| 15-Aug-2009 |
pgoyette | 1. Move the mode_select functionality into common code (in st.c) and invoke the common routine for both scsi and atapi tapes.
2. Replace a numeric constant with some sizeof's when calculating the size of the mode_select command buffer, clear the entire buffer, and KASSERT to ensure the page_0_size loaded from quirk table is valid.
3. Add a quirk for my Seagate Travan-40 tape drive.
As discussed on tech-kern@
Addresses my PR kern/34832
|
1.19 |
| 12-May-2009 |
cegger | struct device * -> device_t, no functional changes intended.
|
1.18 |
| 28-Apr-2008 |
martin | branches: 1.18.14; Remove clause 3 and 4 from TNF licenses
|
1.17 |
| 14-Apr-2006 |
blymn | branches: 1.17.58; 1.17.60; 1.17.62; Make i/o statistics collection more generic, include tape drives and nfs mounts in the set of devices that statistics will be reported on.
|
1.16 |
| 11-Dec-2005 |
christos | branches: 1.16.4; 1.16.6; 1.16.8; 1.16.10; 1.16.12; merge ktrace-lwp.
|
1.15 |
| 15-Oct-2005 |
yamt | - change the way to specify a bufq strategy. (by string rather than by number) - rather than embedding bufq_state in driver softc, have a pointer to the former. - move bufq related functions from kern/subr_disk.c to kern/subr_bufq.c. - rename method to strategy for consistency. - move some definitions which don't need to be exposed to the rest of kernel from sys/bufq.h to sys/bufq_impl.h. (is it better to move it to kern/ or somewhere?) - fix some obvious breakage in dev/qbus/ts.c. (not tested)
|
1.14 |
| 07-Aug-2005 |
blymn | Add tape statistics structure pointer.
|
1.13 |
| 29-May-2005 |
christos | branches: 1.13.2; - Sprinkle const - Avoid variable shadowing. - Eliminate some caddr_t abuse.
|
1.12 |
| 01-Feb-2005 |
reinoud | Backing out changes to clean up scsipi. I was pointed out there were problems i hadn't seen. To prevent lossage i'd decided to back off all changes and let them be reviewed on tech-kern.
|
1.11 |
| 31-Jan-2005 |
reinoud | Part of the cleanup of sys/scsipi's use of types; rename all u_int* to uint* and change the u_long's to uint32_t's where possible. Note that the iocl definitions/hooks have to be ulong (or u_long) or they'll bomb out.
|
1.10 |
| 31-Jan-2005 |
reinoud | As part of cleaning up sys/scsipi, replace all u_char by uint8_t and replace all `short' with int16_t.
|
1.9 |
| 27-Aug-2004 |
bouyer | branches: 1.9.4; Improve handling of memory shortage, to fix problems like: sd3(mpt0:0:1:0): unable to allocate scsipi_xfer sd3: not queued, error 12 Havard Eidnes's analysis of this problem is that the scsipi_xfer pool is competing for resources with other pools, including the the inode and vnode pools which can grow quite large.
*_scsipi_cmd(): don't biodone the buffer if scsipi_make_xs() fails, let the caller deal with the problem start function of block devices drivers: dequeue the buffer after the scsipi_command() call. If scsipi_command() fails with ENOMEM don't dequeue the buffer, and schedule a callout to call the start function after some delay. scsipi_init(): prime the scsipi_xfer_pool with one page. This ensure that there is always some scsipi_xfer to play with. If scsipi_command() fails because of pool_get(), we're sure there will be resources available later, when the pending commands have completed.
Reviewed by Jason Thorpe and Havard Eidnes. Todo: remove the "unable to allocate scsipi_xfer" and "not queued, error %d" printfs, but I choose to keep them for now, to help make sure the code does what it should.
|
1.8 |
| 21-Aug-2004 |
thorpej | Use ANSI function decls and make use of static.
|
1.7 |
| 21-Aug-2004 |
thorpej | - De-__P. - Use ANSI function decls.
|
1.6 |
| 22-Jul-2002 |
hannken | branches: 1.6.6; 1.6.8; Convert to new device buffer queue interface.
|
1.5 |
| 20-Mar-2002 |
christos | branches: 1.5.4; Add the ability to report file number/block number. From Matt Jacob.
|
1.4 |
| 07-Dec-2001 |
yamt | add detach support for st.
|
1.3 |
| 01-Dec-2001 |
bouyer | Various quirks for the ATAPI OnStream DI-30, mostly from the FreeBSD driver. Many thanks to Chris Pinnock for giving me remote access to his hardware.
|
1.2 |
| 18-Jun-2001 |
bouyer | branches: 1.2.2; 1.2.4; Snapshot of ATAPI tapes support. Known to be able to read/write to tape with: st0 at atapibus0 drive 1: <Seagate STT8000A, , 5.51> type 1 sequential removable Major changes may still happen in order to properly support other ATAPI tape drives.
|
1.1 |
| 04-May-2001 |
bouyer | Add an ATAPI front-end to the st driver. Completely untested for now, but st at scsi should still work :)
|
1.2.4.3 |
| 06-Sep-2002 |
jdolecek | sync kqueue branch with HEAD
|
1.2.4.2 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.2.4.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.2.2.5 |
| 01-Aug-2002 |
nathanw | Catch up to -current.
|
1.2.2.4 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.2.2.3 |
| 08-Jan-2002 |
nathanw | Catch up to -current.
|
1.2.2.2 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.2.2.1 |
| 18-Jun-2001 |
nathanw | file stvar.h was added on branch nathanw_sa on 2001-06-21 20:06:07 +0000
|
1.5.4.1 |
| 29-Aug-2002 |
gehenna | catch up with -current.
|
1.6.8.1 |
| 11-Sep-2004 |
he | Pull up revision 1.9 (via patch, requested by bouyer in ticket #837): Improve handling of memory shortage, to fix problems like: sd3(mpt0:0:1:0): unable to allocate scsipi_xfer sd3: not queued, error 12 The theory is that other consumers of pool memory is causing this memory shortage in certain somewhat hard to reproduce situations. This is done by giving scsipi_command an extra argument to optionally pass a preallocated scsipi_xfer, and allocating a scsipi_xfer before dequeueing a buffer in the various *start() functions. If the allocation of a scsipi_xfer fails, schedule a callout for delayed invocation of the start function. Also reserve one page for scsipi_xfer structs, to ensure that we will eventually have some available once pending commands complete. Should fix PR#25670.
|
1.6.6.5 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.6.6.4 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.6.6.3 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.6.6.2 |
| 03-Sep-2004 |
skrll | Sync with HEAD
|
1.6.6.1 |
| 25-Aug-2004 |
skrll | Sync with HEAD.
|
1.9.4.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.13.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.16.12.1 |
| 24-May-2006 |
tron | Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
|
1.16.10.1 |
| 19-Apr-2006 |
elad | sync with head.
|
1.16.8.1 |
| 24-May-2006 |
yamt | sync with head.
|
1.16.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.16.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.17.62.4 |
| 11-Mar-2010 |
yamt | sync with head
|
1.17.62.3 |
| 19-Aug-2009 |
yamt | sync with head.
|
1.17.62.2 |
| 16-May-2009 |
yamt | sync with head
|
1.17.62.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.17.60.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.17.58.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.18.14.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.21.12.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.22.2.4 |
| 06-Mar-2012 |
mrg | sync to -current
|
1.22.2.3 |
| 06-Mar-2012 |
mrg | sync to -current
|
1.22.2.2 |
| 04-Mar-2012 |
mrg | sync to latest -current.
|
1.22.2.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.23.2.1 |
| 02-Mar-2012 |
riz | Pull up following revision(s) (requested by mbalmer in ticket #64): sys/dev/scsipi/stvar.h: revision 1.24 sys/dev/scsipi/st_scsi.c: revision 1.34 sys/dev/scsipi/st_atapi.c: revision 1.28 sys/dev/scsipi/st.c: revision 1.220 Convert st(4) to device_t, while here clean up the code and use uintXX_t instead of u_intXX_t.
|
1.24.16.1 |
| 06-Jun-2015 |
skrll | Sync with HEAD
|
1.24.2.1 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.25.16.1 |
| 30-Mar-2018 |
pgoyette | Resolve conflicts between branch and HEAD
|
1.25.10.1 |
| 08-Apr-2018 |
snj | Pull up following revision(s) (requested by mlelstv in ticket #703): sys/dev/scsipi/st.c: 1.234 sys/dev/scsipi/stvar.h: 1.26 Use separate lock to protect internal state and release locks when calling biodone.
|