| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
|
|
|
| |
ok mpi@ kspillner@
|
|
|
|
| |
after discussions with beck deraadt kettenis.
|
|
|
|
|
|
| |
``Callers of scsi_iopool_init() ought to set up the pool member in struct
scsi_link accordingly, for bad things will happen without (and this was a
real pita to debug).''
|
|
|
|
| |
place that uses it.
|
|
|
|
| |
take advantage of pool_setipl while here.
|
|
|
|
|
|
|
|
|
| |
thing that stores state for luns.
instead of checking and allocating it in the scsi_cmd path, and
doing weird things all over the place to free it (eg, there's a
timeout that ran every 10m to gc luns), use the scsi_probe and
scsi_free things the midlayer calls.
|
|
|
|
|
|
| |
scsi_adapter struct, just do it once in the chip code.
ok krw@
|
|
|
|
|
|
|
|
|
|
|
|
| |
such as READ_CAPACITY_16. So plugging SCSI-3 devices onto such a bus
can be problematic.
Cap the acceptable xs->cmdlen at 12 in ncr53c9x.c.
Problem noted and fix tested by Kurt Mosiejczuk. Thanks! Diff mostly
from miod@ with kibitzing from me.
ok miod@
|
|
|
|
|
|
| |
ncr53c9x_poll(). Fixes a race causing *some* drives to trigger a
panic in ncr53c9x_sched() at attach time on vax.
ok dlg@ krw@
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
step in elminating 'struct scsi_device' entirely.
Spotted and initial diff from matthew@.
ok matthew@ dlg@ deraadt@ marco@ miod@
|
|
|
|
|
|
|
|
| |
it defines. In some cases, this means pulling in uvm.h or pcb.h
instead, but most of the inclusions were just noise. Tested on
alpha, amd64, armish, hppa, i386, macpcc, sgi, sparc64, and vax,
mostly by krw and naddy.
ok krw@
|
|
|
|
|
|
|
| |
low-hanging splbio/splx pairs that are no longer needed and see if
this reveals any hidden scsi flaws.
ok dlg@
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
void. Use XS_NO_CCB error in the scsi command (xs) to report the
NO_CCB condition. Eliminates all SUCCESSFULLY_QUEUED and COMPLETE
confusion and untangles the midlayer from the adapter a bit more.
Eyes and some fixes by miod@
There may be some compile issues on little used (i.e. I don't have
any) drivers but the change is mechanical and thus easy to remedy.
ok dlg@
|
|
|
|
| |
more to go. Should be a no-op.
|
|
|
|
|
|
| |
was to try to play dangerous games with tagged queuing.
ok marco@
|
|
|
|
|
|
|
|
|
|
|
| |
TRY_AGAIN_LATER uses with equivalent NO_CCB. Eliminates confusion
between the two as was always intended. buf I/O's that can't be
started get pushed back onto the front of the queue and retried.
Others get sent back to originator as failures. No more epi-cycle
looping inside the SCSI midlayer hoping the problem goes away.
Various testers, no objection from miod@ as vs(4) was tested by
nick@.
|
|
|
|
| |
Pointed out by miod@. krw@ miod@ ok.
|
|
|
|
| |
"I'm all for it." marco@ "Yeah" deraadt@
|
|
|
|
|
|
|
| |
Really just the low-hanging fruit of (hopefully) forthcoming timeout
conversions.
ok art@, krw@
|
|
|
|
| |
sc_print_addr(); ok krw@
|
|
|
|
| |
information.
|
|
|
|
|
|
|
| |
polling in splbio/splx. Put belts and suspenders splbio/splx around
the scsi_done() call since it may be possible to get there other ways.
Partly from thib@
|
| |
|
|
|
|
| |
ok miod@ jmc@
|
|
|
|
| |
ok miod@ marco@ deraadt@
|
|
|
|
|
| |
user-controllable device flags are parsed, be sure to rerun config(8) on your
next kernel compile.
|
|
|
|
| |
have been computed.
|
| |
|
|
|
|
| |
ok deraadt@ krw@
|
|
|
|
|
|
|
|
| |
in ncr53c9x_select().
From tsutsui NetBSD
ok miod@
|
|
|
|
|
|
| |
From petrov NetBSD
ok miod@
|
|
|
|
| |
doomed to do them incorrectly; ok krw@ millert@ tedu@
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
things such that code that only need a second-resolution uptime or wall
time, and used to get that from time.tv_secs or mono_time.tv_secs now get
this from separate time_t globals time_second and time_uptime.
ok art@ niklas@ nordin@
|
| |
|
|
|
|
|
|
|
|
| |
Tom: I did not commit a couple of your changes.
i did not include some punctuation fixes (full stops, etc.)
mnemorable -> mnemonic: i decided memorable was probably better
instrunctions -> instruction: i kept the plural
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Started by a commit to siop from provos@netbsd.org.
ok miod@ millert@
|
| |
|
| |
|
|
|
|
| |
Fix timeout overflow caused by "scsictl format" on machines HZ==100.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
well (not at all) with shortages of the vm_map where the pages are mapped
(usually kmem_map).
Try to deal with it:
- group all information the backend allocator for a pool in a separate
struct. The pool will only have a pointer to that struct.
- change the pool_init API to reflect that.
- link all pools allocating from the same allocator on a linked list.
- Since an allocator is responsible to wait for physical memory it will
only fail (waitok) when it runs out of its backing vm_map, carefully
drain pools using the same allocator so that va space is freed.
(see comments in code for caveats and details).
- change pool_reclaim to return if it actually succeeded to free some
memory, use that information to make draining easier and more efficient.
- get rid of PR_URGENT, noone uses it.
|
| |
|