The NetBSD Project

CVS log for src/sys/dev/scsipi/scsipiconf.h

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.126.16.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:32 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.126: +39 -12 lines
Diff to previous 1.126 (colored) next main 1.127 (colored)

Sync with HEAD

Revision 1.130 / (download) - annotate - [select for diffs], Thu Mar 28 10:44:29 2019 UTC (5 years ago) by kardel
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, thorpej-altq-separation-base, thorpej-altq-separation, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, 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, netbsd-10-base, netbsd-10-0-RELEASE, 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, isaki-audio2-base, isaki-audio2, 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, bouyer-sunxi-drm-base, bouyer-sunxi-drm, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache, HEAD
Changes since 1.129: +29 -4 lines
Diff to previous 1.129 (colored)

Add reading of supported opcodes and their timeouts
at attachment time. Though this information is optional,
it allows to override our fixed timeouts with device
provided timeouts. These timeouts will override the
hardcoded values if the device provided timeouts
exceed the hardcoded values and are less than a day.

Using the device provided timeouts avoids premature
device resets and unreliable operation due to
inadequate timeouts.

Due to the limited implementations of USB
umass devices this feature is disabled for all
umass attached devices.

Revision 1.126.14.3 / (download) - annotate - [select for diffs], Sat Oct 20 06:58:43 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.126.14.2: +2 -1 lines
Diff to previous 1.126.14.2 (colored) to branchpoint 1.126 (colored) next main 1.127 (colored)

Sync with head

