The NetBSD Project

CVS log for src/sys/dev/scsipi/st.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / scsipi

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.243 / (download) - annotate - [select for diffs], Wed Feb 23 21:54:41 2022 UTC (2 years, 1 month ago) by andvar
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.242: +3 -3 lines
Diff to previous 1.242 (colored) to selected 1.87 (colored)

fix various typos in comments, mainly immediatly/immediately/,
as well shared and recently fixed typos in OpenBSD code by Jonathan Grey.

Revision 1.242 / (download) - annotate - [select for diffs], Sun Dec 5 02:21:08 2021 UTC (2 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.241: +3 -3 lines
Diff to previous 1.241 (colored) to selected 1.87 (colored)

availabe -> available in comment.

Revision 1.240.12.1 / (download) - annotate - [select for diffs], Thu Jun 17 04:46:30 2021 UTC (2 years, 9 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.240: +21 -15 lines
Diff to previous 1.240 (colored) next main 1.241 (colored) to selected 1.87 (colored)

Sync w/ HEAD.

Revision 1.241 / (download) - annotate - [select for diffs], Sun Jun 13 10:07:56 2021 UTC (2 years, 9 months ago) by mlelstv
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Changes since 1.240: +21 -15 lines
Diff to previous 1.240 (colored) to selected 1.87 (colored)

Restore EOM handling.

Revision 1.234.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:48 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.234.2.2: +1 -4 lines
Diff to previous 1.234.2.2 (colored) to branchpoint 1.234 (colored) next main 1.235 (colored) to selected 1.87 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.234.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:12 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.234.2.1: +3 -3 lines
Diff to previous 1.234.2.1 (colored) to branchpoint 1.234 (colored) to selected 1.87 (colored)

Merge changes from current as of 20200406

Revision 1.240 / (download) - annotate - [select for diffs], Fri Dec 27 09:41:51 2019 UTC (4 years, 3 months ago) by msaitoh
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-i2c-spi-conf
Changes since 1.239: +3 -3 lines
Diff to previous 1.239 (colored) to selected 1.87 (colored)

s/transfered/transferred/

Revision 1.239 / (download) - annotate - [select for diffs], Sun Nov 10 21:16:37 2019 UTC (4 years, 4 months ago) by chs
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.238: +3 -6 lines
Diff to previous 1.238 (colored) to selected 1.87 (colored)

in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.

Revision 1.230.8.4 / (download) - annotate - [select for diffs], Mon Nov 4 14:22:13 2019 UTC (4 years, 4 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE
Changes since 1.230.8.3: +52 -4 lines
Diff to previous 1.230.8.3 (colored) to branchpoint 1.230 (colored) next main 1.231 (colored) to selected 1.87 (colored)

Pull up following revision(s) (requested by jnemeth in ticket #1421):

	sys/dev/scsipi/st.c: revision 1.238

Add simple position recovery when positioning to EOM by reading
the position with READ_POSITION.
this allows for

        mt eom
        mt st

to return the correct file position.

Revision 1.234.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:32 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.234: +131 -17 lines
Diff to previous 1.234 (colored) to selected 1.87 (colored)

Sync with HEAD

Revision 1.238 / (download) - annotate - [select for diffs], Sun May 19 19:06:53 2019 UTC (4 years, 10 months ago) by kardel
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9
Changes since 1.237: +52 -4 lines
Diff to previous 1.237 (colored) to selected 1.87 (colored)

Add simple position recovery when positioning to EOM by reading
the position with READ_POSITION.
this allows for
	mt eom
	mt st
to return the correct file position.

Revision 1.226.6.1 / (download) - annotate - [select for diffs], Thu Mar 7 16:51:50 2019 UTC (5 years ago) by martin
Branch: netbsd-7-0
Changes since 1.226: +79 -13 lines
Diff to previous 1.226 (colored) next main 1.227 (colored) to selected 1.87 (colored)

Pull up following revision(s) (requested by kardel in ticket #1682):

	sys/dev/scsipi/st.c: revision 1.236 (patch)
	sys/dev/scsipi/st.c: revision 1.237
	sys/dev/scsipi/files.scsipi: revision 1.42

Fix PR kern/53949:
Fix inconsistent/incomplete file mark handling to conform again
to mtio(4) at close(2) time. This was necessary as the PREVENT/ALLOW
bracket was reduced from a whole mount session to cover only the
open(2)/close(2) time on ~2002-03-22. The rationale was to allow
robots and humans to change the media during a mount session.

Unfortunately this lead to file marks being written to potentially other
media at the beginning on drives that used the two file marks as EOM
pattern. In order for that to happen the media had to be removed after
data and at most one file mark had been written before removal.

The mount error message has been clarified and a warning about
potential data/file mark lossage on UNIT ATTENTION
during an active mount session with unfinished file marks has been
added.

While there, fix, but disable the commented SUN compatibility to write
final file marks by opening and immediately closing the device
in O_WRONLY mode. That code has not been working since around 1998.

It can now be enabled with options ST_SUNCOMPAT.

Additionally debug output coverage has been extended.

Correct printing type of b_blkno (int64_t) in st.c

Fixes build with kUBSan on NetBSD/i386.

Fix, but disable the commented SUN compatibility in st.c to write
final file marks by opening and immediately closing the device
in O_WRONLY mode. That code has not been working since around 1998.
It can now be enabled with options ST_SUNCOMPAT.

Revision 1.226.10.1 / (download) - annotate - [select for diffs], Thu Mar 7 16:50:58 2019 UTC (5 years ago) by martin
Branch: netbsd-7-1
Changes since 1.226: +79 -13 lines
Diff to previous 1.226 (colored) next main 1.227 (colored) to selected 1.87 (colored)

Pull up following revision(s) (requested by kardel in ticket #1682):

	sys/dev/scsipi/st.c: revision 1.236 (patch)
	sys/dev/scsipi/st.c: revision 1.237
	sys/dev/scsipi/files.scsipi: revision 1.42

Fix PR kern/53949:
Fix inconsistent/incomplete file mark handling to conform again
to mtio(4) at close(2) time. This was necessary as the PREVENT/ALLOW
bracket was reduced from a whole mount session to cover only the
open(2)/close(2) time on ~2002-03-22. The rationale was to allow
robots and humans to change the media during a mount session.

Unfortunately this lead to file marks being written to potentially other
media at the beginning on drives that used the two file marks as EOM
pattern. In order for that to happen the media had to be removed after
data and at most one file mark had been written before removal.

The mount error message has been clarified and a warning about
potential data/file mark lossage on UNIT ATTENTION
during an active mount session with unfinished file marks has been
added.

While there, fix, but disable the commented SUN compatibility to write
final file marks by opening and immediately closing the device
in O_WRONLY mode. That code has not been working since around 1998.

It can now be enabled with options ST_SUNCOMPAT.

Additionally debug output coverage has been extended.

Correct printing type of b_blkno (int64_t) in st.c

Fixes build with kUBSan on NetBSD/i386.

Fix, but disable the commented SUN compatibility in st.c to write
final file marks by opening and immediately closing the device
in O_WRONLY mode. That code has not been working since around 1998.
It can now be enabled with options ST_SUNCOMPAT.

Revision 1.226.2.1 / (download) - annotate - [select for diffs], Thu Mar 7 16:49:10 2019 UTC (5 years ago) by martin
Branch: netbsd-7
Changes since 1.226: +79 -13 lines
Diff to previous 1.226 (colored) next main 1.227 (colored) to selected 1.87 (colored)

Pull up following revision(s) (requested by kardel in ticket #1682):

	sys/dev/scsipi/st.c: revision 1.236 (patch)
	sys/dev/scsipi/st.c: revision 1.237
	sys/dev/scsipi/files.scsipi: revision 1.42

Fix PR kern/53949:
Fix inconsistent/incomplete file mark handling to conform again
to mtio(4) at close(2) time. This was necessary as the PREVENT/ALLOW
bracket was reduced from a whole mount session to cover only the
open(2)/close(2) time on ~2002-03-22. The rationale was to allow
robots and humans to change the media during a mount session.

Unfortunately this lead to file marks being written to potentially other
media at the beginning on drives that used the two file marks as EOM
pattern. In order for that to happen the media had to be removed after
data and at most one file mark had been written before removal.

The mount error message has been clarified and a warning about
potential data/file mark lossage on UNIT ATTENTION
during an active mount session with unfinished file marks has been
added.

While there, fix, but disable the commented SUN compatibility to write
final file marks by opening and immediately closing the device
in O_WRONLY mode. That code has not been working since around 1998.

It can now be enabled with options ST_SUNCOMPAT.

Additionally debug output coverage has been extended.

Correct printing type of b_blkno (int64_t) in st.c

Fixes build with kUBSan on NetBSD/i386.

Fix, but disable the commented SUN compatibility in st.c to write
final file marks by opening and immediately closing the device
in O_WRONLY mode. That code has not been working since around 1998.
It can now be enabled with options ST_SUNCOMPAT.

Revision 1.230.8.3 / (download) - annotate - [select for diffs], Fri Mar 1 17:29:32 2019 UTC (5 years ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.230.8.2: +79 -15 lines
Diff to previous 1.230.8.2 (colored) to branchpoint 1.230 (colored) to selected 1.87 (colored)

Pull up following revision(s) (requested by kardel in ticket #1197):

	sys/dev/scsipi/st.c: revision 1.236
	sys/dev/scsipi/st.c: revision 1.237
	sys/dev/scsipi/files.scsipi: revision 1.42

Fix PR kern/53949:

Fix inconsistent/incomplete file mark handling to conform again
to mtio(4) at close(2) time. This was necessary as the PREVENT/ALLOW
bracket was reduced from a whole mount session to cover only the
open(2)/close(2) time on ~2002-03-22. The rationale was to allow
robots and humans to change the media during a mount session.

Unfortunately this lead to file marks being written to potentially other
media at the beginning on drives that used the two file marks as EOM
pattern. In order for that to happen the media had to be removed after
data and at most one file mark had been written before removal.

The mount error message has been clarified and a warning about
potential data/file mark lossage on UNIT ATTENTION
during an active mount session with unfinished file marks has been
added.

While there, fix, but disable the commented SUN compatibility to write
final file marks by opening and immediately closing the device
in O_WRONLY mode. That code has not been working since around 1998.
It can now be enabled with options ST_SUNCOMPAT.
Additionally debug output coverage has been extended.

 -

Correct printing type of b_blkno (int64_t) in st.c

Fixes build with kUBSan on NetBSD/i386.
  Fix, but disable the commented SUN compatibility in st.c to write
  final file marks by opening and immediately closing the device
  in O_WRONLY mode. That code has not been working since around 1998.
  It can now be enabled with options ST_SUNCOMPAT.

Revision 1.237 / (download) - annotate - [select for diffs], Sat Feb 23 11:57:41 2019 UTC (5 years, 1 month ago) by kamil
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.236: +3 -3 lines
Diff to previous 1.236 (colored) to selected 1.87 (colored)

Correct printing type of b_blkno (int64_t) in st.c

Fixes build with kUBSan on NetBSD/i386.

Revision 1.236 / (download) - annotate - [select for diffs], Tue Feb 12 13:43:40 2019 UTC (5 years, 1 month ago) by kardel
Branch: MAIN
Changes since 1.235: +79 -15 lines
Diff to previous 1.235 (colored) to selected 1.87 (colored)

Fix PR kern/53949:

Fix inconsistent/incomplete file mark handling to conform again
to mtio(4) at close(2) time. This was necessary as the PREVENT/ALLOW
bracket was reduced from a whole mount session to cover only the
open(2)/close(2) time on ~2002-03-22. The rationale was to allow
robots and humans to change the media during a mount session.

Unfortunately this lead to file marks being written to potentially other
media at the beginning on drives that used the two file marks as EOM
pattern. In order for that to happen the media had to be removed after
data and at most one file mark had been written before removal.

The mount error message has been clarified and a warning about
potential data/file mark lossage on UNIT ATTENTION
during an active mount session with unfinished file marks has been
added.

While there, fix, but disable the commented SUN compatibility to write
final file marks by opening and immediately closing the device
in O_WRONLY mode. That code has not been working since around 1998.
It can now be enabled with options ST_SUNCOMPAT.

Additionally debug output coverage has been extended.

Revision 1.235 / (download) - annotate - [select for diffs], Sun Feb 3 03:19:28 2019 UTC (5 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.234: +4 -2 lines
Diff to previous 1.234 (colored) to selected 1.87 (colored)

- add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
  this case, and thus can't be marked __dead easily

Revision 1.230.8.2 / (download) - annotate - [select for diffs], Sun Apr 8 06:11:41 2018 UTC (5 years, 11 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.230.8.1: +176 -134 lines
Diff to previous 1.230.8.1 (colored) to branchpoint 1.230 (colored) to selected 1.87 (colored)

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.

Revision 1.231.4.1 / (download) - annotate - [select for diffs], Fri Mar 30 06:20:15 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.231: +176 -134 lines
Diff to previous 1.231 (colored) next main 1.232 (colored) to selected 1.87 (colored)

Resolve conflicts between branch and HEAD

Revision 1.234 / (download) - annotate - [select for diffs], Sat Mar 24 08:08:19 2018 UTC (6 years ago) by mlelstv
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi
Changes since 1.233: +176 -134 lines
Diff to previous 1.233 (colored) to selected 1.87 (colored)

Use separate lock to protect internal state and release locks when
calling biodone.

Revision 1.233 / (download) - annotate - [select for diffs], Sat Mar 24 01:45:22 2018 UTC (6 years ago) by kamil
Branch: MAIN
Changes since 1.232: +132 -174 lines
Diff to previous 1.232 (colored) to selected 1.87 (colored)

Revert previous commit in st.c in order to unbreak build

There are various build errors like:
/usr/src/sys/dev/scsipi/st.c: In function 'stattach':
/usr/src/sys/dev/scsipi/st.c:398:16: error: 'struct st_softc'
has no member named 'buf_defer'; did you mean 'buf_queue'?
  bufq_alloc(&st->buf_defer, "fcfs", 0);

Original (reverted) commit:
  Use separate lock to protect internal state and release locks when
  calling biodone.

Revision 1.232 / (download) - annotate - [select for diffs], Fri Mar 23 06:01:07 2018 UTC (6 years ago) by mlelstv
Branch: MAIN
Changes since 1.231: +176 -134 lines
Diff to previous 1.231 (colored) to selected 1.87 (colored)

Use separate lock to protect internal state and release locks when
calling biodone.

Revision 1.221.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:32 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.221.2.1: +34 -26 lines
Diff to previous 1.221.2.1 (colored) to branchpoint 1.221 (colored) next main 1.222 (colored) to selected 1.87 (colored)

update from HEAD

Revision 1.226.4.4 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:27 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.226.4.3: +3 -3 lines
Diff to previous 1.226.4.3 (colored) to branchpoint 1.226 (colored) next main 1.227 (colored) to selected 1.87 (colored)

Sync with HEAD

Revision 1.230.8.1 / (download) - annotate - [select for diffs], Wed Jun 21 18:18:55 2017 UTC (6 years, 9 months ago) by snj
Branch: netbsd-8
CVS Tags: matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.230: +3 -3 lines
Diff to previous 1.230 (colored) to selected 1.87 (colored)

Pull up following revision(s) (requested by mlelstv in ticket #53):
	sys/dev/scsipi/atapiconf.c: revision 1.91
	sys/dev/scsipi/cd.c: revision 1.341
	sys/dev/scsipi/scsi_base.c: revision 1.92
	sys/dev/scsipi/scsiconf.c: revision 1.280
	sys/dev/scsipi/scsipi_base.c: revisions 1.176, 1.177
	sys/dev/scsipi/sd.c: revision 1.325
	sys/dev/scsipi/ss.c: revision 1.89
	sys/dev/scsipi/st.c: revision 1.231
The atapibus detach path did hold the channel mutex while calling into autoconf,
which would trigger a panic when unplugging a USB ATAPI CDROM.
Align detach code for scsibus and atapibus to fix this.
Also avoid races when detaching devices by replacing callout_stop with
callout_halt.
--
pass config_detach error to caller.

Revision 1.231 / (download) - annotate - [select for diffs], Sat Jun 17 22:35:50 2017 UTC (6 years, 9 months ago) by mlelstv
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825
Branch point for: pgoyette-compat
Changes since 1.230: +3 -3 lines
Diff to previous 1.230 (colored) to selected 1.87 (colored)

The atapibus detach path did hold the channel mutex while calling into autoconf,
which would trigger a panic when unplugging a USB ATAPI CDROM.

Align detach code for scsibus and atapibus to fix this.

Also avoid races when detaching devices by replacing callout_stop with
callout_halt.

Revision 1.228.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:41 2017 UTC (7 years, 2 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.228: +25 -19 lines
Diff to previous 1.228 (colored) next main 1.229 (colored) to selected 1.87 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.226.4.3 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:17 2016 UTC (7 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.226.4.2: +25 -19 lines
Diff to previous 1.226.4.2 (colored) to branchpoint 1.226 (colored) to selected 1.87 (colored)

Sync with HEAD

Revision 1.230 / (download) - annotate - [select for diffs], Sun Nov 20 15:37:19 2016 UTC (7 years, 4 months ago) by mlelstv
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, nick-nhusb-base-20170204, nick-nhusb-base-20161204, netbsd-8-base, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.229: +23 -17 lines
Diff to previous 1.229 (colored) to selected 1.87 (colored)

Make scsipi framework MPSAFE.

Data structures are now protected by a per-adapter mutex at IPL_BIO
that is created by the scsibus or atapibus instance when the adapter
is configured.
The enable reference counter and the channel freeze counter which are
currently used by HBA code before the adapter is configured, are made
atomic.
The target drivers are now all tagged as D_MPSAFE.

Almost all HBA drivers still require the kernel lock to present,
so all callbacks into HBA code are still protected by kernel lock
unless the driver is tagged as SCSIPI_ADAPT_MPSAFE.

TODO: refactor sd and cd to use dksubr.

Revision 1.229 / (download) - annotate - [select for diffs], Sun Nov 20 02:38:24 2016 UTC (7 years, 4 months ago) by pgoyette
Branch: MAIN
Changes since 1.228: +4 -4 lines
Diff to previous 1.228 (colored) to selected 1.87 (colored)

Avoid calling bufq_free() from critical code sections.

Revision 1.226.4.2 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:56 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.226.4.1: +10 -10 lines
Diff to previous 1.226.4.1 (colored) to branchpoint 1.226 (colored) to selected 1.87 (colored)

Sync with HEAD

Revision 1.228 / (download) - annotate - [select for diffs], Thu Jul 14 04:00:46 2016 UTC (7 years, 8 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.227: +10 -10 lines
Diff to previous 1.227 (colored) to selected 1.87 (colored)

- Use aprint*() instead of printf() in xxx_attach().
- Add missing aprint_naive("\n");
- KNF

Revision 1.226.4.1 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:00 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.226: +4 -2 lines
Diff to previous 1.226 (colored) to selected 1.87 (colored)

Sync with HEAD

Revision 1.227 / (download) - annotate - [select for diffs], Mon Aug 24 23:13:15 2015 UTC (8 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921
Changes since 1.226: +4 -2 lines
Diff to previous 1.226 (colored) to selected 1.87 (colored)

would you like some freshly ground _KERNEL_OPT with that?
yes?  excellent choice, sir/madam.

Revision 1.221.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:50 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.221: +24 -7 lines
Diff to previous 1.221 (colored) to selected 1.87 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.226 / (download) - annotate - [select for diffs], Sun Aug 10 16:44:36 2014 UTC (9 years, 7 months ago) by tls
Branch: MAIN
CVS Tags: tls-maxphys-base, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE
Branch point for: nick-nhusb, netbsd-7-1, netbsd-7-0, netbsd-7
Changes since 1.225: +3 -3 lines
Diff to previous 1.225 (colored) to selected 1.87 (colored)

Merge tls-earlyentropy branch into HEAD.

Revision 1.223.2.2 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:58 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.223.2.1: +4 -2 lines
Diff to previous 1.223.2.1 (colored) to branchpoint 1.223 (colored) next main 1.224 (colored) to selected 1.87 (colored)

Rebase.

Revision 1.225 / (download) - annotate - [select for diffs], Fri Jul 25 08:10:39 2014 UTC (9 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: tls-earlyentropy-base
Changes since 1.224: +3 -2 lines
Diff to previous 1.224 (colored) to selected 1.87 (colored)

Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.

Revision 1.224 / (download) - annotate - [select for diffs], Fri Jul 25 08:02:20 2014 UTC (9 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.223: +3 -2 lines
Diff to previous 1.223 (colored) to selected 1.87 (colored)

Add d_discard to all struct bdevsw instances I could find.

I've set them all to nodiscard. Some of them (wd, dk, vnd, ld,
raidframe, maybe cgd) should be implemented for real.

Revision 1.217.8.3 / (download) - annotate - [select for diffs], Thu May 22 11:40:35 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.217.8.2: +21 -6 lines
Diff to previous 1.217.8.2 (colored) to branchpoint 1.217 (colored) next main 1.218 (colored) to selected 1.87 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.221.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:46 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.221: +21 -6 lines
Diff to previous 1.221 (colored) next main 1.222 (colored) to selected 1.87 (colored)

sync with head

Revision 1.223.2.1 / (download) - annotate - [select for diffs], Mon Apr 7 03:37:33 2014 UTC (9 years, 11 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.223: +3 -3 lines
Diff to previous 1.223 (colored) to selected 1.87 (colored)

Be a little more clear and consistent about harvesting entropy from devices:

1) deprecate RND_FLAG_NO_ESTIMATE

2) define RND_FLAG_COLLECT_TIME, RND_FLAG_COLLECT_VALUE

3) define RND_FLAG_ESTIMATE_TIME, RND_FLAG_ESTIMATE_VALUE

4) define RND_FLAG_DEFAULT: RND_FLAG_COLLECT_TIME|
   RND_FLAG_COLLECT_VALUE|RND_FLAG_ESTIMATE_TIME

5) Make entropy harvesting from environmental sensors a little more generic
   and remove it from individual sensor drivers.

6) Remove individual open-coded delta-estimators for values from a few
   places in the tree (uvm, environmental drivers).

7) 0 -> RND_FLAG_DEFAULT, actually gather entropy from various drivers
   that had stubbed out code, other minor cleanups.

Revision 1.223 / (download) - annotate - [select for diffs], Sun Mar 16 05:20:29 2014 UTC (10 years ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.222: +20 -5 lines
Diff to previous 1.222 (colored) to selected 1.87 (colored)

Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.

Revision 1.222 / (download) - annotate - [select for diffs], Fri Oct 25 16:06:44 2013 UTC (10 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.221: +3 -3 lines
Diff to previous 1.221 (colored) to selected 1.87 (colored)

Mark a diagnostic-only variable

Revision 1.217.8.2 / (download) - annotate - [select for diffs], Wed May 23 10:08:05 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.217.8.1: +6 -4 lines
Diff to previous 1.217.8.1 (colored) to branchpoint 1.217 (colored) to selected 1.87 (colored)

sync with head.

Revision 1.217.12.5 / (download) - annotate - [select for diffs], Sun Apr 29 23:05:00 2012 UTC (11 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.217.12.4: +6 -4 lines
Diff to previous 1.217.12.4 (colored) to branchpoint 1.217 (colored) next main 1.218 (colored) to selected 1.87 (colored)

sync to latest -current.

Revision 1.218.2.2 / (download) - annotate - [select for diffs], Mon Apr 23 16:28:30 2012 UTC (11 years, 11 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.218.2.1: +6 -4 lines
Diff to previous 1.218.2.1 (colored) to branchpoint 1.218 (colored) next main 1.219 (colored) to selected 1.87 (colored)

Pull up following revision(s) (requested by bouyer in ticket #192):
	sys/dev/scsipi/cd.c: revision 1.307
	sys/dev/scsipi/scsiconf.c: revision 1.266
	sys/dev/scsipi/sd.c: revision 1.298
	sys/dev/scsipi/st_scsi.c: revision 1.35
	sys/dev/scsipi/atapiconf.c: revision 1.85
	sys/dev/scsipi/scsipiconf.h: revision 1.120
	sys/dev/usb/umass_scsipi.c: revision 1.44
	sys/dev/scsipi/scsiconf.h: revision 1.57
	sys/dev/scsipi/st_atapi.c: revision 1.29
	sys/dev/scsipi/scsipi_base.c: revision 1.158
	sys/dev/scsipi/st.c: revision 1.221
	sys/dev/scsipi/scsipi_ioctl.c: revision 1.67
Expand struct scsipi_bustype {} in a ABI-backward-compatible way to
pass more informations about the bus:
- bustype_type has 2 different bytes, one holding the existing
  SCSIPI_BUSTYPE_* (scsi, atapi, ata), and one for a per-SCSIPI_BUSTYPE_*
  subtype. Introduce macros to build or extract bustype_type.
- for SCSIPI_BUSTYPE_SCSI, define subtypes for parallel SCSI, Fibre Channel,
  SAS and USB, to specify the transport method. SCSIPI_BUSTYPE_SCSI_PSCSI
  is 0 so that bustype_type value doesn't change for existing code
- for non-SCSIPI_BUSTYPE_SCSI busses there's no defined subtype yet,
  so the bustype_type value doesn't change.
- provide scsi_fc_bustype, scsi_sas_bustype and scsi_usb_bustype
  along with scsi_bustype to be used by bus driver where appropriate
- scsipi_print_xfer_mode(): more existing code under a
  (SCSIPI_BUSTYPE_SCSI, SCSIPI_BUSTYPE_SCSI_PSCSI) case, as
  sync/wide parameters only make sense for parallel SCSI.
  For (SCSIPI_BUSTYPE_SCSI, SCSIPI_BUSTYPE_SCSI_FC) and
  (SCSIPI_BUSTYPE_SCSI, SCSIPI_BUSTYPE_SCSI_SAS), only print
  tagged queing status if enabled. Just be silent for other
  bustypes.
This change is prompted by this problem:
right now, FC (e.g. isp(4)) and SAS (e.g. mfi(4)) don't
  do anything for ADAPTER_REQ_SET_XFER_MODE, and especially never
  call scsipi_async_event(ASYNC_EVENT_XFER_MODE), so sd(4) always
  runs untagged. Doing a scsipi_async_event(ASYNC_EVENT_XFER_MODE) with
  appropriate parameters is enough to enable tagged queuing,
  but then scsipi will print:
  sd0: async, 8-bit transfers, tagged queueing
  which is harmless (async, 8-bit transfers doens't make sense on SAS anyway)
  but will confuse users. With this change scsipi will only print:
  sd0: tagged queueing
  which is correct.
In the long run, knowning the underlying transport in scsipi will
allow better handling of device which are not parallel SCSI.
Another change adding an extra callback to struct scsipi_bustype {}
will come (so that scsipi_print_xfer_mode(), which is SCSI-specific,
can be moved out of scsipi_base, and split into per-subtype callback),
but this will break kernel ABI and so is not suitable for
netbsd-6, so will be commmited later. The above is enough to get
tagged queuing on FC and SAS in netbsd-6.

Revision 1.221 / (download) - annotate - [select for diffs], Thu Apr 19 17:45:20 2012 UTC (11 years, 11 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.220: +6 -4 lines
Diff to previous 1.220 (colored) to selected 1.87 (colored)

Expand struct scsipi_bustype {} in a ABI-backward-compatible way to
pass more informations about the bus:
- bustype_type has 2 different bytes, one holding the existing
  SCSIPI_BUSTYPE_* (scsi, atapi, ata), and one for a per-SCSIPI_BUSTYPE_*
  subtype. Introduce macros to build or extract bustype_type.
- for SCSIPI_BUSTYPE_SCSI, define subtypes for parallel SCSI, Fibre Channel,
  SAS and USB, to specify the transport method. SCSIPI_BUSTYPE_SCSI_PSCSI
  is 0 so that bustype_type value doesn't change for existing code
- for non-SCSIPI_BUSTYPE_SCSI busses there's no defined subtype yet,
  so the bustype_type value doesn't change.
- provide scsi_fc_bustype, scsi_sas_bustype and scsi_usb_bustype
  along with scsi_bustype to be used by bus driver where appropriate
- scsipi_print_xfer_mode(): more existing code under a
  (SCSIPI_BUSTYPE_SCSI, SCSIPI_BUSTYPE_SCSI_PSCSI) case, as
  sync/wide parameters only make sense for parallel SCSI.
  For (SCSIPI_BUSTYPE_SCSI, SCSIPI_BUSTYPE_SCSI_FC) and
  (SCSIPI_BUSTYPE_SCSI, SCSIPI_BUSTYPE_SCSI_SAS), only print
  tagged queing status if enabled. Just be silent for other
  bustypes.

This change is prompted by this problem:
right now, FC (e.g. isp(4)) and SAS (e.g. mfi(4)) don't
  do anything for ADAPTER_REQ_SET_XFER_MODE, and especially never
  call scsipi_async_event(ASYNC_EVENT_XFER_MODE), so sd(4) always
  runs untagged. Doing a scsipi_async_event(ASYNC_EVENT_XFER_MODE) with
  appropriate parameters is enough to enable tagged queuing,
  but then scsipi will print:
  sd0: async, 8-bit transfers, tagged queueing
  which is harmless (async, 8-bit transfers doens't make sense on SAS anyway)
  but will confuse users. With this change scsipi will only print:
  sd0: tagged queueing
  which is correct.

In the long run, knowning the underlying transport in scsipi will
allow better handling of device which are not parallel SCSI.

Another change adding an extra callback to struct scsipi_bustype {}
will come (so that scsipi_print_xfer_mode(), which is SCSI-specific,
can be moved out of scsipi_base, and split into per-subtype callback),
but this will break kernel ABI and so is not suitable for
netbsd-6, so will be commmited later. The above is enough to get
tagged queuing on FC and SAS in netbsd-6.

Revision 1.217.8.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:03 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.217: +166 -261 lines
Diff to previous 1.217 (colored) to selected 1.87 (colored)

sync with head

Revision 1.217.12.4 / (download) - annotate - [select for diffs], Tue Mar 6 18:26:45 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.217.12.3: +165 -254 lines
Diff to previous 1.217.12.3 (colored) to branchpoint 1.217 (colored) to selected 1.87 (colored)

sync to -current

Revision 1.217.12.3 / (download) - annotate - [select for diffs], Tue Mar 6 09:56:21 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.217.12.2: +254 -165 lines
Diff to previous 1.217.12.2 (colored) to branchpoint 1.217 (colored) to selected 1.87 (colored)

sync to -current

Revision 1.217.12.2 / (download) - annotate - [select for diffs], Sun Mar 4 00:46:27 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.217.12.1: +166 -255 lines
Diff to previous 1.217.12.1 (colored) to branchpoint 1.217 (colored) to selected 1.87 (colored)

sync to latest -current.

Revision 1.218.2.1 / (download) - annotate - [select for diffs], Fri Mar 2 16:33:40 2012 UTC (12 years ago) by riz
Branch: netbsd-6
Changes since 1.218: +165 -254 lines
Diff to previous 1.218 (colored) to selected 1.87 (colored)

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.

Revision 1.220 / (download) - annotate - [select for diffs], Tue Feb 28 10:58:10 2012 UTC (12 years, 1 month ago) by mbalmer
Branch: MAIN
CVS Tags: yamt-pagecache-base4, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base4
Changes since 1.219: +163 -252 lines
Diff to previous 1.219 (colored) to selected 1.87 (colored)

Convert st(4) to device_t, while here clean up the code and use uintXX_t
instead of u_intXX_t.

Revision 1.219 / (download) - annotate - [select for diffs], Sat Feb 25 10:15:50 2012 UTC (12 years, 1 month ago) by shattered
Branch: MAIN
CVS Tags: jmcneill-usbmp-base5
Changes since 1.218: +3 -3 lines
Diff to previous 1.218 (colored) to selected 1.87 (colored)

Replace magic value 0x7 with constant MT_ISAR.

OK by wiz@

Revision 1.217.12.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:00 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.217: +2 -8 lines
Diff to previous 1.217 (colored) to selected 1.87 (colored)

merge to -current.

Revision 1.218 / (download) - annotate - [select for diffs], Thu Feb 2 19:43:06 2012 UTC (12 years, 1 month ago) by tls
Branch: MAIN
CVS Tags: netbsd-6-base, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.217: +2 -8 lines
Diff to previous 1.217 (colored) to selected 1.87 (colored)

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.

Revision 1.216.2.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:46:39 2010 UTC (13 years, 7 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.216: +8 -6 lines
Diff to previous 1.216 (colored) next main 1.217 (colored) to selected 1.87 (colored)

Sync with HEAD.

Revision 1.203.4.6 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:11 2010 UTC (13 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.203.4.5: +8 -6 lines
Diff to previous 1.203.4.5 (colored) to branchpoint 1.203 (colored) next main 1.204 (colored) to selected 1.87 (colored)

sync with head.

Revision 1.216.4.1 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:41 2010 UTC (13 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.216: +8 -6 lines
Diff to previous 1.216 (colored) next main 1.217 (colored) to selected 1.87 (colored)

sync with head

Revision 1.217 / (download) - annotate - [select for diffs], Sun May 30 04:38:04 2010 UTC (13 years, 10 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.216: +8 -6 lines
Diff to previous 1.216 (colored) to selected 1.87 (colored)

Extract SCSIVERBOSE into a kernel module.  The module can be builtin
by defining 'options SCSIVERBOSE' in the kernel config file (no change
from current behavior), or it can be loaded at boot time on those
architectures that support the boot loader's "load" command.

The module is built for all architectures, whether or not SCSI or
atapi support exists.

Revision 1.203.4.5 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:03 2010 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.203.4.4: +6 -27 lines
Diff to previous 1.203.4.4 (colored) to branchpoint 1.203 (colored) to selected 1.87 (colored)

sync with head

Revision 1.216 / (download) - annotate - [select for diffs], Sun Dec 6 22:48:17 2009 UTC (14 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.215: +2 -21 lines
Diff to previous 1.215 (colored) to selected 1.87 (colored)

Delete do-nothing device-activation hooks.

Revision 1.215 / (download) - annotate - [select for diffs], Sat Dec 5 22:34:43 2009 UTC (14 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.214: +4 -4 lines
Diff to previous 1.214 (colored) to selected 1.87 (colored)

Convert tsleep(&lbolt) to kpause().  Make ltsleep/mtsleep on lbolt
illegal.  I examined all places where lbolt is referenced to make
sure there were pointer aliases of it passed to tsleep, but put a
KASSERT in m/ltsleep() just to be sure.

Revision 1.214 / (download) - annotate - [select for diffs], Mon Nov 23 02:13:47 2009 UTC (14 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.213: +2 -3 lines
Diff to previous 1.213 (colored) to selected 1.87 (colored)

Remove some unecessary includes sys/user.h header.

Revision 1.213 / (download) - annotate - [select for diffs], Wed Oct 21 21:12:06 2009 UTC (14 years, 5 months ago) by rmind
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.212: +4 -5 lines
Diff to previous 1.212 (colored) to selected 1.87 (colored)

Remove uarea swap-out functionality:

- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code.  Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.

Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).

Discussed on <tech-kern>, reviewed by <ad>.

Revision 1.203.4.4 / (download) - annotate - [select for diffs], Wed Aug 19 18:47:19 2009 UTC (14 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.203.4.3: +64 -2 lines
Diff to previous 1.203.4.3 (colored) to branchpoint 1.203 (colored) to selected 1.87 (colored)

sync with head.

Revision 1.212 / (download) - annotate - [select for diffs], Sat Aug 15 12:44:55 2009 UTC (14 years, 7 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7
Changes since 1.211: +64 -2 lines
Diff to previous 1.211 (colored) to selected 1.87 (colored)

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

Revision 1.203.4.3 / (download) - annotate - [select for diffs], Sat May 16 10:41:44 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.203.4.2: +5 -5 lines
Diff to previous 1.203.4.2 (colored) to branchpoint 1.203 (colored) to selected 1.87 (colored)

sync with head

Revision 1.210.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:23 2009 UTC (14 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.210: +5 -5 lines
Diff to previous 1.210 (colored) next main 1.211 (colored) to selected 1.87 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.211 / (download) - annotate - [select for diffs], Tue May 12 14:44:31 2009 UTC (14 years, 10 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, jymxensuspend-base, jym-xensuspend-base
Changes since 1.210: +5 -5 lines
Diff to previous 1.210 (colored) to selected 1.87 (colored)

struct device * -> device_t, no functional changes intended.

Revision 1.203.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:18 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.203.4.1: +33 -28 lines
Diff to previous 1.203.4.1 (colored) to branchpoint 1.203 (colored) to selected 1.87 (colored)

sync with head.

Revision 1.207.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:03 2009 UTC (15 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.207: +18 -12 lines
Diff to previous 1.207 (colored) next main 1.208 (colored) to selected 1.87 (colored)

Sync with HEAD.

Revision 1.202.18.5 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:08 2009 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.202.18.4: +16 -10 lines
Diff to previous 1.202.18.4 (colored) to branchpoint 1.202 (colored) next main 1.203 (colored) to selected 1.87 (colored)

Sync with HEAD.

Revision 1.210 / (download) - annotate - [select for diffs], Tue Jan 13 13:35:54 2009 UTC (15 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.209: +10 -10 lines
Diff to previous 1.209 (colored) to selected 1.87 (colored)

g/c BUFQ_FOO() macros and use bufq_foo() directly.

Revision 1.209 / (download) - annotate - [select for diffs], Sun Jan 11 10:47:37 2009 UTC (15 years, 2 months ago) by cegger
Branch: MAIN
Changes since 1.208: +3 -3 lines
Diff to previous 1.208 (colored) to selected 1.87 (colored)

make this compile

Revision 1.205.4.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:14:48 2008 UTC (15 years, 3 months ago) by haad
Branch: haad-dm
Changes since 1.205.4.1: +9 -3 lines
Diff to previous 1.205.4.1 (colored) to branchpoint 1.205 (colored) next main 1.206 (colored) to selected 1.87 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.207.4.1 / (download) - annotate - [select for diffs], Thu Nov 20 02:50:27 2008 UTC (15 years, 4 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.207: +9 -3 lines
Diff to previous 1.207 (colored) next main 1.208 (colored) to selected 1.87 (colored)

Pull up following revision(s) (requested by bouyer in ticket #78):
	sys/dev/scsipi/st.c: revision 1.208
If we return an error make sure we don't return a b_resid of 0; or this
will trigger a KASSERT in physio_done(). Fix issue reported by Todd Kover
on tech-kern@

Revision 1.208 / (download) - annotate - [select for diffs], Mon Nov 17 21:19:03 2008 UTC (15 years, 4 months ago) by bouyer
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.207: +9 -3 lines
Diff to previous 1.207 (colored) to selected 1.87 (colored)

If we return an error make sure we don't return a b_resid of 0; or this
will trigger a KASSERT in physio_done(). Fix issue reported by Todd Kover
on tech-kern@

Revision 1.205.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:04 2008 UTC (15 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.205: +10 -9 lines
Diff to previous 1.205 (colored) to selected 1.87 (colored)

Sync with HEAD.

Revision 1.202.18.4 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:31 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.202.18.3: +8 -7 lines
Diff to previous 1.202.18.3 (colored) to branchpoint 1.202 (colored) to selected 1.87 (colored)

Sync with HEAD.

Revision 1.204.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:35:10 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.204.2.1: +10 -9 lines
Diff to previous 1.204.2.1 (colored) to branchpoint 1.204 (colored) next main 1.205 (colored) to selected 1.87 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.207 / (download) - annotate - [select for diffs], Tue Sep 2 08:58:07 2008 UTC (15 years, 6 months ago) by dholland
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.206: +9 -8 lines
Diff to previous 1.206 (colored) to selected 1.87 (colored)

Reword some misleading code.
ok bouyer@

Revision 1.206 / (download) - annotate - [select for diffs], Mon Sep 1 22:00:30 2008 UTC (15 years, 6 months ago) by dholland
Branch: MAIN
Changes since 1.205: +3 -3 lines
Diff to previous 1.205 (colored) to selected 1.87 (colored)

fix typo in comment

Revision 1.202.18.3 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:10 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.202.18.2: +7 -9 lines
Diff to previous 1.202.18.2 (colored) to branchpoint 1.202 (colored) to selected 1.87 (colored)

Sync with HEAD.

Revision 1.204.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:29 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.204: +9 -11 lines
Diff to previous 1.204 (colored) to selected 1.87 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.203.2.2 / (download) - annotate - [select for diffs], Tue Jun 17 09:14:58 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.203.2.1: +9 -11 lines
Diff to previous 1.203.2.1 (colored) to branchpoint 1.203 (colored) next main 1.204 (colored) to selected 1.87 (colored)

sync with head.

Revision 1.205 / (download) - annotate - [select for diffs], Sun Jun 8 18:18:34 2008 UTC (15 years, 9 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl
Branch point for: haad-dm
Changes since 1.204: +9 -11 lines
Diff to previous 1.204 (colored) to selected 1.87 (colored)

Use device_lookup_private() rather than using cd_devs[] directly to get softc.

XXX maybe we should change a type of cd_devs[] in struct cfdriver
    from (void *) to device_t.

Revision 1.202.18.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:51 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.202.18.1: +25 -34 lines
Diff to previous 1.202.18.1 (colored) to branchpoint 1.202 (colored) to selected 1.87 (colored)

Sync with HEAD.

Revision 1.203.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:46 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.203: +2 -9 lines
Diff to previous 1.203 (colored) to selected 1.87 (colored)

sync with head.

Revision 1.203.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:06 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.203: +2 -9 lines
Diff to previous 1.203 (colored) to selected 1.87 (colored)

sync with head.

Revision 1.204 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:58 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.203: +2 -9 lines
Diff to previous 1.203 (colored) to selected 1.87 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.202.18.1 / (download) - annotate - [select for diffs], Sat Apr 5 23:33:22 2008 UTC (15 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.202: +28 -2 lines
Diff to previous 1.202 (colored) to selected 1.87 (colored)

- add "file-system DEVFS" and "pseudo-device devfsctl" to conf/std seeing
  as these are always needed.

- convert many, many drivers over to the New Devfs World Order. For a
  list of device drivers yet to be converted see,
  http://www.netbsd.org/~mjf/devfs-todo.html.

- add a new device_unregister_all(device_t) function to remove all device
  names associated with a device_t, which saves us having to construct
  device names when the driver is detached.

- add a DEV_AUDIO type for devices.

Revision 1.203 / (download) - annotate - [select for diffs], Sat Apr 5 15:47:01 2008 UTC (15 years, 11 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.202: +25 -27 lines
Diff to previous 1.202 (colored) to selected 1.87 (colored)

use aprint_*_dev and device_xname

Revision 1.194.8.1 / (download) - annotate - [select for diffs], Sun Jan 6 05:01:11 2008 UTC (16 years, 2 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.194: +10 -2 lines
Diff to previous 1.194 (colored) next main 1.195 (colored) to selected 1.87 (colored)

Catch up to netbsd-4.0 release.

Revision 1.178.2.3 / (download) - annotate - [select for diffs], Sun Dec 2 23:56:57 2007 UTC (16 years, 3 months ago) by riz
Branch: netbsd-3
Changes since 1.178.2.2: +11 -2 lines
Diff to previous 1.178.2.2 (colored) to branchpoint 1.178 (colored) next main 1.179 (colored) to selected 1.87 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1880):
	sys/dev/scsipi/st.c: revision 1.199-1.201 via patch
Properly set b_resid in an error case.
Clamp b_resid to b_bcount in case the info field is larger. Fix a KASSERT
in physio() when a media error occurs on my SDLT320 drive (maybe this drive
is bogus for not setting the highter bits to 0 in the INFO field in this
case).
When checking for invalid b_resid valyes, also check negative ones.
Should fix kern/36690.
Move check for b_resid value to the right place. Should definitively fix
kern/36690.

Revision 1.194.2.1 / (download) - annotate - [select for diffs], Sun Nov 25 09:34:38 2007 UTC (16 years, 4 months ago) by xtraeme
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-1-RELEASE, netbsd-4-0
Changes since 1.194: +10 -2 lines
Diff to previous 1.194 (colored) next main 1.195 (colored) to selected 1.87 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1002):
	sys/dev/scsipi/st.c: revision 1.199 (patch)
	sys/dev/scsipi/st.c: revision 1.200 (patch)
	sys/dev/scsipi/st.c: revision 1.201 (patch)
Properly set b_resid in an error case.
Clamp b_resid to b_bcount in case the info field is larger. Fix a KASSERT
in physio() when a media error occurs on my SDLT320 drive (maybe this drive
is bogus for not setting the highter bits to 0 in the INFO field in this
case).
When checking for invalid b_resid valyes, also check negative ones.
Should fix kern/36690.
Move check for b_resid value to the right place. Should definitively fix
kern/36690.

Revision 1.198.6.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:30:16 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.198: +15 -3 lines
Diff to previous 1.198 (colored) next main 1.199 (colored) to selected 1.87 (colored)

sync with HEAD

Revision 1.181.2.4 / (download) - annotate - [select for diffs], Sat Oct 27 11:34:17 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.181.2.3: +15 -3 lines
Diff to previous 1.181.2.3 (colored) next main 1.182 (colored) to selected 1.87 (colored)

sync with head.

Revision 1.198.4.3 / (download) - annotate - [select for diffs], Fri Oct 26 15:47:37 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.198.4.2: +7 -3 lines
Diff to previous 1.198.4.2 (colored) to branchpoint 1.198 (colored) next main 1.199 (colored) to selected 1.87 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.198.8.2 / (download) - annotate - [select for diffs], Sun Oct 14 11:48:18 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.198.8.1: +15 -12 lines
Diff to previous 1.198.8.1 (colored) to branchpoint 1.198 (colored) next main 1.199 (colored) to selected 1.87 (colored)

sync with head.

Revision 1.196.2.7 / (download) - annotate - [select for diffs], Fri Oct 12 17:03:13 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.196.2.6: +7 -3 lines
Diff to previous 1.196.2.6 (colored) to branchpoint 1.196 (colored) next main 1.197 (colored) to selected 1.87 (colored)

Sync with head.

Revision 1.202 / (download) - annotate - [select for diffs], Thu Oct 11 16:42:52 2007 UTC (16 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, mjf-devfs, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.201: +7 -3 lines
Diff to previous 1.201 (colored) to selected 1.87 (colored)

PR/37108: Pauly Goyette: Compute the timeout value, before immediate is
changed for atapi tape drives.

Revision 1.196.2.6 / (download) - annotate - [select for diffs], Tue Oct 9 15:22:13 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.196.2.5: +3 -4 lines
Diff to previous 1.196.2.5 (colored) to branchpoint 1.196 (colored) to selected 1.87 (colored)

Sync with head.

Revision 1.196.2.5 / (download) - annotate - [select for diffs], Tue Oct 9 13:42:04 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.196.2.4: +10 -2 lines
Diff to previous 1.196.2.4 (colored) to branchpoint 1.196 (colored) to selected 1.87 (colored)

Sync with head.

Revision 1.198.4.2 / (download) - annotate - [select for diffs], Sun Oct 7 13:25:04 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.198.4.1: +10 -11 lines
Diff to previous 1.198.4.1 (colored) to branchpoint 1.198 (colored) to selected 1.87 (colored)

Sync with HEAD.

Revision 1.198.8.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:31:31 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.198: +12 -3 lines
Diff to previous 1.198 (colored) to selected 1.87 (colored)

sync with head.

Revision 1.201 / (download) - annotate - [select for diffs], Sat Oct 6 12:52:43 2007 UTC (16 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.200: +10 -11 lines
Diff to previous 1.200 (colored) to selected 1.87 (colored)

Move check for b_resid value to the right place. Should definitively fix
kern/36690.

Revision 1.198.4.1 / (download) - annotate - [select for diffs], Tue Oct 2 18:28:39 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.198: +12 -3 lines
Diff to previous 1.198 (colored) to selected 1.87 (colored)

Sync with HEAD.

Revision 1.200 / (download) - annotate - [select for diffs], Mon Oct 1 18:43:30 2007 UTC (16 years, 6 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-x86pmap-base2
Changes since 1.199: +3 -3 lines
Diff to previous 1.199 (colored) to selected 1.87 (colored)

When checking for invalid b_resid valyes, also check negative ones.
Should fix kern/36690.

Revision 1.199 / (download) - annotate - [select for diffs], Sat Sep 29 11:04:51 2007 UTC (16 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.198: +12 -3 lines
Diff to previous 1.198 (colored) to selected 1.87 (colored)

Properly set b_resid in an error case.
Clamp b_resid to b_bcount in case the info field is larger. Fix a KASSERT
in physio() when a media error occurs on my SDLT320 drive (maybe this drive
is bogus for not setting the highter bits to 0 in the INFO field in this
case).

Revision 1.178.2.2 / (download) - annotate - [select for diffs], Mon Sep 17 20:39:43 2007 UTC (16 years, 6 months ago) by msaitoh
Branch: netbsd-3
Changes since 1.178.2.1: +2 -3 lines
Diff to previous 1.178.2.1 (colored) to branchpoint 1.178 (colored) to selected 1.87 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1837):
	sys/dev/scsipi/st.c: revision 1.180
revert the only part of rev. 1.177 which made a functional
change -- it broke error reporting because st->asc(q) are
not set
(actually, I believe that SSD_RCODE_VALID is misnamed)

Revision 1.181.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:38:43 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.181.2.2: +11 -23 lines
Diff to previous 1.181.2.2 (colored) to selected 1.87 (colored)

sync with head.

Revision 1.196.2.4 / (download) - annotate - [select for diffs], Sun Aug 19 19:24:35 2007 UTC (16 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.196.2.3: +28 -13 lines
Diff to previous 1.196.2.3 (colored) to branchpoint 1.196 (colored) to selected 1.87 (colored)

- Back out the biodone() changes.
- Eliminate B_ERROR (from HEAD).

Revision 1.197.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:48:44 2007 UTC (16 years, 7 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.197: +6 -15 lines
Diff to previous 1.197 (colored) next main 1.198 (colored) to selected 1.87 (colored)

Sync with HEAD.

Revision 1.198.10.2 / (download) - annotate - [select for diffs], Sun Jul 29 12:50:24 2007 UTC (16 years, 8 months ago) by ad
Branch: matt-mips64
Changes since 1.198.10.1: +2395 -0 lines
Diff to previous 1.198.10.1 (colored) to branchpoint 1.198 (colored) next main 1.199 (colored) to selected 1.87 (colored)

It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.

Revision 1.198.10.1, Sun Jul 29 12:50:23 2007 UTC (16 years, 8 months ago) by ad
Branch: matt-mips64
Changes since 1.198: +0 -2395 lines
FILE REMOVED

file st.c was added on branch matt-mips64 on 2007-07-29 12:50:24 +0000

Revision 1.198 / (download) - annotate - [select for diffs], Sun Jul 29 12:50:23 2007 UTC (16 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base, nick-csl-alignment-base5, matt-mips64-base, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-mips64, matt-armv6, jmcneill-pm
Changes since 1.197: +6 -15 lines
Diff to previous 1.197 (colored) to selected 1.87 (colored)

It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.

Revision 1.196.2.3 / (download) - annotate - [select for diffs], Sun Jul 15 15:52:48 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.196.2.2: +3 -3 lines
Diff to previous 1.196.2.2 (colored) to branchpoint 1.196 (colored) to selected 1.87 (colored)

Sync with head.

Revision 1.196.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:08:20 2007 UTC (16 years, 8 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.196: +3 -3 lines
Diff to previous 1.196 (colored) next main 1.197 (colored) to selected 1.87 (colored)

Sync with head.

Revision 1.197 / (download) - annotate - [select for diffs], Mon Jul 9 21:01:22 2007 UTC (16 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.196: +3 -3 lines
Diff to previous 1.196 (colored) to selected 1.87 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.196.2.2 / (download) - annotate - [select for diffs], Sun Jul 1 21:49:00 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.196.2.1: +3 -3 lines
Diff to previous 1.196.2.1 (colored) to branchpoint 1.196 (colored) to selected 1.87 (colored)

Adapt to callout API change.

Revision 1.196.2.1 / (download) - annotate - [select for diffs], Sun May 13 17:36:29 2007 UTC (16 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.196: +17 -40 lines
Diff to previous 1.196 (colored) to selected 1.87 (colored)

- Pass the error number and residual count to biodone(), and let it handle
  setting error indicators. Prepare to eliminate B_ERROR.
- Add a flag argument to brelse() to be set into the buf's flags, instead
  of doing it directly. Typically used to set B_INVAL.
- Add a "struct cpu_info *" argument to kthread_create(), to be used to
  create bound threads. Change "bool mpsafe" to "int flags".
- Allow exit of LWPs in the IDL state when (l != curlwp).
- More locking fixes & conversion to the new API.

Revision 1.194.4.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:57:11 2007 UTC (17 years ago) by rmind
Branch: yamt-idlelwp
Changes since 1.194: +6 -9 lines
Diff to previous 1.194 (colored) next main 1.195 (colored) to selected 1.87 (colored)

Sync with HEAD.

Revision 1.196 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:44 2007 UTC (17 years ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.195: +5 -5 lines
Diff to previous 1.195 (colored) to selected 1.87 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.195 / (download) - annotate - [select for diffs], Thu Mar 1 17:31:36 2007 UTC (17 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.194: +3 -6 lines
Diff to previous 1.194 (colored) to selected 1.87 (colored)

TRUE -> true, FALSE -> false

Revision 1.181.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:49:34 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.181.2.1: +5 -5 lines
Diff to previous 1.181.2.1 (colored) to selected 1.87 (colored)

sync with head.

Revision 1.192.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:16 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.192.4.1: +11 -11 lines
Diff to previous 1.192.4.1 (colored) to branchpoint 1.192 (colored) next main 1.193 (colored) to selected 1.87 (colored)

sync with head.

Revision 1.192.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:49 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.192: +4 -3 lines
Diff to previous 1.192 (colored) next main 1.193 (colored) to selected 1.87 (colored)

Sync with head.

Revision 1.194 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:26 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, wrstuden-fixsa, netbsd-4
Changes since 1.193: +11 -11 lines
Diff to previous 1.193 (colored) to selected 1.87 (colored)

__unused removal on arguments; approved by core.

Revision 1.192.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:06:48 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.192: +11 -10 lines
Diff to previous 1.192 (colored) to selected 1.87 (colored)

sync with head

Revision 1.193 / (download) - annotate - [select for diffs], Thu Oct 12 01:31:58 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.192: +11 -10 lines
Diff to previous 1.192 (colored) to selected 1.87 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.186.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:54:26 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.186: +13 -215 lines
Diff to previous 1.186 (colored) next main 1.187 (colored) to selected 1.87 (colored)

sync with head

Revision 1.186.8.4 / (download) - annotate - [select for diffs], Sun Sep 3 15:24:49 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.186.8.3: +3 -4 lines
Diff to previous 1.186.8.3 (colored) to branchpoint 1.186 (colored) next main 1.187 (colored) to selected 1.87 (colored)

sync with head.

Revision 1.192 / (download) - annotate - [select for diffs], Wed Aug 23 17:19:32 2006 UTC (17 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.191: +3 -4 lines
Diff to previous 1.191 (colored) to selected 1.87 (colored)

Change iostat_alloc() to take the parent pointer and the name directly, so
that callers are not responsible for initializing the fields. Store the name
inside the struct instead of maintaining a pointer to external storage, or
leaked memory (nfs case).

Revision 1.186.8.3 / (download) - annotate - [select for diffs], Mon Jun 26 12:52:27 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.186.8.2: +2 -3 lines
Diff to previous 1.186.8.2 (colored) to branchpoint 1.186 (colored) to selected 1.87 (colored)

sync with head.

Revision 1.181.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:06:48 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.181: +32 -20 lines
Diff to previous 1.181 (colored) to selected 1.87 (colored)

sync with head.

Revision 1.190.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:05:48 2006 UTC (17 years, 9 months ago) by chap
Branch: chap-midi
Changes since 1.190: +2 -3 lines
Diff to previous 1.190 (colored) next main 1.191 (colored) to selected 1.87 (colored)

Sync with head.

Revision 1.191 / (download) - annotate - [select for diffs], Wed Jun 7 22:33:37 2006 UTC (17 years, 9 months ago) by kardel
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, yamt-pdpolicy-base6, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.190: +2 -3 lines
Diff to previous 1.190 (colored) to selected 1.87 (colored)

merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
  time.tv_sec -> time_second
- struct timeval mono_time is gone
  mono_time.tv_sec -> time_uptime
- access to time via
	{get,}{micro,nano,bin}time()
	get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
  Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
  NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html

Revision 1.186.12.2 / (download) - annotate - [select for diffs], Wed May 24 15:50:29 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.186.12.1: +11 -211 lines
Diff to previous 1.186.12.1 (colored) to branchpoint 1.186 (colored) next main 1.187 (colored) to selected 1.87 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.186.8.2 / (download) - annotate - [select for diffs], Wed May 24 10:58:24 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.186.8.1: +13 -213 lines
Diff to previous 1.186.8.1 (colored) to branchpoint 1.186 (colored) to selected 1.87 (colored)

sync with head.

Revision 1.186.10.2 / (download) - annotate - [select for diffs], Thu May 11 23:29:59 2006 UTC (17 years, 10 months ago) by elad
Branch: elad-kernelauth
Changes since 1.186.10.1: +3 -3 lines
Diff to previous 1.186.10.1 (colored) to branchpoint 1.186 (colored) next main 1.187 (colored) to selected 1.87 (colored)

sync with head

Revision 1.186.6.2 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:29 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.186.6.1: +13 -205 lines
Diff to previous 1.186.6.1 (colored) to branchpoint 1.186 (colored) next main 1.187 (colored) to selected 1.87 (colored)

Sync with head.

Revision 1.190 / (download) - annotate - [select for diffs], Thu Apr 20 12:13:52 2006 UTC (17 years, 11 months ago) by blymn
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, simonb-timecounters-base, elad-kernelauth-base
Branch point for: chap-midi
Changes since 1.189: +3 -3 lines
Diff to previous 1.189 (colored) to selected 1.87 (colored)

Prefix iostat structure elements with io_

Revision 1.186.10.1 / (download) - annotate - [select for diffs], Wed Apr 19 03:26:20 2006 UTC (17 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.186: +15 -215 lines
Diff to previous 1.186 (colored) to selected 1.87 (colored)

sync with head.

Revision 1.189 / (download) - annotate - [select for diffs], Fri Apr 14 13:09:06 2006 UTC (17 years, 11 months ago) by blymn
Branch: MAIN
Changes since 1.188: +13 -213 lines
Diff to previous 1.188 (colored) to selected 1.87 (colored)

Make i/o statistics collection more generic, include tape drives and
nfs mounts in the set of devices that statistics will be reported on.

Revision 1.186.8.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:28 2006 UTC (18 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.186: +4 -4 lines
Diff to previous 1.186 (colored) to selected 1.87 (colored)

sync with head.

Revision 1.186.12.1 / (download) - annotate - [select for diffs], Fri Mar 31 09:45:25 2006 UTC (18 years ago) by tron
Branch: peter-altq
Changes since 1.186: +4 -4 lines
Diff to previous 1.186 (colored) to selected 1.87 (colored)

Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.

Revision 1.188 / (download) - annotate - [select for diffs], Thu Mar 30 16:09:28 2006 UTC (18 years ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3
Changes since 1.187: +3 -3 lines
Diff to previous 1.187 (colored) to selected 1.87 (colored)

Use device_private().

Revision 1.187 / (download) - annotate - [select for diffs], Tue Mar 28 17:38:34 2006 UTC (18 years ago) by thorpej
Branch: MAIN
Changes since 1.186: +3 -3 lines
Diff to previous 1.186 (colored) to selected 1.87 (colored)

Use device_unit().

Revision 1.186.6.1 / (download) - annotate - [select for diffs], Sat Feb 4 14:03:58 2006 UTC (18 years, 1 month ago) by simonb
Branch: simonb-timecounters
Changes since 1.186: +7 -16 lines
Diff to previous 1.186 (colored) to selected 1.87 (colored)

Adapt for timecounters: mostly use get*time() and use "time_second"
instead of "time.tv_sec".

Revision 1.186 / (download) - annotate - [select for diffs], Sun Dec 11 12:23:51 2005 UTC (18 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.185: +6 -6 lines
Diff to previous 1.185 (colored) to selected 1.87 (colored)

merge ktrace-lwp.

Revision 1.163.2.10 / (download) - annotate - [select for diffs], Thu Nov 10 14:07:47 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.163.2.9: +242 -30 lines
Diff to previous 1.163.2.9 (colored) to branchpoint 1.163 (colored) next main 1.164 (colored) to selected 1.87 (colored)

Sync with HEAD. Here we go again...

Revision 1.185 / (download) - annotate - [select for diffs], Sat Oct 15 17:29:26 2005 UTC (18 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.184: +13 -13 lines
Diff to previous 1.184 (colored) to selected 1.87 (colored)

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

Revision 1.184 / (download) - annotate - [select for diffs], Sat Aug 13 10:50:50 2005 UTC (18 years, 7 months ago) by blymn
Branch: MAIN
Changes since 1.183: +54 -26 lines
Diff to previous 1.183 (colored) to selected 1.87 (colored)

Split out stats attach code ready for shifting
Add sysctl hooks here for the time being.

Revision 1.183 / (download) - annotate - [select for diffs], Sun Aug 7 12:24:30 2005 UTC (18 years, 7 months ago) by blymn
Branch: MAIN
Changes since 1.182: +188 -3 lines
Diff to previous 1.182 (colored) to selected 1.87 (colored)

Gather statistics for tape drives.

Revision 1.182 / (download) - annotate - [select for diffs], Sat Jul 16 05:12:26 2005 UTC (18 years, 8 months ago) by rtr
Branch: MAIN
Changes since 1.181: +3 -3 lines
Diff to previous 1.181 (colored) to selected 1.87 (colored)

change output from "rogue" to "quirks apply" - resolves pr#25387

Revision 1.181 / (download) - annotate - [select for diffs], Sun May 29 22:00:50 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.180: +14 -14 lines
Diff to previous 1.180 (colored) to selected 1.87 (colored)

- Sprinkle const
- Avoid variable shadowing.
- Eliminate some caddr_t abuse.

Revision 1.173.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:17 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.173: +25 -31 lines
Diff to previous 1.173 (colored) next main 1.174 (colored) to selected 1.87 (colored)

sync with -current

Revision 1.180 / (download) - annotate - [select for diffs], Mon Apr 25 17:08:46 2005 UTC (18 years, 11 months ago) by drochner
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.179: +4 -5 lines
Diff to previous 1.179 (colored) to selected 1.87 (colored)

revert the only part of rev. 1.177 which made a functional
change -- it broke error reporting because st->asc(q) are
not set
(actually, I believe that SSD_RCODE_VALID is misnamed)

Revision 1.178.2.1 / (download) - annotate - [select for diffs], Wed Apr 6 11:57:03 2005 UTC (18 years, 11 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.178: +3 -9 lines
Diff to previous 1.178 (colored) to selected 1.87 (colored)

Pull up revision 1.179 (requested by yamt in ticket #112):
introduce a function to drain bufq and use it where appropriate.

Revision 1.163.2.9 / (download) - annotate - [select for diffs], Fri Apr 1 14:30:33 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.163.2.8: +3 -9 lines
Diff to previous 1.163.2.8 (colored) to branchpoint 1.163 (colored) to selected 1.87 (colored)

Sync with HEAD.

Revision 1.179 / (download) - annotate - [select for diffs], Thu Mar 31 11:28:53 2005 UTC (19 years ago) by yamt
Branch: MAIN
Changes since 1.178: +3 -9 lines
Diff to previous 1.178 (colored) to selected 1.87 (colored)

introduce a function to drain bufq and use it where appropriate.

Revision 1.173.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:35:47 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.173: +25 -24 lines
Diff to previous 1.173 (colored) next main 1.174 (colored) to selected 1.87 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.163.2.8 / (download) - annotate - [select for diffs], Fri Mar 4 16:50:36 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.163.2.7: +25 -24 lines
Diff to previous 1.163.2.7 (colored) to branchpoint 1.163 (colored) to selected 1.87 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.178 / (download) - annotate - [select for diffs], Sun Feb 27 00:27:48 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base
Branch point for: netbsd-3
Changes since 1.177: +9 -9 lines
Diff to previous 1.177 (colored) to selected 1.87 (colored)

nuke trailing whitespace

Revision 1.177 / (download) - annotate - [select for diffs], Mon Feb 21 00:29:08 2005 UTC (19 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.176: +18 -17 lines
Diff to previous 1.176 (colored) to selected 1.87 (colored)

Part 1 of a cleanup pass over the SCSI subsystem.  The aim is to name
everything "scsi_*", since we really are talking about the SCSI command
set, ATAPI transport not withstanding.  Improve the names of many structures,
and prepend "SCSI_" onto all SCSI command opcodes.  Place items described
by the SCSI Primary Commands document into scsi_spc.h.

Revision 1.176 / (download) - annotate - [select for diffs], Tue Feb 1 00:19:34 2005 UTC (19 years, 1 month ago) by reinoud
Branch: MAIN
CVS Tags: yamt-km-base2
Changes since 1.175: +27 -27 lines
Diff to previous 1.175 (colored) to selected 1.87 (colored)

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.

Revision 1.175 / (download) - annotate - [select for diffs], Mon Jan 31 23:06:42 2005 UTC (19 years, 1 month ago) by reinoud
Branch: MAIN
Changes since 1.174: +23 -23 lines
Diff to previous 1.174 (colored) to selected 1.87 (colored)

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.

Revision 1.174 / (download) - annotate - [select for diffs], Mon Jan 31 21:13:16 2005 UTC (19 years, 1 month ago) by reinoud
Branch: MAIN
Changes since 1.173: +6 -6 lines
Diff to previous 1.173 (colored) to selected 1.87 (colored)

As part of cleaning up sys/scsipi, replace all u_char by uint8_t and
replace all `short' with int16_t.

Revision 1.163.2.7 / (download) - annotate - [select for diffs], Tue Nov 2 07:52:46 2004 UTC (19 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.163.2.6: +3 -2 lines
Diff to previous 1.163.2.6 (colored) to branchpoint 1.163 (colored) to selected 1.87 (colored)

Sync with HEAD.

Revision 1.173 / (download) - annotate - [select for diffs], Thu Oct 28 07:07:45 2004 UTC (19 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.172: +3 -2 lines
Diff to previous 1.172 (colored) to selected 1.87 (colored)

move buffer queue related stuffs from buf.h to their own header, bufq.h.

Revision 1.163.2.6 / (download) - annotate - [select for diffs], Tue Oct 19 15:57:31 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.163.2.5: +3 -3 lines
Diff to previous 1.163.2.5 (colored) to branchpoint 1.163 (colored) to selected 1.87 (colored)

Sync with HEAD

Revision 1.172 / (download) - annotate - [select for diffs], Sun Sep 26 09:00:37 2004 UTC (19 years, 6 months ago) by dogcow
Branch: MAIN
Changes since 1.171: +3 -3 lines
Diff to previous 1.171 (colored) to selected 1.87 (colored)

Fix debug message output args to match yamt's src/sys/sys/buf.h changes.

Revision 1.163.2.5 / (download) - annotate - [select for diffs], Tue Sep 21 13:33:25 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.163.2.4: +6 -6 lines
Diff to previous 1.163.2.4 (colored) to branchpoint 1.163 (colored) to selected 1.87 (colored)

Fix the sync with head I botched.

Revision 1.163.2.4 / (download) - annotate - [select for diffs], Sat Sep 18 14:51:25 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.163.2.3: +55 -48 lines
Diff to previous 1.163.2.3 (colored) to branchpoint 1.163 (colored) to selected 1.87 (colored)

Sync with HEAD.

Revision 1.171 / (download) - annotate - [select for diffs], Sat Sep 18 00:21:03 2004 UTC (19 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.170: +5 -3 lines
Diff to previous 1.170 (colored) to selected 1.87 (colored)

Minor rearrangement.  Whitespace and #include cleanup.

Revision 1.170 / (download) - annotate - [select for diffs], Sat Sep 18 00:08:16 2004 UTC (19 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.169: +18 -25 lines
Diff to previous 1.169 (colored) to selected 1.87 (colored)

Standardize some variable names and the calling pattern for scsipi_command().
Use void pointer casts.

Revision 1.169 / (download) - annotate - [select for diffs], Fri Sep 17 23:43:17 2004 UTC (19 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.168: +10 -10 lines
Diff to previous 1.168 (colored) to selected 1.87 (colored)

Remove the "xfer" argument to scsipi_command().

Revision 1.168 / (download) - annotate - [select for diffs], Fri Sep 17 23:35:13 2004 UTC (19 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.167: +3 -6 lines
Diff to previous 1.167 (colored) to selected 1.87 (colored)

In places where we've already called scsipi_make_xs(), call scsipi_execute_xs()
directly rather than going through scsipi_command().

Revision 1.167 / (download) - annotate - [select for diffs], Fri Sep 17 23:10:53 2004 UTC (19 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.166: +21 -15 lines
Diff to previous 1.166 (colored) to selected 1.87 (colored)

Do not manipulate xs->bp in "generic" code -- do it only in the psw_done
routine.  As part of this, pass down our pre-parsed error code -- though this
interface will probably change later to accomodate better error handling.

Revision 1.163.4.1 / (download) - annotate - [select for diffs], Sat Sep 11 12:58:36 2004 UTC (19 years, 6 months ago) by he
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.163: +73 -26 lines
Diff to previous 1.163 (colored) next main 1.164 (colored) to selected 1.87 (colored)

Pull up revisions 1.165-1.166 (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.

Revision 1.166 / (download) - annotate - [select for diffs], Thu Sep 9 19:35:33 2004 UTC (19 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.165: +25 -16 lines
Diff to previous 1.165 (colored) to selected 1.87 (colored)

Make the xxstart() functions reentrant again, as some drivers HBA can call
scsipi_done() from their scsipi_request().
For this, add a struct scsipi_xfer * argument to scsipi_command().
If not NULL scsipi_command() will use this to enqueue this xfer, otherwise
it'll try to allocate a new one. This scsipi_xfer has to be allocated
and initialised by scsipi_make_xs() or equivalent.
In xxstart(), allocate a scsipi_xfer using scsipi_make_xs(), and if not NULL,
dequeue the buffer before calling scsipi_command(). This makes sure that
scsipi_command() will not fail, and also makes sure that xxstart() won't
be called again between the BUFQ_PEEK() and BUFQ_GET().

Fix "dequeued wrong buf" panics reported by Juergen Hannken-Illjes in
private mail and Andreas Wrede on current-users@.
Thanks to Jason Thorpe and Chuck Silver for review, and Andreas Wrede for
testing the patch.

Revision 1.163.2.3 / (download) - annotate - [select for diffs], Fri Sep 3 12:45:39 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.163.2.2: +53 -15 lines
Diff to previous 1.163.2.2 (colored) to branchpoint 1.163 (colored) to selected 1.87 (colored)

Sync with HEAD

Revision 1.165 / (download) - annotate - [select for diffs], Fri Aug 27 20:37:29 2004 UTC (19 years, 7 months ago) by bouyer
Branch: MAIN
Changes since 1.164: +53 -15 lines
Diff to previous 1.164 (colored) to selected 1.87 (colored)

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.

Revision 1.163.2.2 / (download) - annotate - [select for diffs], Wed Aug 25 06:58:44 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.163.2.1: +83 -155 lines
Diff to previous 1.163.2.1 (colored) to branchpoint 1.163 (colored) to selected 1.87 (colored)

Sync with HEAD.

Revision 1.164 / (download) - annotate - [select for diffs], Sat Aug 21 22:16:07 2004 UTC (19 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.163: +83 -155 lines
Diff to previous 1.163 (colored) to selected 1.87 (colored)

Use ANSI function decls and make use of static.

Revision 1.163.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:26:19 2003 UTC (20 years, 9 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.163: +9 -9 lines
Diff to previous 1.163 (colored) to selected 1.87 (colored)

Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.163 / (download) - annotate - [select for diffs], Sun Jun 29 22:30:45 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0, ktrace-lwp
Changes since 1.162: +7 -7 lines
Diff to previous 1.162 (colored) to selected 1.87 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.162 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:44 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.161: +9 -9 lines
Diff to previous 1.161 (colored) to selected 1.87 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.161 / (download) - annotate - [select for diffs], Mon Apr 14 16:18:23 2003 UTC (20 years, 11 months ago) by perry
Branch: MAIN
Changes since 1.160: +9 -2 lines
Diff to previous 1.160 (colored) to selected 1.87 (colored)

Add a quirk for the Tandberg SLR/5
Fix supplied by Rex McMaster in PR kern/13603

Revision 1.160 / (download) - annotate - [select for diffs], Thu Mar 20 05:49:22 2003 UTC (21 years ago) by dbj
Branch: MAIN
Changes since 1.159: +3 -3 lines
Diff to previous 1.159 (colored) to selected 1.87 (colored)

use PRId64 to printf bp->b_blkno, which is of type daddr_t

Revision 1.159 / (download) - annotate - [select for diffs], Mon Feb 3 23:51:01 2003 UTC (21 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.158: +3 -3 lines
Diff to previous 1.158 (colored) to selected 1.87 (colored)

Test callout_pending(), not callout_active(), and eliminate now-unnecessary
callout_deactivate() calls.

Revision 1.134.2.10 / (download) - annotate - [select for diffs], Mon Nov 11 22:12:27 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.134.2.9: +1 -1 lines
Diff to previous 1.134.2.9 (colored) to branchpoint 1.134 (colored) next main 1.135 (colored) to selected 1.87 (colored)

Catch up to -current

Revision 1.158 / (download) - annotate - [select for diffs], Wed Oct 23 09:13:51 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.157: +3 -3 lines
Diff to previous 1.157 (colored) to selected 1.87 (colored)

merge kqueue branch into -current

kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe

Revision 1.142.2.6 / (download) - annotate - [select for diffs], Thu Oct 10 18:42:19 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.142.2.5: +21 -8 lines
Diff to previous 1.142.2.5 (colored) next main 1.143 (colored) to selected 1.87 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.134.2.9 / (download) - annotate - [select for diffs], Tue Sep 17 21:21:21 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.134.2.8: +19 -6 lines
Diff to previous 1.134.2.8 (colored) to branchpoint 1.134 (colored) to selected 1.87 (colored)

Catch up to -current.

Revision 1.157 / (download) - annotate - [select for diffs], Fri Sep 6 13:18:43 2002 UTC (21 years, 6 months ago) by gehenna
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base
Changes since 1.156: +21 -8 lines
Diff to previous 1.156 (colored) to selected 1.87 (colored)

Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.

Revision 1.142.2.5 / (download) - annotate - [select for diffs], Fri Sep 6 08:46:28 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.142.2.4: +12 -12 lines
Diff to previous 1.142.2.4 (colored) to selected 1.87 (colored)

sync kqueue branch with HEAD

Revision 1.155.2.2 / (download) - annotate - [select for diffs], Thu Aug 29 05:22:55 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.155.2.1: +12 -12 lines
Diff to previous 1.155.2.1 (colored) to branchpoint 1.155 (colored) next main 1.156 (colored) to selected 1.87 (colored)

catch up with -current.

Revision 1.134.2.8 / (download) - annotate - [select for diffs], Thu Aug 1 02:45:46 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.134.2.7: +12 -12 lines
Diff to previous 1.134.2.7 (colored) to branchpoint 1.134 (colored) to selected 1.87 (colored)

Catch up to -current.

Revision 1.156 / (download) - annotate - [select for diffs], Mon Jul 22 14:59:45 2002 UTC (21 years, 8 months ago) by hannken
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.155: +12 -12 lines
Diff to previous 1.155 (colored) to selected 1.87 (colored)

Convert to new device buffer queue interface.

Revision 1.142.2.4 / (download) - annotate - [select for diffs], Sun Jun 23 17:48:50 2002 UTC (21 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.142.2.3: +168 -44 lines
Diff to previous 1.142.2.3 (colored) to selected 1.87 (colored)

catch up with -current on kqueue branch

Revision 1.134.2.7 / (download) - annotate - [select for diffs], Thu Jun 20 03:46:42 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.134.2.6: +4 -3 lines
Diff to previous 1.134.2.6 (colored) to branchpoint 1.134 (colored) to selected 1.87 (colored)

Catch up to -current.

Revision 1.155.2.1 / (download) - annotate - [select for diffs], Thu May 16 11:40:54 2002 UTC (21 years, 10 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.155: +21 -8 lines
Diff to previous 1.155 (colored) to selected 1.87 (colored)

Add the block/character device switches.
Replace the direct-access to devsw table with calling devsw API.

Revision 1.155 / (download) - annotate - [select for diffs], Sun May 5 15:16:31 2002 UTC (21 years, 10 months ago) by bouyer
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Branch point for: gehenna-devsw
Changes since 1.154: +4 -3 lines
Diff to previous 1.154 (colored) to selected 1.87 (colored)

If periph->periph_callout is already active, don't freeze the periph again:
scispi_periph_timed_thaw() will be called only one time anyway.

Revision 1.154 / (download) - annotate - [select for diffs], Fri May 3 20:41:17 2002 UTC (21 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.153: +1 -6 lines
Diff to previous 1.153 (colored) to selected 1.87 (colored)

Back out previous. It has issues with multiple dumps to one tape using
/dev/nrstx, as pointed out by Matthew Jacob.
My problem is probably related to mt using /dev/nrst0 instead of /dev/enrst0
by default.

Revision 1.153 / (download) - annotate - [select for diffs], Thu May 2 12:36:23 2002 UTC (21 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.152: +8 -3 lines
Diff to previous 1.152 (colored) to selected 1.87 (colored)

If we get a Unit Attention Not Ready To Ready Transition (medium may have
changed) sense, and the periph was not open, then ignore the error.

Revision 1.134.2.6 / (download) - annotate - [select for diffs], Mon Apr 1 07:47:20 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.134.2.5: +166 -43 lines
Diff to previous 1.134.2.5 (colored) to branchpoint 1.134 (colored) to selected 1.87 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.152 / (download) - annotate - [select for diffs], Fri Mar 22 21:39:36 2002 UTC (22 years ago) by mjacob
Branch: MAIN
Changes since 1.151: +7 -2 lines
Diff to previous 1.151 (colored) to selected 1.87 (colored)

kern/16014- if we do an 'mt offline', make sure we've allowed the tape
to be ejected (PR_ALLOW). This got nuked in a previous change.

Revision 1.151 / (download) - annotate - [select for diffs], Fri Mar 22 02:03:30 2002 UTC (22 years ago) by mjacob
Branch: MAIN
Changes since 1.150: +2 -3 lines
Diff to previous 1.150 (colored) to selected 1.87 (colored)

Forced commit so that some more detail on the previous patches can be
inserted into comments. I really think that more testing was required,
but Christos was eager.

+ Add in tape block/file position reporting support.

+ Change the prevent/allow ejection code so that if the device
  is close the tape can be ejected. This allows robots to eject
  the tape even if the tape isn't at BOT.

+ Don't do a null filemark write if we're reading block position. This
  was such an abysmal performance killer that it had to go. Assume
  that the tape will DTRT and tell you what the tape position really is
  including any buffered data. You are depending on the tape to do
  the right thing to report position at all, so the risk factors don't
  increase appreciably here. BTW- we only do this for logical block
  position. For 'hardware' block position, we still flush.

+ Some substantial tweaking in st_interpret_sense. This essentially duplicates
  the FreeBSD driver's exception handling code. This is to try and correctly
  handle EOM cases. I'm not sure that this is now correct with respect to
  the ENABLE EARLY WARNING code- I hadn't gotten around to validating that.
  Add in full 32 bit residuals- this can then be available to an update
  MTIOCGET in the future.

+ Make sure we handle SKEY_VOLUME_OVERFLOW correctly.

Revision 1.150 / (download) - annotate - [select for diffs], Wed Mar 20 14:53:59 2002 UTC (22 years ago) by christos
Branch: MAIN
CVS Tags: eeh-devprop-base, eeh-devprop
Changes since 1.149: +161 -42 lines
Diff to previous 1.149 (colored) to selected 1.87 (colored)

Add the ability to report file number/block number. From Matt Jacob.

Revision 1.134.2.5 / (download) - annotate - [select for diffs], Thu Feb 28 04:14:24 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.134.2.4: +4 -3 lines
Diff to previous 1.134.2.4 (colored) to branchpoint 1.134 (colored) to selected 1.87 (colored)

Catch up to -current.

Revision 1.142.2.3 / (download) - annotate - [select for diffs], Mon Feb 11 20:10:13 2002 UTC (22 years, 1 month ago) by jdolecek
Branch: kqueue
Changes since 1.142.2.2: +4 -3 lines
Diff to previous 1.142.2.2 (colored) to selected 1.87 (colored)

Sync w/ -current.

Revision 1.149 / (download) - annotate - [select for diffs], Sat Jan 12 20:30:11 2002 UTC (22 years, 2 months ago) by bouyer
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base
Changes since 1.148: +4 -3 lines
Diff to previous 1.148 (colored) to selected 1.87 (colored)

For fixed block drive, for invalid sense error code, set info to
xs->datalen / st->blksize instead of xs->datalen; as code assume later
that info is a block number.
Should fix kern/2727.

Revision 1.142.2.2 / (download) - annotate - [select for diffs], Thu Jan 10 19:58:28 2002 UTC (22 years, 2 months ago) by thorpej
Branch: kqueue
Changes since 1.142.2.1: +100 -11 lines
Diff to previous 1.142.2.1 (colored) to selected 1.87 (colored)

Sync kqueue branch with -current.

Revision 1.134.2.4 / (download) - annotate - [select for diffs], Tue Jan 8 00:31:56 2002 UTC (22 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.134.2.3: +98 -12 lines
Diff to previous 1.134.2.3 (colored) to branchpoint 1.134 (colored) to selected 1.87 (colored)

Catch up to -current.

Revision 1.148 / (download) - annotate - [select for diffs], Fri Dec 7 11:26:30 2001 UTC (22 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.147: +72 -2 lines
Diff to previous 1.147 (colored) to selected 1.87 (colored)

add detach support for st.

Revision 1.147 / (download) - annotate - [select for diffs], Sat Dec 1 00:05:04 2001 UTC (22 years, 4 months ago) by bouyer
Branch: MAIN
Changes since 1.146: +2 -4 lines
Diff to previous 1.146 (colored) to selected 1.87 (colored)

Hum, no need to print a message each time we're waiting for the drive.

Revision 1.146 / (download) - annotate - [select for diffs], Sat Dec 1 00:03:45 2001 UTC (22 years, 4 months ago) by bouyer
Branch: MAIN
Changes since 1.145: +30 -11 lines
Diff to previous 1.145 (colored) to selected 1.87 (colored)

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.

Revision 1.145 / (download) - annotate - [select for diffs], Thu Nov 15 09:48:18 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.144: +2 -3 lines
Diff to previous 1.144 (colored) to selected 1.87 (colored)

don't need <sys/types.h> when including <sys/param.h>

Revision 1.134.2.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:05 2001 UTC (22 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.134.2.2: +4 -1 lines
Diff to previous 1.134.2.2 (colored) to branchpoint 1.134 (colored) to selected 1.87 (colored)

Catch up to -current.

Revision 1.144 / (download) - annotate - [select for diffs], Tue Nov 13 06:56:41 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.143: +4 -1 lines
Diff to previous 1.143 (colored) to selected 1.87 (colored)

add RCSIDs

Revision 1.143.2.2 / (download) - annotate - [select for diffs], Wed Sep 26 15:28:18 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.143.2.1: +42 -22 lines
Diff to previous 1.143.2.1 (colored) to branchpoint 1.143 (colored) next main 1.144 (colored) to selected 1.87 (colored)

* add a VCLONED vnode flag that indicates a vnode representing a cloned
  device.
* rename REVOKEALL to REVOKEALIAS, and add a REVOKECLONE flag, to pass
  to VOP_REVOKE
* the revoke system call will revoke all aliases, as before, but not the
  clones
* vdevgone is called when detaching a device, so make it use REVOKECLONE
  to get rid of all clones as well
* clean up all uses of VOP_OPEN wrt. locking.
* add a few VOPS to spec_vnops that need to do something when it's a
  clone vnode (access and getattr)
* add a copy of the vnode vattr structure of the original 'master' vnode
  to the specinfo of a cloned vnode. could possibly redirect getattr to
  the 'master' vnode, but this has issues with revoke
* add a vdev_reassignvp function that disassociates a vnode from its
  original device, and reassociates it with the specified dev_t. to be
  used by cloning devices only, in case a new minor is allocated.
* change all direct references in drivers to v_devcookie and v_rdev
  to vdev_privdata(vp) and vdev_rdev(vp). for diagnostic purposes
  when debugging race conditions that still exist wrt. locking and
  revoking vnodes.
* make the locking state of a vnode consistent when passed to
  d_open and d_close (unlocked). locked would be better, but has
  some deadlock issues

Revision 1.143.2.1 / (download) - annotate - [select for diffs], Fri Sep 7 04:45:32 2001 UTC (22 years, 6 months ago) by thorpej
Branch: thorpej-devvp
Changes since 1.143: +46 -40 lines
Diff to previous 1.143 (colored) to selected 1.87 (colored)

Commit my "devvp" changes to the thorpej-devvp branch.  This
replaces the use of dev_t in most places with a struct vnode *.

This will form the basic infrastructure for real cloning device
support (besides being architecurally cleaner -- it'll be good
to get away from using numbers to represent objects).

Revision 1.134.2.2 / (download) - annotate - [select for diffs], Fri Aug 24 00:10:56 2001 UTC (22 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.134.2.1: +14 -14 lines
Diff to previous 1.134.2.1 (colored) to branchpoint 1.134 (colored) to selected 1.87 (colored)

Catch up with -current.

Revision 1.142.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:13:33 2001 UTC (22 years, 7 months ago) by lukem
Branch: kqueue
Changes since 1.142: +13 -13 lines
Diff to previous 1.142 (colored) to selected 1.87 (colored)

update to -current

Revision 1.143 / (download) - annotate - [select for diffs], Wed Jul 18 18:21:06 2001 UTC (22 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.142: +13 -13 lines
Diff to previous 1.142 (colored) to selected 1.87 (colored)

bzero -> memset

Revision 1.142 / (download) - annotate - [select for diffs], Sun Jul 8 18:06:47 2001 UTC (22 years, 8 months ago) by wiz
Branch: MAIN
Branch point for: kqueue
Changes since 1.141: +2 -2 lines
Diff to previous 1.141 (colored) to selected 1.87 (colored)

Correct various misspellings of 'transfer' and inflected forms.

Revision 1.134.2.1 / (download) - annotate - [select for diffs], Thu Jun 21 20:06:05 2001 UTC (22 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.134: +157 -580 lines
Diff to previous 1.134 (colored) to selected 1.87 (colored)

Catch up to -current.

Revision 1.141 / (download) - annotate - [select for diffs], Mon Jun 18 09:05:05 2001 UTC (22 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.140: +36 -327 lines
Diff to previous 1.140 (colored) to selected 1.87 (colored)

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.

Revision 1.140 / (download) - annotate - [select for diffs], Wed May 30 20:28:17 2001 UTC (22 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.139: +2 -2 lines
Diff to previous 1.139 (colored) to selected 1.87 (colored)

uninitialised variable (from Krister Walfridsson):
in st_cmprss(), init flags to 0 (never changed, but this should change soon
anyway, for ATAPI tapes support)

Revision 1.139 / (download) - annotate - [select for diffs], Tue May 15 14:03:27 2001 UTC (22 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.138: +2 -2 lines
Diff to previous 1.138 (colored) to selected 1.87 (colored)

delint; use MAX(sizeof(..),sizeof(..)) instead of max(...) for array size

Revision 1.138 / (download) - annotate - [select for diffs], Mon May 14 20:35:29 2001 UTC (22 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.137: +30 -60 lines
Diff to previous 1.137 (colored) to selected 1.87 (colored)

Use SCSI/ATAPI common definition for MODE_{SELECT,SENSE}{,_BIG}. Define
functions to send theses commands in scsipi_base.c and use them instead
of ad-hoc commands setups.

Revision 1.137 / (download) - annotate - [select for diffs], Sun May 6 11:31:08 2001 UTC (22 years, 10 months ago) by hannken
Branch: MAIN
Changes since 1.136: +2 -2 lines
Diff to previous 1.136 (colored) to selected 1.87 (colored)

Fix a typo from thorpej_scsipi merge. No-sense information with retval == 0
should only print if SCSIPI_DEBUG is defined.

Revision 1.136 / (download) - annotate - [select for diffs], Fri May 4 07:48:56 2001 UTC (22 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.135: +2 -105 lines
Diff to previous 1.135 (colored) to selected 1.87 (colored)

Add an ATAPI front-end to the st driver. Completely untested for now,
but st at scsi should still work :)

Revision 1.135 / (download) - annotate - [select for diffs], Wed Apr 25 17:53:41 2001 UTC (22 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.134: +142 -141 lines
Diff to previous 1.134 (colored) to selected 1.87 (colored)

Pull up the thorpej_scsipi branch to main branch.
This is a completely rewritten scsipi_xfer execution engine, and the
associated changes to HBA drivers. Overview of changes & features:
- All xfers are queued in the mid-layer, rather than doing so in an
  ad-hoc fashion in individual adapter drivers.
- Adapter/channel resource management in the mid-layer, avoids even trying
  to start running an xfer if the adapter/channel doesn't have the resources.
- Better communication between the mid-layer and the adapters.
- Asynchronous event notification mechanism from adapter to mid-layer and
  peripherals.
- Better peripheral queue management: freeze/thaw, sorted requeueing during
  recovery, etc.
- Clean separation of peripherals, adapters, and adapter channels (no more
  scsipi_link).
- Kernel thread for each scsipi_channel makes error recovery much easier
  (no more dealing with interrupt context when recovering from an error).
- Mid-layer support for tagged queueing: commands can have the tag type
  set explicitly, tag IDs are allocated in the mid-layer (thus eliminating
  the need to use buggy tag ID allocation schemes in many adapter drivers).
- support for QUEUE FULL and CHECK CONDITION status in mid-layer; the command
  will be requeued, or a REQUEST SENSE will be sent as appropriate.

Just before the merge syssrc has been tagged with thorpej_scsipi_beforemerge

Revision 1.114.2.8 / (download) - annotate - [select for diffs], Thu Mar 29 17:15:01 2001 UTC (23 years ago) by simonb
Branch: thorpej_scsipi
Changes since 1.114.2.7: +2 -2 lines
Diff to previous 1.114.2.7 (colored) to branchpoint 1.114 (colored) next main 1.115 (colored) to selected 1.87 (colored)

Make this compile for the non-SCSIVERBOSE case.

Revision 1.114.2.7 / (download) - annotate - [select for diffs], Sun Feb 11 19:16:19 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.114.2.6: +2 -2 lines
Diff to previous 1.114.2.6 (colored) to branchpoint 1.114 (colored) to selected 1.87 (colored)

Sync with HEAD.

Revision 1.134 / (download) - annotate - [select for diffs], Thu Jan 18 20:28:21 2001 UTC (23 years, 2 months ago) by jdolecek
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.133: +2 -2 lines
Diff to previous 1.133 (colored) to selected 1.87 (colored)

constify

Revision 1.114.2.6 / (download) - annotate - [select for diffs], Fri Dec 8 09:12:42 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.114.2.5: +62 -56 lines
Diff to previous 1.114.2.5 (colored) to branchpoint 1.114 (colored) to selected 1.87 (colored)

Sync with HEAD.

Revision 1.114.2.5 / (download) - annotate - [select for diffs], Wed Nov 22 16:04:50 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.114.2.4: +88 -35 lines
Diff to previous 1.114.2.4 (colored) to branchpoint 1.114 (colored) to selected 1.87 (colored)

Sync with HEAD.

Revision 1.133 / (download) - annotate - [select for diffs], Wed Nov 22 00:32:24 2000 UTC (23 years, 4 months ago) by soren
Branch: MAIN
Changes since 1.132: +2 -4 lines
Diff to previous 1.132 (colored) to selected 1.87 (colored)

Remove obsolete comment.

Revision 1.114.2.4 / (download) - annotate - [select for diffs], Mon Nov 20 09:59:29 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.114.2.3: +158 -41 lines
Diff to previous 1.114.2.3 (colored) to branchpoint 1.114 (colored) to selected 1.87 (colored)

Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Main changes to the scsipi code itself:
- add a scsipi_channel->type to allow umass to attach to both atapibus and
  scsibus. Will die when IDE is converted from ata_atapi_attach to
  scsipi_channel/scsipi_adapter
- Add a chan_defquirks to scsipi_channel so that adapters can pass a default
  set of quirks to be set for each device attached
- add adapt_getgeom and adapt_accesschk callbacks

Revision 1.124.2.1 / (download) - annotate - [select for diffs], Fri Nov 3 18:46:30 2000 UTC (23 years, 4 months ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2
Changes since 1.124: +1 -7 lines
Diff to previous 1.124 (colored) next main 1.125 (colored) to selected 1.87 (colored)

Pullup 1.127 [pk]:
Remove useless check for SDEV_MEDIA_LOADED from st_read_block_limits().
This command should work whether or not media is present in the device.

Revision 1.132 / (download) - annotate - [select for diffs], Fri Nov 3 12:08:41 2000 UTC (23 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.131: +2 -2 lines
Diff to previous 1.131 (colored) to selected 1.87 (colored)

st_touch_tape(): Pass XS_CTL_SILENT to st_mode_select().

Revision 1.131 / (download) - annotate - [select for diffs], Fri Nov 3 10:46:18 2000 UTC (23 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.130: +39 -13 lines
Diff to previous 1.130 (colored) to selected 1.87 (colored)

* st_touch_tape(): start probing at the block size from the sense data if
  we have it.

* st_unmount(): reset density to the device default. This prevents using
  stale density values after changing to a medium with different density.

  Section 9.3.3 of the SCSI specs states that a device shall return the
  density value specified in the last succesfull MODE SELECT after an
  unload operation, in case it is not able to automatically determine
  the density of the new medium.

Revision 1.130 / (download) - annotate - [select for diffs], Fri Nov 3 10:22:02 2000 UTC (23 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.129: +18 -5 lines
Diff to previous 1.129 (colored) to selected 1.87 (colored)

* Per st(4), retrieving status and setting modes on the control device
  should succeed even if no media is loaded.

* In stopen(), check the return value of st_mount_tape().

Revision 1.129 / (download) - annotate - [select for diffs], Thu Nov 2 13:34:59 2000 UTC (23 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.128: +11 -7 lines
Diff to previous 1.128 (colored) to selected 1.87 (colored)

Introduce ST_Q_ERASE_NOIMM, a quirk indicating that the device rejects
an ERASE command with the `Immed' bit on.

Use it on the VIPER 21247 & 21531.

Revision 1.128 / (download) - annotate - [select for diffs], Thu Nov 2 13:12:58 2000 UTC (23 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.127: +11 -5 lines
Diff to previous 1.127 (colored) to selected 1.87 (colored)

Prevent printing sense information twice.

Revision 1.127 / (download) - annotate - [select for diffs], Thu Nov 2 00:56:59 2000 UTC (23 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.126: +1 -7 lines
Diff to previous 1.126 (colored) to selected 1.87 (colored)

Remove useless check for SDEV_MEDIA_LOADED from st_read_block_limits().
This command should work whether or not media is present in the device.

Revision 1.126 / (download) - annotate - [select for diffs], Thu Nov 2 00:52:15 2000 UTC (23 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.125: +14 -4 lines
Diff to previous 1.125 (colored) to selected 1.87 (colored)

* In st_touch_tape(), don't bail out if the MODE SELECT fails since we are,
  after all, probing the device for acceptable parameters.

* In st_loadquirks(), copy mode-specific quirks from the quirk table
  to `st_softc'; otherwise all such quirks save ST_Q_FORCE_BLKSIZE are ignored.

Revision 1.125 / (download) - annotate - [select for diffs], Wed Aug 16 19:22:25 2000 UTC (23 years, 7 months ago) by matt
Branch: MAIN
Changes since 1.124: +13 -3 lines
Diff to previous 1.124 (colored) to selected 1.87 (colored)

Add a NOPREVENT quirk which prevents the sending of PREVENT messages (some
manual 9track tapes don't support it).  Add a quirk entry for the NCR H621
9track tape drive.

Revision 1.122.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:08:21 2000 UTC (23 years, 9 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.122: +14 -9 lines
Diff to previous 1.122 (colored) next main 1.123 (colored) to selected 1.87 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.124 / (download) - annotate - [select for diffs], Fri Jun 9 08:54:29 2000 UTC (23 years, 9 months ago) by enami
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Changes since 1.123: +12 -7 lines
Diff to previous 1.123 (colored) to selected 1.87 (colored)

Prevent a process being swapped out during I/O if the data buffer is
allocated on stack.  This potential problem is noticed by Noriyuki Soda
and the idea and sample code to fix is given by Jason R. Thorpe.

Revision 1.123 / (download) - annotate - [select for diffs], Tue Jun 6 17:16:02 2000 UTC (23 years, 9 months ago) by soren
Branch: MAIN
Changes since 1.122: +3 -3 lines
Diff to previous 1.122 (colored) to selected 1.87 (colored)

Density codes are usually given in decimal, so print them that way.

Revision 1.122 / (download) - annotate - [select for diffs], Fri May 19 06:55:42 2000 UTC (23 years, 10 months ago) by kleink
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.121: +8 -1 lines
Diff to previous 1.121 (colored) to selected 1.87 (colored)

Add a quirk table entry for the OnStream ADR50 Drive;
from S.P.Zeidler <spz@serpens.swb.de> in kern/10118.

Revision 1.121 / (download) - annotate - [select for diffs], Thu Mar 30 00:00:56 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.120: +2 -2 lines
Diff to previous 1.120 (colored) to selected 1.87 (colored)

Get rid of register declarations.

Revision 1.120 / (download) - annotate - [select for diffs], Mon Feb 21 05:11:09 2000 UTC (24 years, 1 month ago) by mjacob
Branch: MAIN
Changes since 1.119: +3 -1 lines
Diff to previous 1.119 (colored) to selected 1.87 (colored)

Patches from msouth@scruz.net to handle QIC 3220 (HP T20).

Revision 1.119 / (download) - annotate - [select for diffs], Sun Feb 20 07:38:48 2000 UTC (24 years, 1 month ago) by mjacob
Branch: MAIN
Changes since 1.118: +3 -3 lines
Diff to previous 1.118 (colored) to selected 1.87 (colored)

minor spelling change

Revision 1.110.2.1 / (download) - annotate - [select for diffs], Sun Jan 23 13:40:22 2000 UTC (24 years, 2 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.110: +3 -1 lines
Diff to previous 1.110 (colored) next main 1.111 (colored) to selected 1.87 (colored)

Pull up revision 1.118 (requested by mjacob):
  Recognize (indirectly) HP4000s via density code and do the right
  QIC type dance.  Fixes PR#9271.

Revision 1.118 / (download) - annotate - [select for diffs], Sat Jan 22 04:29:58 2000 UTC (24 years, 2 months ago) by mjacob
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.117: +3 -1 lines
Diff to previous 1.117 (colored) to selected 1.87 (colored)

PR/9271 (from srp@zgi.com)- recognize (indirectly) HP4000s via density
code and do the right QIC type dance (1 FM @EOT, fixed block size).

Revision 1.117 / (download) - annotate - [select for diffs], Fri Jan 21 23:40:00 2000 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.116: +7 -19 lines
Diff to previous 1.116 (colored) to selected 1.87 (colored)

Update for sys/buf.h/disksort_*() changes.

Revision 1.116 / (download) - annotate - [select for diffs], Thu Jan 13 00:18:27 2000 UTC (24 years, 2 months ago) by nisimura
Branch: MAIN
Changes since 1.115: +8 -1 lines
Diff to previous 1.115 (colored) to selected 1.87 (colored)

Add tweaks for TEAC compact cassette tape drive.

Revision 1.115 / (download) - annotate - [select for diffs], Wed Jan 12 14:46:43 2000 UTC (24 years, 2 months ago) by mjacob
Branch: MAIN
Changes since 1.114: +108 -11 lines
Diff to previous 1.114 (colored) to selected 1.87 (colored)

Check in the implementation of the ST_MOUNT_DELAY option.

This is an attempt to allow people to change the default configuration
to try harder at 'mounting' a tape. This allows you to specify, in
seconds, the amount of time a non-control unit open will retry
(once per second) the scsipi_test_unit_ready when it tries to mount
the tape. It also turns off the over-verbose error reporting at
this time unless SCSIDEBUG is set.

The reason this is not enabled as a default is that it's a large change
of behaviour. I find it useful to 'try harder' at mounting a tape in
the tape driver, particularly when loaded via a media changer device
rather than specifying the delays in the backup program.

Revision 1.114.8.1 / (download) - annotate - [select for diffs], Tue Dec 21 23:19:56 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.114: +3 -3 lines
Diff to previous 1.114 (colored) next main 1.115 (colored) to selected 1.87 (colored)

Initial commit of recent changes to make DEV_BSIZE go away.

Runs on i386, needs work on other arch's. Main kernel routines should be
fine, but a number of the stand programs need help.

cd, fd, ccd, wd, and sd have been updated. sd has been tested with non-512
byte block devices. vnd, raidframe, and lfs need work.

Non 2**n block support is automatic for LKM's and conditional for kernels
on "options NON_PO2_BLOCKS".

Revision 1.114.2.3 / (download) - annotate - [select for diffs], Mon Nov 1 22:54:21 1999 UTC (24 years, 5 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.114.2.2: +25 -27 lines
Diff to previous 1.114.2.2 (colored) to branchpoint 1.114 (colored) to selected 1.87 (colored)

Fixup the SC_DEBUG() stuff for the new world order.

Revision 1.114.2.2 / (download) - annotate - [select for diffs], Wed Oct 20 20:39:30 1999 UTC (24 years, 5 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.114.2.1: +1 -2 lines
Diff to previous 1.114.2.1 (colored) to branchpoint 1.114 (colored) to selected 1.87 (colored)

Remove an unnecessary comment regarding XS_CTL_NOSLEEP.

Revision 1.114.2.1 / (download) - annotate - [select for diffs], Tue Oct 19 17:39:45 1999 UTC (24 years, 5 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.114: +97 -100 lines
Diff to previous 1.114 (colored) to selected 1.87 (colored)

Completely rewritten scsipi_xfer execution engine:
- All xfers are queued in the mid-layer, rather than doing so in an
  ad-hoc fashion in individual adapter drivers.
- Adapter/channel resource management in the mid-layer, avoids even trying
  to start running an xfer if the adapter/channel doesn't have the resources.
- Better communication between the mid-layer and the adapters.
- Asynchronous event notification mechanism from adapter to mid-layer and
  peripherals.
- Better peripheral queue management: freeze/thaw, sorted requeueing during
  recovery, etc.
- Clean separation of peripherals, adapters, and adapter channels (no more
  scsipi_link).
- Kernel thread for each scsipi_channel makes error recovery much easier
  (no more dealing with interrupt context when recovering from an error).
- Mid-layer support for tagged queueing: commands can have the tag type
  set explicitly, tag IDs are allocated in the mid-layer (thus eliminating
  the need to use buggy tag ID allocation schemes in many adapter drivers).

There is a lot more work to do, but this correctly functions for the most
part on several file servers I run.

Revision 1.114 / (download) - annotate - [select for diffs], Thu Sep 30 22:57:55 1999 UTC (24 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi
Changes since 1.113: +31 -30 lines
Diff to previous 1.113 (colored) to selected 1.87 (colored)

Cleanup the scsipi_xfer flags:
- `flags' is now gone, replaced with `xs_control' and `xs_status'.
- Massive cleanup of the control flags.  Now we explicitly say that
  a job is to complete asynchronously, rather than relying on side-effects,
  and use a new flag to now that device discovery is being performed.
- Do SCSI device discovery interrupt-driven.

Revision 1.113 / (download) - annotate - [select for diffs], Sat Sep 4 09:41:15 1999 UTC (24 years, 6 months ago) by simonb
Branch: MAIN
Changes since 1.112: +2 -2 lines
Diff to previous 1.112 (colored) to selected 1.87 (colored)

Fix tyop in a comment.

Revision 1.110.4.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:19:15 1999 UTC (24 years, 9 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.110: +34 -15 lines
Diff to previous 1.110 (colored) next main 1.111 (colored) to selected 1.87 (colored)

Sync w/ -current.

Revision 1.112 / (download) - annotate - [select for diffs], Thu Jun 17 04:20:55 1999 UTC (24 years, 9 months ago) by mjacob
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.111: +27 -11 lines
Diff to previous 1.111 (colored) to selected 1.87 (colored)

STK 9490 && SD-3 drives incorrectly quirked as not supporting the LOAD command.
Anyway, just because a drive doesn't support the LOAD (to BOT) command does
not mean that the drive doesn't support the UNLOAD command. Also note and
print errors in rewinds and unloads (and errors in writing closing filemarks
for same).

Revision 1.111 / (download) - annotate - [select for diffs], Mon Apr 5 19:19:34 1999 UTC (24 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.110: +8 -5 lines
Diff to previous 1.110 (colored) to selected 1.87 (colored)

If scsipi_command() fails, always print out the error code.

Revision 1.110 / (download) - annotate - [select for diffs], Sun Feb 28 17:14:57 1999 UTC (25 years, 1 month ago) by explorer
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: netbsd-1-4, chs-ubc2
Changes since 1.109: +3 -2 lines
Diff to previous 1.109 (colored) to selected 1.87 (colored)

Update to slightly altered rnd_attach_source() api

Revision 1.109 / (download) - annotate - [select for diffs], Wed Feb 10 12:29:51 1999 UTC (25 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.108: +8 -1 lines
Diff to previous 1.108 (colored) to selected 1.87 (colored)

Abort transfer if b_blkno is negative. Closes PR kern/5553 by Johan Danielsson.

Revision 1.108 / (download) - annotate - [select for diffs], Sun Jan 10 21:46:39 1999 UTC (25 years, 2 months ago) by tron
Branch: MAIN
Changes since 1.107: +3 -3 lines
Diff to previous 1.107 (colored) to selected 1.87 (colored)

Make MTIOCRDSPOS, MTIOCSLOCATE, etc. work with write protected tapes.
Patch supplied by Dave Huang in PR kern/5305.

Revision 1.107 / (download) - annotate - [select for diffs], Tue Dec 8 00:19:27 1998 UTC (25 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.106: +3 -1 lines
Diff to previous 1.106 (colored) to selected 1.87 (colored)

When closing, wait for pending xfers to drain before deleting the reference
to the adapter.

Revision 1.106 / (download) - annotate - [select for diffs], Fri Nov 20 00:35:40 1998 UTC (25 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.105: +8 -2 lines
Diff to previous 1.105 (colored) to selected 1.87 (colored)

Add adapter reference counting for SCSI and ATAPI devices.

Revision 1.105 / (download) - annotate - [select for diffs], Tue Nov 17 14:38:43 1998 UTC (25 years, 4 months ago) by bouyer
Branch: MAIN
Changes since 1.104: +2 -2 lines
Diff to previous 1.104 (colored) to selected 1.87 (colored)

Rename scsi_interpret_sense() to scsipi_interpret_sense() and move it from
scsi_base.c to scsipi_base.c. Rename the functions from scsi_verbose.c
too, and rename the file itself. Cleaup includes too (scsi_*.h should not
be #included in scsipi_*.h files, which are supposed to be
common to atapi and scsi).

Revision 1.84.2.2 / (download) - annotate - [select for diffs], Wed Sep 30 02:02:51 1998 UTC (25 years, 6 months ago) by cgd
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003
Changes since 1.84.2.1: +7 -6 lines
Diff to previous 1.84.2.1 (colored) to branchpoint 1.84 (colored) next main 1.85 (colored) to selected 1.87 (colored)

pull up rev 1.98 (via patch; doesn't pull up cleanly) from trunk (drochner)

Revision 1.104 / (download) - annotate - [select for diffs], Fri Sep 11 20:10:15 1998 UTC (25 years, 6 months ago) by mjacob
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.103: +14 -1 lines
Diff to previous 1.103 (colored) to selected 1.87 (colored)

keren/6128: add an entry for the TDC 4200. Full density code set isn't known.

Revision 1.103 / (download) - annotate - [select for diffs], Wed Sep 2 02:18:48 1998 UTC (25 years, 7 months ago) by mjacob
Branch: MAIN
Changes since 1.102: +2 -2 lines
Diff to previous 1.102 (colored) to selected 1.87 (colored)

typo for non-SCSIVERBOSE case

Revision 1.102 / (download) - annotate - [select for diffs], Mon Aug 31 22:28:07 1998 UTC (25 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.101: +1 -9 lines
Diff to previous 1.101 (colored) to selected 1.87 (colored)

kill the last remnants of __BROKEN_INDIRECT_CONFIG.  (only the pica port
used it, and it's non-working and apparently slated for replacement.)

Revision 1.101 / (download) - annotate - [select for diffs], Mon Aug 17 00:49:04 1998 UTC (25 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.100: +23 -16 lines
Diff to previous 1.100 (colored) to selected 1.87 (colored)

Assign my copyrights to TNF.

Revision 1.100 / (download) - annotate - [select for diffs], Sat Aug 15 03:02:49 1998 UTC (25 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.99: +3 -3 lines
Diff to previous 1.99 (colored) to selected 1.87 (colored)

Make copyright notices with my name consistent.

Revision 1.99 / (download) - annotate - [select for diffs], Mon Aug 10 16:56:25 1998 UTC (25 years, 7 months ago) by mjacob
Branch: MAIN
Changes since 1.98: +41 -6 lines
Diff to previous 1.98 (colored) to selected 1.87 (colored)

Responding to an issue brought to my attention- when the device is
opened norewind and 2 filemarks are written at the end a phantom file
is left (just what I was afraid of, but I didn't think about it in
the last delta because somehow I had managed to convince myself that
this was a nonissue. It's not.).

So- in stdone clear ST_WRITTEN for regular reads. In st_close, preserve
the state of ST_WRITTEN, and if no error and 2FM@EOD for this device and
this is a no-rewind open, backspace one filemark. This should preserve
(for this mount session) FILE - FMK - FILE - FMK - FILE ... FILE FMK FMK EOD
sequencing.

This doesn't clean up the case of EOM appends- in this case you *will* still
get (after an MTEOM operation and a write of a file) a phantom empty file,
e.g. FILE - FMK FMK - FILE - FMK FMK EOD *unless* you follow the EOM operation
with an explicit backspace. The trouble is that this makes it difficult for
seamless interchange with other systems which don't necessarily follow.

The preferrable alternative would be to eliminate the 2FM@EOD except for
1/2" Reel tapes, but that has been pretty much nixed within developers.

Revision 1.93.2.2 / (download) - annotate - [select for diffs], Sat Aug 8 03:06:52 1998 UTC (25 years, 7 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.93.2.1: +2363 -0 lines
Diff to previous 1.93.2.1 (colored) to branchpoint 1.93 (colored) next main 1.94 (colored) to selected 1.87 (colored)

Revert cdevsw mmap routines to return int.

Revision 1.98 / (download) - annotate - [select for diffs], Thu Aug 6 10:20:39 1998 UTC (25 years, 7 months ago) by drochner
Branch: MAIN
Changes since 1.97: +7 -6 lines
Diff to previous 1.97 (colored) to selected 1.87 (colored)

fix incorrect length of LOCATE CDB (reported in PR kern/5306 by
Dave Huang <khym@bga.com>)

Revision 1.97 / (download) - annotate - [select for diffs], Fri Jul 31 17:25:55 1998 UTC (25 years, 8 months ago) by mjacob
Branch: MAIN
Changes since 1.96: +4 -4 lines
Diff to previous 1.96 (colored) to selected 1.87 (colored)

Suggestion from Matthias Drochner: If at close you decide to write
filemark 'coz you opened write only and didn't do anything else,
call st_check_eod to possibly write TWO furshlugginer filemarks.

Also- return any errors from writing filemarks out of stclose.

Revision 1.96 / (download) - annotate - [select for diffs], Fri Jul 31 04:00:22 1998 UTC (25 years, 8 months ago) by mjacob
Branch: MAIN
Changes since 1.95: +56 -41 lines
Diff to previous 1.95 (colored) to selected 1.87 (colored)

Several more changes. First of all, move CTRL_MODE to have I/O behaviour
like a no-rewind device. Secondly figure out whether the initial TUR
for a CTRL_MODE open resulted in a tape being actually found (if so,
then do a mount session).

Move the 'sun compatibility' behaviour into stdone && stclose- don't
mark a tape as having been written in stopenm, fer gosh sakes.

Revision 1.95 / (download) - annotate - [select for diffs], Thu Jul 30 04:11:43 1998 UTC (25 years, 8 months ago) by mjacob
Branch: MAIN
Changes since 1.94: +3 -7 lines
Diff to previous 1.94 (colored) to selected 1.87 (colored)

Some minor comment tweaking.

Also- to be fair and on review, kern/391 isn't really addressed by
the previous commits. In reviewing, I'm embarassed to find that this
talks about reading at EOT. I'm actually going to claim that this
is 'not a bug' or 'fixed already' in that at the end of media (at the
edge of recorded media), you may continuously open the tape (should
you choose to) issue a read, and zero bytes will transfer- this is a
sufficient EOF indicator.

Revision 1.94 / (download) - annotate - [select for diffs], Thu Jul 30 03:17:22 1998 UTC (25 years, 8 months ago) by mjacob
Branch: MAIN
Changes since 1.93: +24 -16 lines
Diff to previous 1.93 (colored) to selected 1.87 (colored)

Clarify and name some of the 'open' modes. Clarify a few comments. Remove
a now unused variable. Also, remove the restriction against at density
code being greater than the max SCSI 2 density code: 0x80..0xff are the
Vendor Unique codes and most certainly should be allowed. The check for
invalid values should be less than 0 or greater than 255.

Oh- yeah, the previous commit addressed kern/391.

Revision 1.93.2.1, Thu Jul 30 00:55:20 1998 UTC (25 years, 8 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.93: +0 -2344 lines
FILE REMOVED

file st.c was added on branch eeh-paddr_t on 1998-08-08 03:06:52 +0000

Revision 1.93 / (download) - annotate - [select for diffs], Thu Jul 30 00:55:20 1998 UTC (25 years, 8 months ago) by mjacob
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.92: +57 -18 lines
Diff to previous 1.92 (colored) to selected 1.87 (colored)

Make some changes wrt EOM behaviour. Distinguish EIO_PENDING from
EOM_PENDING. Set up a persistent EARLYWARNING behaviour flag. If
set, EOM behaviour forces a 'short read' to signal logical (as
opposed to physical) end of media. The user application may, of
course, do with this information what it will.

The EARLYWARNING behaviour may be enabled/disabled by a MTIOCTOP
operation. The default action is to not have EARLYWARNING enabled-
but this may be reversed by an option ST_ENABLE_EARLYWARN in
the kernel build.

Revision 1.92 / (download) - annotate - [select for diffs], Sun Jul 19 18:43:20 1998 UTC (25 years, 8 months ago) by drochner
Branch: MAIN
Changes since 1.91: +3 -6 lines
Diff to previous 1.91 (colored) to selected 1.87 (colored)

Remove a check which restricted raw SCSI commands to the "minor 3"
("CTLMODE") subdevice. There are legitimate uses for raw commands with
normal tape handles too.
[I'm not sure if this is a final solution. Administrators might want
to set up a more finegrained policy. However, this should not be mixed
with the "set defaults" semantics of the "CTLMODE" subdevice; another
flag should be used instead (eg execute permission or a minor number bit).]

Revision 1.91 / (download) - annotate - [select for diffs], Wed Jul 15 20:13:57 1998 UTC (25 years, 8 months ago) by mjacob
Branch: MAIN
Changes since 1.90: +12 -12 lines
Diff to previous 1.90 (colored) to selected 1.87 (colored)

part of fix for kern/3835: use of enumerated returns from target sense handlers

Revision 1.90 / (download) - annotate - [select for diffs], Sat Jul 4 01:50:20 1998 UTC (25 years, 9 months ago) by mjacob
Branch: MAIN
Changes since 1.89: +192 -55 lines
Diff to previous 1.89 (colored) to selected 1.87 (colored)

Minor enhancements:

	1) Quirk entries for Storage Tek 9490 (Timberline) and D3 (Redwood)
	drives.

	2) Modification to st_loadtape to do a REWIND to BOT if the
	action is a load and the tape doesn't support the LOAD command
	(9490, SD3, and IBM 3590).

	3) Cleaned up the 'undersized user record' error message to
	make a little more sense.

Various bug fixes:

kern/1275:	Now returns values in dsreg and erreg and sets resid
		(as best as it can for a 16 but integer). See also
		a recent change to mtio.h. We are declining to fix
		the portion of this bug about naming a more specific
		SCSI device. Since there is nothing programmatic
		you can do with that information, it is not useful
		to pass back at this time.

		A side effect of this change is that doing MTIOCGET
		also forces a mode sense (to get the current state
		of WRITE PROTECT).


kern/5647:	Now no longer logs to the console ILI or Filemark or (first)
		EOM (on write) errors (unless SCSIDEBUG is set).

kern/5525:	Substantially increased timeouts for a variety of
		operations, and split them into categories of
		I/O, Space, and Control operations (each have
		likely different inherent times). I/O is for
		reads/writes. Control is for mode sense/select.
		Space is for spacing the tape.

Until EOM handling is changed, though kern/391 is still not fixed. A side
effect of EOM handling is that you now always 'lose' (to the writing
application's view) the last write since EIO is what is returned on
EOM detection during writes. Hopefully the reader applications don't
get too bent out of shape by this.

Revision 1.89 / (download) - annotate - [select for diffs], Fri Feb 13 08:12:40 1998 UTC (26 years, 1 month ago) by enami
Branch: MAIN
Changes since 1.88: +1 -2 lines
Diff to previous 1.88 (colored) to selected 1.87 (colored)

Don't include <dev/scsipi/scsi_all.h> twice.

Revision 1.88 / (download) - annotate - [select for diffs], Sat Feb 7 23:00:24 1998 UTC (26 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.87: +10 -3 lines
Diff to previous 1.87 (colored)

* Add the "VIPER 150/21531" to quirk list (ST_Q_SENSE_HELP).
* Double timeout on tape position commands to 30 minutes. Some units
  seem capable of taking that much time.

Revision 1.87 / (download) - annotate - [selected], Mon Jan 12 09:49:18 1998 UTC (26 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.86: +2 -4 lines
Diff to previous 1.86 (colored)

Adjust for changes to config.

Revision 1.86 / (download) - annotate - [select for diffs], Sun Dec 28 19:25:35 1997 UTC (26 years, 3 months ago) by is
Branch: MAIN
Changes since 1.85: +2 -2 lines
Diff to previous 1.85 (colored) to selected 1.87 (colored)

Added ST_Q_SENSE_HELP to the Archive Viper 150S quirks so that
density 0 (autosense) actually works.

Revision 1.84.2.1 / (download) - annotate - [select for diffs], Fri Nov 7 23:19:16 1997 UTC (26 years, 4 months ago) by mellon
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Changes since 1.84: +6 -4 lines
Diff to previous 1.84 (colored) to selected 1.87 (colored)

Pull rev 1.85 up from trunk (mjacob)

Revision 1.85 / (download) - annotate - [select for diffs], Fri Nov 7 18:16:23 1997 UTC (26 years, 4 months ago) by mjacob
Branch: MAIN
Changes since 1.84: +6 -4 lines
Diff to previous 1.84 (colored) to selected 1.87 (colored)

If we're in the middle of opening, don't let st_interpret_sense get
into the act and return EIO or whatever when we're just eating the
initial TEST UNIT READY induced check condition.

Revision 1.84 / (download) - annotate - [select for diffs], Sat Oct 18 19:51:14 1997 UTC (26 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.83: +15 -15 lines
Diff to previous 1.83 (colored) to selected 1.87 (colored)

Implement two macros, scsipi_command() and scsipi_command_direct(), and
use them to hide the structure of the function pointers we jump through
to issue a command.

Revision 1.83 / (download) - annotate - [select for diffs], Thu Oct 16 03:16:44 1997 UTC (26 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.82: +4 -1 lines
Diff to previous 1.82 (colored) to selected 1.87 (colored)

Define FALSE and TRUE locally.

Revision 1.73.2.4 / (download) - annotate - [select for diffs], Tue Oct 14 10:25:40 1997 UTC (26 years, 5 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.73.2.3: +391 -120 lines
Diff to previous 1.73.2.3 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored) to selected 1.87 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.82 / (download) - annotate - [select for diffs], Mon Oct 13 00:48:02 1997 UTC (26 years, 5 months ago) by explorer
Branch: MAIN
CVS Tags: marc-pcmcia-base
Changes since 1.81: +14 -1 lines
Diff to previous 1.81 (colored) to selected 1.87 (colored)

o Make usage of /dev/random dependant on
  pseudo-device   rnd                     # /dev/random and in-kernel generator
  in config files.

o Add declaration to all architectures.

o Clean up copyright message in rnd.c, rnd.h, and rndpool.c to include
  that this code is derived in part from Ted Tyso's linux code.

Revision 1.81 / (download) - annotate - [select for diffs], Sun Oct 12 18:34:00 1997 UTC (26 years, 5 months ago) by mjacob
Branch: MAIN
Changes since 1.80: +2 -2 lines
Diff to previous 1.80 (colored) to selected 1.87 (colored)

Hello? If we're doing block positioning a timeout of greater than 5 seconds
is probably going to be necessary.

Revision 1.80 / (download) - annotate - [select for diffs], Fri Oct 10 01:09:12 1997 UTC (26 years, 5 months ago) by explorer
Branch: MAIN
Changes since 1.79: +17 -2 lines
Diff to previous 1.79 (colored) to selected 1.87 (colored)

Add hooks to insert timing info into the random system

Revision 1.79 / (download) - annotate - [select for diffs], Thu Oct 9 00:53:28 1997 UTC (26 years, 5 months ago) by enami
Branch: MAIN
Changes since 1.78: +5 -5 lines
Diff to previous 1.78 (colored) to selected 1.87 (colored)

Cosmetic changes;

- dereference a pointer to function explicitly.
- fold long line to fit columns < 80.
- put whitespaces around a binary operator.
- don't put a single statement into a block.

Revision 1.78 / (download) - annotate - [select for diffs], Thu Oct 9 00:43:26 1997 UTC (26 years, 5 months ago) by mjacob
Branch: MAIN
Changes since 1.77: +9 -2 lines
Diff to previous 1.77 (colored) to selected 1.87 (colored)

A) At least IBM 3590 tape drives return a NOT READY error if issued a LOAD
to BOT command- even if at BOT. Urk. B) Make READ POSITION SCSI_SILENT.

Revision 1.77 / (download) - annotate - [select for diffs], Wed Oct 1 18:45:02 1997 UTC (26 years, 6 months ago) by mjacob
Branch: MAIN
Changes since 1.76: +18 -5 lines
Diff to previous 1.76 (colored) to selected 1.87 (colored)

Many thanks to Wolfgang Rupprecht for spotting this... In order to be sure
about actual position when reading tape position, you should flush any
pending writes. Well, if the tape is write protected, some drives don't
see the zero count WRITE FILE MARK command as a no-op and complain. Dumb!

Revision 1.76 / (download) - annotate - [select for diffs], Wed Oct 1 01:19:24 1997 UTC (26 years, 6 months ago) by enami
Branch: MAIN
Changes since 1.75: +148 -141 lines
Diff to previous 1.75 (colored) to selected 1.87 (colored)

Cosmetic changes to keep coding style consistency in this directory;

- Indent with tab of width 8.
- Use four column to indent continuation line.
- Fold long line if possible.
- Use return (xx) instead of return xx.
- Compare pointer against NULL instead of testing like boolean.
- Delete whitespace at the end of line.
- Delete whitespace in front of function call operator.
- Delete whitespace after cast.
- Dereference a pointer to function explicitly.
- Add an empty line after local variable declaration.
- Use NULL instead of (char *)0.
- Dont use block for single statement.

Revision 1.75 / (download) - annotate - [select for diffs], Mon Sep 29 19:33:03 1997 UTC (26 years, 6 months ago) by mjacob
Branch: MAIN
Changes since 1.74: +219 -3 lines
Diff to previous 1.74 (colored) to selected 1.87 (colored)

Add in mtop operation MTCMPRESS, which can enable or disable tape compression.
The method for doing this is to try and use the DATA COMPRESSION mode page
first, followed by the DEVICE CONFIGURATION page (this is because most newer
tape devices are now using DATA COMPRESSION instead of DEVICE CONFIGURATION
pages).

Add in the logical && hardware read position and set position ioctls. Oddly
enough, because NetBSD is limited in having the driver track file && record
numbers, the usual agony over what to do once you use logical or hardware
block positioning can be avoided. Amusing.

Make a minor change so that for SCSIVERBOSE cases that SCSI_SILENT in
the xs' flags is still observed.

Revision 1.73.2.3 / (download) - annotate - [select for diffs], Tue Sep 16 03:50:55 1997 UTC (26 years, 6 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.73.2.2: +3 -1 lines
Diff to previous 1.73.2.2 (colored) to branchpoint 1.73 (colored) to selected 1.87 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.74 / (download) - annotate - [select for diffs], Sat Sep 13 08:51:18 1997 UTC (26 years, 6 months ago) by enami
Branch: MAIN
Changes since 1.73: +3 -1 lines
Diff to previous 1.73 (colored) to selected 1.87 (colored)

Declare SCSIVERBOSE by defopt in files.scsipi.  Include opt_scsiverbose.h
in scsi_base.c and st.c.

Revision 1.73.2.2 / (download) - annotate - [select for diffs], Wed Aug 27 23:33:41 1997 UTC (26 years, 7 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.73.2.1: +1889 -0 lines
Diff to previous 1.73.2.1 (colored) to branchpoint 1.73 (colored) to selected 1.87 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.73.2.1, Wed Aug 27 11:27:14 1997 UTC (26 years, 7 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.73: +0 -1889 lines
FILE REMOVED

file st.c was added on branch marc-pcmcia on 1997-08-27 23:33:41 +0000

Revision 1.73 / (download) - annotate - [select for diffs], Wed Aug 27 11:27:14 1997 UTC (26 years, 7 months ago) by bouyer
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal
Branch point for: marc-pcmcia
Changes since 1.72: +67 -64 lines
Diff to previous 1.72 (colored) to selected 1.87 (colored)

Merge scsipi branch in the mainline. This add support for ATAPI devices
(currently only CD-ROM drives on i386). The sys/dev/scsipi system provides 2
busses to which devices can attach (scsibus and atapibus). This needed to
change some include files and structure names in the low level scsi drivers.

Revision 1.71.4.1 / (download) - annotate - [select for diffs], Sat Aug 23 07:14:31 1997 UTC (26 years, 7 months ago) by thorpej
Changes since 1.71: +5 -1 lines
Diff to previous 1.71 (colored) next main 1.72 (colored) to selected 1.87 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.72 / (download) - annotate - [select for diffs], Wed Aug 20 18:20:12 1997 UTC (26 years, 7 months ago) by mjacob
Branch: MAIN
Changes since 1.71: +5 -1 lines
Diff to previous 1.71 (colored) to selected 1.87 (colored)

If SCSIVERBOSE is enabled, call the routine to print out detailed sense
information.

Revision 1.70.6.1 / (download) - annotate - [select for diffs], Wed Mar 12 21:25:55 1997 UTC (27 years ago) by is
Changes since 1.70: +2 -1 lines
Diff to previous 1.70 (colored) next main 1.71 (colored) to selected 1.87 (colored)

Merge in changes from Trunk

Revision 1.71 / (download) - annotate - [select for diffs], Fri Feb 21 23:03:49 1997 UTC (27 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: bouyer-scsipi
Changes since 1.70: +2 -1 lines
Diff to previous 1.70 (colored) to selected 1.87 (colored)

If posting an error condition because the media has been unloaded,
make sure to set the residual count to reflect that no data was
transfered.

From Naofumi HONDA / MINOURA Makoto, PR #3007.

Revision 1.70 / (download) - annotate - [select for diffs], Thu Dec 5 01:06:46 1996 UTC (27 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.69: +11 -2 lines
Diff to previous 1.69 (colored) to selected 1.87 (colored)

update these so they compile whether or not __BROKEN_INDIRECT_CONFIG
is defined.

Revision 1.69 / (download) - annotate - [select for diffs], Sat Oct 12 23:23:24 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.68: +16 -16 lines
Diff to previous 1.68 (colored) to selected 1.87 (colored)

revert previous kprintf change

Revision 1.68 / (download) - annotate - [select for diffs], Thu Oct 10 23:34:25 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.67: +16 -16 lines
Diff to previous 1.67 (colored) to selected 1.87 (colored)

printf -> kprintf, sprintf -> ksprintf

Revision 1.67 / (download) - annotate - [select for diffs], Fri May 24 02:04:29 1996 UTC (27 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.66: +26 -3 lines
Diff to previous 1.66 (colored) to selected 1.87 (colored)

Implement ST_Q_UNIMODAL quirk, which indicates that a drive will reject
all attempts to mode select, even if the attempted mode is supported.
Add the ST_Q_UNIMODAL quirk for the HP Colorado T4000s which exhibits
this behavior.  (Someone please lob a tactical nuke in that direction.)

From David Rosenthal <dshr@vitria.com> on netbsd-bugs.

Revision 1.66 / (download) - annotate - [select for diffs], Sun May 5 19:53:01 1996 UTC (27 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.65: +2 -2 lines
Diff to previous 1.65 (colored) to selected 1.87 (colored)

Cleanup the rest of the SCSIDEBUG printfs. From Bernd Ernesti.

Revision 1.65 / (download) - annotate - [select for diffs], Sat Mar 30 21:45:04 1996 UTC (28 years ago) by christos
Branch: MAIN
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored) to selected 1.87 (colored)

Eliminate scsi_conf.h.

Revision 1.64 / (download) - annotate - [select for diffs], Tue Mar 19 03:05:15 1996 UTC (28 years ago) by mycroft
Branch: MAIN
Changes since 1.63: +20 -27 lines
Diff to previous 1.63 (colored) to selected 1.87 (colored)

Define a full set of [234][bl]tol() and lto[234][bl]() conversion functions,
inlined.
Use sized types in protocol structures.
Make the definition of scsi_sense_data less ugly.

Revision 1.63 / (download) - annotate - [select for diffs], Sun Mar 17 00:59:54 1996 UTC (28 years ago) by thorpej
Branch: MAIN
Changes since 1.62: +16 -12 lines
Diff to previous 1.62 (colored) to selected 1.87 (colored)

New device attachment scheme:

	- split softc size and match/attach out from cfdriver into
	  a new struct cfattach.

	- new "attach" directive for files.*.  May specify the name of
	  the cfattach structure, so that devices may be easily attached
	  to parents with different autoconfiguration semantics.

Revision 1.62 / (download) - annotate - [select for diffs], Tue Mar 5 00:15:23 1996 UTC (28 years ago) by thorpej
Branch: MAIN
Changes since 1.61: +3 -2 lines
Diff to previous 1.61 (colored) to selected 1.87 (colored)

Normalize SCSI autoconfiguration output.
From Chris Demetriou <cgd@NetBSD.ORG>.  Fixes PR #1958.

Revision 1.61 / (download) - annotate - [select for diffs], Sun Feb 18 20:30:53 1996 UTC (28 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.60: +4 -4 lines
Diff to previous 1.60 (colored) to selected 1.87 (colored)

Minor change.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Feb 17 16:00:22 1996 UTC (28 years, 1 month ago) by jtk
Branch: MAIN
Changes since 1.59: +2 -6 lines
Diff to previous 1.59 (colored) to selected 1.87 (colored)

remove #ifdef notdef made unnecessary by previous changes (PR#1597)
put in missing "if (error)" that caused tape IO to always fail.
(closes PR#2086)

Revision 1.59 / (download) - annotate - [select for diffs], Wed Feb 14 21:47:49 1996 UTC (28 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.58: +164 -146 lines
Diff to previous 1.58 (colored) to selected 1.87 (colored)

scsi prototypes

Revision 1.58 / (download) - annotate - [select for diffs], Fri Feb 9 14:51:34 1996 UTC (28 years, 1 month ago) by briggs
Branch: MAIN
Changes since 1.57: +2 -1 lines
Diff to previous 1.57 (colored) to selected 1.87 (colored)

PR#2048.  Prototype st_erase().

Revision 1.57 / (download) - annotate - [select for diffs], Thu Jan 11 03:36:38 1996 UTC (28 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.56: +54 -12 lines
Diff to previous 1.56 (colored) to selected 1.87 (colored)

Honor cache request and implement erase command, and add the SCSI tape
device configuration page.  Fixes PRs 807, 1201, and 1705.
From John Kohl <jtk@kolvir.blrc.ma.us>.

Revision 1.56 / (download) - annotate - [select for diffs], Fri Jan 5 16:03:35 1996 UTC (28 years, 2 months ago) by pk
Branch: MAIN
Changes since 1.55: +4 -3 lines
Diff to previous 1.55 (colored) to selected 1.87 (colored)

SCSI sense `info' field is a signed value (from John Kohl; PR#1597).

Revision 1.55 / (download) - annotate - [select for diffs], Thu Nov 30 10:12:04 1995 UTC (28 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.54: +7 -0 lines
Diff to previous 1.54 (colored) to selected 1.87 (colored)

Add quirk for Exabyte 8200/rev. 263H (from Paul Goyette; PR#1797).

Revision 1.54 / (download) - annotate - [select for diffs], Fri Oct 13 20:01:08 1995 UTC (28 years, 5 months ago) by gwr
Branch: MAIN
Changes since 1.53: +22 -1 lines
Diff to previous 1.53 (colored) to selected 1.87 (colored)

Add quirk entries for Wangtek SCSI tapes.  Also, add entry for
Tandberg 3800 (fixes PR#1592 - from Jochen Pohl).

Revision 1.53 / (download) - annotate - [select for diffs], Sat Aug 12 22:58:04 1995 UTC (28 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.52: +4 -4 lines
Diff to previous 1.52 (colored) to selected 1.87 (colored)

opri --> s

Revision 1.52 / (download) - annotate - [select for diffs], Sat Aug 12 21:36:52 1995 UTC (28 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.51: +3 -1 lines
Diff to previous 1.51 (colored) to selected 1.87 (colored)

Fix oversight in previous.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Aug 12 20:31:50 1995 UTC (28 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.50: +26 -33 lines
Diff to previous 1.50 (colored) to selected 1.87 (colored)

minphys() functions really should return void.

Revision 1.50 / (download) - annotate - [select for diffs], Mon Jul 24 06:57:48 1995 UTC (28 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored) to selected 1.87 (colored)

update SCSI minphys routines' definitions to match standard minphys()
definition and usage.

Revision 1.49 / (download) - annotate - [select for diffs], Tue Jul 4 07:21:07 1995 UTC (28 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.48: +28 -18 lines
Diff to previous 1.48 (colored) to selected 1.87 (colored)

Make each disk and tape driver define its own read and write functions.
Deprecate rawread() and rawwrite() completely.  Remove d_strategy from cdevsw to
force the abstraction barrier.

Revision 1.48 / (download) - annotate - [select for diffs], Mon Jun 26 05:15:37 1995 UTC (28 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.47: +7 -3 lines
Diff to previous 1.47 (colored) to selected 1.87 (colored)

make dump stubs consistent

Revision 1.47 / (download) - annotate - [select for diffs], Sat Mar 25 18:41:42 1995 UTC (29 years ago) by mycroft
Branch: MAIN
Changes since 1.46: +8 -1 lines
Diff to previous 1.46 (colored) to selected 1.87 (colored)

Add a rogue entry for the ANRITSU DMT780.

Revision 1.46 / (download) - annotate - [select for diffs], Fri Dec 30 05:23:49 1994 UTC (29 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored) to selected 1.87 (colored)

Update the rogue entry for ancient drivers to match reality.

Revision 1.45 / (download) - annotate - [select for diffs], Wed Dec 28 19:55:50 1994 UTC (29 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored) to selected 1.87 (colored)

Increase the st_space() timeout.

Revision 1.44 / (download) - annotate - [select for diffs], Wed Dec 28 19:43:17 1994 UTC (29 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.43: +267 -358 lines
Diff to previous 1.43 (colored) to selected 1.87 (colored)

Numerous changes.  Many bugs fixed, better autoconfig, a few new features.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Nov 22 00:14:24 1994 UTC (29 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored) to selected 1.87 (colored)

Complete last change.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Nov 21 11:37:26 1994 UTC (29 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored) to selected 1.87 (colored)

Return EIO when the drive is empty.

Revision 1.41 / (download) - annotate - [select for diffs], Mon Nov 21 11:28:52 1994 UTC (29 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.40: +39 -40 lines
Diff to previous 1.40 (colored) to selected 1.87 (colored)

Clean up open and close routines somewhat.

Revision 1.40 / (download) - annotate - [select for diffs], Mon Nov 21 10:39:30 1994 UTC (29 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.39: +8 -14 lines
Diff to previous 1.39 (colored) to selected 1.87 (colored)

Replace dev_unit with device_softc in scsi_link.  Change argument to foostart()
to void*.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Oct 30 21:49:34 1994 UTC (29 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored) to selected 1.87 (colored)

be more careful with types, also pull in headers where necessary.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Oct 20 20:31:34 1994 UTC (29 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored) to selected 1.87 (colored)

First cut at making user-level SCSI commands work.  This is untested.
Partly from John Brezak.

Revision 1.35.2.2 / (download) - annotate - [select for diffs], Thu Oct 6 05:09:39 1994 UTC (29 years, 5 months ago) by mycroft
Changes since 1.35.2.1: +5 -4 lines
Diff to previous 1.35.2.1 (colored) next main 1.36 (colored) to selected 1.87 (colored)

Update from trunk.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Aug 12 08:57:18 1994 UTC (29 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.36: +5 -4 lines
Diff to previous 1.36 (colored) to selected 1.87 (colored)

un-aligned access is not cool on some processors

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Tue Aug 9 18:50:52 1994 UTC (29 years, 7 months ago) by mycroft
Changes since 1.35: +57 -85 lines
Diff to previous 1.35 (colored) to selected 1.87 (colored)

update from trunk

Revision 1.36 / (download) - annotate - [select for diffs], Tue Aug 9 18:50:17 1994 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.35: +57 -85 lines
Diff to previous 1.35 (colored) to selected 1.87 (colored)

Change ST_Q_NEEDS_PAGE_0 to something more generic.

Revision 1.35 / (download) - annotate - [select for diffs], Wed Jun 29 06:43:19 1994 UTC (29 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored) to selected 1.87 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.34 / (download) - annotate - [select for diffs], Sun Jun 19 03:29:37 1994 UTC (29 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored) to selected 1.87 (colored)

Fix a comment.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Jun 16 15:57:47 1994 UTC (29 years, 9 months ago) by chopps
Branch: MAIN
Changes since 1.32: +12 -10 lines
Diff to previous 1.32 (colored) to selected 1.87 (colored)

resolve confusion over who owns the buf after calling scsi_scsi_cmd()

Revision 1.32 / (download) - annotate - [select for diffs], Thu Jun 16 01:11:51 1994 UTC (29 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored) to selected 1.87 (colored)

b_un.b_addr -> b_data

Revision 1.31 / (download) - annotate - [select for diffs], Wed May 11 09:53:45 1994 UTC (29 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.30: +9 -1 lines
Diff to previous 1.30 (colored) to selected 1.87 (colored)

Add dummy *dump() routines.

Revision 1.30 / (download) - annotate - [select for diffs], Mon May 9 07:40:56 1994 UTC (29 years, 10 months ago) by chopps
Branch: MAIN
Changes since 1.29: +9 -9 lines
Diff to previous 1.29 (colored) to selected 1.87 (colored)

remove union's from sense_data struct, conditionaly define RAW_PART

Revision 1.29 / (download) - annotate - [select for diffs], Sun Apr 24 05:40:05 1994 UTC (29 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.28: +3 -2 lines
Diff to previous 1.28 (colored) to selected 1.87 (colored)

Deal with variable-length drives that don't specify a maximum block size.
c.f. SCSI 2 protocol definition.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Apr 13 05:43:21 1994 UTC (29 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.27: +101 -90 lines
Diff to previous 1.27 (colored) to selected 1.87 (colored)

Various cleanup, but no functional differences.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Apr 11 03:54:12 1994 UTC (29 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.26: +23 -25 lines
Diff to previous 1.26 (colored) to selected 1.87 (colored)

Fix various types.  Remove some outdated flags.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Apr 10 00:07:02 1994 UTC (29 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.25: +6 -14 lines
Diff to previous 1.25 (colored) to selected 1.87 (colored)

Add another rogue...

Revision 1.25 / (download) - annotate - [select for diffs], Tue Apr 5 22:39:37 1994 UTC (29 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.24: +1 -2 lines
Diff to previous 1.24 (colored) to selected 1.87 (colored)

This line is redundant for LD_UNLOAD (only one use, and it does this itself)
but breaks LD_RETEN, forcing a reload of the driver state on the next I/O
operation.  Therefore, it goes away.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Apr 5 22:18:00 1994 UTC (29 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.23: +3 -1 lines
Diff to previous 1.23 (colored) to selected 1.87 (colored)

Reload the tape after retension.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Apr 5 22:08:09 1994 UTC (29 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.22: +5 -2 lines
Diff to previous 1.22 (colored) to selected 1.87 (colored)

Implement MTRETEN (untested).

Revision 1.22 / (download) - annotate - [select for diffs], Tue Apr 5 21:59:49 1994 UTC (29 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.21: +39 -2 lines
Diff to previous 1.21 (colored) to selected 1.87 (colored)

Implement MTEOM, currently untested.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Apr 1 06:49:22 1994 UTC (30 years ago) by mycroft
Branch: MAIN
Changes since 1.20: +30 -26 lines
Diff to previous 1.20 (colored) to selected 1.87 (colored)

Deal with Mark Weaver's rogue tape drive.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Mar 29 04:29:43 1994 UTC (30 years ago) by mycroft
Branch: MAIN
Changes since 1.19: +1483 -1088 lines
Diff to previous 1.19 (colored) to selected 1.87 (colored)

New SCSI system, based on Julian's more recent work.

Revision 1.16.2.12 / (download) - annotate - [select for diffs], Wed Feb 16 02:40:59 1994 UTC (30 years, 1 month ago) by mycroft
Changes since 1.16.2.11: +113 -141 lines
Diff to previous 1.16.2.11 (colored) next main 1.17 (colored) to selected 1.87 (colored)

More KNF-like.

Revision 1.16.2.11 / (download) - annotate - [select for diffs], Tue Feb 15 20:32:11 1994 UTC (30 years, 1 month ago) by mycroft
Changes since 1.16.2.10: +2 -1 lines
Diff to previous 1.16.2.10 (colored) to selected 1.87 (colored)

Reset SDEV_WAITING so we actually wake up the waiting process...

Revision 1.16.2.10 / (download) - annotate - [select for diffs], Sun Feb 6 08:15:47 1994 UTC (30 years, 1 month ago) by mycroft
Changes since 1.16.2.9: +19 -12 lines
Diff to previous 1.16.2.9 (colored) to selected 1.87 (colored)

Remove another use of b_actl.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Feb 6 08:01:45 1994 UTC (30 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.18: +14 -12 lines
Diff to previous 1.18 (colored) to selected 1.87 (colored)

Remove another use of b_actl.

Revision 1.16.2.9 / (download) - annotate - [select for diffs], Tue Feb 1 20:44:11 1994 UTC (30 years, 2 months ago) by mycroft
Changes since 1.16.2.8: +10 -10 lines
Diff to previous 1.16.2.8 (colored) to selected 1.87 (colored)

Fix field name clash.

Revision 1.16.2.8 / (download) - annotate - [select for diffs], Tue Feb 1 20:39:14 1994 UTC (30 years, 2 months ago) by mycroft
Changes since 1.16.2.7: +9 -9 lines
Diff to previous 1.16.2.7 (colored) to selected 1.87 (colored)

Change some things into arrays.

Revision 1.16.2.7 / (download) - annotate - [select for diffs], Sat Jan 22 14:22:01 1994 UTC (30 years, 2 months ago) by briggs
Changes since 1.16.2.6: +2 -2 lines
Diff to previous 1.16.2.6 (colored) to selected 1.87 (colored)

NST -> stcd.cd_ndevs in SC_DEBUG statement.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jan 11 17:22:06 1994 UTC (30 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored) to selected 1.87 (colored)

*strategy functions return void.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Dec 17 08:51:06 1993 UTC (30 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.16: +18 -17 lines
Diff to previous 1.16 (colored) to selected 1.87 (colored)

Canonicalize all #includes.

Revision 1.16.2.6 / (download) - annotate - [select for diffs], Mon Nov 29 03:31:49 1993 UTC (30 years, 4 months ago) by mycroft
Changes since 1.16.2.5: +32 -37 lines
Diff to previous 1.16.2.5 (colored) to selected 1.87 (colored)

Return EBUSY, not ENXIO, if alredy open.

Revision 1.16.2.5 / (download) - annotate - [select for diffs], Thu Nov 25 10:17:40 1993 UTC (30 years, 4 months ago) by mycroft
Changes since 1.16.2.4: +3 -4 lines
Diff to previous 1.16.2.4 (colored) to selected 1.87 (colored)

Correct attach message.

Revision 1.16.2.4 / (download) - annotate - [select for diffs], Thu Nov 25 07:48:54 1993 UTC (30 years, 4 months ago) by mycroft
Changes since 1.16.2.3: +6 -6 lines
Diff to previous 1.16.2.3 (colored) to selected 1.87 (colored)

Correct the display of some messages.

Revision 1.16.2.3 / (download) - annotate - [select for diffs], Thu Nov 25 05:21:53 1993 UTC (30 years, 4 months ago) by mycroft
Changes since 1.16.2.2: +452 -563 lines
Diff to previous 1.16.2.2 (colored) to selected 1.87 (colored)

Compiles.  Will it work?

Revision 1.16.2.2 / (download) - annotate - [select for diffs], Wed Nov 24 05:03:13 1993 UTC (30 years, 4 months ago) by mycroft
Changes since 1.16.2.1: +1584 -1076 lines
Diff to previous 1.16.2.1 (colored) to selected 1.87 (colored)

Under construction...

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Fri Sep 24 08:57:19 1993 UTC (30 years, 6 months ago) by mycroft
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored) to selected 1.87 (colored)

cd.c, sd.c, st.c: strategy functions return void.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Aug 1 19:26:22 1993 UTC (30 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored) to selected 1.87 (colored)

Add RCS identifiers (this time on the correct side of the branch), and
incorporate recent changes in netbsd-0-9 branch.

Revision 1.14.2.2 / (download) - annotate - [select for diffs], Sat Jul 31 12:28:24 1993 UTC (30 years, 8 months ago) by cgd
Changes since 1.14.2.1: +3 -3 lines
Diff to previous 1.14.2.1 (colored) next main 1.15 (colored) to selected 1.87 (colored)

give names, err, wmesg's, to my "pain" -- i.e. convert sleep() to tsleep()

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jul 28 02:22:41 1993 UTC (30 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored) to selected 1.87 (colored)

incorporate changes from 0-9-base to 0-9-ALPHA

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Mon Jul 26 21:54:41 1993 UTC (30 years, 8 months ago) by briggs
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored) to selected 1.87 (colored)

When stioctl() got called with an unknown command, it was not
returning an error code consistently.  This change forces it
to return EINVAL when the command is unknown.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Jul 19 11:30:54 1993 UTC (30 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored) to selected 1.87 (colored)

patches from allen briggs to fix a minor bug in *attach()

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jul 9 04:28:55 1993 UTC (30 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored) to selected 1.87 (colored)

fix evil interaction with new physio; don't set error bit for short reads.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jun 27 06:59:23 1993 UTC (30 years, 9 months ago) by andrew
Branch: MAIN
Changes since 1.11: +6 -6 lines
Diff to previous 1.11 (colored) to selected 1.87 (colored)

ANSIfications.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jun 16 10:39:35 1993 UTC (30 years, 9 months ago) by andrew
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored) to selected 1.87 (colored)

woops - another typo.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jun 16 04:31:43 1993 UTC (30 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored) to selected 1.87 (colored)

whoops. typo.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jun 16 03:39:47 1993 UTC (30 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +6 -2 lines
Diff to previous 1.8 (colored) to selected 1.87 (colored)

fix to intuit the maximum number of scsi units available on a device
driver. this piece at least, should be safe from changing sizeof(dev_t)

Revision 1.8 / (download) - annotate - [select for diffs], Thu May 20 03:46:50 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.7: +2 -0 lines
Diff to previous 1.7 (colored) to selected 1.87 (colored)

add rcsids and clean up file headers

Revision 1.7 / (download) - annotate - [select for diffs], Tue May 4 08:27:38 1993 UTC (30 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +17 -12 lines
Diff to previous 1.6 (colored) to selected 1.87 (colored)

support for making dev->id_alive be set, this is for iostat to
find disk devices. wee bit of a kludge. sub-device attach()
routines must now return 1 for successful attach(), 0 otherwise.
Other bsd's do this too..

Revision 1.6 / (download) - annotate - [select for diffs], Thu Apr 22 00:35:02 1993 UTC (30 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +53 -50 lines
Diff to previous 1.5 (colored) to selected 1.87 (colored)

Fix up error messages and return values.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Apr 20 10:51:57 1993 UTC (30 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored) to selected 1.87 (colored)

Display more meaningful message on SCSI `unit attention'.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Apr 12 12:10:38 1993 UTC (30 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +9 -6 lines
Diff to previous 1.3 (colored) to selected 1.87 (colored)

fixed various bugs like cdattach() returning garbage.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Apr 12 08:19:42 1993 UTC (30 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +912 -1286 lines
Diff to previous 1.2 (colored) to selected 1.87 (colored)

new scsi subsystem.
changes also in config/mkioconf.c
	i386/isa/wd.c, fd.c, and all scsi drivers.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Apr 8 00:20:02 1993 UTC (30 years, 11 months ago) by glass
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored) to selected 1.87 (colored)

attempting to open an already opened tape drive should get you EBUSY, not
ENXIO.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 18:04:42 1993 UTC (31 years ago) by cgd
Branch: MAIN
Diff to selected 1.87 (colored)

after 0.2.2 "stable" patches applied

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>