Commit Graph

242959 Commits

Author SHA1 Message Date
christos
44146b8176 get rid of gets 2016-06-05 17:44:40 +00:00
christos
54c1785cef get rid of gets/tgets 2016-06-05 17:43:02 +00:00
christos
0e43cebbd8 use gets_s 2016-06-05 17:37:36 +00:00
christos
8315929203 remove dup 2016-06-05 17:33:49 +00:00
christos
0fcae51b14 Add bsd_signal (GSoC 2016 Charles Cui) 2016-06-05 17:17:35 +00:00
christos
78cbc4ca75 Document bsd_signal (From GSoC 2016 by Charles Cui) 2016-06-05 17:16:44 +00:00
christos
543c8f279f Don't play type games with size_t for NetBSD. It is either 32 bits for ILP32
or 64 bits for LP64.
2016-06-05 16:43:10 +00:00
christos
21e1e8aa49 Sync mdoc page with the one provided from upstream. 2016-06-05 16:24:34 +00:00
christos
aab1a996f7 dedup 2016-06-05 15:05:49 +00:00
mlelstv
eafa082213 use correct comparison of serial numbers 2016-06-05 15:04:31 +00:00
maxv
7759a958ba Don't use a magic value. Define a limit, and enforce it. 2016-06-05 14:13:57 +00:00
maxv
009f20c47c The bootinfo is refreshed each time the bootloader tries to execute a
kernel, so there's no point in using this global variable. Because of
this variable, only one "boot" command can be issued in the prompt, and
you have to reboot the machine if you mistyped the kernel name.
2016-06-05 14:06:31 +00:00
mlelstv
35a1d99d03 Don't resume throttled CCBs when connection is terminating, except for
those being actively waited for. Stop unthrottling when reaching MaxCmdSN
again.
2016-06-05 14:00:12 +00:00
mlelstv
3e27116260 Handle freeing of PDU when referencing CCB is freed. 2016-06-05 13:54:28 +00:00
mlelstv
7465018a7b More debug output. Dump pending CCBs when cleaning up. 2016-06-05 13:45:56 +00:00
maxv
6896e29d1e Remove the ALLOC_FIRST_FIT and ALLOC_TRACE options. This is a rather simple
allocator, and it does not need to be that complicated.
2016-06-05 13:44:48 +00:00
maxv
f5998d880a Use gets_s instead of gets. The x86 bootloader prompt is easy to
overflow.
2016-06-05 13:33:03 +00:00
mlelstv
7b7c8b93ad more debug output 2016-06-05 11:01:39 +00:00
skrll
2eaae7df3f PR/51202: XHCI driver sends stale TRBs from a pipe previously opened
Use xhci_host_dequeue in xhci_set_dequeue
2016-06-05 10:45:16 +00:00
mlelstv
62f45d0b81 acquire session lock when changing throttling queue 2016-06-05 09:21:14 +00:00
skrll
d6985ef73a PR/51202: XHCI driver sends stale TRBs from a pipe previously opened
A similar patch was sent to me by t-hash and the xhci_setup_ctx is taken
from that.
2016-06-05 09:16:02 +00:00
wiz
a6daee9b24 Try improving SYNOPSIS per my understanding of how this works.
Use more markup. Fix some markup.
2016-06-05 09:13:08 +00:00
mlelstv
6bd66ce750 wrong assertion. 2016-06-05 09:12:48 +00:00
mlelstv
c13976ae8f Need session mutex to read serial number. 2016-06-05 09:09:57 +00:00
mlelstv
3f22eb9b95 initialize before check. 2016-06-05 09:03:10 +00:00
mlelstv
7610d4bd71 appease compiler 2016-06-05 08:30:13 +00:00
skrll
f838b18941 Update some comments. Some from t-hash with updates from me. 2016-06-05 08:25:05 +00:00
skrll
7bc8258ccd More debug 2016-06-05 08:12:00 +00:00
skrll
f15d45c6ac Replace num of TRBs with xr->xr_ntrb. From t-hash. 2016-06-05 08:10:59 +00:00
skrll
45bd7f9176 From t-hash
+ Gather up setting slot and device context into xhci_setup_ctx(),
      and split out setting route string and TT hub params.
    + Apply htole{32,64} to contexts at once as possible.
    + Use xhci_setup_ctx in xhci_set_address and xhci_configure_endpoint.
2016-06-05 08:05:27 +00:00
skrll
e1e0cfcaad Wrap long lines and other whitespace. From t-hash. 2016-06-05 07:55:28 +00:00
skrll
8bac608ae6 Reduce the scope of some variable. From t-hash 2016-06-05 07:54:01 +00:00
skrll
4c7d32f98f From t-hash
+ Split out setting address device.
    + Split out freeing slot structure.
    + Use xhci_free_slot() in xhci_disable_slot().
2016-06-05 07:52:16 +00:00
mlelstv
44d00f8ce2 Add missing mutex_exit(). 2016-06-05 06:19:59 +00:00
mlelstv
3e2f1d8997 ensure that timeout counter is cleared when ccb is (re-)used. 2016-06-05 05:41:53 +00:00
mlelstv
aba29f3a78 Whitespace, braces. 2016-06-05 05:40:29 +00:00
mlelstv
334be04930 Replace the simple tag counter with the command tag coming down from scsipi.
Also set attributes according to tag types.
2016-06-05 05:36:57 +00:00
mlelstv
530dbb3782 No need to acquire KERNEL_LOCK when entering network code.
Also use the socket callbacks.
2016-06-05 05:31:43 +00:00
mlelstv
36dadbea16 Keep 1 CCB free for private use. This avoids frequent recovery in scsipi when
resources appear to be exhausted.
2016-06-05 05:29:01 +00:00
mlelstv
68dc548575 Make PDU init routines record serial number in CCB too. 2016-06-05 05:25:59 +00:00
mlelstv
aac72e4bc4 Fix locking for pdu flags here, in particular PDUF_INQUEUE. 2016-06-05 05:18:58 +00:00
mlelstv
febd01647c Handle ExpCmdSN and MaxCmdSN updates as specified. Don't compare
serial numbers as integers.
2016-06-05 05:11:57 +00:00
mlelstv
d5741a228e Fix serial number check and account for commands in flight to avoid
unnecessary recovery actions.
2016-06-05 05:07:23 +00:00
mlelstv
cac97d38f5 Tear down sysctls only after detaching children. This lets you enable
debugging while detaching hangs.
2016-06-05 04:53:22 +00:00
mlelstv
015cdd4666 ignore invalid ITT 2016-06-05 04:51:57 +00:00
mlelstv
64fa3c070d Whitespace 2016-06-05 04:50:23 +00:00
mlelstv
026739d4d4 When stopping a callout, wait until the cleanup thread has processed them. 2016-06-05 04:48:17 +00:00
mlelstv
fb85db7754 More debugging output, changed debug levels for some. 2016-06-05 04:36:05 +00:00
christos
fcb395931a NUL terminate. 2016-06-05 01:39:17 +00:00
christos
1d47ba93e2 Add libubsan 2016-06-05 01:31:03 +00:00