Commit Graph

25 Commits

Author SHA1 Message Date
bouyer
937a7a3ed9 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
2001-04-25 17:53:04 +00:00
jdolecek
372e5956ef Only install headers which are actually used by our userland. This
saves about 2.2MB under /usr/include/dev/. Discussed on tech-kern@
recently.

I HOPE to get the list right. The headers I left in are ones
used for MI tools and those whose usage I discovered by grep over tree sources.
Feel free to put needed includes back in if you encounter anything which
should not be removed from lists.
2001-04-11 07:42:31 +00:00
ad
99187cdd56 - Allocate any private space that's requested.
- Fix a few bogons with the last update.
- Add some more LAN defs.
2001-04-01 15:02:08 +00:00
ad
fad8449663 Decrease the timeouts on QUEIESCE and CLEAR lest the adapter doesn't reply. 2001-03-21 14:27:05 +00:00
ad
ef80e73a4e Split limits and ioctl defs out of iopvar.h. 2001-03-20 13:02:25 +00:00
ad
ebf5110997 Major update; basically, improve performance somewhat and play nicer with
Intel and AMI IOPs. There still exists one nasty problem with Intel adapters
when under load, which I'm working on.
2001-03-20 13:01:48 +00:00
lukem
3aeb5f2f29 whitespace police 2001-02-24 01:59:46 +00:00
ad
fc919d3e61 FC peripherals on DPT/Adaptec boards only respond to private class messages. 2001-02-07 17:05:46 +00:00
ad
d606f3d65c Sync with ld.c. 2001-02-06 12:22:24 +00:00
ad
a06fc2bf4b Fix thinko in previous. 2001-01-03 21:17:05 +00:00
ad
5fcbd5f722 - Fix a number of bugs with the configuration stuff.
- Bash the passthrough interface into working order.
- Add an ioctl to retrieve the `tidmap'.
2001-01-03 21:04:01 +00:00
ad
8494f44b67 Make dumps work, and put the first part of detach into ld.c. 2001-01-03 21:01:28 +00:00
ad
c29358e0f9 Don't try to configure `uninteresting' devices. 2001-01-01 19:03:30 +00:00
ad
e931ce9485 Oops. 2000-12-03 15:51:53 +00:00
ad
433cc4cf9e Nit. 2000-12-03 15:51:36 +00:00
ad
3bcc9b9f3a Fix a comment. 2000-12-03 13:34:37 +00:00
ad
af9d4c4fa4 - Only configure un-claimed devices. Implement re-configuration.
- Adhere to the spec better in some places. Also, work around some quirks
  noted in the Linux I2O code.
- Register event handlers for the executive and RBS devices.
- Fix a number of buglets and tidy a little.
- Implement a message pass-through interface and some other useful ioctls.
2000-12-03 13:17:03 +00:00
ad
04a83acaf7 lsu -> ld 2000-11-26 19:24:24 +00:00
ad
57ea462da2 lsu -> ld, by popular request. 2000-11-26 17:44:02 +00:00
thorpej
cfe0892ed3 NBPG -> PAGE_SIZE 2000-11-14 18:42:55 +00:00
itojun
611c77c7df unused variable 2000-11-09 17:20:24 +00:00
ad
01dc7ef4f3 TODO 2000-11-09 15:04:55 +00:00
ad
0129c52c7d - A few minor changes (typos and the like).
- Use SPLs in iop_msg_send() and not the interrupt mask - it accesses
  shared resources lower down.
2000-11-09 12:51:36 +00:00
ad
9a41c41bed Install only headers that are useful to userspace (ioctl interface is not
finished, but will be here soon).
2000-11-09 12:34:05 +00:00
ad
d49fd13524 Add support for I2O adapters and SCSI/FC-AL/BSA class devices. This needs
more testing with different configurations, and work in a number of areas
(which I'm not able to do for a little while), but is at least functional
and stable on i386 with DPT adapters.
2000-11-08 19:45:30 +00:00