Revision 1.129 / (download) - annotate - [select for diffs], Sun Oct 7 18:14:32 2018 UTC (5 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020
Changes since 1.128: +2 -1 lines
Diff to previous 1.128 (colored)

Handle the SATA to USB external enclosure sold by "Sabrent" and
made by JMicro (vendor=0x152d product=0x0578). This bridge does
not understand FUA, so add a quirk for it.

Revision 1.126.14.2 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:04 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.126.14.1: +2 -1 lines
Diff to previous 1.126.14.1 (colored) to branchpoint 1.126 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.128 / (download) - annotate - [select for diffs], Sat Sep 1 07:20:29 2018 UTC (5 years, 7 months ago) by mlelstv
Branch: MAIN
CVS Tags: pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.127: +2 -1 lines
Diff to previous 1.127 (colored)

Wait in detach if the discovery thread is still running. Avoids crashes
when a device is attached/detached rapidly.

Revision 1.126.14.1 / (download) - annotate - [select for diffs], Sat Jul 28 04:37:57 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.126: +9 -9 lines
Diff to previous 1.126 (colored)

Sync with HEAD

Revision 1.127 / (download) - annotate - [select for diffs], Wed Jul 4 03:17:01 2018 UTC (5 years, 9 months ago) by kamil
Branch: MAIN
CVS Tags: pgoyette-compat-0728, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Changes since 1.126: +9 -9 lines
Diff to previous 1.126 (colored)

Avoid undefined behavior in scsipiconf.h in _4ltol() and _4btol()

Do not shift (through integer promotion) a signed value in an operation
than can change the bit of signedness.

sys/dev/scsipi/scsipiconf.h:808:17, left shift of 255 by 24 places cannot be represented in type 'int'

Detected with Kernel Undefined Behavior Sanitizer.

Reported by <Harry Pantazis>

Revision 1.121.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:32 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.121.2.1: +37 -14 lines
Diff to previous 1.121.2.1 (colored) to branchpoint 1.121 (colored) next main 1.122 (colored)

update from HEAD

Revision 1.123.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:41 2017 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.123: +38 -14 lines
Diff to previous 1.123 (colored) next main 1.124 (colored)

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

Revision 1.122.4.2 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:17 2016 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.122.4.1: +38 -14 lines
Diff to previous 1.122.4.1 (colored) to branchpoint 1.122 (colored) next main 1.123 (colored)

Sync with HEAD

Revision 1.126 / (download) - annotate - [select for diffs], Tue Nov 29 03:23:00 2016 UTC (7 years, 4 months ago) by mlelstv
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-compat-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.125: +2 -2 lines
Diff to previous 1.125 (colored)

reference count adapter mutex possibly shared by multiple channels.

fix error in atapibusdetach, when a child device cannot be detached,
keep atapibus instance alive.

Revision 1.125 / (download) - annotate - [select for diffs], Fri Nov 25 02:23:14 2016 UTC (7 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.124: +2 -2 lines
Diff to previous 1.124 (colored)

Move the #endif down to include other kernel only routines.

Revision 1.124 / (download) - annotate - [select for diffs], Sun Nov 20 15:37:19 2016 UTC (7 years, 4 months ago) by mlelstv
Branch: MAIN
Changes since 1.123: +37 -13 lines
Diff to previous 1.123 (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.122.4.1 / (download) - annotate - [select for diffs], Sun May 29 08:44:31 2016 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.122: +1 -2 lines
Diff to previous 1.122 (colored)

Sync with HEAD

Revision 1.123 / (download) - annotate - [select for diffs], Mon May 2 19:18:29 2016 UTC (7 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.122: +1 -2 lines
Diff to previous 1.122 (colored)

move scsipi_strvis -> libkern:strnvisx()
change the prototype to match userland
fix sizes of strings passed to it

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

Rebase to HEAD as of a few days ago.

Revision 1.121.12.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:58 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.121: +7 -7 lines
Diff to previous 1.121 (colored) next main 1.122 (colored)

Rebase.

Revision 1.122 / (download) - annotate - [select for diffs], Sun Jul 13 17:12:23 2014 UTC (9 years, 9 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, 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-1, 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, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.121: +7 -7 lines
Diff to previous 1.121 (colored)

"peripheral", not "peripherial".

Revision 1.118.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.118.8.1: +14 -4 lines
Diff to previous 1.118.8.1 (colored) to branchpoint 1.118 (colored) next main 1.119 (colored)

sync with head.

Revision 1.118.12.1 / (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.118: +15 -4 lines
Diff to previous 1.118 (colored) next main 1.119 (colored)

sync to latest -current.

Revision 1.118.14.1 / (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.118: +18 -3 lines
Diff to previous 1.118 (colored) next main 1.119 (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.121 / (download) - annotate - [select for diffs], Fri Apr 20 20:23:21 2012 UTC (12 years ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, 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, tls-earlyentropy
Changes since 1.120: +3 -8 lines
Diff to previous 1.120 (colored)

Add a bustype_async_event_xfer_mode() callback to scsipi_bustype (which can
be NULL), so that transport-specific details of transfer mode setting/printing
can be handled more easily.
Move scsipi_async_event_xfer_mode() and scsipi_print_xfer_mode() to
scsi_base.c and split in parallel scsi and FC/SAS parts.
size of struct scsipi_bustype has changed, welcome to 6.99.5

Revision 1.120 / (download) - annotate - [select for diffs], Thu Apr 19 17:45:20 2012 UTC (12 years ago) by bouyer
Branch: MAIN
Changes since 1.119: +18 -3 lines
Diff to previous 1.119 (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.118.8.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:02 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.118: +2 -1 lines
Diff to previous 1.118 (colored)

sync with head

Revision 1.119 / (download) - annotate - [select for diffs], Fri Apr 6 22:50:39 2012 UTC (12 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base4
Changes since 1.118: +2 -1 lines
Diff to previous 1.118 (colored)

Add a quirk for the Apple iPod whose mode sense commands fails with not ready.
Seems to work just fine if we send a start command first...

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

Sync with HEAD.

Revision 1.110.32.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:11 2010 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.110.32.4: +12 -6 lines
Diff to previous 1.110.32.4 (colored) to branchpoint 1.110 (colored) next main 1.111 (colored)

sync with head.

Revision 1.116.4.1 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:41 2010 UTC (13 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.116: +12 -6 lines
Diff to previous 1.116 (colored) next main 1.117 (colored)

sync with head

Revision 1.118 / (download) - annotate - [select for diffs], Mon Jun 7 01:41:39 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, netbsd-6-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-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, netbsd-6, jmcneill-usbmp
Changes since 1.117: +4 -4 lines
Diff to previous 1.117 (colored)

Update scsiverbose module to use module_autoload() rather than module_load().
Load the module right before each attempt to use its features, and let the
module subsystem handle unloading.

Revision 1.117 / (download) - annotate - [select for diffs], Sun May 30 04:38:04 2010 UTC (13 years, 10 months ago) by pgoyette
Branch: MAIN
Changes since 1.116: +12 -6 lines
Diff to previous 1.116 (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.110.32.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:03 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.110.32.3: +1 -2 lines
Diff to previous 1.110.32.3 (colored) to branchpoint 1.110 (colored)

sync with head

Revision 1.116 / (download) - annotate - [select for diffs], Wed Oct 21 21:12:05 2009 UTC (14 years, 6 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211, jym-xensuspend-nbase
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.115: +1 -2 lines
Diff to previous 1.115 (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.110.32.3 / (download) - annotate - [select for diffs], Sat May 16 10:41:44 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.110.32.2: +10 -5 lines
Diff to previous 1.110.32.2 (colored) to branchpoint 1.110 (colored)

sync with head

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

Sync with HEAD.

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

Revision 1.115 / (download) - annotate - [select for diffs], Wed May 13 02:35:25 2009 UTC (14 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, jymxensuspend-base, jym-xensuspend-base
Changes since 1.114: +7 -2 lines
Diff to previous 1.114 (colored)

sprinkle #ifdef _KERNEL to make scsictl compile.

Revision 1.114 / (download) - annotate - [select for diffs], Tue May 12 14:44:31 2009 UTC (14 years, 11 months ago) by cegger
Branch: MAIN
Changes since 1.113: +4 -4 lines
Diff to previous 1.113 (colored)

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

Revision 1.110.32.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:18 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.110.32.1: +2 -2 lines
Diff to previous 1.110.32.1 (colored) to branchpoint 1.110 (colored)

sync with head.

Revision 1.112.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:04 2008 UTC (15 years, 6 months ago) by haad
Branch: haad-dm
Changes since 1.112: +2 -2 lines
Diff to previous 1.112 (colored) next main 1.113 (colored)

Sync with HEAD.

Revision 1.110.28.2 / (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.110.28.1: +1 -1 lines
Diff to previous 1.110.28.1 (colored) to branchpoint 1.110 (colored) next main 1.111 (colored)

Sync with HEAD.

Revision 1.111.2.2 / (download) - annotate - [select for diffs], Wed Sep 24 16:38:55 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.111.2.1: +2 -2 lines
Diff to previous 1.111.2.1 (colored) next main 1.112 (colored)

Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.

Revision 1.113 / (download) - annotate - [select for diffs], Mon Sep 8 23:36:54 2008 UTC (15 years, 7 months ago) by gmcgarry
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, 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, netbsd-5, mjf-devfs2-base, 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, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: jym-xensuspend
Changes since 1.112: +2 -2 lines
Diff to previous 1.112 (colored)

Replace most gcc-specific __attribute__ uses with BSD-style sys/cdef.h
preprocessor macros.

Revision 1.111.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.111: +2 -1 lines
Diff to previous 1.111 (colored)

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

Revision 1.110.28.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:51 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.110: +2 -8 lines
Diff to previous 1.110 (colored)

Sync with HEAD.

Revision 1.110.30.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:45 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.110: +2 -8 lines
Diff to previous 1.110 (colored) next main 1.111 (colored)

sync with head.

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

sync with head.

Revision 1.112 / (download) - annotate - [select for diffs], Sun May 11 05:17:23 2008 UTC (15 years, 11 months ago) by mlelstv
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, hpcarm-cleanup-nbase
Branch point for: haad-dm
Changes since 1.111: +2 -1 lines
Diff to previous 1.111 (colored)

Reintroduce the NODOORLOCK quirk. Helps with PR kern/23875.

Revision 1.111 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:58 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
Branch point for: wrstuden-revivesa
Changes since 1.110: +1 -8 lines
Diff to previous 1.110 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.100.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:38:41 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.100.2.2: +7 -7 lines
Diff to previous 1.100.2.2 (colored) to branchpoint 1.100 (colored) next main 1.101 (colored)

sync with head.

Revision 1.109.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:08:18 2007 UTC (16 years, 9 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.109: +5 -5 lines
Diff to previous 1.109 (colored) next main 1.110 (colored)

Sync with head.

Revision 1.110 / (download) - annotate - [select for diffs], Mon Jul 9 21:01:22 2007 UTC (16 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, 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, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-devfs-base, mjf-devfs, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup-base, hpcarm-cleanup, 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: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Changes since 1.109: +5 -5 lines
Diff to previous 1.109 (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.109.2.2 / (download) - annotate - [select for diffs], Sun Jul 1 21:48:58 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.109.2.1: +4 -4 lines
Diff to previous 1.109.2.1 (colored) to branchpoint 1.109 (colored) next main 1.110 (colored)

Adapt to callout API change.

Revision 1.109.2.1 / (download) - annotate - [select for diffs], Mon Apr 9 22:10:00 2007 UTC (17 years ago) by ad
Branch: vmlocking
Changes since 1.109: +2 -2 lines
Diff to previous 1.109 (colored)

- Add two new arguments to kthread_create1: pri_t pri, bool mpsafe.
- Fork kthreads off proc0 as new LWPs, not new processes.

Revision 1.108.4.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:57:10 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.108: +3 -3 lines
Diff to previous 1.108 (colored) next main 1.109 (colored)

Sync with HEAD.

Revision 1.109 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:43 2007 UTC (17 years, 1 month 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.108: +3 -3 lines
Diff to previous 1.108 (colored)

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

Revision 1.103.14.2 / (download) - annotate - [select for diffs], Fri Jan 12 00:57:48 2007 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.103.14.1: +1 -2 lines
Diff to previous 1.103.14.1 (colored) to branchpoint 1.103 (colored) next main 1.104 (colored)

Sync with head.

Revision 1.100.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.100.2.1: +16 -22 lines
Diff to previous 1.100.2.1 (colored) to branchpoint 1.100 (colored)

sync with head.

Revision 1.103.16.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:15 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.103.16.1: +16 -22 lines
Diff to previous 1.103.16.1 (colored) to branchpoint 1.103 (colored) next main 1.104 (colored)

sync with head.

Revision 1.108 / (download) - annotate - [select for diffs], Sun Nov 26 05:01:09 2006 UTC (17 years, 4 months ago) by itohy
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.107: +1 -2 lines
Diff to previous 1.107 (colored)

If the block size reported by Read Capacity looks valid, just use it.
Use Request Sense only if Read Capacity succeeded and did not return
valid block size.
Discussed on tech-kern.
Fix the easier part of NetBSD PR kern/26537.
(The harder part is the device hangs on large (>= 8KB) transfer.
Possibly umass BBB problem?)

Remove scsipi_size() and scsipi_validate_secsize() from scsipi_base.c
and add their functions to sd.c since they are used only by sd.c.

Use SCSI term `block' instead of `sector' where applicable.

Revision 1.103.14.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:49 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.103: +17 -22 lines
Diff to previous 1.103 (colored)

Sync with head.

Revision 1.107 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:26 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.106: +16 -16 lines
Diff to previous 1.106 (colored)

__unused removal on arguments; approved by core.

Revision 1.106 / (download) - annotate - [select for diffs], Mon Oct 30 16:15:56 2006 UTC (17 years, 5 months ago) by skrll
Branch: MAIN
Changes since 1.105: +1 -6 lines
Diff to previous 1.105 (colored)

Remove the boot-from-disk hppa hack now that a real fix has been found.

Revision 1.103.16.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:06:47 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.103: +2 -2 lines
Diff to previous 1.103 (colored)

sync with head

Revision 1.105 / (download) - annotate - [select for diffs], Fri Oct 20 07:11:50 2006 UTC (17 years, 6 months ago) by scw
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.104: +2 -2 lines
Diff to previous 1.104 (colored)

Validate the sector size returned by READ CAPACITY. If it looks bogus
print a warning and fallback to a suitable default.

Fixes a problem on hp700 reported by skrll@

Revision 1.104 / (download) - annotate - [select for diffs], Mon Oct 9 21:29:14 2006 UTC (17 years, 6 months ago) by scw
Branch: MAIN
Changes since 1.103: +2 -2 lines
Diff to previous 1.103 (colored)

Some removable umass(4) devices don't respond to mode sense page 6, or
simply return zero for logical block size. In either case, use the sector
length reported by READ_CAPACITY instead of defaulting to 512 bytes.

This partially addresses the problems reported in PR port-i386/34707 and
PR kern/34737. Namely the incorrectly reported drive geometry and the
'hanging' issue.

However, since the device in question reports 2048-byte physical sectors
it will remain unusable until DEV_BSIZE is banished.

Revision 1.102.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:54:25 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.102: +16 -16 lines
Diff to previous 1.102 (colored) next main 1.103 (colored)

sync with head

Revision 1.100.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:06:47 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.100: +3 -3 lines
Diff to previous 1.100 (colored)

sync with head.

Revision 1.102.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:29 2006 UTC (18 years ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.102: +16 -16 lines
Diff to previous 1.102 (colored) next main 1.103 (colored)

Sync with head.

Revision 1.102.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 15:39:11 2006 UTC (18 years, 2 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.102: +16 -16 lines
Diff to previous 1.102 (colored) next main 1.103 (colored)

sync with head.

Revision 1.103 / (download) - annotate - [select for diffs], Thu Feb 16 20:17:19 2006 UTC (18 years, 2 months ago) by perry
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.102: +16 -16 lines
Diff to previous 1.102 (colored)

Change "inline" back to "__inline" in .h files -- C99 is still too
new, and some apps compile things in C89 mode. C89 keywords stay.

As per core@.

Revision 1.102 / (download) - annotate - [select for diffs], Sat Dec 24 20:27:52 2005 UTC (18 years, 3 months ago) by perry
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.101: +17 -17 lines
Diff to previous 1.101 (colored)

Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.101 / (download) - annotate - [select for diffs], Sun Dec 11 12:23:50 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.100: +2 -2 lines
Diff to previous 1.100 (colored)

merge ktrace-lwp.

Revision 1.76.2.8 / (download) - annotate - [select for diffs], Thu Nov 10 14:07:47 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.76.2.7: +12 -7 lines
Diff to previous 1.76.2.7 (colored) next main 1.77 (colored)

Sync with HEAD. Here we go again...

Revision 1.100 / (download) - annotate - [select for diffs], Mon May 30 04:25:32 2005 UTC (18 years, 10 months ago) by christos
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
Branch point for: yamt-lazymbuf
Changes since 1.99: +2 -2 lines
Diff to previous 1.99 (colored)

- remove bogus casts
- add more const

Revision 1.99 / (download) - annotate - [select for diffs], Sun May 29 22:00:50 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.98: +6 -6 lines
Diff to previous 1.98 (colored)

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

Revision 1.98 / (download) - annotate - [select for diffs], Wed May 18 13:58:10 2005 UTC (18 years, 11 months ago) by chs
Branch: MAIN
Changes since 1.97: +6 -1 lines
Diff to previous 1.97 (colored)

as a stop-gap measure to allow boot-from-disk to work on hppa,
add some padding to the end of struct scsipi_xfer on that platform.

Revision 1.92.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.92: +9 -8 lines
Diff to previous 1.92 (colored) next main 1.93 (colored)

sync with -current

Revision 1.92.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:35:47 2005 UTC (19 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.92: +9 -8 lines
Diff to previous 1.92 (colored) next main 1.93 (colored)

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

Revision 1.76.2.7 / (download) - annotate - [select for diffs], Fri Mar 4 16:50:34 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.76.2.6: +9 -8 lines
Diff to previous 1.76.2.6 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.97 / (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, 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, netbsd-3, kent-audio2-base
Changes since 1.96: +2 -2 lines
Diff to previous 1.96 (colored)

nuke trailing whitespace

Revision 1.96 / (download) - annotate - [select for diffs], Mon Feb 21 00:29:07 2005 UTC (19 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.95: +8 -7 lines
Diff to previous 1.95 (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.95 / (download) - annotate - [select for diffs], Tue Feb 1 00:19:34 2005 UTC (19 years, 2 months ago) by reinoud
Branch: MAIN
CVS Tags: yamt-km-base2
Changes since 1.94: +65 -65 lines
Diff to previous 1.94 (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.94 / (download) - annotate - [select for diffs], Mon Jan 31 23:06:41 2005 UTC (19 years, 2 months ago) by reinoud
Branch: MAIN
Changes since 1.93: +61 -61 lines
Diff to previous 1.93 (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.93 / (download) - annotate - [select for diffs], Mon Jan 31 21:13:16 2005 UTC (19 years, 2 months ago) by reinoud
Branch: MAIN
Changes since 1.92: +5 -5 lines
Diff to previous 1.92 (colored)

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

Revision 1.76.2.6 / (download) - annotate - [select for diffs], Sat Dec 18 09:32:21 2004 UTC (19 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.76.2.5: +31 -1 lines
Diff to previous 1.76.2.5 (colored)

Sync with HEAD.

Revision 1.92 / (download) - annotate - [select for diffs], Sat Dec 4 19:02:25 2004 UTC (19 years, 4 months ago) by thorpej
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.91: +15 -1 lines
Diff to previous 1.91 (colored)

Use READ/WRITE (16) if the LBA is larger than 32 bits.  Another bit
of kern/28514.

Revision 1.91 / (download) - annotate - [select for diffs], Fri Dec 3 20:20:32 2004 UTC (19 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.90: +17 -1 lines
Diff to previous 1.90 (colored)

And thus spake SBC-3:

If the number of logical blocks exceeds the maximum value that is able to be
specified in the RETURNED  LOGICAL BLOCK ADDRESS field, the device server
shall set the RETURNED LOGICAL BLOCK ADDRESS field to  FFFFFFFFh. The
application client should then issue a READ CAPACITY (16) command (see 5.11)
to  retrieve the READ CAPACITY (16) parameter data.

Implement this in scsipi_size().

First issue in kern/28514.

Revision 1.76.2.5 / (download) - annotate - [select for diffs], Tue Sep 21 13:33:24 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.76.2.4: +2 -2 lines
Diff to previous 1.76.2.4 (colored)

Fix the sync with head I botched.

Revision 1.76.2.4 / (download) - annotate - [select for diffs], Sat Sep 18 14:51:25 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.76.2.3: +7 -10 lines
Diff to previous 1.76.2.3 (colored)

Sync with HEAD.

Revision 1.90 / (download) - annotate - [select for diffs], Fri Sep 17 23:43:17 2004 UTC (19 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.89: +3 -4 lines
Diff to previous 1.89 (colored)

Remove the "xfer" argument to scsipi_command().

Revision 1.89 / (download) - annotate - [select for diffs], Fri Sep 17 23:30:22 2004 UTC (19 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.88: +2 -4 lines
Diff to previous 1.88 (colored)

Change the way bustype_cmd is used.  Rather than having it be responsible for
calling scsipi_make_xs() and scsipi_execute_xs(), instead push these into
scsipi_command.  Make bustype_cmd and PHOLD/PRELE be called from
scsipi_execute_xs().  This allows us to create a xfer structure -- possibly on
the stack -- and call scsipi_execute_xs() directly.

Revision 1.88 / (download) - annotate - [select for diffs], Fri Sep 17 23:10:50 2004 UTC (19 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.87: +3 -3 lines
Diff to previous 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.84.2.1 / (download) - annotate - [select for diffs], Sat Sep 11 12:54:42 2004 UTC (19 years, 7 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.84: +3 -2 lines
Diff to previous 1.84 (colored) next main 1.85 (colored)

Pull up revision 1.87 (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.87 / (download) - annotate - [select for diffs], Thu Sep 9 19:35:32 2004 UTC (19 years, 7 months ago) by bouyer
Branch: MAIN
Changes since 1.86: +3 -3 lines
Diff to previous 1.86 (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.76.2.3 / (download) - annotate - [select for diffs], Wed Aug 25 06:58:43 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.76.2.2: +122 -169 lines
Diff to previous 1.76.2.2 (colored)

Sync with HEAD.

Revision 1.86 / (download) - annotate - [select for diffs], Sat Aug 21 21:30:29 2004 UTC (19 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.85: +2 -2 lines
Diff to previous 1.85 (colored)

Const poison scsipi_dtype().

Revision 1.85 / (download) - annotate - [select for diffs], Sat Aug 21 20:40:36 2004 UTC (19 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.84: +122 -169 lines
Diff to previous 1.84 (colored)

- De-__P.
- Use ANSI function decls.

Revision 1.76.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:51:15 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.76.2.1: +3 -9 lines
Diff to previous 1.76.2.1 (colored)

Sync with HEAD

Revision 1.84 / (download) - annotate - [select for diffs], Tue Mar 16 19:10:44 2004 UTC (20 years, 1 month ago) by bouyer
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.83: +2 -2 lines
Diff to previous 1.83 (colored)

cbd -> cdb
Command Block Descriptor -> Command Descriptor Block
Pointed out by Allen Briggs.

Revision 1.83 / (download) - annotate - [select for diffs], Mon Mar 15 22:43:43 2004 UTC (20 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.82: +2 -1 lines
Diff to previous 1.82 (colored)

Extract the code printing the CBD from scsipi_print_sense(), so that it's
usable in other context.
Use the new scsipi_print_cbd() to dump the command in case of timeout
in siop/esiop.

Revision 1.82 / (download) - annotate - [select for diffs], Mon Mar 15 22:28:30 2004 UTC (20 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.81: +2 -2 lines
Diff to previous 1.81 (colored)

Indent.

Revision 1.81 / (download) - annotate - [select for diffs], Sun Feb 22 07:26:15 2004 UTC (20 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.80: +1 -3 lines
Diff to previous 1.80 (colored)

Remove PQUIRK_CDROM.  It is definitely not correct -- witness that no other
OS needs such a hack, and the same drive works fine on Suns -- and is much
more likely to be a bug in the host adapter driver (which is corroborated by
the PQUIRK_NOLUNS).

Revision 1.80 / (download) - annotate - [select for diffs], Thu Sep 18 00:06:34 2003 UTC (20 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.79: +1 -3 lines
Diff to previous 1.79 (colored)

Merge the geometry and cache handling code for all direct access and optical
devices, as it's general to all SCSI MMC devices.  In the process, remove
PQUIRK_NO_FLEX_PAGE.

Revision 1.79 / (download) - annotate - [select for diffs], Wed Sep 17 19:14:58 2003 UTC (20 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.78: +1 -2 lines
Diff to previous 1.78 (colored)

Remove PQUIRK_BYTE5_ZERO.

Revision 1.78 / (download) - annotate - [select for diffs], Tue Sep 9 02:37:56 2003 UTC (20 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.77: +1 -2 lines
Diff to previous 1.77 (colored)

Exorcise PQUIRK_NODOORLOCK.

Revision 1.77 / (download) - annotate - [select for diffs], Mon Sep 8 18:51:37 2003 UTC (20 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.76: +1 -2 lines
Diff to previous 1.76 (colored)

Do a START UNIT only if the TEST UNIT READY reports that the device is not
ready.  This avoids gratuitously starting the motor on floppy and CD-ROM
drives, and eliminates the need for the audio playing test in cdopen().

Therefore, also remove PQUIRK_NOSTARTUNIT.

Revision 1.76.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:26:18 2003 UTC (20 years, 9 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.76: +2 -2 lines
Diff to previous 1.76 (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.76 / (download) - annotate - [select for diffs], Sun Jun 29 22:30:41 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.75: +1 -1 lines
Diff to previous 1.75 (colored)

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

Revision 1.75 / (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.74: +2 -2 lines
Diff to previous 1.74 (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.74 / (download) - annotate - [select for diffs], Sat May 3 18:11:40 2003 UTC (20 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.73: +2 -2 lines
Diff to previous 1.73 (colored)

DMA, not dma nor Dma.

Revision 1.73 / (download) - annotate - [select for diffs], Sat Apr 19 19:16:06 2003 UTC (21 years ago) by fvdl
Branch: MAIN
Changes since 1.72: +2 -1 lines
Diff to previous 1.72 (colored)

Add a PCAP_NODT quirk. I have two older Quantum Atlas drives that work
fine at U2W, but barf at U160, with different controllers. Unfortunately
sometimes just being initialized at U160 does the trick, so setting them
to lower speed in the BIOS may also be needed.

Revision 1.72 / (download) - annotate - [select for diffs], Thu Apr 3 22:18:25 2003 UTC (21 years ago) by fvdl
Branch: MAIN
Changes since 1.71: +18 -2 lines
Diff to previous 1.71 (colored)

Check RAW_PART against the media size instead of the disklabel.
Add the media size in 512-byte sectors to the softc, to avoid
some 64 bit computations. Bump the capacity stored in softcs
for disks to 64 bits.

Revision 1.46.2.11 / (download) - annotate - [select for diffs], Mon Nov 11 22:12:21 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.46.2.10: +2 -2 lines
Diff to previous 1.46.2.10 (colored) next main 1.47 (colored)

Catch up to -current

Revision 1.71 / (download) - annotate - [select for diffs], Sat Oct 19 18:41:34 2002 UTC (21 years, 6 months ago) by mjacob
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored)

Fixes kern/18709 (correcting some typos in comments)

Revision 1.46.2.10 / (download) - annotate - [select for diffs], Fri Oct 18 02:44:18 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.46.2.9: +5 -1 lines
Diff to previous 1.46.2.9 (colored)

Catch up to -current.

Revision 1.54.2.5 / (download) - annotate - [select for diffs], Thu Oct 10 18:42:16 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.54.2.4: +5 -1 lines
Diff to previous 1.54.2.4 (colored) next main 1.55 (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.70 / (download) - annotate - [select for diffs], Thu Sep 19 08:31:09 2002 UTC (21 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: kqueue-base
Changes since 1.69: +5 -1 lines
Diff to previous 1.69 (colored)

Force the initial probes to happen within the newly forked off kthread.
This eliminates problems where the underlying interrupt handler isn't the
specific layer calling scsipi_complete() for a given scsi transaction.
This avoids deadlocks where the kthread that called the autoconf routines
to configure a scsibus shouldn't be the one put to sleep waiting on a
scsipi_complete (only the scsibus's kthread should be doing that).

To avoid jitter this will force the scsibus's to probe in the order they
run through autoconf (so machines with multiple bus's don't move sd* devices
around on every reboot).

Revision 1.54.2.4 / (download) - annotate - [select for diffs], Sun Jun 23 17:48:48 2002 UTC (21 years, 10 months ago) by jdolecek
Branch: kqueue
Changes since 1.54.2.3: +16 -9 lines
Diff to previous 1.54.2.3 (colored)

catch up with -current on kqueue branch

Revision 1.46.2.9 / (download) - annotate - [select for diffs], Thu Jun 20 03:46:40 2002 UTC (21 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.46.2.8: +15 -9 lines
Diff to previous 1.46.2.8 (colored)

Catch up to -current.

Revision 1.68.2.1 / (download) - annotate - [select for diffs], Thu May 30 14:47:22 2002 UTC (21 years, 10 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.68: +10 -8 lines
Diff to previous 1.68 (colored) next main 1.69 (colored)

Catch up with -current.

Revision 1.69 / (download) - annotate - [select for diffs], Thu May 16 02:54:21 2002 UTC (21 years, 11 months ago) by thorpej
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, gehenna-devsw-base
Changes since 1.68: +10 -8 lines
Diff to previous 1.68 (colored)

Don't use a 2-dimensional array for the channel's periph table.  Instead,
hash the target and lun together and use a hash table.  This will be
necessary in order to support very large (64-bit) LUN number spaces.

Revision 1.68 / (download) - annotate - [select for diffs], Wed May 15 11:43:22 2002 UTC (21 years, 11 months ago) by bouyer
Branch: MAIN
Branch point for: gehenna-devsw
Changes since 1.67: +3 -2 lines
Diff to previous 1.67 (colored)

Change PQUIRK_CAP_SYNC to set PERIPH_CAP_SYNC aslo for devices that
improperly claim to only support DT clocking.
Add a PQUIRK_CAP_WIDE16 quirk.
Add a quirk for IBM DXHS36D SCSI disk (claims to only support DT).

Revision 1.67 / (download) - annotate - [select for diffs], Tue Apr 23 09:09:55 2002 UTC (22 years ago) by bouyer
Branch: MAIN
Changes since 1.66: +4 -1 lines
Diff to previous 1.66 (colored)

Report SPC-2 features (DT clocking, quick arbitration and selection,
information unit transfers) though periph_cap.

Revision 1.46.2.8 / (download) - annotate - [select for diffs], Wed Apr 17 00:06:13 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.46.2.7: +2 -1 lines
Diff to previous 1.46.2.7 (colored)

Catch up to -current.

Revision 1.66 / (download) - annotate - [select for diffs], Mon Apr 1 20:37:42 2002 UTC (22 years ago) by bouyer
Branch: MAIN
Changes since 1.65: +2 -1 lines
Diff to previous 1.65 (colored)

Add a chan_name to struct scsipi_channel, holding the channel's name.
Set this to dv_xname for scsibus and atapibus.
Set the name of the kernel thread to chan_name instead of controller's
name:channel number (so that we can use this name for controller-specific
threads).

Revision 1.54.2.3 / (download) - annotate - [select for diffs], Thu Jan 10 19:58:25 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.54.2.2: +21 -13 lines
Diff to previous 1.54.2.2 (colored)

Sync kqueue branch with -current.

Revision 1.46.2.7 / (download) - annotate - [select for diffs], Tue Jan 8 00:31:53 2002 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.46.2.6: +10 -8 lines
Diff to previous 1.46.2.6 (colored)

Catch up to -current.

Revision 1.65 / (download) - annotate - [select for diffs], Sun Dec 2 22:44:34 2001 UTC (22 years, 4 months ago) by bouyer
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, eeh-devprop-base, eeh-devprop
Changes since 1.64: +7 -7 lines
Diff to previous 1.64 (colored)

Clean up attach of wd/atapibus:
kill ata_atapi_attach. Change atapibus to use a struct scsipi_channel instead
of ata_atapi_attach as attach arch. Create a ata_device, compatible with
scsipi_channel, to attach wd.

Revision 1.64 / (download) - annotate - [select for diffs], Mon Nov 19 22:50:00 2001 UTC (22 years, 5 months ago) by tsutsui
Branch: MAIN
Changes since 1.63: +2 -1 lines
Diff to previous 1.63 (colored)

Add a new quirk value PQUIRK_CAP_SYNC for SCSI1 devices which support
sync transfers, and set PERIPH_CAP_SYNC for them in scsi_probe_device().
As per discussion on tech-kern.

Revision 1.63 / (download) - annotate - [select for diffs], Sun Nov 18 17:22:43 2001 UTC (22 years, 5 months ago) by tsutsui
Branch: MAIN
Changes since 1.62: +3 -2 lines
Diff to previous 1.62 (colored)

Fix formatting of scsi_quirk_patterns[] and wrap long lines.

Revision 1.46.2.6 / (download) - annotate - [select for diffs], Mon Oct 22 20:41:43 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.46.2.5: +12 -8 lines
Diff to previous 1.46.2.5 (colored)

Catch up to -current.

Revision 1.62 / (download) - annotate - [select for diffs], Sun Oct 14 20:31:24 2001 UTC (22 years, 6 months ago) by bouyer
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache
Changes since 1.61: +1 -0 lines
Diff to previous 1.61 (colored)

Call ADAPTER_REQ_GROW_RESOURCES from the completion thread, if possible.
This allows HBA drivers to call bus_dmamem_map() safely.

Revision 1.61 / (download) - annotate - [select for diffs], Sun Oct 14 19:03:44 2001 UTC (22 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.60: +11 -8 lines
Diff to previous 1.60 (colored)

Split channel flags in chan_flags used for communications between
scsipi and HBA, and chan_tflags used for communications between scsipi
and its kernel thread. No functionnal change.

Revision 1.46.2.5 / (download) - annotate - [select for diffs], Mon Oct 8 20:11:29 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.46.2.4: +3 -1 lines
Diff to previous 1.46.2.4 (colored)

Catch up to -current.

Revision 1.57.2.2 / (download) - annotate - [select for diffs], Mon Oct 1 12:46:22 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.57.2.1: +3 -1 lines
Diff to previous 1.57.2.1 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored)

Catch up with -current.

Revision 1.60 / (download) - annotate - [select for diffs], Thu Sep 27 18:07:51 2001 UTC (22 years, 6 months ago) by mjacob
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2
Changes since 1.59: +3 -1 lines
Diff to previous 1.59 (colored)

Restore previous definitions.

Revision 1.46.2.4 / (download) - annotate - [select for diffs], Fri Sep 21 22:36:14 2001 UTC (22 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.46.2.3: +2 -14 lines
Diff to previous 1.46.2.3 (colored)

Catch up to -current.

Revision 1.59 / (download) - annotate - [select for diffs], Fri Sep 21 13:54:47 2001 UTC (22 years, 7 months ago) by fvdl
Branch: MAIN
Changes since 1.58: +0 -2 lines
Diff to previous 1.58 (colored)

Unfortunately, the previous change seems to make most (all?) configurations
using the ahc driver hang when probing scsi devices. The problem may be in
the ahc driver and not in this change, but back it out until this has been
fixed anyway.

Revision 1.58 / (download) - annotate - [select for diffs], Tue Sep 18 20:20:26 2001 UTC (22 years, 7 months ago) by mjacob
Branch: MAIN
Changes since 1.57: +3 -1 lines
Diff to previous 1.57 (colored)

Rather than run a periph's queue from scsipi_periph_timed_thaw which is
called via a callout, kick the completion thread to run it for us (uses
a new flag, SCSIPI_CHAN_KICK).

If we've received BUSY status and we haven't started the completion
thread yet, don't freeze do a callout to scsipi_periph_timed_thaw which
then will try and kick the completion thread- instead treat the command
as if it were a polled command and just call delay for 1 second.

If DIAGNOSTIC is defined, and the periph qfreeze count is less than
zero, panic because some HBA has corrupted the periph structure's
accounting.

Revision 1.54.2.2 / (download) - annotate - [select for diffs], Thu Sep 13 01:16:11 2001 UTC (22 years, 7 months ago) by thorpej
Branch: kqueue
Changes since 1.54.2.1: +2 -14 lines
Diff to previous 1.54.2.1 (colored)

Update the kqueue branch to HEAD.

Revision 1.57.2.1 / (download) - annotate - [select for diffs], Fri Sep 7 04:45:31 2001 UTC (22 years, 7 months ago) by thorpej
Branch: thorpej-devvp
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (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.57 / (download) - annotate - [select for diffs], Sun Sep 2 13:11:53 2001 UTC (22 years, 7 months ago) by tsutsui
Branch: MAIN
CVS Tags: thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.56: +1 -14 lines
Diff to previous 1.56 (colored)

Use be16toh(), be32toh(), le16toh() and le32toh() rather than
ntohs(), ntohl() or homegrown bswap() functions.

XXX Does anyone use drives with PQUIRK_LITTLETOC on big endian machines?

Revision 1.56 / (download) - annotate - [select for diffs], Fri Aug 31 07:09:42 2001 UTC (22 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.55: +2 -1 lines
Diff to previous 1.55 (colored)

Add a new quirk, PQUIRK_NOBIGMODESENSE, for devices that need big
SCSI ops, but still fails on big mode sense.
Makes M-Sys DiskOnKey work.

Revision 1.46.2.3 / (download) - annotate - [select for diffs], Fri Aug 24 00:10:51 2001 UTC (22 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.46.2.2: +26 -15 lines
Diff to previous 1.46.2.2 (colored)

Catch up with -current.

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:13:32 2001 UTC (22 years, 8 months ago) by lukem
Branch: kqueue
Changes since 1.54: +10 -1 lines
Diff to previous 1.54 (colored)

update to -current

Revision 1.55 / (download) - annotate - [select for diffs], Wed Jul 18 20:19:24 2001 UTC (22 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.54: +10 -1 lines
Diff to previous 1.54 (colored)

Adn scsipi_target_detach() and scsipi_thread_call_callback() as discussed
on tech-kern. scsipi_target_detach() accept wildcard target/lun as requested.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Jun 26 15:32:02 2001 UTC (22 years, 9 months ago) by bouyer
Branch: MAIN
Branch point for: kqueue
Changes since 1.53: +17 -15 lines
Diff to previous 1.53 (colored)

Add a XS_CTL_SILENT_NODEV flag: if the sense info is "not ready, medium
not present" don't print any message but still return ENODEV.
Use this in cd driver to allow open of character raw partition even if
the drive is empty (older drives fails at LOAD_UNLOAD time, newer
ones fail at TEST_UNIT_READY time).

Revision 1.46.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 20:05:58 2001 UTC (22 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.46.2.1: +443 -205 lines
Diff to previous 1.46.2.1 (colored)

Catch up to -current.

Revision 1.53 / (download) - annotate - [select for diffs], Wed Jun 13 18:17:42 2001 UTC (22 years, 10 months ago) by bjh21
Branch: MAIN
Changes since 1.52: +5 -1 lines
Diff to previous 1.52 (colored)

Add explicit support for IDE and SCSI adaptors which don't support interrupts.
On such adaptors, all transfers are done in polling mode.

OK'ed by Manuel on tech-kern.

Revision 1.52 / (download) - annotate - [select for diffs], Mon May 21 15:50:46 2001 UTC (22 years, 11 months ago) by mjacob
Branch: MAIN
Changes since 1.51: +13 -3 lines
Diff to previous 1.51 (colored)

Remove reference to adapter_q in scsipi structure. Comment about the
usage of channel_q.

Revision 1.51 / (download) - annotate - [select for diffs], Mon May 14 20:35:28 2001 UTC (22 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.50: +9 -1 lines
Diff to previous 1.50 (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.50 / (download) - annotate - [select for diffs], Wed May 2 09:47:45 2001 UTC (22 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

Use same type for first field of struct ata_atapi_attach and struct
scsipi_channel, so umass has better chances of working on big-endian systems.

Revision 1.49 / (download) - annotate - [select for diffs], Mon Apr 30 02:37:51 2001 UTC (22 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.48: +5 -5 lines
Diff to previous 1.48 (colored)

remove some lint

Revision 1.48 / (download) - annotate - [select for diffs], Wed Apr 25 17:53:40 2001 UTC (22 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.47: +418 -202 lines
Diff to previous 1.47 (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.32.2.15 / (download) - annotate - [select for diffs], Mon Apr 23 16:14:57 2001 UTC (23 years ago) by ad
Branch: thorpej_scsipi
Changes since 1.32.2.14: +2 -1 lines
Diff to previous 1.32.2.14 (colored) next main 1.33 (colored)

If SCSIPI_CHAN_NOSETTLE is set in the channel's flags, then don't bother
with SCSI_DELAY.

Revision 1.32.2.14 / (download) - annotate - [select for diffs], Sun Apr 22 16:40:29 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.32.2.13: +2 -1 lines
Diff to previous 1.32.2.13 (colored)

Keep track of the number of commands per periph really sent to the adapter.
In scsipi_run_queue(), compare this to periph_openings instead of periph_active
When a drive reject all queued commands with QUEUE FULL (my IBM DDRS34560D
does this on large writes) we end up with all commands in the queue, and
periph_active > periph_openings.
While doing this I found a bug in scsipi_async_event_channel_reset(): calling
scsipi_done() would corrupt accounting.

Revision 1.32.2.13 / (download) - annotate - [select for diffs], Wed Apr 11 01:16:05 2001 UTC (23 years ago) by mjacob
Branch: thorpej_scsipi
Changes since 1.32.2.12: +2 -2 lines
Diff to previous 1.32.2.12 (colored)

Make scsipi_channel_init a function returning an int- non-zero means
it failed to initialize the channel (this should be acceptable)- in
which case we complain and don't schedule bus probing for later.

We make the internal memory allocations for the periph and the chan_periphs
array M_NOWAIT- this way we have a hope of booting instead of silently hanging
during boot if we've run out of memory.

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Mon Apr 9 01:57:27 2001 UTC (23 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.46: +21 -18 lines
Diff to previous 1.46 (colored)

Catch up with -current.

Revision 1.32.2.12 / (download) - annotate - [select for diffs], Tue Apr 3 15:27:18 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.32.2.11: +2 -1 lines
Diff to previous 1.32.2.11 (colored)

When we send a untagged command, block the queue until this command is
complete.

Revision 1.32.2.11 / (download) - annotate - [select for diffs], Tue Mar 27 15:32:16 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.32.2.10: +4 -3 lines
Diff to previous 1.32.2.10 (colored)

Sync with HEAD.

Revision 1.47 / (download) - annotate - [select for diffs], Tue Mar 20 22:39:08 2001 UTC (23 years, 1 month ago) by augustss
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Changes since 1.46: +21 -18 lines
Diff to previous 1.46 (colored)

Extend quirks to 32 bits.  Add two new ATAPI quirks, one to
deal with a bad byte5 of the capacity descriptor, one to
handle devices that lack the flex geometry page.

Revision 1.32.2.10 / (download) - annotate - [select for diffs], Mon Jan 22 17:43:03 2001 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.32.2.9: +2 -1 lines
Diff to previous 1.32.2.9 (colored)

Don't forget to remove xfer from the channel's queue in
scsipi_async_event_channel_reset()
thaw the periph when request_sense failed(), and when calling user done,
as we're not going though the usual path.
Implement XS_REQUEUE, for drivers needing to requeue a xfer.

Revision 1.32.2.9 / (download) - annotate - [select for diffs], Mon Jan 15 09:22:13 2001 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.32.2.8: +13 -6 lines
Diff to previous 1.32.2.8 (colored)

Handle CHECK CONDITION status in mid-layer:
the REQUEST_SENSE command is generated from scsipi_complete() so it can
tsleep() (we use a regular scsipi_command() call for this). Add a new
periph_flag, PERIPH_SENSE, and a new xs_control, XS_CTL_REQSENSE.
When PERIPH_SENSE is set only xfer with XS_CTL_REQSENSE may be sent
(same logic as PERIPH_RECOVERING but with higther priority). xfer with
XS_CTL_REQSENSE need to have XS_CTL_URGENT urgent too.
XS_CTL_USERCMD xfers are now handled in scsipi_complete().

We need to pay special attention to SCSI resets, as we may have:
- an aborted REQUEST_SENSE. In this case we need to requeue the original
  command, not the request sense.
- sense pending for a command no longer in the queue but for which a
  request sense has not yet been queued. In this case we should not issue
  the request sense but requeue the original command instead.

For this:
- the xfer with the CHECK CONDITION status is stored in the scsipi_periph
  (periph_xscheck); the CHECK CONDITION is tested in scsipi_done, PERIPH_SENSE
  and periph_xscheck is set here.
- XS_CTL_REQSENSE xfers are not allowed to be requeued, and are terminated
  with EINTR in case of reset.
- we have a new async event, "ASYNC_EVENT_RESET", which cleanup the
  xfer in periph_xscheck.
- appropriate splbio/splx to avoid race condition (especially,
  scsipi_request_sense() runs at splbio. Should not be a real problem as it
  doesn't happen often.

While I'm there kill req_sense_length from struct scsipi_xfer, it's always set
to 0 and only checked by a few drivers.

Revision 1.32.2.8 / (download) - annotate - [select for diffs], Mon Nov 20 09:59:26 2000 UTC (23 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.32.2.7: +38 -20 lines
Diff to previous 1.32.2.7 (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.46 / (download) - annotate - [select for diffs], Fri Sep 22 16:45:17 2000 UTC (23 years, 7 months ago) by ad
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.45: +5 -1 lines
Diff to previous 1.45 (colored)

Add a new, optional method to scsipi_adapter (scsipi_accesschk()), and use
it when considering whether to attach devices. This is to facilitate
`non-SCSI' RAID controller drivers that want to provide SCSI pass-through
services to the kernel.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Jul 6 01:56:23 2000 UTC (23 years, 9 months ago) by mjacob
Branch: MAIN
Changes since 1.44: +2 -1 lines
Diff to previous 1.44 (colored)

Reserve top nibble of status for use by the HBA. It's up to the
HBA to set or clear it.

Revision 1.40.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:08:15 2000 UTC (23 years, 10 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.40: +11 -13 lines
Diff to previous 1.40 (colored) next main 1.41 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Jun 9 08:54:26 2000 UTC (23 years, 10 months ago) by enami
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5
Changes since 1.43: +5 -12 lines
Diff to previous 1.43 (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.43 / (download) - annotate - [select for diffs], Wed May 31 09:15:48 2000 UTC (23 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.42: +5 -1 lines
Diff to previous 1.42 (colored)

Add a method, scsipi_getgeom, to the adapter struct.  If this method is
present it will be used to get the drive geometry if the MODE SENSE fails.

Revision 1.42 / (download) - annotate - [select for diffs], Tue May 30 01:08:24 2000 UTC (23 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.41: +2 -1 lines
Diff to previous 1.41 (colored)

Add a quirk, SDEV_ONLYBIG, which implies that the device cannot handle
the 6 byte versions of READ, WRITE, and MODE_SENSE.
This greatly simplifies the UFI (USB Floppy) handling.

Revision 1.41 / (download) - annotate - [select for diffs], Mon May 29 20:13:06 2000 UTC (23 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

ADEV_CDROM -> SDEV_CDROM, for consistency.

Revision 1.40 / (download) - annotate - [select for diffs], Sun Apr 2 17:25:53 2000 UTC (24 years ago) by augustss
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.39: +8 -1 lines
Diff to previous 1.39 (colored)

Change the initial field in struct ata_atapi_attach and struct scsipi_link
slightly to allow scsibus and atapibus to attach to the same device.
Furthermore, only attach a scsibus when the bus type is BUS_SCSI.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Mar 30 00:00:55 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.38: +7 -7 lines
Diff to previous 1.38 (colored)

Get rid of register declarations.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Mar 23 07:01:44 2000 UTC (24 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.37: +3 -1 lines
Diff to previous 1.37 (colored)

New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.

Revision 1.32.2.7 / (download) - annotate - [select for diffs], Fri Feb 4 23:01:55 2000 UTC (24 years, 2 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.32.2.6: +8 -2 lines
Diff to previous 1.32.2.6 (colored)

Make sure the channel's completion thread exits when the channel
is detached, and completely encapsulate the way periph's are stored
by the channel.

Revision 1.29.2.3 / (download) - annotate - [select for diffs], Sun Jan 23 12:41:49 2000 UTC (24 years, 3 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.29.2.2: +6 -2 lines
Diff to previous 1.29.2.2 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored)

Pull up revision 1.36 (via patch, requested by bouyer):
  Use SCSIPIRETRIES instead of hard-coded value '2' for number of
  retries in common routines, and define it as 4 so that ATAPI
  command will succeed after several downgrade.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Jan 20 17:10:18 2000 UTC (24 years, 3 months ago) by mjacob
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.36: +2 -1 lines
Diff to previous 1.36 (colored)

Nobody said no to adding a pointer to original scsi inquiry data
to the scsibus attach args. Make sure it's nulled for ATAPI. Also,
for scsiconf.c, modify SENA's quirk entry.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Jan 17 17:59:49 2000 UTC (24 years, 3 months ago) by bouyer
Branch: MAIN
Changes since 1.35: +6 -1 lines
Diff to previous 1.35 (colored)

Use SCSIPIRETRIES instead of hard-coded value '2' for number of retries in
common routines. Define SCSIPIRETRIES as 4, so that the command will finally
succeed after several consecutive downgrades from UDMA2 to PIO4.

Revision 1.29.2.2 / (download) - annotate - [select for diffs], Sun Jan 16 17:50:15 2000 UTC (24 years, 3 months ago) by he
Branch: netbsd-1-4
Changes since 1.29.2.1: +3 -2 lines
Diff to previous 1.29.2.1 (colored) to branchpoint 1.29 (colored)

Apply patch (requested by ad):
  When probing a SCSI target, do not report an error if the target
  indicates that LUNs are not supported.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Jan 11 15:32:37 2000 UTC (24 years, 3 months ago) by pk
Branch: MAIN
Changes since 1.34: +1 -2 lines
Diff to previous 1.34 (colored)

<machine/cpu.h> is not needed here.

Revision 1.32.6.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:35:35 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.32: +2 -1 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

Pull up to last week's -current.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Dec 23 21:23:29 1999 UTC (24 years, 4 months ago) by leo
Branch: MAIN
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (colored)

Implement the DIOCKLABEL ioctl. Through this ioctl it it possible keep the
disklabel on the last close or to drop it.

Revision 1.32.4.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:41:27 1999 UTC (24 years, 5 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.32: +2 -1 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

Sync with -current

Revision 1.32.2.6 / (download) - annotate - [select for diffs], Mon Nov 1 22:54:20 1999 UTC (24 years, 5 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.32.2.5: +5 -1 lines
Diff to previous 1.32.2.5 (colored)

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

Revision 1.32.2.5 / (download) - annotate - [select for diffs], Tue Oct 26 23:08:06 1999 UTC (24 years, 5 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.32.2.4: +8 -8 lines
Diff to previous 1.32.2.4 (colored)

Deal a little more gracefully with the fact that xfer mode parameters
are for the I_T Nexus, and make all xfer mode updates `async events'.

Revision 1.32.2.4 / (download) - annotate - [select for diffs], Wed Oct 20 22:52:18 1999 UTC (24 years, 6 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.32.2.3: +2 -1 lines
Diff to previous 1.32.2.3 (colored)

Sync w/ trunk.

Revision 1.32.2.3 / (download) - annotate - [select for diffs], Wed Oct 20 20:38:15 1999 UTC (24 years, 6 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.32.2.2: +5 -1 lines
Diff to previous 1.32.2.2 (colored)

Add channel freeze/thaw, and when a timed thaw occurs on either a
channel or periph, make sure to kick the channel queue.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Oct 20 15:22:28 1999 UTC (24 years, 6 months ago) by enami
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.32: +2 -1 lines
Diff to previous 1.32 (colored)

Cancel active transfers on aic/wdc detach.
Also makes LS-120 drive works for me again.

Revision 1.32.2.2 / (download) - annotate - [select for diffs], Tue Oct 19 21:04:27 1999 UTC (24 years, 6 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.32.2.1: +14 -1 lines
Diff to previous 1.32.2.1 (colored)

Add an asynchronous event for the adapter to notify the midlayer that
xfer mode parameters have changed for an I_T Nexus.

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Tue Oct 19 17:39:38 1999 UTC (24 years, 6 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.32: +366 -186 lines
Diff to previous 1.32 (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.32 / (download) - annotate - [select for diffs], Thu Sep 30 22:57:54 1999 UTC (24 years, 6 months ago) by thorpej
Branch: MAIN
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.31: +48 -41 lines
Diff to previous 1.31 (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.31 / (download) - annotate - [select for diffs], Sat Sep 11 21:39:53 1999 UTC (24 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.30: +2 -1 lines
Diff to previous 1.30 (colored)

Implement a function to kill off all commands pending for a given
scsipi_link.

Revision 1.29.2.1.2.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:19:12 1999 UTC (24 years, 10 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.29.2.1: +0 -0 lines
Diff to previous 1.29.2.1 (colored) next main 1.29.2.2 (colored)

Sync w/ -current.

Revision 1.29.2.1 / (download) - annotate - [select for diffs], Thu Apr 8 15:52:43 1999 UTC (25 years ago) by bouyer
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Changes since 1.29: +3 -6 lines
Diff to previous 1.29 (colored)

Pull up atapi_wdc.c rev 1.21 and scsipiconf.h rev 1.30:
Fix botch with atapi capability flags, preventing 16 bytes commands to be ever
sent, and interrupt DRQ capable devices to effectively use interrupts for
the CMD_OUT phase. Didn't break until the code was changed to handle shared
interrupts (and I guess nobody has a device that requires 16 bytes commands
yet). Should fix the hangs reported by some users at first access of an ATAPI
device.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Apr 8 11:29:01 1999 UTC (25 years ago) by bouyer
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.29: +3 -6 lines
Diff to previous 1.29 (colored)

Fix a long-standing bug with the ACAP_* flags:
- the cap field is a u_int8_t, so none of the defined flags would fit in.
  Looks like nobody had a drive using 16 bytes commands.
- the ACAP_DRQ_* flags are all wrong. Just remove them and use the definitions
  from ata/atareg.h, there's no need to duplicate theses. The effect of this
  was that we were always polling for the command phase, even for drives
  with interrupt DRQ. This didn't break until the code was changed to support
  shared interrupts.

Should fix the lookup problems or 'boot hangs' reported by some users, and
kern/7111.

Revision 1.29 / (download) - annotate - [select for diffs], Tue Jan 19 10:57:11 1999 UTC (25 years, 3 months ago) by bouyer
Branch: MAIN
CVS Tags: netbsd-1-4-base, bouyer-ide-last-dist
Branch point for: netbsd-1-4
Changes since 1.28: +2 -5 lines
Diff to previous 1.28 (colored)

Move test for SDEV_NOSTARTUNIT quirk from sd.c to scsipi_start().
Add a SDEV_NOSTARTUNIT quirk entry for BCD-16X 1997-04-25", "", "VER 2.2"
CD-rom (from Michael Santos).

Revision 1.28 / (download) - annotate - [select for diffs], Thu Dec 17 13:05:06 1998 UTC (25 years, 4 months ago) by bouyer
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

Add a new quirk flags, "ADEV_NOSENSE", for devices that don't
handle properly the request sense command. Add <FX320S, , q01> as being
sense-unfriendly in the quirk table.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Dec 8 00:13:58 1998 UTC (25 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.26: +16 -3 lines
Diff to previous 1.26 (colored)

- Remove the "free_list" member from scsipi_xfer.  Add "adapter_q" and
  "device_q" TAILQ entries.  The former is for use by the adapter driver,
  as it sees fit.  The latter is for the scsipi middle layer to track
  pending xfers per device.
- Add a pending_xfers queue to scsipi_link, to track pending xfers per
  device.
- Grow scsipi_link's flags to int, and add SDEV_WAITDRAIN, to indicate that
  we're waiting for the pending_xfers queue to empty.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Dec 5 19:41:31 1998 UTC (25 years, 4 months ago) by mjacob
Branch: MAIN
Changes since 1.25: +5 -3 lines
Diff to previous 1.25 (colored)

Add a max_lun property to match with the max_target property. Shorten
max_target to int16.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Nov 19 20:08:52 1998 UTC (25 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.24: +9 -3 lines
Diff to previous 1.24 (colored)

Add support for reference counting and enabling/disabling SCSI and
ATAPI controllers.  This will eventually be used for power management
of e.g. PCMCIA SCSI and IDE controller cards.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Nov 17 14:38:43 1998 UTC (25 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.23: +13 -6 lines
Diff to previous 1.23 (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.23 / (download) - annotate - [select for diffs], Thu Oct 15 07:06:47 1998 UTC (25 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.22: +13 -13 lines
Diff to previous 1.22 (colored)

Some const poisioning.

Revision 1.22 / (download) - annotate - [select for diffs], Thu Oct 15 05:11:52 1998 UTC (25 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.21: +3 -1 lines
Diff to previous 1.21 (colored)

Protect kernel prototypes w/ #ifdef _KERNEL.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Oct 15 05:10:20 1998 UTC (25 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

Forward decl of struct proc.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Oct 12 16:09:25 1998 UTC (25 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.19: +7 -9 lines
Diff to previous 1.19 (colored)

Merge bouyer-ide

Revision 1.8.2.7 / (download) - annotate - [select for diffs], Mon Oct 12 14:33:39 1998 UTC (25 years, 6 months ago) by bouyer
Branch: bouyer-ide
CVS Tags: bouyer-ide-merge
Changes since 1.8.2.6: +15 -8 lines
Diff to previous 1.8.2.6 (colored) next main 1.9 (colored)

Sync with HEAD.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Oct 10 00:36:13 1998 UTC (25 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: bouyer-ide-base
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (colored)

Define an additional host adapter return code, XS_RESET, indicating
that the bus was reset while the command was pending.  The middle
layer may choose to retry the command.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Oct 10 00:28:28 1998 UTC (25 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.17: +8 -3 lines
Diff to previous 1.17 (colored)

Garbage-collect the open_target_lu and close_target_lu entry points from
struct scsipi_adapter; they were not used.

Add a scsipi_ioctl entry point to struct scsipi_adapter.  This will be
used to issue ioctl commands to the host adapters.

Inspired by PR #6090, from Matt Jacob.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Oct 8 20:17:52 1998 UTC (25 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.16: +7 -6 lines
Diff to previous 1.16 (colored)

Add a "NOSYNCCACHE" quirk, as suggested by Matt Jacob in PR #6027.

Revision 1.8.2.6 / (download) - annotate - [select for diffs], Sun Sep 20 16:37:21 1998 UTC (25 years, 7 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.8.2.5: +9 -1 lines
Diff to previous 1.8.2.5 (colored)

sync with HEAD

Revision 1.16 / (download) - annotate - [select for diffs], Fri Sep 18 05:45:03 1998 UTC (25 years, 7 months ago) by scottr
Branch: MAIN
Changes since 1.15: +8 -2 lines
Diff to previous 1.15 (colored)

Define a SCSIPI_XFER_ASYNC macro to test whether a request will be
completed asynchronously.  Eliminate SCSI_ASYNCREQ, which is actually
redundant information.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Sep 14 05:49:21 1998 UTC (25 years, 7 months ago) by scottr
Branch: MAIN
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored)

Fix a problem uncovered when we started to use the pool allocator to manage
scsipi_xfer structures.

When scsipi_execute_xs() calls the driver's scsi_cmd function, it assumes
that it can still dereference a pointer to the scsipi_xfer struct.  Since
scsipi_done() has already been called, which in turn has called
scsipi_free_xs(), the struct has already been returned the structure to
the pool!  In other words, xs->flags has been compromised, but we are still
testing it.

These changes resolve the problem by doing the following:

- In scsipi_execute_xs(), if the hardware driver's scsi_cmd function
  returns SUCCESSFULLY_QUEUED, set a new flag (SCSI_ASYNCREQ) in xs->flags.
  Since the request will be handled asynchronously, we will need the
  scsipi_xfer struct to be freed in scsipi_done().

  If the hardware driver's scsi_cmd function returns COMPLETE, we now
  simply return any actual errors, or 0 if none occurred.  (Previously,
  we may have returned EJUSTRETURN, of which the sole effect was to
  avoid freeing the scsipi_xfer struct in our caller.)

- In scsipi_done(), only free the scsipi_xfer struct for async requests.
  The contents of the struct will otherwise remain valid until the
  function that initiated the transfer frees it.

With this change, responsibility for freeing the struct now lies in two
places, depending on the type of the request:

- For synchronous requests, the routine calling scsipi_execute_xs()
  must clean up.

- For asynchronous requests, scsipi_done() cleans up (as it always has).

[Note:  this change also corrects a problem with sddump():  scsipi_done()
was attempting to return a static scsipi_xfer struct to the pool!  Since
dumps are performed synchronously, we now handle this correctly.]

This solution was provided by Jason Thorpe, after I got him to look at
some related (but insufficient) attempts of my own.

Revision 1.8.2.5 / (download) - annotate - [select for diffs], Fri Sep 11 16:23:13 1998 UTC (25 years, 7 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.8.2.4: +15 -9 lines
Diff to previous 1.8.2.4 (colored)

Sync with HEAD.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Sep 8 07:32:42 1998 UTC (25 years, 7 months ago) by mjacob
Branch: MAIN
Changes since 1.13: +15 -9 lines
Diff to previous 1.13 (colored)

Clarify quirk flags somwhat- split SDEV_NOSYNCWIDE into SDEV_NOSYNC and
SDEV_NOWIDE and add SDEV_NOTAG.

Revision 1.8.2.4 / (download) - annotate - [select for diffs], Fri Aug 21 16:34:47 1998 UTC (25 years, 8 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.8.2.3: +27 -20 lines
Diff to previous 1.8.2.3 (colored)

Sync with -current

Revision 1.13 / (download) - annotate - [select for diffs], Mon Aug 17 00:49:02 1998 UTC (25 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +27 -20 lines
Diff to previous 1.12 (colored)

Assign my copyrights to TNF.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Aug 15 03:02:48 1998 UTC (25 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

Make copyright notices with my name consistent.

Revision 1.8.2.3 / (download) - annotate - [select for diffs], Thu Aug 13 14:27:52 1998 UTC (25 years, 8 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.8.2.2: +3 -2 lines
Diff to previous 1.8.2.2 (colored)

 - sync with HEAD
 - better error detection and report for wd drives
 - better wddump() support
 - wdcwait() now takes a timout argument, so that we can honnor the
   timeout argument of scsipi cmds.

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Sat Aug 8 03:06:52 1998 UTC (25 years, 8 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

Revert cdevsw mmap routines to return int.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Aug 5 16:29:06 1998 UTC (25 years, 8 months ago) by drochner
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Improve generation of default disklabels:
-store printable product ID in cd's and sd's softc, use it as "typename"
-for this, add a "destination buffer length" argument to scsipi_strvis()
-return ATAPI device type for ATAPI devices

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jul 31 03:00:51 1998 UTC (25 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

Use the pool allocator for scsipi_xfer structures.

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Mon Jul 27 19:02:46 1998 UTC (25 years, 8 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.8.2.1: +11 -1 lines
Diff to previous 1.8.2.1 (colored)

Sync with -current

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jul 15 20:11:34 1998 UTC (25 years, 9 months ago) by mjacob
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.8: +11 -1 lines
Diff to previous 1.8 (colored)

1) Part of fix for kern/3835: add in enumerated return values for target
drivers' sense handlers to return. Coincidentally one of them ends up
being ERESTARTSYS.

2) Add a SCSI_URGENT flag to xs structure- this allows host adapters that
do command tagging to do the right thing wrt a tag.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Thu Jun 4 16:53:08 1998 UTC (25 years, 10 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.8: +7 -9 lines
Diff to previous 1.8 (colored)

Commit changes to the IDE system in a branch. This allows a better separation
between higth-level and low-level (i.e. registers read/write) and generalize
the queue for all commands. This also add supports for IDE DMA.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Feb 13 04:19:33 1998 UTC (26 years, 2 months ago) by enami
Branch: MAIN
Branch point for: bouyer-ide
Changes since 1.7: +5 -5 lines
Diff to previous 1.7 (colored)

Fix or add protection for mutiple inclusion.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jan 15 02:21:37 1998 UTC (26 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.6: +6 -5 lines
Diff to previous 1.6 (colored)

add support for an ATAPI attachment for 'sd'.
fix 'cd' driver's NCD_SCSI bogosity (was using testing wrong macro!)
clean up in various ways:
* make common atapi_mode_{sense,select}() functions.
* put ATAPI data structures in more sensible headers, split up by
  device type.
* include headers a bit more carefully.
* pass flags to attachment-specific cd functions, and use them.
* get rid of SCSI bits in scsipi_base.h's scsipi_make_xs(), move
  them into the correct place in scsi_base.c.
* fix minor typo in struct name in scsipiconf.h (which was apparently
  never used except in a #define later in the same file).
* use __attribute__ to force 4-byte alignment for xs command store,
  so that architectures trying to bus_space_write_multi_N() (where
  N > 1) that data to a controller won't lose.
* clean up a few comments in typos, and make a few #defines easier to
  understand/maintain.
* rename cd_link.h to cdvar.h (via repository copy).  This is exactly
  what a 'var' file is supposed to be.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Dec 15 07:15:57 1997 UTC (26 years, 4 months ago) by scottr
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Fix a typo in a comment.

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Thu Nov 20 04:11:10 1997 UTC (26 years, 5 months ago) by thorpej
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Pull up from trunk: declare scsipi_xfer's "flags" to be volatile.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Nov 20 04:09:19 1997 UTC (26 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Declare the scsipi_xfer's "flags" member to be volatile, to force it
to be reloaded every time it is checked.  This avoids a condition where
it can be cached in a register in such a way that updates to the flags in
an interrupt handler to not be noticed, which in turn causes the process
doing the i/o to sleep forever.  Bug report and suggested fix from
Hiroshi HORIMOTO <horimoto@cs-yuugao.cs.sist.ac.jp>, PR $4460.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Oct 18 19:51:05 1997 UTC (26 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.3: +17 -1 lines
Diff to previous 1.3 (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.2.2.3 / (download) - annotate - [select for diffs], Tue Oct 14 10:25:28 1997 UTC (26 years, 6 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.2.2.2: +27 -28 lines
Diff to previous 1.2.2.2 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Oct 1 01:19:14 1997 UTC (26 years, 6 months ago) by enami
Branch: MAIN
CVS Tags: marc-pcmcia-base
Changes since 1.2: +27 -28 lines
Diff to previous 1.2 (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.2.2.2 / (download) - annotate - [select for diffs], Wed Aug 27 23:33:30 1997 UTC (26 years, 7 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.2.2.1: +511 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.2.2.1, Wed Aug 27 11:27:00 1997 UTC (26 years, 7 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.2: +0 -511 lines
FILE REMOVED

file scsipiconf.h was added on branch marc-pcmcia on 1997-08-27 23:33:30 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Wed Aug 27 11:27:00 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.1: +511 -0 lines
Diff to previous 1.1 (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.1.2.3 / (download) - annotate - [select for diffs], Thu Jul 17 15:00:06 1997 UTC (26 years, 9 months ago) by bouyer
Branch: bouyer-scsipi
Changes since 1.1.2.2: +28 -15 lines
Diff to previous 1.1.2.2 (colored) next main 1.2 (colored)

Update from trunck: quirk entries, __attribute__ ((unused)) and
probe message of scsi disks.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Tue Jul 1 23:32:51 1997 UTC (26 years, 9 months ago) by thorpej
Branch: bouyer-scsipi
Changes since 1.1.2.1: +55 -48 lines
Diff to previous 1.1.2.1 (colored)

Purely cosmetic formatting changes: some spaces -> tabs, indenting
consistency in prototypes.

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Tue Jul 1 16:52:43 1997 UTC (26 years, 9 months ago) by bouyer
Branch: bouyer-scsipi
Changes since 1.1: +491 -0 lines
Diff to previous 1.1 (colored)

New merged scsi/atapi code. Tested on i386 and sparc. Commiting to a branch
for now, so that it can be tested on other ports too.
The config sheme is as follow:
New merged scsi/atapi code. Tested on i386 and sparc. Commiting to a branch
for now, so that it can be tested on other ports too.
The config sheme is as follow:
scsibus at aha
sd at scsibus
cd at scsibus
atapibus at wdc
cd at atapibus
cd has bus-specific config and function front-end in scsicd.c and atapicd.c
The call to theses functions from cd.c is conditionned to
NSCSICD and NATAPICD (all defined in cd.h by config).

Revision 1.1, Tue Jul 1 16:52:43 1997 UTC (26 years, 9 months ago) by bouyer
Branch: MAIN
Branch point for: bouyer-scsipi
FILE REMOVED

file scsipiconf.h was initially added on branch bouyer-scsipi.

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>