The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.303 / (download) - annotate - [select for diffs], Sat Oct 15 18:42:49 2022 UTC (3 months, 2 weeks ago) by jmcneill
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.302: +4 -2 lines
Diff to previous 1.302 (colored)

Add PQUIRK_ONLYBIG for Oracle OCI BlockVolumes.

Oracle cloud BlockVolumes do not appear to support SCSI READ6 or WRITE6
commands, so set PQUIRK_ONLYBIG to avoid it here.

Revision 1.302 / (download) - annotate - [select for diffs], Thu Apr 14 16:50:26 2022 UTC (9 months, 2 weeks ago) by pgoyette
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.301: +2 -59 lines
Diff to previous 1.301 (colored)

Split some common stuff into scsi_subr module.  This enables loading
of the iscsi module whether or not there are any scsi things built
into the kernel.

Addresses the iscsi portion of kern/56772

Revision 1.301 / (download) - annotate - [select for diffs], Sat Apr 9 23:38:32 2022 UTC (9 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.300: +4 -4 lines
Diff to previous 1.300 (colored)

sys: Use membar_release/acquire around reference drop.

This just goes through my recent reference count membar audit and
changes membar_exit to membar_release and membar_enter to
membar_acquire -- this should make everything cheaper on most CPUs
without hurting correctness, because membar_acquire is generally
cheaper than membar_enter.

Revision 1.300 / (download) - annotate - [select for diffs], Sat Mar 12 16:57:15 2022 UTC (10 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.299: +8 -4 lines
Diff to previous 1.299 (colored)

scsi(9): Handle bogus number of LUNs in SCSI_REPORT_LUNS.

Reported-by: syzbot+76ef9084533d4bccec66@syzkaller.appspotmail.com

Revision 1.299 / (download) - annotate - [select for diffs], Sat Mar 12 15:32:32 2022 UTC (10 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.298: +6 -3 lines
Diff to previous 1.298 (colored)

sys: Membar audit around reference count releases.

If two threads are using an object that is freed when the reference
count goes to zero, we need to ensure that all memory operations
related to the object happen before freeing the object.

Using an atomic_dec_uint_nv(&refcnt) == 0 ensures that only one
thread takes responsibility for freeing, but it's not enough to
ensure that the other thread's memory operations happen before the
freeing.

Consider:

	  Thread A			  Thread B
	obj->foo = 42;			obj->baz = 73;
	mumble(&obj->bar);		grumble(&obj->quux);
	/* membar_exit(); */		/* membar_exit(); */
	atomic_dec -- not last		atomic_dec -- last
					/* membar_enter(); */
					KASSERT(invariant(obj->foo,
					    obj->bar));
					free_stuff(obj);

The memory barriers ensure that

	obj->foo = 42;
	mumble(&obj->bar);

in thread A happens before

	KASSERT(invariant(obj->foo, obj->bar));
	free_stuff(obj);

in thread B.  Without them, this ordering is not guaranteed.

So in general it is necessary to do

	membar_exit();
	if (atomic_dec_uint_nv(&obj->refcnt) != 0)
		return;
	membar_enter();

to release a reference, for the `last one out hit the lights' style
of reference counting.  (This is in contrast to the style where one
thread blocks new references and then waits under a lock for existing
ones to drain with a condvar -- no membar needed thanks to mutex(9).)

I searched for atomic_dec to find all these.  Obviously we ought to
have a better abstraction for this because there's so much copypasta.
This is a stop-gap measure to fix actual bugs until we have that.  It
would be nice if an abstraction could gracefully handle the different
styles of reference counting in use -- some years ago I drafted an
API for this, but making it cover everything got a little out of hand
(particularly with struct vnode::v_usecount) and I ended up setting
it aside to work on psref/localcount instead for better scalability.

I got bored of adding #ifdef __HAVE_ATOMIC_AS_MEMBAR everywhere, so I
only put it on things that look performance-critical on 5sec review.
We should really adopt membar_enter_preatomic/membar_exit_postatomic
or something (except they are applicable only to atomic r/m/w, not to
atomic_load/store_*, making the naming annoying) and get rid of all
the ifdefs.

Revision 1.298 / (download) - annotate - [select for diffs], Sat Feb 5 17:32:59 2022 UTC (11 months, 3 weeks ago) by hannken
Branch: MAIN
Changes since 1.297: +4 -2 lines
Diff to previous 1.297 (colored)

Initialize "replun" -- found with KMSAN.

Revision 1.297 / (download) - annotate - [select for diffs], Sat Jan 29 11:20:30 2022 UTC (12 months ago) by martin
Branch: MAIN
Changes since 1.296: +4 -4 lines
Diff to previous 1.296 (colored)

In some cases the gcc optimizer is not smart enough to figure out why
the luns and nluns variables are never actually used when they are not
initialized - so initialize them always.

Revision 1.296 / (download) - annotate - [select for diffs], Fri Jan 28 18:23:28 2022 UTC (12 months ago) by christos
Branch: MAIN
Changes since 1.295: +27 -22 lines
Diff to previous 1.295 (colored)

Factor out the lun detection code to simplify control flow.

Revision 1.295 / (download) - annotate - [select for diffs], Fri Jan 28 14:02:45 2022 UTC (12 months ago) by jakllsch
Branch: MAIN
Changes since 1.294: +4 -5 lines
Diff to previous 1.294 (colored)

shut up GCC about possibly-uninit; some KNF

Revision 1.294 / (download) - annotate - [select for diffs], Thu Jan 27 18:37:02 2022 UTC (12 months ago) by jakllsch
Branch: MAIN
Changes since 1.293: +120 -2 lines
Diff to previous 1.293 (colored)

Try REPORT LUNS command to enumerate logical units.

Revision 1.293 / (download) - annotate - [select for diffs], Tue Dec 21 22:53:21 2021 UTC (13 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.292: +5 -2 lines
Diff to previous 1.292 (colored)

scsi(4): Take kernel lock around entry into autoconf.

This code paths is entered by kthreads marked MP-safe, not just from
autoconf.

I'm not sure this is sufficient -- it's not clear to me whether
anything prevents concurrently scanning the same target.  Someone with
a better understanding of scsi(4) locking will have to audit this.

(For example, maybe it is guaranteed only to happen only either (a)
in autoconf, or (b) in a thread that doesn't start until autoconf is
done.  But I don't know -- and if it is this, it should be asserted
so we can verify it.)

Revision 1.292 / (download) - annotate - [select for diffs], Sat Aug 7 16:19:16 2021 UTC (17 months, 3 weeks ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Changes since 1.291: +5 -7 lines
Diff to previous 1.291 (colored)

Merge thorpej-cfargs2.

Revision 1.291.8.1 / (download) - annotate - [select for diffs], Wed Aug 4 23:14:04 2021 UTC (17 months, 3 weeks ago) by thorpej
Branch: thorpej-cfargs2
Changes since 1.291: +5 -7 lines
Diff to previous 1.291 (colored) next main 1.292 (colored)

Adapt to CFARGS().

Revision 1.291 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:58 2021 UTC (21 months, 1 week ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-cfargs2
Changes since 1.290: +10 -8 lines
Diff to previous 1.290 (colored)

Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

Revision 1.290.4.4 / (download) - annotate - [select for diffs], Sat Apr 3 06:54:29 2021 UTC (21 months, 4 weeks ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.290.4.3: +5 -4 lines
Diff to previous 1.290.4.3 (colored) to branchpoint 1.290 (colored) next main 1.291 (colored)

config_attach_loc() -> config_attach() with CFARG_LOCATORS argument.

Revision 1.290.4.3 / (download) - annotate - [select for diffs], Sun Mar 28 20:38:47 2021 UTC (22 months ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.290.4.2: +3 -4 lines
Diff to previous 1.290.4.2 (colored) to branchpoint 1.290 (colored)

Unwrap a line.

Revision 1.290.4.2 / (download) - annotate - [select for diffs], Sun Mar 21 17:35:49 2021 UTC (22 months, 1 week ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.290.4.1: +2 -3 lines
Diff to previous 1.290.4.1 (colored) to branchpoint 1.290 (colored)

CFARG_IATTR usage audit:

If a device carries only one interface attribute, there is no need
to specify it when calling config_search(); that specification is
meant only to disambiguate which interface attribute (which is a
proxy for "what kind of attach args are being used") is having
children attached.  cfparent_match() will take care of ensuring that
any potential children can attach to one of the parent's iterface
attributes, and if the parent only carries one, no disambiguation is
necessary.

Revision 1.290.4.1 / (download) - annotate - [select for diffs], Sat Mar 20 19:33:41 2021 UTC (22 months, 1 week ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.290: +7 -4 lines
Diff to previous 1.290 (colored)

The proliferation if config_search_*() and config_found_*() combinations
is a little absurd, so begin to tidy this up:

- Introduce a new cfarg_t enumerated type, that defines the types of
  tag-value variadic arguments that can be passed to the various
  config_*() functions (CFARG_SUBMATCH, CFARG_IATTR, and CFARG_LOCATORS,
  for now, plus a CFARG_EOL sentinel).
- Collapse config_search_*() into config_search() that takes these
  variadic arguments.
- Convert all call sites of config_search_*() to the new signature.
  Noticed several incorrect usages along the way, which will be
  audited in a future commit.

Revision 1.279.6.3 / (download) - annotate - [select for diffs], Sat Dec 19 19:04:49 2020 UTC (2 years, 1 month ago) by martin
Branch: netbsd-8
Changes since 1.279.6.2: +8 -2 lines
Diff to previous 1.279.6.2 (colored) to branchpoint 1.279 (colored) next main 1.280 (colored)

Pull up following revision(s) (requested by tsutsui in ticket #1640):

	sys/dev/scsipi/scsiconf.c: revision 1.283

Add NOLUNS quirk for more SEAGATE SCA/WIDE drives.

Tested on NetBSD/luna68k and LUNA with SCA 80pin -> NARROW 50pin and
WIDE 68pin -> NARROW 50pin connectors.

Revision 1.290 / (download) - annotate - [select for diffs], Fri Sep 18 15:04:25 2020 UTC (2 years, 4 months ago) by jakllsch
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Changes since 1.289: +2 -4 lines
Diff to previous 1.289 (colored)

Revert scsiconf.c 1.288, it only worked for LUN 1.

vioscsi(4) now sets PQUIRK_FORCELUNS, which fixes the original issue for
all LUNs.

To-do: should issue REPORT LUNS and use the information it returns to
probe LUNs in an optimized way.

Revision 1.289 / (download) - annotate - [select for diffs], Thu Sep 17 01:19:41 2020 UTC (2 years, 4 months ago) by jakllsch
Branch: MAIN
Changes since 1.288: +6 -6 lines
Diff to previous 1.288 (colored)

Some misspelling-in-comments fixes for scsipi

Revision 1.279.6.2 / (download) - annotate - [select for diffs], Mon Jul 13 14:10:25 2020 UTC (2 years, 6 months ago) by martin
Branch: netbsd-8
Changes since 1.279.6.1: +4 -2 lines
Diff to previous 1.279.6.1 (colored) to branchpoint 1.279 (colored)

Pull up following revision(s) (requested by kim in ticket #1571):

	sys/dev/scsipi/scsiconf.c: revision 1.288

Continue scanning a SCSI bus when a LUN is reported not present

This fixes disk attachment under Qemu when there is no disk on LUN 0 on
a SCSI bus but there is a disk on LUN 1. The inquiry for LUN 0 returns
SID_QUAL_LU_NOTPRESENT & T_NODEVICE.  Quirks are only checked if neither
one of those are set, so cannot use a quirk entry.

Use case 1: Proxmox 6 configures each disk on its own bus when using
the "Virtio SCSI single" SCSI controller. However, while the "scsi0"
disk is on LUN 0, the "scsi1" disk is on LUN 1.

Use case 2: A Linode boot profile with multiple disks results in
the first disk ("sda") on LUN 1, while the second disk ("sdb") is
on LUN 0, each on their own bus.

Revision 1.284.4.2 / (download) - annotate - [select for diffs], Mon Jul 13 14:09:10 2020 UTC (2 years, 6 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.284.4.1: +4 -2 lines
Diff to previous 1.284.4.1 (colored) to branchpoint 1.284 (colored) next main 1.285 (colored)

Pull up following revision(s) (requested by kim in ticket #1000):

	sys/dev/scsipi/scsiconf.c: revision 1.288

Continue scanning a SCSI bus when a LUN is reported not present

This fixes disk attachment under Qemu when there is no disk on LUN 0 on
a SCSI bus but there is a disk on LUN 1. The inquiry for LUN 0 returns
SID_QUAL_LU_NOTPRESENT & T_NODEVICE.  Quirks are only checked if neither
one of those are set, so cannot use a quirk entry.

Use case 1: Proxmox 6 configures each disk on its own bus when using
the "Virtio SCSI single" SCSI controller. However, while the "scsi0"
disk is on LUN 0, the "scsi1" disk is on LUN 1.

Use case 2: A Linode boot profile with multiple disks results in
the first disk ("sda") on LUN 1, while the second disk ("sdb") is
on LUN 0, each on their own bus.

Revision 1.288 / (download) - annotate - [select for diffs], Sat Jul 11 14:31:46 2020 UTC (2 years, 6 months ago) by kim
Branch: MAIN
Changes since 1.287: +4 -2 lines
Diff to previous 1.287 (colored)

Continue scanning a SCSI bus when a LUN is reported not present

This fixes disk attachment under Qemu when there is no disk on LUN 0 on
a SCSI bus but there is a disk on LUN 1. The inquiry for LUN 0 returns
SID_QUAL_LU_NOTPRESENT & T_NODEVICE.  Quirks are only checked if neither
one of those are set, so cannot use a quirk entry.

Use case 1: Proxmox 6 configures each disk on its own bus when using
the "Virtio SCSI single" SCSI controller. However, while the "scsi0"
disk is on LUN 0, the "scsi1" disk is on LUN 1.

Use case 2: A Linode boot profile with multiple disks results in
the first disk ("sda") on LUN 1, while the second disk ("sdb") is
on LUN 0, each on their own bus.

Revision 1.284.4.1 / (download) - annotate - [select for diffs], Mon May 4 13:50:07 2020 UTC (2 years, 8 months ago) by martin
Branch: netbsd-9
Changes since 1.284: +9 -5 lines
Diff to previous 1.284 (colored)

Pull up following revision(s) (requested by jdc in ticket #885):

	sys/dev/scsipi/scsiconf.c: revision 1.287

Don't attempt to read opcodes and their timeouts at attach time for
old devices.  The MAINTENANCE IN command was introduced with SCSI-3
and sending it to older peripherals can cause timeouts or them not
to respond to further requests.

Revision 1.287 / (download) - annotate - [select for diffs], Sat May 2 06:45:53 2020 UTC (2 years, 9 months ago) by jdc
Branch: MAIN
Changes since 1.286: +9 -5 lines
Diff to previous 1.286 (colored)

Don't attempt to read opcodes and their timeouts at attach time for
old devices.  The MAINTENANCE IN command was introduced with SCSI-3
and sending it to older peripherals can cause timeouts or them not
to respond to further requests.

Revision 1.280.6.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:48 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.280.6.2: +1 -9 lines
Diff to previous 1.280.6.2 (colored) to branchpoint 1.280 (colored) next main 1.281 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.280.6.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:12 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.280.6.1: +30 -26 lines
Diff to previous 1.280.6.1 (colored) to branchpoint 1.280 (colored)

Merge changes from current as of 20200406

Revision 1.285.2.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:19:16 2020 UTC (2 years, 11 months ago) by ad
Branch: ad-namecache
Changes since 1.285: +30 -26 lines
Diff to previous 1.285 (colored) next main 1.286 (colored)

Sync with head.

Revision 1.286 / (download) - annotate - [select for diffs], Wed Feb 19 16:04:39 2020 UTC (2 years, 11 months ago) by riastradh
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Changes since 1.285: +30 -26 lines
Diff to previous 1.285 (colored)

C99 initializers for scsipi_bustype.  No functional change intended.

Revision 1.285 / (download) - annotate - [select for diffs], Sun Nov 10 21:16:37 2019 UTC (3 years, 2 months ago) by chs
Branch: MAIN
CVS Tags: phil-wifi-20191119, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.284: +3 -11 lines
Diff to previous 1.284 (colored)

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

Revision 1.280.6.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:32 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.280: +31 -6 lines
Diff to previous 1.280 (colored)

Sync with HEAD

Revision 1.284 / (download) - annotate - [select for diffs], Thu Mar 28 10:44:29 2019 UTC (3 years, 10 months ago) by kardel
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Changes since 1.283: +14 -5 lines
Diff to previous 1.283 (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.280.4.3 / (download) - annotate - [select for diffs], Fri Jan 18 08:50:43 2019 UTC (4 years ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.280.4.2: +8 -2 lines
Diff to previous 1.280.4.2 (colored) to branchpoint 1.280 (colored) next main 1.281 (colored)

Synch with HEAD

Revision 1.283 / (download) - annotate - [select for diffs], Sat Jan 12 13:59:53 2019 UTC (4 years ago) by tsutsui
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118
Changes since 1.282: +8 -2 lines
Diff to previous 1.282 (colored)

Add NOLUNS quirk for more SEAGATE SCA/WIDE drives.

Tested on NetBSD/luna68k and LUNA with SCA 80pin -> NARROW 50pin and
WIDE 68pin -> NARROW 50pin connectors.

Revision 1.280.4.2 / (download) - annotate - [select for diffs], Sat Oct 20 06:58:43 2018 UTC (4 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.280.4.1: +4 -2 lines
Diff to previous 1.280.4.1 (colored) to branchpoint 1.280 (colored)

Sync with head

Revision 1.282 / (download) - annotate - [select for diffs], Sun Oct 7 18:14:32 2018 UTC (4 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020
Changes since 1.281: +4 -2 lines
Diff to previous 1.281 (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.280.4.1 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:04 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.280: +11 -3 lines
Diff to previous 1.280 (colored)

Sync with HEAD

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

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

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

Revision 1.269.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:32 2017 UTC (5 years, 1 month ago) by jdolecek
Branch: tls-maxphys
Changes since 1.269.2.1: +59 -66 lines
Diff to previous 1.269.2.1 (colored) to branchpoint 1.269 (colored) next main 1.270 (colored)

update from HEAD

Revision 1.273.4.4 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:27 2017 UTC (5 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.273.4.3: +7 -29 lines
Diff to previous 1.273.4.3 (colored) to branchpoint 1.273 (colored) next main 1.274 (colored)

Sync with HEAD

Revision 1.279.6.1 / (download) - annotate - [select for diffs], Wed Jun 21 18:18:55 2017 UTC (5 years, 7 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.279: +5 -29 lines
Diff to previous 1.279 (colored)

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

Revision 1.280 / (download) - annotate - [select for diffs], Sat Jun 17 22:35:50 2017 UTC (5 years, 7 months ago) by mlelstv
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0728, 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, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.279: +5 -29 lines
Diff to previous 1.279 (colored)

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

Align detach code for scsibus and atapibus to fix this.

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

Revision 1.278.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:52 2017 UTC (5 years, 9 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.278: +4 -2 lines
Diff to previous 1.278 (colored) next main 1.279 (colored)

Sync with HEAD

Revision 1.275.2.2 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:38 2017 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.275.2.1: +4 -2 lines
Diff to previous 1.275.2.1 (colored) to branchpoint 1.275 (colored) next main 1.276 (colored)

Sync with HEAD

Revision 1.279 / (download) - annotate - [select for diffs], Sat Mar 18 08:05:40 2017 UTC (5 years, 10 months ago) by tsutsui
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, netbsd-8-base, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: netbsd-8
Changes since 1.278: +4 -2 lines
Diff to previous 1.278 (colored)

Add NOLUNS quirk for SEAGATE ST39236LC disk drives.

Found on "SCSI drive conservation activity" for poor Tier-II machines.

Revision 1.275.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:41 2017 UTC (6 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.275: +27 -35 lines
Diff to previous 1.275 (colored)

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

Revision 1.273.4.3 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:17 2016 UTC (6 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.273.4.2: +27 -35 lines
Diff to previous 1.273.4.2 (colored) to branchpoint 1.273 (colored)

Sync with HEAD

Revision 1.278 / (download) - annotate - [select for diffs], Thu Dec 1 15:39:02 2016 UTC (6 years, 2 months ago) by mlelstv
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, nick-nhusb-base-20170204, nick-nhusb-base-20161204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.277: +3 -3 lines
Diff to previous 1.277 (colored)

CID 1396620: Null pointer dereferences

Revision 1.277 / (download) - annotate - [select for diffs], Tue Nov 29 03:23:00 2016 UTC (6 years, 2 months ago) by mlelstv
Branch: MAIN
Changes since 1.276: +9 -6 lines
Diff to previous 1.276 (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.276 / (download) - annotate - [select for diffs], Sun Nov 20 15:37:19 2016 UTC (6 years, 2 months ago) by mlelstv
Branch: MAIN
Changes since 1.275: +23 -34 lines
Diff to previous 1.275 (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.273.4.2 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:15 2016 UTC (6 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.273.4.1: +26 -6 lines
Diff to previous 1.273.4.1 (colored) to branchpoint 1.273 (colored)

Sync with HEAD

Revision 1.275 / (download) - annotate - [select for diffs], Sun Jun 26 07:31:35 2016 UTC (6 years, 7 months ago) by mlelstv
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.274: +26 -6 lines
Diff to previous 1.274 (colored)

Create a dedicated thread for the initial scsibus discovery instead
of using the completion thread. This prevents a deadlock when a
command fails during discovery which needs to be handled by the
completion thread.

Revision 1.273.4.1 / (download) - annotate - [select for diffs], Sun May 29 08:44:31 2016 UTC (6 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.273: +8 -5 lines
Diff to previous 1.273 (colored)

Sync with HEAD

Revision 1.274 / (download) - annotate - [select for diffs], Mon May 2 19:18:29 2016 UTC (6 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529
Changes since 1.273: +8 -5 lines
Diff to previous 1.273 (colored)

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

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

Rebase to HEAD as of a few days ago.

Revision 1.272.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:58 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.272: +3 -2 lines
Diff to previous 1.272 (colored) next main 1.273 (colored)

Rebase.

Revision 1.273 / (download) - annotate - [select for diffs], Fri Jul 25 08:10:38 2014 UTC (8 years, 6 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.272: +3 -2 lines
Diff to previous 1.272 (colored)

Add d_discard to all struct cdevsw instances I could find.

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

Revision 1.262.4.4 / (download) - annotate - [select for diffs], Thu May 22 11:40:35 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.262.4.3: +16 -8 lines
Diff to previous 1.262.4.3 (colored) to branchpoint 1.262 (colored) next main 1.263 (colored)

sync with head.

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

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

Revision 1.269.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:46 2014 UTC (8 years, 8 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.269: +16 -8 lines
Diff to previous 1.269 (colored) next main 1.270 (colored)

sync with head

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

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

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

Revision 1.271 / (download) - annotate - [select for diffs], Sat Oct 12 16:49:01 2013 UTC (9 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.270: +4 -4 lines
Diff to previous 1.270 (colored)

Pass the device name in, so we can debug what deferred drivers did not work.

Revision 1.270 / (download) - annotate - [select for diffs], Sun Sep 15 13:53:51 2013 UTC (9 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.269: +3 -4 lines
Diff to previous 1.269 (colored)

Remove unused variable

Revision 1.262.10.3.2.1 / (download) - annotate - [select for diffs], Thu Nov 1 16:45:02 2012 UTC (10 years, 3 months ago) by matt
Branch: matt-nb6-plus
Changes since 1.262.10.3: +18 -2 lines
Diff to previous 1.262.10.3 (colored) next main 1.262.10.4 (colored)

sync with netbsd-6-0-RELEASE.

Revision 1.262.4.3 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:01 2012 UTC (10 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.262.4.2: +18 -2 lines
Diff to previous 1.262.4.2 (colored) to branchpoint 1.262 (colored)

sync with head

Revision 1.262.10.4 / (download) - annotate - [select for diffs], Mon Sep 3 18:36:33 2012 UTC (10 years, 4 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-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
Changes since 1.262.10.3: +18 -2 lines
Diff to previous 1.262.10.3 (colored) to branchpoint 1.262 (colored) next main 1.263 (colored)

Pull up following revision(s) (requested by bouyer in ticket #523):
	sys/dev/scsipi/scsiconf.c: revision 1.269
If the controller supports more than 256 commands per target,
clamp it to 256 (maximum number of tags in SCSI). Newer controllers
(such as mpii(4), and mfi(4) when fixed to announce tagged queuing support)
support more than 256 outstanding commands and don't use the scsi tag,
but at this time scsipi will always allocate a tag, and panic if a periph
tries to send more than 256 commands.

Revision 1.269 / (download) - annotate - [select for diffs], Tue Aug 21 14:19:02 2012 UTC (10 years, 5 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.268: +18 -2 lines
Diff to previous 1.268 (colored)

If the controller supports more than 256 commands per target,
clamp it to 256 (maximum number of tags in SCSI). Newer controllers
(such as mpii(4), and mfi(4) when fixed to announce tagged queuing support)
support more than 256 outstanding commands and don't use the scsi tag,
but at this time scsipi will always allocate a tag, and panic if a periph
tries to send more than 256 commands.

Revision 1.262.8.3 / (download) - annotate - [select for diffs], Sat Jun 2 11:09:28 2012 UTC (10 years, 8 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.262.8.2: +9 -4 lines
Diff to previous 1.262.8.2 (colored) to branchpoint 1.262 (colored) next main 1.263 (colored)

sync to latest -current.

Revision 1.262.4.2 / (download) - annotate - [select for diffs], Wed May 23 10:08:05 2012 UTC (10 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.262.4.1: +40 -6 lines
Diff to previous 1.262.4.1 (colored) to branchpoint 1.262 (colored)

sync with head.

Revision 1.262.10.3 / (download) - annotate - [select for diffs], Tue May 22 18:46:09 2012 UTC (10 years, 8 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-0-RC1
Branch point for: matt-nb6-plus
Changes since 1.262.10.2: +9 -4 lines
Diff to previous 1.262.10.2 (colored) to branchpoint 1.262 (colored)

Pull up following revision(s) (requested by jakllsch in ticket #277):
	sys/dev/scsipi/scsiconf.c: revision 1.268
Fix locking issue triggered by drvctr -r of a scsibus(4).
Pullup to netbsd-6 should be requested.

Revision 1.268 / (download) - annotate - [select for diffs], Sun May 13 01:03:13 2012 UTC (10 years, 8 months ago) by jakllsch
Branch: MAIN
CVS Tags: yamt-pagecache-base5, jmcneill-usbmp-base10
Changes since 1.267: +9 -4 lines
Diff to previous 1.267 (colored)

Fix locking issue triggered by drvctr -r of a scsibus(4).
Pullup to netbsd-6 should be requested.

Revision 1.262.8.2 / (download) - annotate - [select for diffs], Sun Apr 29 23:05:00 2012 UTC (10 years, 9 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.262.8.1: +35 -4 lines
Diff to previous 1.262.8.1 (colored) to branchpoint 1.262 (colored)

sync to latest -current.

Revision 1.262.10.2 / (download) - annotate - [select for diffs], Mon Apr 23 16:28:30 2012 UTC (10 years, 9 months ago) by riz
Branch: netbsd-6
Changes since 1.262.10.1: +29 -4 lines
Diff to previous 1.262.10.1 (colored) to branchpoint 1.262 (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.267 / (download) - annotate - [select for diffs], Fri Apr 20 20:23:21 2012 UTC (10 years, 9 months ago) by bouyer
Branch: MAIN
CVS Tags: jmcneill-usbmp-base9
Changes since 1.266: +6 -2 lines
Diff to previous 1.266 (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.266 / (download) - annotate - [select for diffs], Thu Apr 19 17:45:20 2012 UTC (10 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.265: +29 -4 lines
Diff to previous 1.265 (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.262.4.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:02 2012 UTC (10 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.262: +22 -3 lines
Diff to previous 1.262 (colored)

sync with head

Revision 1.265 / (download) - annotate - [select for diffs], Fri Apr 6 22:50:39 2012 UTC (10 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base4
Changes since 1.264: +4 -2 lines
Diff to previous 1.264 (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.262.10.1 / (download) - annotate - [select for diffs], Mon Mar 19 23:13:59 2012 UTC (10 years, 10 months ago) by riz
Branch: netbsd-6
Changes since 1.262: +20 -3 lines
Diff to previous 1.262 (colored)

Pull up following revision(s) (requested by mrg in ticket #125):
	sys/dev/scsipi/scsiconf.c: revision 1.263
	sys/dev/scsipi/scsiconf.c: revision 1.264
	sys/dev/ic/ncr53c9x.c: revision 1.144
	sys/dev/ic/ninjascsi32.c: revision 1.22
	sys/dev/usb/uhub.c: revision 1.117
take the kernel lock in functions called from attach*().
scsidevdetached ioctl path enters scsipi code without kernel lock
and this upsets the newer kasserts.  take kernel lock here.
take the kernel lock a few more places when doing detach, to avoid
triggering KERNEL_LOCK_P() asserts in both scsi and usb code.
with this and other recent fixes i can now "drvctl -d ehci0".

Revision 1.262.8.1 / (download) - annotate - [select for diffs], Mon Mar 12 04:11:56 2012 UTC (10 years, 10 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.262: +20 -3 lines
Diff to previous 1.262 (colored)

merge scsiconf.c 1.264.

Revision 1.264 / (download) - annotate - [select for diffs], Mon Mar 12 02:44:16 2012 UTC (10 years, 10 months ago) by mrg
Branch: MAIN
CVS Tags: jmcneill-usbmp-base8
Changes since 1.263: +14 -3 lines
Diff to previous 1.263 (colored)

take the kernel lock a few more places when doing detach, to avoid
triggering KERNEL_LOCK_P() asserts in both scsi and usb code.

with this and other recent fixes i can now "drvctl -d ehci0".

Revision 1.263 / (download) - annotate - [select for diffs], Sun Mar 11 02:16:55 2012 UTC (10 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.262: +8 -2 lines
Diff to previous 1.262 (colored)

scsidevdetached ioctl path enters scsipi code without kernel lock
and this upsets the newer kasserts.  take kernel lock here.

Revision 1.258.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:08:36 2011 UTC (11 years, 7 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.258: +39 -22 lines
Diff to previous 1.258 (colored) next main 1.259 (colored)

Sync with HEAD.

Revision 1.255.4.3 / (download) - annotate - [select for diffs], Tue May 31 03:04:55 2011 UTC (11 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.255.4.2: +10 -7 lines
Diff to previous 1.255.4.2 (colored) to branchpoint 1.255 (colored) next main 1.256 (colored)

sync with head

Revision 1.262 / (download) - annotate - [select for diffs], Tue Apr 26 07:41:18 2011 UTC (11 years, 9 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, jmcneill-usbmp-pre-base2, 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
Branch point for: yamt-pagecache, netbsd-6, jmcneill-usbmp
Changes since 1.261: +12 -11 lines
Diff to previous 1.261 (colored)

Fixup previous.

The bug was in scsibusdetach(), which is not doing things in the proper
order: it has to detach its children and check for error.  If no error,
then it can release the resources that the children were using.

From David Young via source-changes-d.

Revision 1.261 / (download) - annotate - [select for diffs], Mon Apr 25 14:14:22 2011 UTC (11 years, 9 months ago) by hannken
Branch: MAIN
Changes since 1.260: +4 -2 lines
Diff to previous 1.260 (colored)

Don't kill outstanding requests when detaching a scsibus on shutdown.
Both the controller and tyhe targets are still running.

Revision 1.255.4.2 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:01 2011 UTC (11 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.255.4.1: +29 -15 lines
Diff to previous 1.255.4.1 (colored) to branchpoint 1.255 (colored)

sync with head

Revision 1.260 / (download) - annotate - [select for diffs], Mon Apr 18 01:47:28 2011 UTC (11 years, 9 months ago) by rmind
Branch: MAIN
Changes since 1.259: +26 -14 lines
Diff to previous 1.259 (colored)

Replace few simple_lock and ltsleep/wakeup uses with mutex(9) and condvar(9).

Note to all: please replace old primitives in your code! Thanks.

Revision 1.259 / (download) - annotate - [select for diffs], Sat Apr 2 20:52:10 2011 UTC (11 years, 10 months ago) by macallan
Branch: MAIN
Changes since 1.258: +5 -3 lines
Diff to previous 1.258 (colored)

Add a quirks entry for Seagate SX173404LC drives, now they will work at higher
speeds than 8bit/async
While there, also disable sync for ZIP drives - at least some of them will
pretend to support sync and then act up.

Revision 1.246.4.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:10 2010 UTC (12 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.246.4.4: +8 -8 lines
Diff to previous 1.246.4.4 (colored) to branchpoint 1.246 (colored) next main 1.247 (colored)

sync with head.

Revision 1.258 / (download) - annotate - [select for diffs], Mon Jun 7 01:41:39 2010 UTC (12 years, 7 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.257: +2 -4 lines
Diff to previous 1.257 (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.255.4.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:42 2010 UTC (12 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.255: +8 -8 lines
Diff to previous 1.255 (colored)

sync with head

Revision 1.257 / (download) - annotate - [select for diffs], Sun May 30 04:38:04 2010 UTC (12 years, 8 months ago) by pgoyette
Branch: MAIN
Changes since 1.256: +4 -2 lines
Diff to previous 1.256 (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.255.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:49 2010 UTC (12 years, 9 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.255: +8 -8 lines
Diff to previous 1.255 (colored) next main 1.256 (colored)

Sync with HEAD.

Revision 1.256 / (download) - annotate - [select for diffs], Tue Apr 27 18:55:12 2010 UTC (12 years, 9 months ago) by dyoung
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.255: +8 -8 lines
Diff to previous 1.255 (colored)

For clarity of scsidevdetached(), rename some variables:  sc ->
self, dev -> child, ssc -> sc.

Revision 1.246.4.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:03 2010 UTC (12 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.246.4.3: +4 -42 lines
Diff to previous 1.246.4.3 (colored) to branchpoint 1.246 (colored)

sync with head

Revision 1.255 / (download) - annotate - [select for diffs], Thu Nov 12 19:44:17 2009 UTC (13 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.254: +3 -40 lines
Diff to previous 1.254 (colored)

Remove superfluous activation hooks.

Revision 1.254 / (download) - annotate - [select for diffs], Wed Oct 21 21:12:05 2009 UTC (13 years, 3 months ago) by rmind
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.253: +3 -4 lines
Diff to previous 1.253 (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.246.4.3 / (download) - annotate - [select for diffs], Sat May 16 10:41:44 2009 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.246.4.2: +16 -16 lines
Diff to previous 1.246.4.2 (colored) to branchpoint 1.246 (colored)

sync with head

Revision 1.250.8.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:22 2009 UTC (13 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.250: +18 -18 lines
Diff to previous 1.250 (colored) next main 1.251 (colored)

Sync with HEAD.

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

Revision 1.253 / (download) - annotate - [select for diffs], Tue May 12 14:44:31 2009 UTC (13 years, 8 months ago) by cegger
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.252: +15 -15 lines
Diff to previous 1.252 (colored)

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

Revision 1.252 / (download) - annotate - [select for diffs], Tue May 12 13:20:33 2009 UTC (13 years, 8 months ago) by cegger
Branch: MAIN
Changes since 1.251: +5 -5 lines
Diff to previous 1.251 (colored)

struct cfdata * -> cfdata_t, no functional changes intended.

Revision 1.246.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:18 2009 UTC (13 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.246.4.1: +25 -18 lines
Diff to previous 1.246.4.1 (colored) to branchpoint 1.246 (colored)

sync with head.

Revision 1.250.2.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:36:33 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.250: +4 -4 lines
Diff to previous 1.250 (colored) next main 1.251 (colored)

Sync with HEAD.

Revision 1.251 / (download) - annotate - [select for diffs], Tue Apr 7 18:35:17 2009 UTC (13 years, 9 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Changes since 1.250: +4 -4 lines
Diff to previous 1.250 (colored)

Detach atapibus(4), scsibus(4), cd(4), and sd(4) during shutdown.
Destroy sd->sc_callout in sddetach().  Delete some dead code in
cddetach().

Revision 1.249.2.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:04 2008 UTC (14 years, 3 months ago) by haad
Branch: haad-dm
Changes since 1.249: +13 -12 lines
Diff to previous 1.249 (colored) next main 1.250 (colored)

Sync with HEAD.

Revision 1.245.6.5 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:31 2008 UTC (14 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.245.6.4: +13 -10 lines
Diff to previous 1.245.6.4 (colored) to branchpoint 1.245 (colored) next main 1.246 (colored)

Sync with HEAD.

Revision 1.247.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:35:10 2008 UTC (14 years, 4 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.247.2.1: +15 -12 lines
Diff to previous 1.247.2.1 (colored) to branchpoint 1.247 (colored) next main 1.248 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.248.2.2 / (download) - annotate - [select for diffs], Fri Jul 18 16:37:43 2008 UTC (14 years, 6 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.248.2.1: +13 -12 lines
Diff to previous 1.248.2.1 (colored) to branchpoint 1.248 (colored) next main 1.249 (colored)

Sync with head.

Revision 1.250 / (download) - annotate - [select for diffs], Wed Jul 16 18:50:58 2008 UTC (14 years, 6 months ago) by drochner
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base, nick-hppapmap-base2, 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: nick-hppapmap, jym-xensuspend
Changes since 1.249: +13 -12 lines
Diff to previous 1.249 (colored)

split device/softc for scsibus

Revision 1.248.2.1 / (download) - annotate - [select for diffs], Thu Jul 3 18:38:05 2008 UTC (14 years, 7 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.248: +4 -2 lines
Diff to previous 1.248 (colored)

Sync with head.

Revision 1.249 / (download) - annotate - [select for diffs], Thu Jul 3 13:22:31 2008 UTC (14 years, 7 months ago) by hannken
Branch: MAIN
Branch point for: haad-dm
Changes since 1.248: +4 -2 lines
Diff to previous 1.248 (colored)

The Intel SCA backplane "ESG-SHV" does not support logical units.

Revision 1.245.6.4 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:10 2008 UTC (14 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.245.6.3: +9 -5 lines
Diff to previous 1.245.6.3 (colored) to branchpoint 1.245 (colored)

Sync with HEAD.

Revision 1.247.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:29 2008 UTC (14 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.247: +11 -7 lines
Diff to previous 1.247 (colored)

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

Revision 1.246.2.2 / (download) - annotate - [select for diffs], Tue Jun 17 09:14:57 2008 UTC (14 years, 7 months ago) by yamt
Branch: yamt-pf42
Changes since 1.246.2.1: +11 -7 lines
Diff to previous 1.246.2.1 (colored) to branchpoint 1.246 (colored) next main 1.247 (colored)

sync with head.

Revision 1.248 / (download) - annotate - [select for diffs], Sun Jun 8 18:18:34 2008 UTC (14 years, 7 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: simonb-wapbl
Changes since 1.247: +11 -7 lines
Diff to previous 1.247 (colored)

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

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

Revision 1.245.6.3 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:50 2008 UTC (14 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.245.6.2: +11 -19 lines
Diff to previous 1.245.6.2 (colored) to branchpoint 1.245 (colored)

Sync with HEAD.

Revision 1.246.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:45 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.246: +2 -9 lines
Diff to previous 1.246 (colored)

sync with head.

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

sync with head.

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

Remove clause 3 and 4 from TNF licenses

Revision 1.245.6.2 / (download) - annotate - [select for diffs], Sun Apr 6 09:58:51 2008 UTC (14 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.245.6.1: +3 -3 lines
Diff to previous 1.245.6.1 (colored) to branchpoint 1.245 (colored)

- after some discussion with agc@ i agreed it would be a good idea to move
  device_unregister_* to device_deregister_* to be more like the pmf(9)
  functions, especially since a lot of the time the function calls are next
  to each other.

- add device_register_name() support for dk(4).

Revision 1.245.6.1 / (download) - annotate - [select for diffs], Sat Apr 5 23:33:22 2008 UTC (14 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.245: +7 -2 lines
Diff to previous 1.245 (colored)

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

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

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

- add a DEV_AUDIO type for devices.

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

use aprint_*_dev and device_xname

Revision 1.243.22.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:25 2008 UTC (14 years, 11 months ago) by mjf
Branch: mjf-devfs
Changes since 1.243: +3 -3 lines
Diff to previous 1.243 (colored) next main 1.244 (colored)

Sync with HEAD.

Revision 1.230.2.5 / (download) - annotate - [select for diffs], Mon Jan 21 09:44:34 2008 UTC (15 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.230.2.4: +7 -3 lines
Diff to previous 1.230.2.4 (colored) next main 1.231 (colored)

sync with head

Revision 1.243.16.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:54:30 2008 UTC (15 years ago) by matt
Branch: matt-armv6
Changes since 1.243: +7 -3 lines
Diff to previous 1.243 (colored) next main 1.244 (colored)

sync with HEAD

Revision 1.244.2.1 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:21 2008 UTC (15 years ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.244: +3 -3 lines
Diff to previous 1.244 (colored) next main 1.245 (colored)

Sync with HEAD

Revision 1.245 / (download) - annotate - [select for diffs], Fri Jan 4 21:18:05 2008 UTC (15 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.244: +3 -3 lines
Diff to previous 1.244 (colored)

Start detangling lock.h from intr.h. This is likely to cause short term
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.

Revision 1.243.24.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:47:22 2007 UTC (15 years, 1 month ago) by ad
Branch: vmlocking2
Changes since 1.243: +6 -2 lines
Diff to previous 1.243 (colored) next main 1.244 (colored)

Sync with head.

Revision 1.243.26.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:39:59 2007 UTC (15 years, 1 month ago) by yamt
Branch: yamt-kmem
Changes since 1.243: +6 -2 lines
Diff to previous 1.243 (colored) next main 1.244 (colored)

sync with head.

Revision 1.244 / (download) - annotate - [select for diffs], Sun Dec 9 20:28:22 2007 UTC (15 years, 1 month ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, vmlocking2-base3, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.243: +6 -2 lines
Diff to previous 1.243 (colored)

Merge jmcneill-pm branch.

Revision 1.243.14.2 / (download) - annotate - [select for diffs], Sat Dec 8 16:21:35 2007 UTC (15 years, 1 month ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.243.14.1: +4 -4 lines
Diff to previous 1.243.14.1 (colored) to branchpoint 1.243 (colored) next main 1.244 (colored)

Rename pnp(9) -> pmf(9), as requested by many.

Revision 1.243.14.1 / (download) - annotate - [select for diffs], Tue Nov 6 14:27:31 2007 UTC (15 years, 2 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.243: +6 -2 lines
Diff to previous 1.243 (colored)

Refactor PNP API:
- Make suspend/resume directly a device functionality. It consists of
  three layers (class logic, device logic, bus logic), all of them being
  optional. This replaces D0/D3 transitions.
- device_is_active returns true if the device was not disabled and was
  not suspended (even partially), device_is_enabled returns true if the
  device was enabled.
- Change pnp_global_transition into pnp_system_suspend and
  pnp_system_resume. Before running any suspend/resume handlers, check
  that all currently attached devices support power management and bail
  out otherwise. The latter is not done for the shutdown/panic case.
- Make the former bus-specific generic network handlers a class handler.
- Make PNP message like volume up/down/toogle PNP events. Each device
  can register what events they are interested in and whether the handler
  should be global or not.
- Introduce device_active API for devices to mark themselve in use from
  either the system or the device. Use this to implement the idle handling
  for audio and input devices. This is intended to replace most ad-hoc
  watchdogs as well.
- Fix somes situations in which audio resume would lose mixer settings.
- Make USB host controllers better deal with suspend in the light of
  shared interrupts.
- Flush filesystem cache on suspend.
- Flush disk caches on suspend. Put ATA disks into standby on suspend as
  well.
- Adopt drivers to use the new PNP API.
- Fix a critical bug in the generic cardbus layer that made D0->D3
  break.
- Fix ral(4) to set if_stop.
- Convert cbb(4) to the new PNP API.
- Apply the PCI Express SCI fix on resume again.

Revision 1.230.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:38:39 2007 UTC (15 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.230.2.3: +3 -3 lines
Diff to previous 1.230.2.3 (colored)

sync with head.

Revision 1.241.4.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:57:09 2007 UTC (15 years, 10 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.241.4.1: +3 -3 lines
Diff to previous 1.241.4.1 (colored) to branchpoint 1.241 (colored) next main 1.242 (colored)

Sync with HEAD.

Revision 1.243 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:42 2007 UTC (15 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base, yamt-idlelwp-base8, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-pm-base, jmcneill-base, hpcarm-cleanup, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: yamt-kmem, vmlocking2, mjf-devfs, matt-armv6, jmcneill-pm
Changes since 1.242: +3 -3 lines
Diff to previous 1.242 (colored)

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

Revision 1.241.4.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:03 2007 UTC (15 years, 11 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.241: +4 -2 lines
Diff to previous 1.241 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.230.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:10:41 2007 UTC (15 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.230.2.2: +4 -2 lines
Diff to previous 1.230.2.2 (colored)

sync with head.

Revision 1.220.4.1 / (download) - annotate - [select for diffs], Tue Feb 20 15:49:16 2007 UTC (15 years, 11 months ago) by tron
Branch: netbsd-2
Changes since 1.220: +4 -2 lines
Diff to previous 1.220 (colored) next main 1.221 (colored)

Pull up following revision(s) (requested by bouyer in ticket #11051):
	sys/dev/scsipi/scsiconf.c: revision 1.242 via patch
The SEAGATE ST318203LSUN18G announces DT only capabilitie although it also
supports ST. Because of this the HBA doesn't initiate sync/wide negotiation,
so add PQUIRK_CAP_SYNC | PQUIRK_CAP_WIDE16 for this drive; fix
problem reported by Havard Eidnes.

Revision 1.229.2.1 / (download) - annotate - [select for diffs], Mon Feb 19 22:24:37 2007 UTC (15 years, 11 months ago) by tron
Branch: netbsd-3
Changes since 1.229: +4 -2 lines
Diff to previous 1.229 (colored) next main 1.230 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1668):
	sys/dev/scsipi/scsiconf.c: revision 1.242 via patch
The SEAGATE ST318203LSUN18G announces DT only capabilitie although it also
supports ST. Because of this the HBA doesn't initiate sync/wide negotiation,
so add PQUIRK_CAP_SYNC | PQUIRK_CAP_WIDE16 for this drive; fix
problem reported by Havard Eidnes.

Revision 1.241.2.1 / (download) - annotate - [select for diffs], Mon Feb 19 20:03:17 2007 UTC (15 years, 11 months ago) by riz
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.241: +4 -2 lines
Diff to previous 1.241 (colored) next main 1.242 (colored)

Pull up following revision(s) (requested by bouyer in ticket #452):
	sys/dev/scsipi/scsiconf.c: revision 1.242
The SEAGATE ST318203LSUN18G announces DT only capabilitie although it also
supports ST. Because of this the HBA doesn't initiate sync/wide negotiation,
so add PQUIRK_CAP_SYNC | PQUIRK_CAP_WIDE16 for this drive; fix
problem reported by Havard Eidnes.

Revision 1.242 / (download) - annotate - [select for diffs], Sat Feb 17 17:01:29 2007 UTC (15 years, 11 months ago) by bouyer
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.241: +4 -2 lines
Diff to previous 1.241 (colored)

The SEAGATE ST318203LSUN18G announces DT only capabilitie although it also
supports ST. Because of this the HBA doesn't initiate sync/wide negotiation,
so add PQUIRK_CAP_SYNC | PQUIRK_CAP_WIDE16 for this drive; fix
problem reported by Havard Eidnes.

Revision 1.238.2.2 / (download) - annotate - [select for diffs], Fri Jan 12 00:57:48 2007 UTC (16 years ago) by ad
Branch: newlock2
Changes since 1.238.2.1: +4 -2 lines
Diff to previous 1.238.2.1 (colored) to branchpoint 1.238 (colored) next main 1.239 (colored)

Sync with head.

Revision 1.230.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:49:34 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.230.2.1: +13 -6 lines
Diff to previous 1.230.2.1 (colored)

sync with head.

Revision 1.238.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:15 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.238.4.1: +11 -9 lines
Diff to previous 1.238.4.1 (colored) to branchpoint 1.238 (colored) next main 1.239 (colored)

sync with head.

Revision 1.241 / (download) - annotate - [select for diffs], Thu Nov 30 17:39:25 2006 UTC (16 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base
Branch point for: yamt-idlelwp, netbsd-4
Changes since 1.240: +4 -2 lines
Diff to previous 1.240 (colored)

Add a quirk for Initio drives (from Rhialto)

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

Sync with head.

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

__unused removal on arguments; approved by core.

Revision 1.238.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:06:47 2006 UTC (16 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.238: +10 -7 lines
Diff to previous 1.238 (colored)

sync with head

Revision 1.239 / (download) - annotate - [select for diffs], Thu Oct 12 01:31:57 2006 UTC (16 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.238: +10 -7 lines
Diff to previous 1.238 (colored)

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

Revision 1.234.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:54:25 2006 UTC (16 years, 4 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.234: +10 -8 lines
Diff to previous 1.234 (colored) next main 1.235 (colored)

sync with head

Revision 1.234.8.2 / (download) - annotate - [select for diffs], Sun Sep 3 15:24:49 2006 UTC (16 years, 5 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.234.8.1: +5 -3 lines
Diff to previous 1.234.8.1 (colored) to branchpoint 1.234 (colored) next main 1.235 (colored)

sync with head.

Revision 1.238 / (download) - annotate - [select for diffs], Sun Sep 3 05:18:03 2006 UTC (16 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.237: +3 -3 lines
Diff to previous 1.237 (colored)

add missing initializer

Revision 1.237 / (download) - annotate - [select for diffs], Tue Aug 29 20:40:23 2006 UTC (16 years, 5 months ago) by bjh21
Branch: MAIN
Changes since 1.236: +4 -2 lines
Diff to previous 1.236 (colored)

The Fujitsu drive in my A540 supports sync transfers but apparently
doesn't advertise this in INQUIRY.  It makes it nice and obvious with
SDTR, though, so add it to the list.

Revision 1.230.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:06:47 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.230: +18 -37 lines
Diff to previous 1.230 (colored)

sync with head.

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

Sync with head.

Revision 1.234.10.1 / (download) - annotate - [select for diffs], Wed Apr 19 03:26:20 2006 UTC (16 years, 9 months ago) by elad
Branch: elad-kernelauth
Changes since 1.234: +7 -7 lines
Diff to previous 1.234 (colored) next main 1.235 (colored)

sync with head.

Revision 1.234.8.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:28 2006 UTC (16 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.234: +7 -7 lines
Diff to previous 1.234 (colored)

sync with head.

Revision 1.234.12.1 / (download) - annotate - [select for diffs], Fri Mar 31 09:45:25 2006 UTC (16 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.234: +7 -7 lines
Diff to previous 1.234 (colored) next main 1.235 (colored)

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

Revision 1.236 / (download) - annotate - [select for diffs], Thu Mar 30 16:09:28 2006 UTC (16 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.235: +5 -5 lines
Diff to previous 1.235 (colored)

Use device_private().

Revision 1.235 / (download) - annotate - [select for diffs], Wed Mar 29 06:00:46 2006 UTC (16 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.234: +4 -4 lines
Diff to previous 1.234 (colored)

Replace device_locators() with device_locator(), and use it.

Revision 1.234 / (download) - annotate - [select for diffs], Sun Dec 11 12:23:50 2005 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.233: +6 -6 lines
Diff to previous 1.233 (colored)

merge ktrace-lwp.

Revision 1.207.2.9 / (download) - annotate - [select for diffs], Sun Dec 11 10:29:05 2005 UTC (17 years, 1 month ago) by christos
Branch: ktrace-lwp
Changes since 1.207.2.8: +3 -3 lines
Diff to previous 1.207.2.8 (colored) next main 1.208 (colored)

Sync with head.

Revision 1.232.6.1 / (download) - annotate - [select for diffs], Tue Nov 29 21:23:15 2005 UTC (17 years, 2 months ago) by yamt
Branch: yamt-readahead
Changes since 1.232: +3 -3 lines
Diff to previous 1.232 (colored) next main 1.233 (colored)

sync with head.

Revision 1.233 / (download) - annotate - [select for diffs], Sat Nov 26 13:54:18 2005 UTC (17 years, 2 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-readahead-base3, ktrace-lwp-base
Changes since 1.232: +3 -3 lines
Diff to previous 1.232 (colored)

Fix typo (FALLTHOUGH -> FALLTHROUGH).  From Jeff Ito.

Revision 1.207.2.8 / (download) - annotate - [select for diffs], Thu Nov 10 14:07:47 2005 UTC (17 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.207.2.7: +11 -30 lines
Diff to previous 1.207.2.7 (colored)

Sync with HEAD. Here we go again...

Revision 1.232 / (download) - annotate - [select for diffs], Thu Aug 25 22:33:19 2005 UTC (17 years, 5 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base2, yamt-readahead-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-readahead
Changes since 1.231: +3 -20 lines
Diff to previous 1.231 (colored)

kill a number of autoconf submatch functions which follow the
standard scheme:
if (<configured> != <wildcard> && <configured> != <real>)
	then fail
else
	ask device match function

This is handled by config_stdsubmatch() now.

Revision 1.231 / (download) - annotate - [select for diffs], Thu Aug 25 18:35:40 2005 UTC (17 years, 5 months ago) by drochner
Branch: MAIN
Changes since 1.230: +10 -12 lines
Diff to previous 1.230 (colored)

replace the "locdesc_t" structure carrying the number of locators
explicitely by a plain integer array
the length in now known to all relevant parties, so this avoids
duplication of information, and we can allocate that thing in
drivers without hacks

Revision 1.230 / (download) - annotate - [select for diffs], Mon May 30 04:25:32 2005 UTC (17 years, 8 months ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.229: +5 -5 lines
Diff to previous 1.229 (colored)

- remove bogus casts
- add more const

Revision 1.226.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:16 2005 UTC (17 years, 9 months ago) by kent
Branch: kent-audio2
Changes since 1.226: +8 -8 lines
Diff to previous 1.226 (colored) next main 1.227 (colored)

sync with -current

Revision 1.226.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:35:47 2005 UTC (17 years, 10 months ago) by yamt
Branch: yamt-km
Changes since 1.226: +8 -8 lines
Diff to previous 1.226 (colored) next main 1.227 (colored)

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

Revision 1.207.2.7 / (download) - annotate - [select for diffs], Fri Mar 4 16:50:33 2005 UTC (17 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.207.2.6: +8 -8 lines
Diff to previous 1.207.2.6 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.229 / (download) - annotate - [select for diffs], Sun Feb 27 00:27:48 2005 UTC (17 years, 11 months 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, kent-audio2-base
Branch point for: netbsd-3
Changes since 1.228: +8 -8 lines
Diff to previous 1.228 (colored)

nuke trailing whitespace

Revision 1.228 / (download) - annotate - [select for diffs], Tue Feb 1 00:19:34 2005 UTC (18 years ago) by reinoud
Branch: MAIN
CVS Tags: yamt-km-base2
Changes since 1.227: +3 -3 lines
Diff to previous 1.227 (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.227 / (download) - annotate - [select for diffs], Mon Jan 31 23:06:41 2005 UTC (18 years ago) by reinoud
Branch: MAIN
Changes since 1.226: +5 -5 lines
Diff to previous 1.226 (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.207.2.6 / (download) - annotate - [select for diffs], Tue Sep 21 13:33:23 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.207.2.5: +6 -6 lines
Diff to previous 1.207.2.5 (colored)

Fix the sync with head I botched.

Revision 1.207.2.5 / (download) - annotate - [select for diffs], Sat Sep 18 14:51:24 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.207.2.4: +6 -6 lines
Diff to previous 1.207.2.4 (colored)

Sync with HEAD.

Revision 1.207.2.4 / (download) - annotate - [select for diffs], Wed Aug 25 06:58:43 2004 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.207.2.3: +92 -84 lines
Diff to previous 1.207.2.3 (colored)

Sync with HEAD.

Revision 1.226 / (download) - annotate - [select for diffs], Sat Aug 21 21:29:39 2004 UTC (18 years, 5 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.225: +43 -73 lines
Diff to previous 1.225 (colored)

Use ANSI function decls and make use of static.

Revision 1.225 / (download) - annotate - [select for diffs], Wed Aug 18 11:50:59 2004 UTC (18 years, 5 months ago) by drochner
Branch: MAIN
Changes since 1.224: +53 -15 lines
Diff to previous 1.224 (colored)

Use the new autoconf functions to rescan busses and detach devices
on user request.
This duplicates the functionality provided by a private ioctl
interface (accessible through scsictl(8)), but in a more generic way.

Revision 1.224 / (download) - annotate - [select for diffs], Thu Aug 12 14:36:46 2004 UTC (18 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.223: +4 -4 lines
Diff to previous 1.223 (colored)

Whoops.  Swap the order of the delref() and the config_pending_decr().

Revision 1.207.2.3 / (download) - annotate - [select for diffs], Thu Aug 12 11:42:05 2004 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.207.2.2: +38 -7 lines
Diff to previous 1.207.2.2 (colored)

Sync with HEAD.

Revision 1.223 / (download) - annotate - [select for diffs], Tue Aug 10 15:46:44 2004 UTC (18 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.222: +8 -3 lines
Diff to previous 1.222 (colored)

Hold a reference to the adapter until scsibus_config() has been called.  This
avoids an extra enable/disable cycle on removable controllers (i.e. PCMCIA).

Revision 1.222 / (download) - annotate - [select for diffs], Fri Aug 6 09:27:43 2004 UTC (18 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.221: +6 -3 lines
Diff to previous 1.221 (colored)

Ops, don't return before the end of the function.
Catched by enami tsugutomo.

Revision 1.221 / (download) - annotate - [select for diffs], Thu Aug 5 19:45:13 2004 UTC (18 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.220: +28 -5 lines
Diff to previous 1.220 (colored)

scsi_kill_pending(): don't kill the commands in periph_xferq here.
The controller is handling them, calling scsipi_done() here will end up in the
xfer being scsipi_done()'ed a second time when it completes in the controller
code. In addition, the way the loop was done here would end up in an infinite
loop, because the channel kernel thread needs to run to remove a command from
this queue.

scsibusdetach(): scsipi_done() all commands from periph_xferq. The controller
is already gone, and these commands will never complete.
Shut down the channel (which will cause the kenrel thread to exit) after
detaching the childs, as they will need the kernel thread for
scsipi_wait_drain().

Fix kernel hang or deadlock when detaching devices (either by scsictl detach
or unplug) with active commands.

Revision 1.207.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:51:14 2004 UTC (18 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.207.2.1: +19 -52 lines
Diff to previous 1.207.2.1 (colored)

Sync with HEAD

Revision 1.184.4.4 / (download) - annotate - [select for diffs], Mon Mar 15 05:11:32 2004 UTC (18 years, 10 months ago) by jmc
Branch: netbsd-1-6
Changes since 1.184.4.3: +4 -2 lines
Diff to previous 1.184.4.3 (colored) to branchpoint 1.184 (colored) next main 1.185 (colored)

Pullup rev 1.220 (requested by bouyer in ticket #1625)

Add a drive with broken tagged queuing support. PR#23815

Revision 1.220 / (download) - annotate - [select for diffs], Fri Mar 12 23:00:40 2004 UTC (18 years, 10 months ago) by bouyer
Branch: MAIN
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-base, 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-0
Branch point for: netbsd-2
Changes since 1.219: +4 -2 lines
Diff to previous 1.219 (colored)

Add a drive with broken tagged queuing support. From Jim Faulkner.
Fix PR kern/23815.

Revision 1.219 / (download) - annotate - [select for diffs], Sun Feb 22 07:26:15 2004 UTC (18 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.218: +2 -14 lines
Diff to previous 1.218 (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.218 / (download) - annotate - [select for diffs], Fri Oct 10 18:04:46 2003 UTC (19 years, 3 months ago) by matt
Branch: MAIN
Changes since 1.217: +2 -6 lines
Diff to previous 1.217 (colored)

Remove a quirk I added for a Hitachi drive.

Revision 1.217 / (download) - annotate - [select for diffs], Thu Sep 18 05:06:53 2003 UTC (19 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.216: +4 -4 lines
Diff to previous 1.216 (colored)

Don't print junk if an INQUIRY fails (usually with an ILLEGAL REQUEST due to
an unused LUN).  Also, if the qualifier says the LUN is non-existant, don't
try to attach a device here.

Revision 1.216 / (download) - annotate - [select for diffs], Fri Sep 12 16:39:25 2003 UTC (19 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.215: +2 -5 lines
Diff to previous 1.215 (colored)

Some devices really want INQUIRY to be the first command they receive.  Also,
the result of the extra TEST UNIT READY was being ignored anyway.  So, I wrote
it, I nuke it.

Revision 1.215 / (download) - annotate - [select for diffs], Wed Sep 10 05:35:50 2003 UTC (19 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.214: +6 -6 lines
Diff to previous 1.214 (colored)

Set up the blank fields in the INQUIRY buffer *before* executing the command --
because we can't really rely on the "additional length" being correct (any
more?).  Fixes some problems with devices showing up as "<, , >".

Revision 1.214 / (download) - annotate - [select for diffs], Tue Sep 9 03:57:57 2003 UTC (19 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.213: +3 -8 lines
Diff to previous 1.213 (colored)

Remove NOMODESENSE quirks for Iomega drives -- they're totally unneeded.

Revision 1.213 / (download) - annotate - [select for diffs], Tue Sep 9 03:01:27 2003 UTC (19 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.212: +2 -6 lines
Diff to previous 1.212 (colored)

Delete the NOMODESENSE quirks for Maxtor USB hard drives, as these are no
doubt resolved (and were never actually needed in the first place -- someone
was let out without supervision).

Revision 1.212 / (download) - annotate - [select for diffs], Tue Sep 9 02:37:55 2003 UTC (19 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.211: +3 -6 lines
Diff to previous 1.211 (colored)

Exorcise PQUIRK_NODOORLOCK.

Revision 1.211 / (download) - annotate - [select for diffs], Mon Sep 8 23:43:05 2003 UTC (19 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.210: +2 -4 lines
Diff to previous 1.210 (colored)

There is absolutely no sense in having a PQUIRK_NODOORLOCK entry for a
non-removable device.  Nuke it.

Revision 1.210 / (download) - annotate - [select for diffs], Mon Sep 8 19:57:29 2003 UTC (19 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.209: +2 -4 lines
Diff to previous 1.209 (colored)

If maxlun>0, automatically set PQUIRK_FORCELUNS, rather than using quirk
table entries.

Revision 1.209 / (download) - annotate - [select for diffs], Mon Sep 8 18:51:35 2003 UTC (19 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.208: +6 -14 lines
Diff to previous 1.208 (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.208 / (download) - annotate - [select for diffs], Thu Aug 7 17:54:26 2003 UTC (19 years, 5 months ago) by jrf
Branch: MAIN
Changes since 1.207: +10 -2 lines
Diff to previous 1.207 (colored)

Added three scsi IDs which were tested by Dave Barnes who sent in
three PRs regarding them: 17836, 17837, 17838. Did a few kernel
compiles with them just to make sure they are okay. Approved by
christos@, thanks to Dave for sending the PRs and verifying to me
that they work.

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

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

Revision 1.206 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:43 2003 UTC (19 years, 7 months ago) by darrenr
Branch: MAIN
Changes since 1.205: +9 -9 lines
Diff to previous 1.205 (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.184.4.3 / (download) - annotate - [select for diffs], Mon Jun 2 14:23:26 2003 UTC (19 years, 8 months ago) by tron
Branch: netbsd-1-6
CVS Tags: 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
Changes since 1.184.4.2: +1 -1 lines
Diff to previous 1.184.4.2 (colored) to branchpoint 1.184 (colored)

Pull up revision 1.198 (requested by bouyer in ticket #1155):
Remove revision in quirk entry for TOSHIBA XM-4101TASUNSLCD.
The same drive with a newer revision also fails, so assume all revisions
are bad until proven otherwise.

Revision 1.184.4.2 / (download) - annotate - [select for diffs], Mon Jun 2 09:48:11 2003 UTC (19 years, 8 months ago) by tron
Branch: netbsd-1-6
Changes since 1.184.4.1: +2 -0 lines
Diff to previous 1.184.4.1 (colored) to branchpoint 1.184 (colored)

Pull up revision 1.199 (requested by bouyer):
Add PQUIRK_NOLUNS entry for "NEC     ", "CD-ROM DRIVE:502".
Fixes PR kern/18479

Revision 1.205 / (download) - annotate - [select for diffs], Tue May 13 03:02:36 2003 UTC (19 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.204: +11 -8 lines
Diff to previous 1.204 (colored)

Use aprint*().

Revision 1.204 / (download) - annotate - [select for diffs], Fri May 2 12:27:49 2003 UTC (19 years, 9 months ago) by fvdl
Branch: MAIN
Changes since 1.203: +4 -2 lines
Diff to previous 1.203 (colored)

Local change I had lying around: add NOLUNS quirk for an older seagate
drive.

Revision 1.203 / (download) - annotate - [select for diffs], Mon Apr 21 18:07:14 2003 UTC (19 years, 9 months ago) by fvdl
Branch: MAIN
Changes since 1.202: +5 -2 lines
Diff to previous 1.202 (colored)

Add another IBM drive that incorrectly reports DT only.

Revision 1.202 / (download) - annotate - [select for diffs], Sat Apr 19 19:16:06 2003 UTC (19 years, 9 months ago) by fvdl
Branch: MAIN
Changes since 1.201: +9 -3 lines
Diff to previous 1.201 (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.201 / (download) - annotate - [select for diffs], Fri Mar 14 22:17:14 2003 UTC (19 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.200: +10 -11 lines
Diff to previous 1.200 (colored)

Move the SCSI_DELAY before the serialization for probe. multiple SCSI busses
can sleep, only probes have to be keept ordered.

Revision 1.147.2.6 / (download) - annotate - [select for diffs], Tue Feb 11 15:54:09 2003 UTC (19 years, 11 months ago) by msaitoh
Branch: netbsd-1-5
Changes since 1.147.2.5: +3 -1 lines
Diff to previous 1.147.2.5 (colored) to branchpoint 1.147 (colored) next main 1.148 (colored)

Pull up revision 1.199 (requested by bouyer):
  Add SDEV_NOLUNS quirk entry for "NEC     ", "CD-ROM DRIVE:502".
  Fixes kern/18479 .

Revision 1.200 / (download) - annotate - [select for diffs], Mon Feb 10 08:10:51 2003 UTC (19 years, 11 months ago) by pk
Branch: MAIN
Changes since 1.199: +2 -4 lines
Diff to previous 1.199 (colored)

Remove NOTAG quirk for the Seagate ST11200N; the cause of the failure that
prompted this entry was actually a driver bug.

Revision 1.199 / (download) - annotate - [select for diffs], Sat Feb 1 21:38:09 2003 UTC (20 years ago) by bouyer
Branch: MAIN
Changes since 1.198: +4 -2 lines
Diff to previous 1.198 (colored)

Add PQUIRK_NOLUNS entry for "NEC     ", "CD-ROM DRIVE:502".
Fixes PR kern/18479

Revision 1.198 / (download) - annotate - [select for diffs], Mon Jan 27 18:55:24 2003 UTC (20 years ago) by bouyer
Branch: MAIN
Changes since 1.197: +3 -3 lines
Diff to previous 1.197 (colored)

Remove revision in quirk entry for TOSHIBA XM-4101TASUNSLCD. The same drive with a newer revision also fails, so assume all revisions are bad until proven otherwise. Should fix PR kern/19912.

Revision 1.156.2.21 / (download) - annotate - [select for diffs], Wed Jan 15 18:44:24 2003 UTC (20 years ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.156.2.20: +6 -2 lines
Diff to previous 1.156.2.20 (colored) to branchpoint 1.156 (colored) next main 1.157 (colored)

Sync with HEAD.

Revision 1.197 / (download) - annotate - [select for diffs], Thu Jan 9 12:25:00 2003 UTC (20 years ago) by pk
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base
Changes since 1.196: +6 -2 lines
Diff to previous 1.196 (colored)

Add two disks capable of doing synchronous transfer mode, but don't
report SCSI2: "MICROP 1924" and "FUJITSU M2266"

Revision 1.156.2.20 / (download) - annotate - [select for diffs], Fri Jan 3 17:08:10 2003 UTC (20 years, 1 month ago) by thorpej
Branch: nathanw_sa
Changes since 1.156.2.19: +6 -6 lines
Diff to previous 1.156.2.19 (colored) to branchpoint 1.156 (colored)

Sync with HEAD.

Revision 1.196 / (download) - annotate - [select for diffs], Wed Jan 1 00:10:25 2003 UTC (20 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.195: +6 -6 lines
Diff to previous 1.195 (colored)

Use aprint_normal() in cfprint routines.

Revision 1.156.2.19 / (download) - annotate - [select for diffs], Wed Dec 11 06:38:46 2002 UTC (20 years, 1 month ago) by thorpej
Branch: nathanw_sa
Changes since 1.156.2.18: +2 -0 lines
Diff to previous 1.156.2.18 (colored) to branchpoint 1.156 (colored)

Sync with HEAD.

Revision 1.195 / (download) - annotate - [select for diffs], Thu Dec 5 10:39:58 2002 UTC (20 years, 2 months ago) by jdolecek
Branch: MAIN
CVS Tags: gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Changes since 1.194: +4 -2 lines
Diff to previous 1.194 (colored)

Add NOLUNS|NOSYNC quirk for NEC CD-ROM DRIVE:222.
Change sent in PR kern/19286 by Dave Barnes.

Revision 1.156.2.18 / (download) - annotate - [select for diffs], Mon Nov 11 22:12:15 2002 UTC (20 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.156.2.17: +1 -1 lines
Diff to previous 1.156.2.17 (colored) to branchpoint 1.156 (colored)

Catch up to -current

Revision 1.194 / (download) - annotate - [select for diffs], Wed Oct 23 09:13:47 2002 UTC (20 years, 3 months ago) by jdolecek
Branch: MAIN
CVS Tags: kqueue-aftermerge
Changes since 1.193: +3 -3 lines
Diff to previous 1.193 (colored)

merge kqueue branch into -current

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

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

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

Revision 1.156.2.17 / (download) - annotate - [select for diffs], Fri Oct 18 02:44:16 2002 UTC (20 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.156.2.16: +63 -50 lines
Diff to previous 1.156.2.16 (colored) to branchpoint 1.156 (colored)

Catch up to -current.

Revision 1.158.2.7 / (download) - annotate - [select for diffs], Thu Oct 10 18:42:14 2002 UTC (20 years, 3 months ago) by jdolecek
Branch: kqueue
Changes since 1.158.2.6: +69 -25 lines
Diff to previous 1.158.2.6 (colored) next main 1.159 (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.193 / (download) - annotate - [select for diffs], Fri Oct 4 17:53:33 2002 UTC (20 years, 4 months ago) by soren
Branch: MAIN
CVS Tags: kqueue-beforemerge
Changes since 1.192: +7 -31 lines
Diff to previous 1.192 (colored)

Slightly simplicy the SCSI device attachment message:
- Use the plain words 'disk' and 'tape' instead of 'direct' and 'sequential'.
- Media status will be printed in the frontend, so don't bother with it.
- Don't bother printing the SCSI version, which is fixed these days, or the
  numberic device type.

Revision 1.192 / (download) - annotate - [select for diffs], Wed Oct 2 16:52:52 2002 UTC (20 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-base
Changes since 1.191: +3 -3 lines
Diff to previous 1.191 (colored)

Add trailing ; to CFATTACH_DECL.

Revision 1.191 / (download) - annotate - [select for diffs], Mon Sep 30 23:12:51 2002 UTC (20 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.190: +4 -6 lines
Diff to previous 1.190 (colored)

Use CFATTACH_DECL().

Revision 1.190 / (download) - annotate - [select for diffs], Fri Sep 27 20:41:45 2002 UTC (20 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.189: +3 -3 lines
Diff to previous 1.189 (colored)

Declare all cfattach structures const.

Revision 1.189 / (download) - annotate - [select for diffs], Fri Sep 27 03:18:20 2002 UTC (20 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.188: +3 -3 lines
Diff to previous 1.188 (colored)

Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller.  Use it
rather than invoking cfattach->ca_match directly.

Revision 1.188 / (download) - annotate - [select for diffs], Thu Sep 19 08:31:06 2002 UTC (20 years, 4 months ago) by jmc
Branch: MAIN
Changes since 1.187: +57 -18 lines
Diff to previous 1.187 (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.156.2.16 / (download) - annotate - [select for diffs], Tue Sep 17 21:21:15 2002 UTC (20 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.156.2.15: +9 -2 lines
Diff to previous 1.156.2.15 (colored) to branchpoint 1.156 (colored)

Catch up to -current.

Revision 1.187 / (download) - annotate - [select for diffs], Fri Sep 6 13:18:43 2002 UTC (20 years, 4 months ago) by gehenna
Branch: MAIN
Changes since 1.186: +11 -4 lines
Diff to previous 1.186 (colored)

Merge the gehenna-devsw branch into the trunk.

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

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

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

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

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

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

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

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

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

Revision 1.158.2.6 / (download) - annotate - [select for diffs], Fri Sep 6 08:46:22 2002 UTC (20 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.158.2.5: +9 -2 lines
Diff to previous 1.158.2.5 (colored)

sync kqueue branch with HEAD

Revision 1.147.2.5 / (download) - annotate - [select for diffs], Wed Sep 4 04:12:29 2002 UTC (20 years, 5 months ago) by itojun
Branch: netbsd-1-5
Changes since 1.147.2.4: +3 -1 lines
Diff to previous 1.147.2.4 (colored) to branchpoint 1.147 (colored)

sys/dev/scsipi/scsipiconf.c 1.186 via patch (bouyer)
add quirk entry for yet another broken sony cdrom. Fix kern/17773

Revision 1.184.2.2 / (download) - annotate - [select for diffs], Thu Aug 29 05:22:53 2002 UTC (20 years, 5 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.184.2.1: +9 -2 lines
Diff to previous 1.184.2.1 (colored) to branchpoint 1.184 (colored) next main 1.185 (colored)

catch up with -current.

Revision 1.156.2.15 / (download) - annotate - [select for diffs], Tue Aug 13 02:19:56 2002 UTC (20 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.156.2.14: +3 -0 lines
Diff to previous 1.156.2.14 (colored) to branchpoint 1.156 (colored)

Catch up to -current.

Revision 1.184.4.1 / (download) - annotate - [select for diffs], Fri Aug 2 08:55:15 2002 UTC (20 years, 6 months ago) by lukem
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.184: +5 -2 lines
Diff to previous 1.184 (colored)

Pull up revision 1.186 (requested by bouyer in ticket #608):
Add yet another broken sony cdrom. This one, in addition to broken LUN
handling, has broken sync negotiation. Also add PQUIRK_NOWIDE to be safe.
Fix PR kern/17773.

Revision 1.186 / (download) - annotate - [select for diffs], Fri Aug 2 08:00:36 2002 UTC (20 years, 6 months ago) by bouyer
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.185: +5 -2 lines
Diff to previous 1.185 (colored)

Add yet another broken sony cdrom. This one, in addition to broken LUN
handling, has broken sync negotiation. Also add PQUIRK_NOWIDE to be safe.
Fix PR kern/17773.

Revision 1.156.2.14 / (download) - annotate - [select for diffs], Thu Aug 1 02:45:43 2002 UTC (20 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.156.2.13: +6 -2 lines
Diff to previous 1.156.2.13 (colored) to branchpoint 1.156 (colored)

Catch up to -current.

Revision 1.185 / (download) - annotate - [select for diffs], Tue Jul 23 21:10:16 2002 UTC (20 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.184: +6 -2 lines
Diff to previous 1.184 (colored)

Add a quirk for a HITACHI driver (CAP_SYNC|CAP_WIDE16).

Revision 1.156.2.13 / (download) - annotate - [select for diffs], Fri Jul 12 01:40:11 2002 UTC (20 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.156.2.12: +2 -3 lines
Diff to previous 1.156.2.12 (colored) to branchpoint 1.156 (colored)

No longer need to pull in lwp.h; proc.h pulls it in for us.

Revision 1.156.2.12 / (download) - annotate - [select for diffs], Mon Jun 24 22:10:15 2002 UTC (20 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.156.2.11: +3 -3 lines
Diff to previous 1.156.2.11 (colored) to branchpoint 1.156 (colored)

Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).

Revision 1.158.2.5 / (download) - annotate - [select for diffs], Sun Jun 23 17:48:46 2002 UTC (20 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.158.2.4: +40 -5 lines
Diff to previous 1.158.2.4 (colored)

catch up with -current on kqueue branch

Revision 1.156.2.11 / (download) - annotate - [select for diffs], Thu Jun 20 03:46:37 2002 UTC (20 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.156.2.10: +35 -5 lines
Diff to previous 1.156.2.10 (colored) to branchpoint 1.156 (colored)

Catch up to -current.

Revision 1.184.2.1 / (download) - annotate - [select for diffs], Thu May 16 11:38:53 2002 UTC (20 years, 8 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.184: +11 -4 lines
Diff to previous 1.184 (colored)

Add the character device switch.

Revision 1.184 / (download) - annotate - [select for diffs], Wed May 15 11:43:22 2002 UTC (20 years, 8 months ago) by bouyer
Branch: MAIN
CVS Tags: netbsd-1-6-base
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.183: +10 -5 lines
Diff to previous 1.183 (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.183 / (download) - annotate - [select for diffs], Sun May 5 06:01:28 2002 UTC (20 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.182: +3 -2 lines
Diff to previous 1.182 (colored)

A statement must follow a label.

Revision 1.182 / (download) - annotate - [select for diffs], Tue Apr 23 17:28:43 2002 UTC (20 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.181: +3 -3 lines
Diff to previous 1.181 (colored)

The IBM drive I have here supports DT, but claim version 3 only.
So check for version 3, not 4 when looking for DT support.
This should be safe as these bits are reserved for older devices, they
should be set to 0 when not supported.

Revision 1.181 / (download) - annotate - [select for diffs], Tue Apr 23 09:09:55 2002 UTC (20 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.180: +26 -2 lines
Diff to previous 1.180 (colored)

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

Revision 1.156.2.10 / (download) - annotate - [select for diffs], Wed Apr 17 00:06:12 2002 UTC (20 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.156.2.9: +3 -0 lines
Diff to previous 1.156.2.9 (colored) to branchpoint 1.156 (colored)

Catch up to -current.

Revision 1.180 / (download) - annotate - [select for diffs], Mon Apr 15 12:40:28 2002 UTC (20 years, 9 months ago) by joda
Branch: MAIN
Changes since 1.179: +4 -2 lines
Diff to previous 1.179 (colored)

Maxtor D040H2 also can't modesense

Revision 1.179 / (download) - annotate - [select for diffs], Mon Apr 1 20:37:41 2002 UTC (20 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.178: +3 -2 lines
Diff to previous 1.178 (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.156.2.9 / (download) - annotate - [select for diffs], Mon Apr 1 07:47:17 2002 UTC (20 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.156.2.8: +4 -2 lines
Diff to previous 1.156.2.8 (colored) to branchpoint 1.156 (colored)

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

Revision 1.178 / (download) - annotate - [select for diffs], Sat Mar 16 23:26:34 2002 UTC (20 years, 10 months ago) by chs
Branch: MAIN
CVS Tags: eeh-devprop-base, eeh-devprop
Changes since 1.177: +4 -2 lines
Diff to previous 1.177 (colored)

add a quirk for some disks I have that don't like tagged queuing.

Revision 1.156.2.8 / (download) - annotate - [select for diffs], Thu Feb 28 04:14:22 2002 UTC (20 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.156.2.7: +4 -2 lines
Diff to previous 1.156.2.7 (colored) to branchpoint 1.156 (colored)

Catch up to -current.

Revision 1.158.2.4 / (download) - annotate - [select for diffs], Mon Feb 11 20:10:12 2002 UTC (20 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.158.2.3: +4 -2 lines
Diff to previous 1.158.2.3 (colored)

Sync w/ -current.

Revision 1.177 / (download) - annotate - [select for diffs], Wed Jan 23 18:13:08 2002 UTC (21 years ago) by uwe
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base
Changes since 1.176: +4 -2 lines
Diff to previous 1.176 (colored)

Add notag quirk for Seagate "ST11200N SUN1.05".

Revision 1.158.2.3 / (download) - annotate - [select for diffs], Thu Jan 10 19:58:21 2002 UTC (21 years ago) by thorpej
Branch: kqueue
Changes since 1.158.2.2: +39 -23 lines
Diff to previous 1.158.2.2 (colored)

Sync kqueue branch with -current.

Revision 1.156.2.7 / (download) - annotate - [select for diffs], Tue Jan 8 00:31:49 2002 UTC (21 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.156.2.6: +34 -27 lines
Diff to previous 1.156.2.6 (colored) to branchpoint 1.156 (colored)

Catch up to -current.

Revision 1.176 / (download) - annotate - [select for diffs], Sat Dec 29 14:06:18 2001 UTC (21 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.175: +2 -12 lines
Diff to previous 1.175 (colored)

Move some USB device quirks to the umass_quirk table.

Revision 1.175 / (download) - annotate - [select for diffs], Sat Dec 29 13:55:02 2001 UTC (21 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.174: +5 -9 lines
Diff to previous 1.174 (colored)

Remove some quirk entries that are handled in umass_quirk now.

Revision 1.174 / (download) - annotate - [select for diffs], Thu Dec 27 18:57:46 2001 UTC (21 years, 1 month ago) by nathanw
Branch: MAIN
Changes since 1.173: +6 -3 lines
Diff to previous 1.173 (colored)

Use PQUIRK_ONLYBIG for all Olympus cameras, not just the C-1.
Use PQUIRK_ONLYBIG for the PQI TravelFlash.

Revision 1.173 / (download) - annotate - [select for diffs], Fri Dec 14 22:15:52 2001 UTC (21 years, 1 month ago) by nathanw
Branch: MAIN
Changes since 1.172: +5 -2 lines
Diff to previous 1.172 (colored)

The Olympus C-1 engine cameras seem to need the PQIRK_ONLYBIG quirk.

Revision 1.172 / (download) - annotate - [select for diffs], Sun Dec 2 22:44:34 2001 UTC (21 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.171: +3 -3 lines
Diff to previous 1.171 (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.171 / (download) - annotate - [select for diffs], Mon Nov 26 20:39:29 2001 UTC (21 years, 2 months ago) by fredette
Branch: MAIN
Changes since 1.170: +6 -2 lines
Diff to previous 1.170 (colored)

Added quirk entries for Adaptec and Emulex SCSI interposer boards.
Decode a limited set of SASI/SCSI-1 sense codes, and under sun2
only, conjure up INQUIRY responses for these boards.

Revision 1.170 / (download) - annotate - [select for diffs], Mon Nov 19 22:50:00 2001 UTC (21 years, 2 months ago) by tsutsui
Branch: MAIN
Changes since 1.169: +7 -2 lines
Diff to previous 1.169 (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.169 / (download) - annotate - [select for diffs], Mon Nov 19 16:54:20 2001 UTC (21 years, 2 months ago) by soren
Branch: MAIN
Changes since 1.168: +4 -3 lines
Diff to previous 1.168 (colored)

Floptical drive needs PQUIRK_NODOORLOCK as well.

Revision 1.168 / (download) - annotate - [select for diffs], Mon Nov 19 00:22:47 2001 UTC (21 years, 2 months ago) by soren
Branch: MAIN
Changes since 1.167: +4 -2 lines
Diff to previous 1.167 (colored)

Insite Floptical drive needs PQUIRK_NOLUNS.

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

Fix formatting of scsi_quirk_patterns[] and wrap long lines.

Revision 1.166 / (download) - annotate - [select for diffs], Thu Nov 15 09:48:17 2001 UTC (21 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.165: +2 -3 lines
Diff to previous 1.165 (colored)

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

Revision 1.156.2.6 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:02 2001 UTC (21 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.156.2.5: +6 -1 lines
Diff to previous 1.156.2.5 (colored) to branchpoint 1.156 (colored)

Catch up to -current.

Revision 1.147.2.4 / (download) - annotate - [select for diffs], Tue Nov 13 21:37:15 2001 UTC (21 years, 2 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.147.2.3: +3 -1 lines
Diff to previous 1.147.2.3 (colored) to branchpoint 1.147 (colored)

Pull up revision 1.162 (via patch, requested by christos):
  Add a ``no tagged queueing'' for an old Micropolis drive.  Fixes
  PR#14256.

Revision 1.165 / (download) - annotate - [select for diffs], Tue Nov 13 06:56:40 2001 UTC (21 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.164: +4 -1 lines
Diff to previous 1.164 (colored)

add RCSIDs

Revision 1.163.2.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:27 2001 UTC (21 years, 2 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.163: +3 -1 lines
Diff to previous 1.163 (colored) next main 1.164 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.164 / (download) - annotate - [select for diffs], Tue Nov 6 13:31:20 2001 UTC (21 years, 2 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.163: +3 -1 lines
Diff to previous 1.163 (colored)

Add a quirk for a USB CD/RW.

Revision 1.147.2.3 / (download) - annotate - [select for diffs], Thu Oct 25 17:54:42 2001 UTC (21 years, 3 months ago) by he
Branch: netbsd-1-5
Changes since 1.147.2.2: +14 -4 lines
Diff to previous 1.147.2.2 (colored) to branchpoint 1.147 (colored)

Pull up revision 1.153 (requested by ad):
  Add Mylex DACC960, CAC-EISA, and I2O block/SCSI drivers.

Revision 1.156.2.5 / (download) - annotate - [select for diffs], Mon Oct 22 20:41:42 2001 UTC (21 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.156.2.4: +5 -1 lines
Diff to previous 1.156.2.4 (colored) to branchpoint 1.156 (colored)

Catch up to -current.

Revision 1.163 / (download) - annotate - [select for diffs], Sun Oct 21 23:25:04 2001 UTC (21 years, 3 months ago) by mjl
Branch: MAIN
Branch point for: thorpej-mips-cache
Changes since 1.162: +3 -1 lines
Diff to previous 1.162 (colored)

Add ST15150N to quirk table, as per PR/13817.

Revision 1.162 / (download) - annotate - [select for diffs], Tue Oct 16 13:33:02 2001 UTC (21 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.161: +3 -1 lines
Diff to previous 1.161 (colored)

PR/14256: Kevin P. Neal: Add quirk for micropolis drive.

Revision 1.161.2.2 / (download) - annotate - [select for diffs], Wed Sep 26 15:28:17 2001 UTC (21 years, 4 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.161.2.1: +11 -6 lines
Diff to previous 1.161.2.1 (colored) to branchpoint 1.161 (colored) next main 1.162 (colored)

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

Revision 1.156.2.4 / (download) - annotate - [select for diffs], Fri Sep 21 22:36:13 2001 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.156.2.3: +4 -1 lines
Diff to previous 1.156.2.3 (colored) to branchpoint 1.156 (colored)

Catch up to -current.

Revision 1.158.2.2 / (download) - annotate - [select for diffs], Thu Sep 13 01:16:10 2001 UTC (21 years, 4 months ago) by thorpej
Branch: kqueue
Changes since 1.158.2.1: +4 -1 lines
Diff to previous 1.158.2.1 (colored)

Update the kqueue branch to HEAD.

Revision 1.161.2.1 / (download) - annotate - [select for diffs], Fri Sep 7 04:45:31 2001 UTC (21 years, 4 months ago) by thorpej
Branch: thorpej-devvp
Changes since 1.161: +15 -10 lines
Diff to previous 1.161 (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.161 / (download) - annotate - [select for diffs], Fri Aug 31 07:09:41 2001 UTC (21 years, 5 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.160: +2 -2 lines
Diff to previous 1.160 (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.160 / (download) - annotate - [select for diffs], Fri Aug 31 06:54:42 2001 UTC (21 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.159: +4 -1 lines
Diff to previous 1.159 (colored)

Some quirks for USB M-Sys DiskOnKey.  Still not enough to make it work.

Revision 1.156.2.3 / (download) - annotate - [select for diffs], Fri Aug 24 00:10:47 2001 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.156.2.2: +13 -18 lines
Diff to previous 1.156.2.2 (colored) to branchpoint 1.156 (colored)

Catch up with -current.

Revision 1.158.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:13:30 2001 UTC (21 years, 6 months ago) by lukem
Branch: kqueue
Changes since 1.158: +13 -18 lines
Diff to previous 1.158 (colored)

update to -current

Revision 1.159 / (download) - annotate - [select for diffs], Wed Jul 18 20:19:24 2001 UTC (21 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.158: +13 -18 lines
Diff to previous 1.158 (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.156.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 20:05:52 2001 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.156.2.1: +354 -388 lines
Diff to previous 1.156.2.1 (colored) to branchpoint 1.156 (colored)

Catch up to -current.

Revision 1.158 / (download) - annotate - [select for diffs], Mon Jun 11 13:58:18 2001 UTC (21 years, 7 months ago) by pk
Branch: MAIN
Branch point for: kqueue
Changes since 1.157: +4 -1 lines
Diff to previous 1.157 (colored)

Add nolun/nosync quirk for "IBM CDRM00201     !F"
See PR#13031.

Revision 1.157 / (download) - annotate - [select for diffs], Wed Apr 25 17:53:39 2001 UTC (21 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.156: +351 -387 lines
Diff to previous 1.156 (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.130.2.13 / (download) - annotate - [select for diffs], Mon Apr 23 16:14:57 2001 UTC (21 years, 9 months ago) by ad
Branch: thorpej_scsipi
Changes since 1.130.2.12: +3 -2 lines
Diff to previous 1.130.2.12 (colored) next main 1.131 (colored)

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

Revision 1.130.2.12 / (download) - annotate - [select for diffs], Wed Apr 11 01:19:47 2001 UTC (21 years, 9 months ago) by mjacob
Branch: thorpej_scsipi
Changes since 1.130.2.11: +2 -2 lines
Diff to previous 1.130.2.11 (colored)

oops: reversed conditional

Revision 1.130.2.11 / (download) - annotate - [select for diffs], Wed Apr 11 01:16:04 2001 UTC (21 years, 9 months ago) by mjacob
Branch: thorpej_scsipi
Changes since 1.130.2.10: +15 -4 lines
Diff to previous 1.130.2.10 (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.130.2.10 / (download) - annotate - [select for diffs], Mon Mar 12 13:31:24 2001 UTC (21 years, 10 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.130.2.9: +9 -2 lines
Diff to previous 1.130.2.9 (colored)

Sync with HEAD.

Revision 1.156.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:36 2001 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.156: +5 -3 lines
Diff to previous 1.156 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.156 / (download) - annotate - [select for diffs], Mon Feb 26 22:31:27 2001 UTC (21 years, 11 months ago) by fvdl
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.155: +9 -2 lines
Diff to previous 1.155 (colored)

Add quirks for VMware emulated disks, for NetBSD as a guest OS.

Revision 1.155 / (download) - annotate - [select for diffs], Fri Feb 16 22:54:27 2001 UTC (21 years, 11 months ago) by pk
Branch: MAIN
Changes since 1.154: +10 -1 lines
Diff to previous 1.154 (colored)

Turn off command tagging by default for pre-SCSI2 devices.

Revision 1.130.2.9 / (download) - annotate - [select for diffs], Sun Feb 11 19:16:19 2001 UTC (21 years, 11 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.130.2.8: +2 -2 lines
Diff to previous 1.130.2.8 (colored)

Sync with HEAD.

Revision 1.154 / (download) - annotate - [select for diffs], Thu Jan 18 20:28:21 2001 UTC (22 years ago) by jdolecek
Branch: MAIN
Changes since 1.153: +2 -2 lines
Diff to previous 1.153 (colored)

constify

Revision 1.130.2.8 / (download) - annotate - [select for diffs], Fri Dec 8 09:12:41 2000 UTC (22 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.130.2.7: +8 -0 lines
Diff to previous 1.130.2.7 (colored)

Sync with HEAD.

Revision 1.153 / (download) - annotate - [select for diffs], Sun Dec 3 13:30:36 2000 UTC (22 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.152: +14 -4 lines
Diff to previous 1.152 (colored)

I2O HBAs provide an abstracted view of the bus; use SCBUSIOLLSCAN to give
them an oppertunity to re-scan it before we do.

Revision 1.130.2.7 / (download) - annotate - [select for diffs], Wed Nov 22 16:04:49 2000 UTC (22 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.130.2.6: +2 -2 lines
Diff to previous 1.130.2.6 (colored)

Sync with HEAD.

Revision 1.130.2.6 / (download) - annotate - [select for diffs], Mon Nov 20 09:59:25 2000 UTC (22 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.130.2.5: +65 -37 lines
Diff to previous 1.130.2.5 (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.152 / (download) - annotate - [select for diffs], Tue Nov 14 08:52:35 2000 UTC (22 years, 2 months ago) by pk
Branch: MAIN
Changes since 1.151: +2 -2 lines
Diff to previous 1.151 (colored)

Mark the "TOSHIBA, XM-4101TASUNSLCD" CD-R for a-sync operation only.

Revision 1.151 / (download) - annotate - [select for diffs], Fri Sep 22 16:45:17 2000 UTC (22 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.150: +7 -1 lines
Diff to previous 1.150 (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.147.2.2 / (download) - annotate - [select for diffs], Mon Aug 28 05:39:44 2000 UTC (22 years, 5 months ago) by mjacob
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.147.2.1: +23 -5 lines
Diff to previous 1.147.2.1 (colored) to branchpoint 1.147 (colored)

Add support for accelleration SCSI ioctls (that allow for the
midlayer to enable sync/wide/tagged).

Approved for pullup to netbsd-1-5 by thorpej@netbsd.org.

Revision 1.150 / (download) - annotate - [select for diffs], Sun Aug 13 00:03:01 2000 UTC (22 years, 5 months ago) by mjacob
Branch: MAIN
Changes since 1.149: +3 -4 lines
Diff to previous 1.149 (colored)

Add "SYMBIOS" processor type to the SDEV_NOLUN category. These are usually
the GEM chips on a Sun D1000- and they cause Qlogic SBus firmware to blow
chunks if you access past lun 0.

Revision 1.149 / (download) - annotate - [select for diffs], Tue Aug 8 22:46:03 2000 UTC (22 years, 5 months ago) by mjacob
Branch: MAIN
Changes since 1.148: +21 -2 lines
Diff to previous 1.148 (colored)

During probe, use SCBUSACCEL ioctl to adapters that support it to
enable fast/wide/tagged.

Revision 1.147.2.1 / (download) - annotate - [select for diffs], Thu Aug 3 17:17:48 2000 UTC (22 years, 6 months ago) by bouyer
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-ALPHA2
Changes since 1.147: +3 -1 lines
Diff to previous 1.147 (colored)

pullup 1.147 -> 1.148 (approved by thorpej):
Add quirk entry for NEDICOM CRD-BP2, from kern/10738.

Revision 1.148 / (download) - annotate - [select for diffs], Thu Aug 3 12:36:08 2000 UTC (22 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.147: +3 -1 lines
Diff to previous 1.147 (colored)

Add quirk entry for NEDICOM CRD-BP2, from kern/10738.

Revision 1.142.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:08:13 2000 UTC (22 years, 7 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.142: +19 -3 lines
Diff to previous 1.142 (colored) next main 1.143 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.147 / (download) - annotate - [select for diffs], Fri Jun 9 08:54:23 2000 UTC (22 years, 7 months ago) by enami
Branch: MAIN
CVS Tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Changes since 1.146: +3 -2 lines
Diff to previous 1.146 (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.146 / (download) - annotate - [select for diffs], Tue May 30 15:16:41 2000 UTC (22 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.145: +3 -1 lines
Diff to previous 1.145 (colored)

Add NOMODESENSE quirk for TEAC USB floppy.

Revision 1.145 / (download) - annotate - [select for diffs], Tue May 30 01:49:19 2000 UTC (22 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.144: +4 -1 lines
Diff to previous 1.144 (colored)

Add NOMODESENSE quirk for Y-E data floppy (thanks Jason for reminding me).

Revision 1.144 / (download) - annotate - [select for diffs], Mon May 29 20:13:06 2000 UTC (22 years, 8 months ago) by bouyer
Branch: MAIN
Changes since 1.143: +5 -5 lines
Diff to previous 1.143 (colored)

ADEV_CDROM -> SDEV_CDROM, for consistency.

Revision 1.143 / (download) - annotate - [select for diffs], Sun May 28 07:03:59 2000 UTC (22 years, 8 months ago) by gmcgarry
Branch: MAIN
Changes since 1.142: +11 -1 lines
Diff to previous 1.142 (colored)

Handle ADEV_CDROM in quirks table.
Quirk entry for another Toshiba cdrom.

Revision 1.142 / (download) - annotate - [select for diffs], Mon May 15 16:35:49 2000 UTC (22 years, 8 months ago) by dante
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.141: +8 -1 lines
Diff to previous 1.141 (colored)

Add few peripheral device type
Remove "???" from T_IT8_1/2. They actually are pre-press devices for graphic arts as described by ASC IT8
Zeros and blanks scsipi_inquiry_data from byte 58 to byte 74 if additional_length is less than 58

Revision 1.141 / (download) - annotate - [select for diffs], Sun May 14 18:20:11 2000 UTC (22 years, 8 months ago) by dante
Branch: MAIN
Changes since 1.140: +11 -6 lines
Diff to previous 1.140 (colored)

Change scsipi_inquiry_data strucure to be ANSI SPC-2 rev16 compliant

Revision 1.140 / (download) - annotate - [select for diffs], Wed Apr 19 04:49:50 2000 UTC (22 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.139: +2 -2 lines
Diff to previous 1.139 (colored)

Allocate the variable `inqbuf' in scsi_probedev on stack rather than
statically.  Since this function may called for another luns immediately,
allocating it statically doesn't make sense and may cause race condition
as pointed out by PR#9749.

Revision 1.139 / (download) - annotate - [select for diffs], Sun Apr 2 17:25:52 2000 UTC (22 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.138: +4 -1 lines
Diff to previous 1.138 (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.138 / (download) - annotate - [select for diffs], Mon Mar 27 11:45:42 2000 UTC (22 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.137: +2 -2 lines
Diff to previous 1.137 (colored)

In attach message, spell it "target" not "targ", as in the locator.

Revision 1.137 / (download) - annotate - [select for diffs], Sun Mar 19 10:33:26 2000 UTC (22 years, 10 months ago) by sjg
Branch: MAIN
Changes since 1.136: +3 -1 lines
Diff to previous 1.136 (colored)

Added NOLUNS quirk for YAMAHA CRW8424S

Revision 1.136 / (download) - annotate - [select for diffs], Fri Mar 17 11:45:49 2000 UTC (22 years, 10 months ago) by soren
Branch: MAIN
Changes since 1.135: +1 -19 lines
Diff to previous 1.135 (colored)

scsiprint() is needed even without scsibus'es, so move it to scsi_base.c .

Revision 1.135 / (download) - annotate - [select for diffs], Mon Mar 13 09:56:26 2000 UTC (22 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.134: +3 -1 lines
Diff to previous 1.134 (colored)

Added Artec/Ultima A6000C scanner to the quirks table (no LUNs).

Revision 1.130.2.5 / (download) - annotate - [select for diffs], Fri Feb 4 23:01:54 2000 UTC (23 years ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.130.2.4: +15 -6 lines
Diff to previous 1.130.2.4 (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.134 / (download) - annotate - [select for diffs], Thu Jan 20 17:10:18 2000 UTC (23 years ago) by mjacob
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.133: +3 -2 lines
Diff to previous 1.133 (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.122.2.3 / (download) - annotate - [select for diffs], Sun Jan 16 17:47:56 2000 UTC (23 years ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.122.2.2: +2 -2 lines
Diff to previous 1.122.2.2 (colored) to branchpoint 1.122 (colored) next main 1.123 (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.133 / (download) - annotate - [select for diffs], Thu Jan 13 00:18:27 2000 UTC (23 years ago) by nisimura
Branch: MAIN
Changes since 1.132: +3 -1 lines
Diff to previous 1.132 (colored)

Add tweaks for TEAC compact cassette tape drive.

Revision 1.128.2.2 / (download) - annotate - [select for diffs], Mon Dec 27 18:35:35 1999 UTC (23 years, 1 month ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.128.2.1: +8 -7 lines
Diff to previous 1.128.2.1 (colored) next main 1.129 (colored)

Pull up to last week's -current.

Revision 1.128.2.1 / (download) - annotate - [select for diffs], Tue Dec 21 23:19:55 1999 UTC (23 years, 1 month ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.128: +2 -2 lines
Diff to previous 1.128 (colored)

Initial commit of recent changes to make DEV_BSIZE go away.

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

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

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

Revision 1.122.2.2 / (download) - annotate - [select for diffs], Sat Nov 27 15:11:28 1999 UTC (23 years, 2 months ago) by he
Branch: netbsd-1-4
Changes since 1.122.2.1: +2 -2 lines
Diff to previous 1.122.2.1 (colored) to branchpoint 1.122 (colored)

Pull up revision 1.123 (requested by dmcmahill):
  Add SCSI quirk for UMAX Astra 1220S scanner: skip LUN check,
  fixes PR#7991.

Revision 1.130.4.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:41:25 1999 UTC (23 years, 2 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.130: +4 -7 lines
Diff to previous 1.130 (colored) next main 1.131 (colored)

Sync with -current

Revision 1.132 / (download) - annotate - [select for diffs], Sun Nov 14 18:06:09 1999 UTC (23 years, 2 months ago) by soren
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base
Changes since 1.131: +3 -7 lines
Diff to previous 1.131 (colored)

Allow SCSI_DELAY to be shorter than 2 seconds.

Revision 1.122.2.1 / (download) - annotate - [select for diffs], Wed Nov 10 18:30:21 1999 UTC (23 years, 2 months ago) by he
Branch: netbsd-1-4
Changes since 1.122: +5 -1 lines
Diff to previous 1.122 (colored)

Pull up revisions 1.129-1.130 (requested by hwr):
  Add quirks for Toshiba XM-3401TA SCSI CD-ROM and CDU-561 CD-ROM,
  fixing PR#7438 and PR#8608.

Revision 1.130.2.4 / (download) - annotate - [select for diffs], Mon Nov 1 22:54:19 1999 UTC (23 years, 3 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.130.2.3: +8 -6 lines
Diff to previous 1.130.2.3 (colored)

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

Revision 1.130.2.3 / (download) - annotate - [select for diffs], Tue Oct 26 23:08:05 1999 UTC (23 years, 3 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.130.2.2: +9 -47 lines
Diff to previous 1.130.2.2 (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.130.2.2 / (download) - annotate - [select for diffs], Wed Oct 20 22:54:09 1999 UTC (23 years, 3 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.130.2.1: +2 -1 lines
Diff to previous 1.130.2.1 (colored)

Sync w/ trunk.

Revision 1.131 / (download) - annotate - [select for diffs], Wed Oct 20 15:22:27 1999 UTC (23 years, 3 months ago) by enami
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Changes since 1.130: +2 -1 lines
Diff to previous 1.130 (colored)

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

Revision 1.130.2.1 / (download) - annotate - [select for diffs], Tue Oct 19 17:39:33 1999 UTC (23 years, 3 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.130: +338 -334 lines
Diff to previous 1.130 (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.130 / (download) - annotate - [select for diffs], Mon Oct 11 15:28:57 1999 UTC (23 years, 3 months ago) by hwr
Branch: MAIN
Branch point for: thorpej_scsipi, fvdl-softdep
Changes since 1.129: +3 -1 lines
Diff to previous 1.129 (colored)

Add ad quirk for CDU-561 CD-ROM. From PR kern/8608
by SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp>.

Revision 1.129 / (download) - annotate - [select for diffs], Sun Oct 10 18:49:15 1999 UTC (23 years, 3 months ago) by hwr
Branch: MAIN
Changes since 1.128: +3 -1 lines
Diff to previous 1.128 (colored)

Add a quirk to recognize a Toshiba XM-3401TA SCSI CD-ROM as
removable SCSI device. From Matthew Fredette <fredette@mit.edu> in
kern/7438.

Revision 1.128 / (download) - annotate - [select for diffs], Thu Sep 30 22:57:53 1999 UTC (23 years, 4 months ago) by thorpej
Branch: MAIN
Branch point for: wrstuden-devbsize
Changes since 1.127: +30 -9 lines
Diff to previous 1.127 (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.127 / (download) - annotate - [select for diffs], Sun Sep 19 23:45:28 1999 UTC (23 years, 4 months ago) by nathanw
Branch: MAIN
Changes since 1.126: +3 -1 lines
Diff to previous 1.126 (colored)

Add NOLUNS quirk for another Texel CD-ROM revision.

Revision 1.126 / (download) - annotate - [select for diffs], Sat Sep 11 21:25:26 1999 UTC (23 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.125: +69 -2 lines
Diff to previous 1.125 (colored)

Implement detaching of SCSI busses.

Revision 1.125 / (download) - annotate - [select for diffs], Thu Sep 9 20:06:52 1999 UTC (23 years, 4 months ago) by hwr
Branch: MAIN
Changes since 1.124: +3 -1 lines
Diff to previous 1.124 (colored)

Add a quirk for Wangtec SCSI-36 (QIC-120) tape drive.
From Izumi Tsutsiu in PR 8357.

Revision 1.122.4.1 / (download) - annotate - [select for diffs], Mon Aug 2 22:07:14 1999 UTC (23 years, 6 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.122: +3 -3 lines
Diff to previous 1.122 (colored) next main 1.123 (colored)

Update from trunk.

Revision 1.124 / (download) - annotate - [select for diffs], Mon Jul 26 22:43:13 1999 UTC (23 years, 6 months ago) by explorer
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.123: +2 -2 lines
Diff to previous 1.123 (colored)

make the JVC 2626 match more than one version, since all seem to be
returning errors on the LUN probe.

Revision 1.123 / (download) - annotate - [select for diffs], Wed Jul 14 22:34:18 1999 UTC (23 years, 6 months ago) by tron
Branch: MAIN
Changes since 1.122: +2 -2 lines
Diff to previous 1.122 (colored)

Skip LUN check for all versions of the UMAX Astra 1220S as suggested
by Dan McMahill in PR kern/7991.

Revision 1.122 / (download) - annotate - [select for diffs], Thu Dec 10 18:13:29 1998 UTC (24 years, 1 month ago) by mjacob
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: netbsd-1-4, chs-ubc2
Changes since 1.121: +3 -1 lines
Diff to previous 1.121 (colored)

add Adaptec RAID units as devices that do not return geometry pages

Revision 1.121 / (download) - annotate - [select for diffs], Tue Dec 8 00:14:41 1998 UTC (24 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.120: +2 -1 lines
Diff to previous 1.120 (colored)

When allocating a device's scsipi_link, initialize the pending_xfers
queue.

Revision 1.120 / (download) - annotate - [select for diffs], Sat Dec 5 20:52:47 1998 UTC (24 years, 2 months ago) by mjacob
Branch: MAIN
Changes since 1.119: +2 -2 lines
Diff to previous 1.119 (colored)

NOMODESENSE for all Seagate ST19171- not just FC

Revision 1.119 / (download) - annotate - [select for diffs], Sat Dec 5 19:39:23 1998 UTC (24 years, 2 months ago) by mjacob
Branch: MAIN
Changes since 1.118: +28 -15 lines
Diff to previous 1.118 (colored)

Eliminate the moreluns entry as it makes no sense for fat SCSI busses (e.g,
FC loops). Change the semantics of scsi_probedev so that it returns 1 if
you should continue probing at this target, else 0 for not.

Replace the blanket use of '7' with the use of the new sc_maxlun property
that is now gathered from HBAs. Allocate scsipi_link arrays based upon this.
Fix a really nasty and silly bug that has been there for a while where the
number of first level scsipi_link structures was one less than it needed
to be.

Revision 1.118 / (download) - annotate - [select for diffs], Thu Nov 26 13:39:14 1998 UTC (24 years, 2 months ago) by leo
Branch: MAIN
Changes since 1.117: +3 -1 lines
Diff to previous 1.117 (colored)

The IOMEGA ZIP 100, J.03 does not grok LUN's.

Revision 1.117 / (download) - annotate - [select for diffs], Thu Nov 19 22:28:20 1998 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.116: +8 -3 lines
Diff to previous 1.116 (colored)

Add a reference to the adapter when the scsibus is opened, and delete it
when it is closed.

Revision 1.116 / (download) - annotate - [select for diffs], Thu Nov 19 22:25:57 1998 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.115: +5 -1 lines
Diff to previous 1.115 (colored)

Add a reference to the adapter before probing the bus, and delete it
once we are done probing.

Revision 1.115 / (download) - annotate - [select for diffs], Tue Nov 17 14:38:42 1998 UTC (24 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.114: +2 -2 lines
Diff to previous 1.114 (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.114 / (download) - annotate - [select for diffs], Tue Oct 20 22:26:04 1998 UTC (24 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.113: +5 -9 lines
Diff to previous 1.113 (colored)

Fix a sight open flags buglet pointed out by Matthias Scheler.

Revision 1.113 / (download) - annotate - [select for diffs], Sat Oct 10 03:33:01 1998 UTC (24 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.112: +22 -4 lines
Diff to previous 1.112 (colored)

Enforce open-for-writing on ioctls that change the bus's state.

Implement ioctl pass-through to the host bus adapter, allowing both
SCBUS* ioctls handled at that level and host adapter-specific ioctls
to be implemented.  Implement SCBUSIORESET as a pass-through.

Inspired by PR #6090, from Matt Jacob.

Revision 1.112 / (download) - annotate - [select for diffs], Sat Oct 10 02:34:15 1998 UTC (24 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.111: +13 -1 lines
Diff to previous 1.111 (colored)

Implement the SCBUSIOSCAN ioctl.  Rescans the bus for new devices.

Revision 1.111 / (download) - annotate - [select for diffs], Sat Oct 10 01:14:26 1998 UTC (24 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.110: +67 -2 lines
Diff to previous 1.110 (colored)

Add the open/close/ioctl entry points for the SCSI bus, i.e. /dev/scsibusN.

Revision 1.110 / (download) - annotate - [select for diffs], Thu Oct 8 20:24:10 1998 UTC (24 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.109: +3 -1 lines
Diff to previous 1.109 (colored)

Add a NOSYNCCACHE quirk for the Micropolis 2217-15MQ1091501, as reported
by Matt Jacob, PR #6027.

Revision 1.109 / (download) - annotate - [select for diffs], Thu Oct 8 18:46:15 1998 UTC (24 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.108: +4 -1 lines
Diff to previous 1.108 (colored)

Add a NOLUNS quirk for the Sony CDL1100 changer, from Chris Jones, PR #6238.

Revision 1.108 / (download) - annotate - [select for diffs], Tue Sep 8 07:34:02 1998 UTC (24 years, 4 months ago) by mjacob
Branch: MAIN
Changes since 1.107: +23 -5 lines
Diff to previous 1.107 (colored)

Reflect changes in quirk flags, and also now add case post retrieval
of Inquiry data during probe where SDEV_NOSYNC, SDEV_NOTAG and SDEV_NOWIDE
can be set (with quirk data overriding) per device probed.

Revision 1.107 / (download) - annotate - [select for diffs], Mon Aug 31 22:28:07 1998 UTC (24 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.106: +1 -31 lines
Diff to previous 1.106 (colored)

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

Revision 1.106 / (download) - annotate - [select for diffs], Mon Aug 17 00:49:02 1998 UTC (24 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.105: +23 -16 lines
Diff to previous 1.105 (colored)

Assign my copyrights to TNF.

Revision 1.105 / (download) - annotate - [select for diffs], Sat Aug 15 03:02:47 1998 UTC (24 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.104: +3 -3 lines
Diff to previous 1.104 (colored)

Make copyright notices with my name consistent.

Revision 1.102.2.2 / (download) - annotate - [select for diffs], Sat Aug 8 03:06:51 1998 UTC (24 years, 5 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.102.2.1: +718 -0 lines
Diff to previous 1.102.2.1 (colored) to branchpoint 1.102 (colored) next main 1.103 (colored)

Revert cdevsw mmap routines to return int.

Revision 1.104 / (download) - annotate - [select for diffs], Wed Aug 5 16:29:05 1998 UTC (24 years, 6 months ago) by drochner
Branch: MAIN
Changes since 1.103: +4 -4 lines
Diff to previous 1.103 (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.103 / (download) - annotate - [select for diffs], Fri Jul 31 03:00:51 1998 UTC (24 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.102: +4 -1 lines
Diff to previous 1.102 (colored)

Use the pool allocator for scsipi_xfer structures.

Revision 1.102.2.1, Thu Jul 30 00:00:06 1998 UTC (24 years, 6 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.102: +0 -715 lines
FILE REMOVED

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

Revision 1.102 / (download) - annotate - [select for diffs], Thu Jul 30 00:00:06 1998 UTC (24 years, 6 months ago) by fvdl
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.101: +3 -1 lines
Diff to previous 1.101 (colored)

Add NOLUNS quirk for the UMAX Astra 1220 scanner.

Revision 1.101 / (download) - annotate - [select for diffs], Mon Jun 22 13:19:09 1998 UTC (24 years, 7 months ago) by bouyer
Branch: MAIN
Changes since 1.100: +3 -1 lines
Diff to previous 1.100 (colored)

Ricoh IS60 to the quirk table (SDEV_NOLUN). Fixes PR 5473 by
Feico Dillema < dillema@acm.org>

Revision 1.93.2.1 / (download) - annotate - [select for diffs], Tue May 5 08:29:32 1998 UTC (24 years, 9 months ago) by mycroft
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002
Changes since 1.93: +17 -5 lines
Diff to previous 1.93 (colored) next main 1.94 (colored)

Pull up 1.96, per request of scottr.  Also do 1.95 and 1.97-1.100.

Revision 1.100 / (download) - annotate - [select for diffs], Mon May 4 05:56:31 1998 UTC (24 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.99: +3 -1 lines
Diff to previous 1.99 (colored)

The DEC RRD42 doesn't deal with LUNs very well either.
kern/5376, Simon Burge <simonb@telstra.com.au>

Revision 1.99 / (download) - annotate - [select for diffs], Mon May 4 05:54:09 1998 UTC (24 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.98: +3 -1 lines
Diff to previous 1.98 (colored)

Add the UMAX Astra 1200S scanner to the list of the LUN-clueless.
kern/5390, Rene Hexel <rh@vip.at>

Revision 1.98 / (download) - annotate - [select for diffs], Thu Apr 23 00:38:01 1998 UTC (24 years, 9 months ago) by explorer
Branch: MAIN
Changes since 1.97: +3 -1 lines
Diff to previous 1.97 (colored)

Ignore LUN on yet another cdrom

Revision 1.97 / (download) - annotate - [select for diffs], Fri Apr 10 17:13:11 1998 UTC (24 years, 9 months ago) by mjacob
Branch: MAIN
Changes since 1.96: +2 -2 lines
Diff to previous 1.96 (colored)

trim ID of ST19171FC so that SUN drives are caught

Revision 1.96 / (download) - annotate - [select for diffs], Sat Mar 7 06:34:59 1998 UTC (24 years, 11 months ago) by scottr
Branch: MAIN
Changes since 1.95: +7 -3 lines
Diff to previous 1.95 (colored)

Quirk table entries for IBM H3171 and Quantum ELS85S disks.

Revision 1.95 / (download) - annotate - [select for diffs], Wed Jan 21 08:41:28 1998 UTC (25 years ago) by mikel
Branch: MAIN
Changes since 1.94: +4 -2 lines
Diff to previous 1.94 (colored)

add NOLUNS quirk for UMAX S-12; from Andreas Wrede in PR kern/4849

Revision 1.94 / (download) - annotate - [select for diffs], Mon Jan 12 09:49:15 1998 UTC (25 years ago) by thorpej
Branch: MAIN
Changes since 1.93: +2 -4 lines
Diff to previous 1.93 (colored)

Adjust for changes to config.

Revision 1.88.2.5 / (download) - annotate - [select for diffs], Tue Oct 14 10:25:10 1997 UTC (25 years, 3 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.88.2.4: +51 -39 lines
Diff to previous 1.88.2.4 (colored) to branchpoint 1.88 (colored) next main 1.89 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.93 / (download) - annotate - [select for diffs], Fri Oct 3 02:04:17 1997 UTC (25 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH001, netbsd-1-3-BETA, marc-pcmcia-base
Branch point for: netbsd-1-3
Changes since 1.92: +6 -2 lines
Diff to previous 1.92 (colored)

Clean up and comment the device types, and add the "enclosure services",
"storage array", and "IT8" types.

Revision 1.92 / (download) - annotate - [select for diffs], Wed Oct 1 01:19:03 1997 UTC (25 years, 4 months ago) by enami
Branch: MAIN
Changes since 1.91: +38 -38 lines
Diff to previous 1.91 (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.91 / (download) - annotate - [select for diffs], Mon Sep 29 11:00:36 1997 UTC (25 years, 4 months ago) by bouyer
Branch: MAIN
Changes since 1.90: +9 -1 lines
Diff to previous 1.90 (colored)

Add quirks entries for Hitachi DK515C disk drives and Cipher ST150S tape drive.
Closes PR kern/4171 from jbernard@tater.mines.edu.

Revision 1.88.2.4 / (download) - annotate - [select for diffs], Mon Sep 22 06:33:39 1997 UTC (25 years, 4 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.88.2.3: +5 -1 lines
Diff to previous 1.88.2.3 (colored) to branchpoint 1.88 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.90 / (download) - annotate - [select for diffs], Fri Sep 19 14:08:48 1997 UTC (25 years, 4 months ago) by mjacob
Branch: MAIN
Changes since 1.89: +5 -1 lines
Diff to previous 1.89 (colored)

Another couple NOMODESENSE drives.

Revision 1.88.2.3 / (download) - annotate - [select for diffs], Tue Sep 16 03:50:53 1997 UTC (25 years, 4 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.88.2.2: +3 -1 lines
Diff to previous 1.88.2.2 (colored) to branchpoint 1.88 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.89 / (download) - annotate - [select for diffs], Tue Sep 9 21:56:01 1997 UTC (25 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.88: +3 -1 lines
Diff to previous 1.88 (colored)

Add SDEV_NOLUNS to another CD-ROM player.

Revision 1.88.2.2 / (download) - annotate - [select for diffs], Wed Aug 27 23:33:19 1997 UTC (25 years, 5 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.88.2.1: +683 -0 lines
Diff to previous 1.88.2.1 (colored) to branchpoint 1.88 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.88.2.1, Wed Aug 27 11:26:45 1997 UTC (25 years, 5 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.88: +0 -683 lines
FILE REMOVED

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

Revision 1.88 / (download) - annotate - [select for diffs], Wed Aug 27 11:26:45 1997 UTC (25 years, 5 months ago) by bouyer
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal
Branch point for: marc-pcmcia
Changes since 1.87: +126 -241 lines
Diff to previous 1.87 (colored)

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

Revision 1.84.2.1 / (download) - annotate - [select for diffs], Sat Aug 23 07:14:26 1997 UTC (25 years, 5 months ago) by thorpej
Changes since 1.84: +14 -2 lines
Diff to previous 1.84 (colored) next main 1.85 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.87 / (download) - annotate - [select for diffs], Sun Aug 17 16:25:11 1997 UTC (25 years, 5 months ago) by mjacob
Branch: MAIN
Changes since 1.86: +9 -1 lines
Diff to previous 1.86 (colored)

A few more SDEV_NOLUNS entries- one tape drive (SONY Beta/VHS) and a couple
of PCMCIA card readers (one as T_DIRECT, the other as T_PROCESSOR).

Revision 1.86 / (download) - annotate - [select for diffs], Sat Aug 16 01:05:51 1997 UTC (25 years, 5 months ago) by mjacob
Branch: MAIN
Changes since 1.85: +3 -1 lines
Diff to previous 1.85 (colored)

This fibre channel disk doesn't support the geometry page.

Revision 1.85 / (download) - annotate - [select for diffs], Thu Aug 14 22:17:32 1997 UTC (25 years, 5 months ago) by explorer
Branch: MAIN
Changes since 1.84: +4 -2 lines
Diff to previous 1.84 (colored)

add SDEV_NOLUNS for my scanner (UMAX S-6E)

Revision 1.84 / (download) - annotate - [select for diffs], Thu Jul 17 00:46:50 1997 UTC (25 years, 6 months ago) by perry
Branch: MAIN
Changes since 1.83: +5 -1 lines
Diff to previous 1.83 (colored)

More CD quirks, from Dave Huang (pr-3843)

Revision 1.83 / (download) - annotate - [select for diffs], Thu Apr 24 00:49:14 1997 UTC (25 years, 9 months ago) by mycroft
Branch: MAIN
CVS Tags: bouyer-scsipi
Changes since 1.82: +3 -1 lines
Diff to previous 1.82 (colored)

Another silly CD-ROM drive...

Revision 1.82 / (download) - annotate - [select for diffs], Sun Apr 20 01:30:30 1997 UTC (25 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.81: +3 -1 lines
Diff to previous 1.81 (colored)

And Yet Another Broken IBM disk (the 664 this time), once again
reported by Hubert Feyrer <feyrer@grizu.fh-regensburg.de>.

Revision 1.81 / (download) - annotate - [select for diffs], Sun Apr 20 00:55:05 1997 UTC (25 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.80: +4 -1 lines
Diff to previous 1.80 (colored)

Add Yet Another Broken IBM disk to the SDEV_AUTOSAVE list.  This one
doesn't report a vendor string (yuck)!.  Problem reported by
Hubert Feyrer <feyrer@grizu.fh-regensburg.de>.

Revision 1.80 / (download) - annotate - [select for diffs], Sat Apr 19 21:32:37 1997 UTC (25 years, 9 months ago) by pk
Branch: MAIN
Changes since 1.79: +5 -2 lines
Diff to previous 1.79 (colored)

Two more quirks:
	Python 28454-XXX tape drive: NOLUNS
	1588-15MBSUN0669 disk: AUTOSAVE

Revision 1.79 / (download) - annotate - [select for diffs], Tue Apr 8 17:35:06 1997 UTC (25 years, 9 months ago) by scottr
Branch: MAIN
Changes since 1.78: +3 -3 lines
Diff to previous 1.78 (colored)

Add another IBM disk that needs SDEV_AUTOSAVE.

Revision 1.78 / (download) - annotate - [select for diffs], Wed Apr 2 02:36:02 1997 UTC (25 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.77: +2 -2 lines
Diff to previous 1.77 (colored)

Add a SDEV_AUTOSAVE quirk for the Emulex SCSI<->ESDI bridge.

Revision 1.77 / (download) - annotate - [select for diffs], Tue Apr 1 04:05:03 1997 UTC (25 years, 10 months ago) by mikel
Branch: MAIN
Changes since 1.76: +2 -2 lines
Diff to previous 1.76 (colored)

loosen the version number check in the quirk list for the CDR-H98MV;
  from Koji Imada in PR kern/3419.

Revision 1.76 / (download) - annotate - [select for diffs], Thu Mar 27 07:37:54 1997 UTC (25 years, 10 months ago) by scottr
Branch: MAIN
Changes since 1.75: +5 -1 lines
Diff to previous 1.75 (colored)

Add SDEV_AUTOSAVE quirks for IBM 0663H{08,12} disks

Revision 1.75 / (download) - annotate - [select for diffs], Tue Mar 25 22:33:50 1997 UTC (25 years, 10 months ago) by scottr
Branch: MAIN
Changes since 1.74: +3 -1 lines
Diff to previous 1.74 (colored)

Add SDEV_NOLUNS quirk for Seagate ST125N.

Revision 1.73.6.1 / (download) - annotate - [select for diffs], Wed Mar 12 21:25:47 1997 UTC (25 years, 10 months ago) by is
Changes since 1.73: +1 -5 lines
Diff to previous 1.73 (colored) next main 1.74 (colored)

Merge in changes from Trunk

Revision 1.74 / (download) - annotate - [select for diffs], Tue Mar 11 06:06:35 1997 UTC (25 years, 10 months ago) by mikel
Branch: MAIN
Changes since 1.73: +1 -5 lines
Diff to previous 1.73 (colored)

SDEV_NOMODESENSE quirks are no longer needed for optical devices; from
  Enami Tsugutomo in PR kern/3308.

Revision 1.73 / (download) - annotate - [select for diffs], Sat Dec 14 10:50:32 1996 UTC (26 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.72: +2 -1 lines
Diff to previous 1.72 (colored)

Make sure to initialize the memory we just allocated.

Revision 1.72 / (download) - annotate - [select for diffs], Tue Dec 10 21:06:29 1996 UTC (26 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.71: +21 -4 lines
Diff to previous 1.71 (colored)

Add a "max_target" member to struct scsi_link, which is filled in by
host adapter drivers, indicating the highest SCSI target they can
address.  Use this value to dynamically allocate data structures, rather
than hard-coding 8 targets.

These changes allow targets > 7 to be addressed on wide SCSI busses.

Fixes PRs #1674 and #2892.

Revision 1.71 / (download) - annotate - [select for diffs], Thu Dec 5 01:06:41 1996 UTC (26 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.70: +34 -4 lines
Diff to previous 1.70 (colored)

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

Revision 1.70 / (download) - annotate - [select for diffs], Fri Nov 29 19:51:14 1996 UTC (26 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.69: +3 -1 lines
Diff to previous 1.69 (colored)

Add Yet Another Broken CD-ROM Drive to The List.
From Lennart Augustsson <augustss@cs.chalmers.se>, PR #2971.

Revision 1.69 / (download) - annotate - [select for diffs], Fri Nov 8 05:06:55 1996 UTC (26 years, 2 months ago) by explorer
Branch: MAIN
Changes since 1.68: +3 -1 lines
Diff to previous 1.68 (colored)

Another quirky cdrom drive ; pr kern/2917

Revision 1.68 / (download) - annotate - [select for diffs], Wed Nov 6 05:50:31 1996 UTC (26 years, 3 months ago) by mikel
Branch: MAIN
Changes since 1.67: +4 -3 lines
Diff to previous 1.67 (colored)

Add another broken CDROM.  Fixes PR kern/2913.
Some misc. cleanup.

Revision 1.67 / (download) - annotate - [select for diffs], Wed Oct 23 07:25:39 1996 UTC (26 years, 3 months ago) by matthias
Branch: MAIN
Changes since 1.66: +5 -2 lines
Diff to previous 1.66 (colored)

* At least the Teac FC-1 Shugart-SCSI bridgeboard does motor on/off
management by itself. But when it gets a start unit request, it keeps
the floppy motor running all the time. This adds code for dealing with
yet another quirk (SDEV_NOSTARTUNIT) that prevents sd.c from sending
start unit requests. A entry for the Teac FC-1 is added to the quirk
table.

Revision 1.66 / (download) - annotate - [select for diffs], Fri Oct 18 17:22:17 1996 UTC (26 years, 3 months ago) by explorer
Branch: MAIN
Changes since 1.65: +5 -1 lines
Diff to previous 1.65 (colored)

Add quirk entries for two more optical drives; closes pr kern/2861

Revision 1.65 / (download) - annotate - [select for diffs], Sat Oct 12 23:23:18 1996 UTC (26 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.64: +9 -9 lines
Diff to previous 1.64 (colored)

revert previous kprintf change

Revision 1.64 / (download) - annotate - [select for diffs], Thu Oct 10 23:34:20 1996 UTC (26 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.63: +9 -9 lines
Diff to previous 1.63 (colored)

printf -> kprintf, sprintf -> ksprintf

Revision 1.63 / (download) - annotate - [select for diffs], Tue Sep 3 18:20:35 1996 UTC (26 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.62: +2 -1 lines
Diff to previous 1.62 (colored)

Store the SCSI version in the scsi_link, and set the LUN in the CDB
if the version is <= SCSI-2.  This should help some older SCSI
devices that previously needed the "NOLUNS" quirk.  While this is
not strictly necessary on SCSI-2 devices, the spec allows it,
so we set it for SCSI-2 devices "just in case".  See section 7.2.2 of
Draft X3T9.2 Rev 10L for details.

Revision 1.62 / (download) - annotate - [select for diffs], Wed Aug 28 18:47:51 1996 UTC (26 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.61: +35 -4 lines
Diff to previous 1.61 (colored)

(1) add a 'channel' field to scsi_link.
(2) in scsibusmatch, match channel as appropriate.
(3) add a scsiprint() function, to do the "scsibus at..."
    and channel (if not SCSI_CHANNEL_ONLY_ONE) printing,
    i.e. the common functionality that all SCSI drivers currently
    should be doing.

Revision 1.61 / (download) - annotate - [select for diffs], Tue Aug 27 22:00:04 1996 UTC (26 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored)

change cfprint_t type definition to take a const char *, rather than
a char *, because that's what was really intended, and because
if the print function modifies the string, various things could become
unhappy (so the string should _not_ be modified).

Revision 1.57.4.1 / (download) - annotate - [select for diffs], Wed Jul 31 16:18:56 1996 UTC (26 years, 6 months ago) by jtc
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored) next main 1.58 (colored)

Pulled up diff between revs 1.59 and 1.60 by request from Jason Thorpe

Revision 1.60 / (download) - annotate - [select for diffs], Wed Jul 24 20:50:23 1996 UTC (26 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored)

Match any Maxtor XT-8760S for the SDEV_NOLUNS quirk.  Some of these
drives carry Sun OEM identifiers, as well.

Noticed by Taras Ivanenko <ivanenko@ctpa03.mit.edu>.

Revision 1.59 / (download) - annotate - [select for diffs], Fri Jul 5 21:58:04 1996 UTC (26 years, 7 months ago) by explorer
Branch: MAIN
Changes since 1.58: +3 -1 lines
Diff to previous 1.58 (colored)

add ZIP quirk for SDEV_NOMODESENSE

Revision 1.58 / (download) - annotate - [select for diffs], Fri Jul 5 16:19:08 1996 UTC (26 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.57: +3 -2 lines
Diff to previous 1.57 (colored)

- Apply PR/2535: Add support for flex scsi disks.
- Add a quirk called SCSI_NOMODESENSE for drives like the iomega jaz,
  that don't support mode sense.

Revision 1.57 / (download) - annotate - [select for diffs], Thu May 2 01:09:01 1996 UTC (26 years, 9 months ago) by neil
Branch: MAIN
Changes since 1.56: +4 -1 lines
Diff to previous 1.56 (colored)

Added another quirked SCSI device, re PR 2320 from Manuel Bouyer

Revision 1.56 / (download) - annotate - [select for diffs], Mon Apr 22 01:46:09 1996 UTC (26 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.55: +1 -2 lines
Diff to previous 1.55 (colored)

remove include of <sys/cpu.h>

Revision 1.55 / (download) - annotate - [select for diffs], Thu Mar 21 03:29:40 1996 UTC (26 years, 10 months ago) by scottr
Branch: MAIN
Changes since 1.54: +5 -1 lines
Diff to previous 1.54 (colored)

Add a SDEV_NOLUNS quirk for the Epson OMD-5010 removable MO cartridge drive.

Revision 1.54 / (download) - annotate - [select for diffs], Mon Mar 18 16:19:58 1996 UTC (26 years, 10 months ago) by hpeyerl
Branch: MAIN
Changes since 1.53: +3 -1 lines
Diff to previous 1.53 (colored)

Fix for NEC D3847 1.6gB drive which reported itself at lun[1-7].

Revision 1.53 / (download) - annotate - [select for diffs], Sun Mar 17 00:59:47 1996 UTC (26 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.52: +12 -9 lines
Diff to previous 1.52 (colored)

New device attachment scheme:

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

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

Revision 1.52 / (download) - annotate - [select for diffs], Tue Mar 5 01:45:42 1996 UTC (26 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.51: +3 -1 lines
Diff to previous 1.51 (colored)

Add another broken drive that doesn't deal with LUNs properly to The List.
Fixes PR 1961, from Kevin P. Neal.

Revision 1.51 / (download) - annotate - [select for diffs], Tue Mar 5 00:15:12 1996 UTC (26 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.50: +124 -53 lines
Diff to previous 1.50 (colored)

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

Revision 1.50 / (download) - annotate - [select for diffs], Thu Feb 22 23:37:27 1996 UTC (26 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.49: +3 -1 lines
Diff to previous 1.49 (colored)

Add a SDEV_AUTOSAVE quirk for the DEC RZ55.

Revision 1.49 / (download) - annotate - [select for diffs], Sun Feb 18 20:32:43 1996 UTC (26 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.48: +1 -2 lines
Diff to previous 1.48 (colored)

Add SCSI scanner support by Kenneth Stailey and Joachim Koenig-Baltes,
hacked a bit.  Needs more work.

Revision 1.48 / (download) - annotate - [select for diffs], Wed Feb 14 21:47:27 1996 UTC (26 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.47: +101 -98 lines
Diff to previous 1.47 (colored)

scsi prototypes

Revision 1.47 / (download) - annotate - [select for diffs], Fri Jan 12 11:32:37 1996 UTC (27 years ago) by pk
Branch: MAIN
Changes since 1.46: +4 -1 lines
Diff to previous 1.46 (colored)

LUN deficient device: Tandberg 3600 (Ken Raeburn; PR#1933).

Revision 1.46 / (download) - annotate - [select for diffs], Sun Dec 31 02:40:53 1995 UTC (27 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.45: +3 -1 lines
Diff to previous 1.45 (colored)

Add another broken CD-ROM drive to The List (Chinon CDS-525), per PR #1686.
From Kortelainen Mika <k125374@cs.tut.fi>.

Revision 1.45 / (download) - annotate - [select for diffs], Mon Dec 11 04:43:01 1995 UTC (27 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.44: +4 -4 lines
Diff to previous 1.44 (colored)

Trim NULs, in addition to spaces, in scsi_strvis().

Revision 1.44 / (download) - annotate - [select for diffs], Wed Nov 1 01:15:07 1995 UTC (27 years, 3 months ago) by pk
Branch: MAIN
Changes since 1.43: +9 -3 lines
Diff to previous 1.43 (colored)

More rogues.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Oct 13 20:01:03 1995 UTC (27 years, 3 months ago) by gwr
Branch: MAIN
Changes since 1.42: +5 -1 lines
Diff to previous 1.42 (colored)

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

Revision 1.42 / (download) - annotate - [select for diffs], Tue Sep 26 23:37:50 1995 UTC (27 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.41: +3 -1 lines
Diff to previous 1.41 (colored)

Add another broken NEC CD-ROM drive to The List.  Fixes PR #1451.

Revision 1.41 / (download) - annotate - [select for diffs], Mon Aug 21 09:30:09 1995 UTC (27 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

Set the scsi link before calling config_attach(), so target/lun info is
available to, say, dk_establish().

Revision 1.40 / (download) - annotate - [select for diffs], Mon Aug 14 13:01:42 1995 UTC (27 years, 5 months ago) by briggs
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

CHINON CDS-535 version Q117 also needs NOLUNS.  Assume all 535s do.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Aug 13 17:48:57 1995 UTC (27 years, 5 months ago) by briggs
Branch: MAIN
Changes since 1.38: +3 -1 lines
Diff to previous 1.38 (colored)

Another SDEV_NOLUNS device from paul@pgoyette.bdt.com (Paul Goyette).

Revision 1.38 / (download) - annotate - [select for diffs], Sun Aug 6 00:04:00 1995 UTC (27 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.37: +10 -8 lines
Diff to previous 1.37 (colored)

Add another Seagate disk to the list, and make all the disks match any
firmware revision.

Revision 1.37 / (download) - annotate - [select for diffs], Wed Jul 12 09:56:09 1995 UTC (27 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.36: +7 -2 lines
Diff to previous 1.36 (colored)

add/change a few quirks:
	(1) all Chinon CDS-431 CD-ROMs (regardless of revision)
		are forced to only having LUN 0, at the suggestion
		of Michael Hitch.
	(2) _force_ searching of extra LUNs for the Emulex MD21/S2
		ESDI bridge.  It's pre-SCSI 1, but knows about LUNs.
		"amazing."  From Jason Thorpe.
	(3) recognize an Emulex tape adapter in front of a QIC-36
		tape, and have it forced to only LUN 0.  This is
		an odd one; vendor, name, and rev strings are all
		spaces.  Anything that mathes this is very likely
		broken, anyway, so might as well give it a shot.
		Again from Jason Thorpe.

Revision 1.36 / (download) - annotate - [select for diffs], Wed Jul 12 09:43:29 1995 UTC (27 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.35: +3 -2 lines
Diff to previous 1.35 (colored)

implement SDEV_FORCELUNS flag, as suggested by Jason Thorpe.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Jul 9 09:44:57 1995 UTC (27 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.34: +3 -1 lines
Diff to previous 1.34 (colored)

Morningstar SnapLink -> SDEV_NOLUNS, per Peter Galbavy in pr 1192.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Jul 9 09:43:07 1995 UTC (27 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.33: +11 -12 lines
Diff to previous 1.33 (colored)

play the alphabetization game

Revision 1.33 / (download) - annotate - [select for diffs], Sun Jul 9 09:30:42 1995 UTC (27 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.32: +3 -1 lines
Diff to previous 1.32 (colored)

QUANTUM P105S 910-10-94x A.3 -> SDEV_NOLUNS

Revision 1.32 / (download) - annotate - [select for diffs], Tue Jun 27 20:42:45 1995 UTC (27 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.31: +3 -1 lines
Diff to previous 1.31 (colored)

another CD-ROM quirk, a la PR 1166

Revision 1.31 / (download) - annotate - [select for diffs], Sat Jun 24 01:22:30 1995 UTC (27 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.30: +3 -1 lines
Diff to previous 1.30 (colored)

add entry for another tweaked Texel CD-ROM.  from pr 1151

Revision 1.30 / (download) - annotate - [select for diffs], Sun Jun 18 05:13:09 1995 UTC (27 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.29: +3 -1 lines
Diff to previous 1.29 (colored)

Add another CD-ROM drive to The List.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Jun 2 21:44:11 1995 UTC (27 years, 8 months ago) by pk
Branch: MAIN
Changes since 1.28: +3 -1 lines
Diff to previous 1.28 (colored)

Add `Maxtor LXT-213S', this time without a Sun OEM addition.

Revision 1.28 / (download) - annotate - [select for diffs], Tue Apr 4 05:44:32 1995 UTC (27 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.27: +7 -5 lines
Diff to previous 1.27 (colored)

Add another broken CD-ROM drive to The List.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Feb 22 19:32:33 1995 UTC (27 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.26: +7 -7 lines
Diff to previous 1.26 (colored)

Be less picky about revision numbers for some broken devices.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Feb 9 10:23:14 1995 UTC (27 years, 11 months ago) by pk
Branch: MAIN
Changes since 1.25: +3 -1 lines
Diff to previous 1.25 (colored)

Another Maxtor botch.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Feb 1 09:37:54 1995 UTC (28 years ago) by mycroft
Branch: MAIN
Changes since 1.24: +4 -2 lines
Diff to previous 1.24 (colored)

Add Exabyte 8200 to the list.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jan 30 15:39:33 1995 UTC (28 years ago) by mycroft
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

All revisions of the TDC 3600 are rogues.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jan 16 21:13:40 1995 UTC (28 years ago) by mycroft
Branch: MAIN
Changes since 1.22: +4 -6 lines
Diff to previous 1.22 (colored)

Don't clear the debug flags when copying the prototype scsi_link.

Revision 1.22 / (download) - annotate - [select for diffs], Thu Jan 12 10:25:44 1995 UTC (28 years ago) by mycroft
Branch: MAIN
Changes since 1.21: +5 -1 lines
Diff to previous 1.21 (colored)

Add two more broken devices.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Jan 1 11:37:03 1995 UTC (28 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.20: +4 -1 lines
Diff to previous 1.20 (colored)

Put Dan's broken tape drive in The List.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Dec 30 05:20:22 1994 UTC (28 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.19: +6 -7 lines
Diff to previous 1.19 (colored)

And a little better...

Revision 1.19 / (download) - annotate - [select for diffs], Fri Dec 30 05:14:52 1994 UTC (28 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.18: +7 -5 lines
Diff to previous 1.18 (colored)

Deal with short inquiry response a little better.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Dec 28 19:43:09 1994 UTC (28 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.17: +267 -331 lines
Diff to previous 1.17 (colored)

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

Revision 1.17 / (download) - annotate - [select for diffs], Thu Nov 3 22:09:00 1994 UTC (28 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.16: +4 -6 lines
Diff to previous 1.16 (colored)

Oops; update scsibusmatch() arg list.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Nov 3 22:05:08 1994 UTC (28 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.15: +6 -13 lines
Diff to previous 1.15 (colored)

Always use direct configuration for SCSI devices.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Nov 3 20:24:21 1994 UTC (28 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.14: +4 -20 lines
Diff to previous 1.14 (colored)

Remove a couple of i386-specific hacks, and make a couple of others #ifdef
CONFIG_INDIRECT instead.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jun 29 06:43:10 1994 UTC (28 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

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

Revision 1.13 / (download) - annotate - [select for diffs], Mon Apr 11 03:54:05 1994 UTC (28 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +7 -8 lines
Diff to previous 1.12 (colored)

Fix various types.  Remove some outdated flags.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Mar 29 04:29:37 1994 UTC (28 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +524 -497 lines
Diff to previous 1.11 (colored)

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

Revision 1.11 / (download) - annotate - [select for diffs], Fri Mar 25 07:38:51 1994 UTC (28 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +5 -5 lines
Diff to previous 1.10 (colored)

Put controller target in scsi_switch.

Revision 1.9.3.7 / (download) - annotate - [select for diffs], Sat Jan 22 14:20:57 1994 UTC (29 years ago) by briggs
Changes since 1.9.3.6: +2 -2 lines
Diff to previous 1.9.3.6 (colored) next main 1.10 (colored)

lu -> lun in SCSI_DEBUG section...

Revision 1.10 / (download) - annotate - [select for diffs], Fri Dec 17 08:50:49 1993 UTC (29 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.9: +14 -13 lines
Diff to previous 1.9 (colored)

Canonicalize all #includes.

Revision 1.9.3.6 / (download) - annotate - [select for diffs], Thu Nov 25 03:04:46 1993 UTC (29 years, 2 months ago) by mycroft
Changes since 1.9.3.5: +29 -76 lines
Diff to previous 1.9.3.5 (colored)

Compare the device name rather than the attach function.

Revision 1.9.3.5 / (download) - annotate - [select for diffs], Wed Nov 24 23:00:01 1993 UTC (29 years, 2 months ago) by mycroft
Changes since 1.9.3.4: +4 -3 lines
Diff to previous 1.9.3.4 (colored)

Final tweaks to get it going.

Revision 1.9.3.4 / (download) - annotate - [select for diffs], Wed Nov 24 20:33:44 1993 UTC (29 years, 2 months ago) by mycroft
Changes since 1.9.3.3: +25 -37 lines
Diff to previous 1.9.3.3 (colored)

Some cleanup, and fix a bug I just introduced.

Revision 1.9.3.3 / (download) - annotate - [select for diffs], Wed Nov 24 19:19:44 1993 UTC (29 years, 2 months ago) by mycroft
Changes since 1.9.3.2: +54 -11 lines
Diff to previous 1.9.3.2 (colored)

More construction...

Revision 1.9.3.2 / (download) - annotate - [select for diffs], Wed Nov 24 09:45:09 1993 UTC (29 years, 2 months ago) by mycroft
Changes since 1.9.3.1: +10 -98 lines
Diff to previous 1.9.3.1 (colored)

Still under construction...

Revision 1.9.3.1 / (download) - annotate - [select for diffs], Wed Nov 24 05:03:06 1993 UTC (29 years, 2 months ago) by mycroft
Changes since 1.9: +566 -482 lines
Diff to previous 1.9 (colored)

Under construction...

Revision 1.9 / (download) - annotate - [select for diffs], Thu May 27 10:14:02 1993 UTC (29 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +6 -11 lines
Diff to previous 1.8 (colored)

scsi probing spent too much time on the bus -- sped it up now,
and simplified the message printing code (works the same)

Revision 1.8 / (download) - annotate - [select for diffs], Tue May 25 07:27:35 1993 UTC (29 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +5 -2 lines
Diff to previous 1.7 (colored)

patch00149 by Julian Elischer <julian@jules.dialix.oz.au> & Rodney Grimes.
When an error was encountered, the sd/cd drivers printed blockno&ff0000
rather that blockno.

Revision 1.7 / (download) - annotate - [select for diffs], Thu May 20 03:46:36 1993 UTC (29 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.6: +2 -0 lines
Diff to previous 1.6 (colored)

add rcsids and clean up file headers

Revision 1.6 / (download) - annotate - [select for diffs], Wed May 5 00:29:38 1993 UTC (29 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

fixed bug from last commit

Revision 1.5 / (download) - annotate - [select for diffs], Tue May 4 08:27:32 1993 UTC (29 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +11 -11 lines
Diff to previous 1.4 (colored)

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

Revision 1.4 / (download) - annotate - [select for diffs], Tue Apr 20 08:38:03 1993 UTC (29 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

a test for mycroft..

Revision 1.3 / (download) - annotate - [select for diffs], Mon Apr 19 21:20:46 1993 UTC (29 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.2: +5 -5 lines
Diff to previous 1.2 (colored)

Don't overwrite global kernel version string.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Apr 12 08:19:34 1993 UTC (29 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +456 -615 lines
Diff to previous 1.1 (colored)

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

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 18:04:42 1993 UTC (29 years, 10 months ago) by cgd
Branch: MAIN

after 0.2.2 "stable" patches applied

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




CVSweb <webmaster@jp.NetBSD.org>