CVS log for src/sys/dev/ic/sl811hs.c
Up to [cvs.NetBSD.org] / src / sys / dev / ic
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.112: download - view: text, markup, annotated - select for diffs
Tue May 3 20:52:32 2022 UTC (2 years, 7 months ago) by andvar
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm,
HEAD
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +3 -3
lines
fix various typos, mainly s/trasfering/transferring/ and s/theese/these/.
Revision 1.111: download - view: text, markup, annotated - select for diffs
Wed Mar 9 22:17:41 2022 UTC (2 years, 9 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +2 -4
lines
usb: Provisionally release bus lock around ubm_rhctrl.
This isn't quite correct, but it avoids a deadlock:
- *_roothub_ctrl holds bus lock, waits in usb_delay_ms for kpause
- softint waits for bus lock, holds up kpause wakeup
The deadlock is new since recent changes to hold the bus lock over
upm_start/upm_transfer. Making this change regresses to other
problems:
- *_suspend/resume and *_roothub_ctrl often touch the same portsc
registers
- roothub_ctrl_abort needs to wait for ubm_rhctrl to complete.
When the bus lock was held across both, a noop served here, but we
can't hold the bus lock across both, so that doesn't work.
However, these problems -- which we've had for a long time -- seem to
be less bad than the deadlock. So let's avoid the deadlock for now
and then work out another way to serialize suspend/resume/rhctrl and
aborts.
Candidate fix for PR kern/56739.
Revision 1.110: download - view: text, markup, annotated - select for diffs
Thu Mar 3 06:12:11 2022 UTC (2 years, 9 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +7 -11
lines
usb: Hold pipe lock across upm_transfer and upm_start.
This simplifies the code and fixes races with abort. Access to the
pipe's queue is now done exclusively while the pipe is locked.
Revision 1.109: download - view: text, markup, annotated - select for diffs
Thu Mar 3 06:04:31 2022 UTC (2 years, 9 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +3 -18
lines
usb: Factor usb_insert_transfer out of upm_transfer and make private.
Almost every upm_transfer function starts with:
mutex_enter(&sc->sc_lock);
err = usb_insert_transfer(xfer);
mutex_exit(&sc->sc_lock);
if (err)
return err;
Some of them have debug messages sprinkled in here too, or assert
that err == USBD_NORMAL_COMPLETION (alternative is USBD_IN_PROGRESS,
only for pipes with up_running or up_serialise, presumably not
applicable for these types of pipes). Some of them also assert
xfer->ux_status == USBD_NOT_STARTED, which is guaranteed on entry and
preserved by usb_insert_transer.
Exceptions:
- arch/mips/adm5120/dev/ahci.c ahci_device_isoc_transfer just returns
USBD_NORMAL_COMPLETION, but I'm pretty sure this is and always has
been broken anyway, so won't make anything worse (if anything, might
make it better...)
- external/bsd/dwc2/dwc2.c dwc2_device_bulk_transfer and
dwc2_device_isoc_transfer _also_ issue dwc2_device_start(xfer)
under the lock. This is probably a better way to do it, but let's
do it uniformly across all HCIs at once.
- rump/dev/lib/libugenhc/ugenhc.c rumpusb_device_bulk_transfer
sometimes returns USBD_IN_PROGRESS _without_ queueing the transfer,
in the !rump_threads case. Not really sure how this is supposed to
work... If it actually breaks anything, we can figure it out.
Revision 1.108: download - view: text, markup, annotated - select for diffs
Fri Dec 10 20:36:03 2021 UTC (2 years, 11 months ago) by andvar
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +3 -3
lines
s/occured/occurred/ in comments, log messages and man pages.
Revision 1.107: download - view: text, markup, annotated - select for diffs
Mon Aug 9 20:49:10 2021 UTC (3 years, 4 months ago) by andvar
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +3 -3
lines
fix various typos in compatibility, mainly in comments.
Revision 1.106: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:19:12 2021 UTC (3 years, 4 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +3 -3
lines
Merge thorpej-cfargs2.
Revision 1.105.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 4 20:14:42 2021 UTC (3 years, 4 months ago) by thorpej
Branches: thorpej-cfargs2
Diff to: previous 1.105: preferred, colored; next MAIN 1.106: preferred, colored
Changes since revision 1.105: +3 -3
lines
Adapt to CFARGS().
Revision 1.105: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:55 2021 UTC (3 years, 7 months ago) by thorpej
Branches: 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
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +4 -3
lines
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.104.4.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 21:09:12 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.104: preferred, colored; next MAIN 1.105: preferred, colored
Changes since revision 1.104: +4 -3
lines
Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
Revision 1.104: download - view: text, markup, annotated - select for diffs
Wed Sep 30 05:04:54 2020 UTC (4 years, 2 months ago) by simonb
Branches: MAIN
CVS tags: thorpej-futex-base,
thorpej-futex,
thorpej-cfargs-base
Branch point for: thorpej-cfargs
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +13 -13
lines
Add some KNF whitespace.
Revision 1.99.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:06 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.99.2.1: preferred, colored; branchpoint 1.99: preferred, colored; next MAIN 1.100: preferred, colored
Changes since revision 1.99.2.1: +7 -3
lines
Merge changes from current as of 20200406
Revision 1.101.4.1: download - view: text, markup, annotated - select for diffs
Sun Mar 1 12:35:16 2020 UTC (4 years, 9 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE
Diff to: previous 1.101: preferred, colored; next MAIN 1.102: preferred, colored
Changes since revision 1.101: +6 -2
lines
Pull up following revision(s) (requested by riastradh in ticket #744):
sys/dev/usb/uhci.c: revision 1.292
sys/dev/usb/uhci.c: revision 1.293
sys/dev/usb/usbdi.h: revision 1.99
sys/dev/usb/motg.c: revision 1.26
sys/dev/usb/motg.c: revision 1.27
sys/dev/usb/motg.c: revision 1.28
sys/dev/usb/motg.c: revision 1.29
sys/external/bsd/dwc2/dwc2.c: revision 1.70
sys/external/bsd/dwc2/dwc2.c: revision 1.71
sys/dev/usb/usb.c: revision 1.181
sys/arch/mips/adm5120/dev/ahci.c: revision 1.20
sys/dev/usb/usb.c: revision 1.182
sys/dev/usb/xhci.c: revision 1.116
sys/dev/usb/xhci.c: revision 1.117
sys/dev/usb/xhci.c: revision 1.118
sys/dev/usb/uhci.c: revision 1.289
sys/dev/usb/usbdivar.h: revision 1.121
sys/dev/usb/usbdi.c: revision 1.190
sys/dev/usb/usbdivar.h: revision 1.122
sys/dev/usb/usbdi.c: revision 1.191
sys/dev/usb/usbdi.c: revision 1.192
sys/external/bsd/dwc2/dwc2var.h: revision 1.7
sys/dev/usb/motg.c: revision 1.30
sys/dev/usb/motg.c: revision 1.31
sys/dev/usb/motg.c: revision 1.32
sys/dev/usb/motg.c: revision 1.33
sys/external/bsd/dwc2/dwc2.c: revision 1.67
sys/external/bsd/dwc2/dwc2.c: revision 1.68
sys/dev/usb/ehci.c: revision 1.270
sys/external/bsd/dwc2/dwc2.c: revision 1.69
sys/dev/usb/usbdi.h: revision 1.100
sys/dev/usb/ehci.c: revision 1.271
sys/arch/mips/adm5120/dev/ahci.c: revision 1.18
sys/dev/usb/usbdi.h: revision 1.101
sys/dev/usb/ehci.c: revision 1.272
sys/dev/ic/sl811hs.c: revision 1.103
sys/arch/mips/adm5120/dev/ahci.c: revision 1.19
sys/dev/usb/ehci.c: revision 1.273
sys/dev/usb/ohci.c: revision 1.293
sys/dev/usb/uhci.c: revision 1.290
sys/dev/usb/ohci.c: revision 1.294
sys/dev/usb/uhci.c: revision 1.291
sys/dev/usb/ohci.c: revision 1.295
Teach usb_rem_task to return whether removed from queue or not.
New function usb_task_pending for diagnostic assertions.
Usable only for negative diagnostic assertions:
KASSERT(!usb_task_pending(dev, task))
If you can think of a better name for this than !usb_task_pending,
I'm all ears.
-
Nothing guarantees xfer's timeout has completed.
Wait for it when we free the xfer.
-
New xfer state variables ux_timeout_set and ux_timeout_reset.
These are needed because:
- The host controller interrupt cannot wait for the callout or task
to finish running.
- Nothing in the USBD API as is waits for the callout or task to
finish running.
- Callers expect to be able to resubmit USB xfers from xfer callbacks
without waiting for anything to finish running.
The variable ux_timeout_set can be used by a host controller to
decide on submission whether to schedule the callout or to ask an
already-scheduled callout or already-queued task to reschedule the
callout, by setting the variable ux_timeout_reset to true.
When the callout or task runs and sees that ux_timeout_reset is true,
rather than queue the task or abort the xfer, it can instead just
schedule the callout anew.
-
Fix steady state of timeouts in ehci.
This is complicated because:
1. There are three ways that an xfer can be completed:
(a) hardware interrupt completes xfer
(b) software decision aborts xfer with USBD_CANCELLED
(c) timeout aborts xfer with USBD_TIMEOUT
2. The timeout abort can't be done in callout because ehci_sync_hc,
called unconditionally by ehci_abort_xfer to wait until the device
has finished using any references to the xfer, may sleep. So we
have to schedule a callout that, when run, will schedule a usb_task.
3. The hardware completion interrupt can't sleep waiting for a callout
or task to finish -- can't use callout_halt or usb_rem_task_wait.
So the callout and usb_task must be able to run _after_ the hardware
completion interrupt, and recognize that they're late to the party.
(Note, though, that usbd_free_xfer does wait for the callout and
task to complete, so there's no danger they may use themselves after
free.)
4. The xfer may resubmitted -- and the timeout may be rescheduled --
immediately after the hardware completion interrupt, _while_ the
callout and/or usb_task may still be scheduled. Specifically, we
may have the following sequence of events:
(a) hardware completion interrupt
(b) callout or usb_task fires
(c) driver resubmits xfer
(d) callout or usb_task acquires lock and looks around dazed and
bewildered at the firehose of events like reading the news in 2019
The mechanism for sorting this out is that we have two bits of state:
- xfer->ux_timeout_set informs the driver, when submitting an xfer and
setting up its timeout, whether either the callout or usb_task is
already scheduled or not.
- xfer->ux_timeout_reset informs the callout or usb_task whether it
should reschedule the callout, because the xfer got resubmitted, or
not.
-
Factor out HCI-independent xfer completion logic.
New API for HCI drivers to synchronize hardware completion
interrupts, synchronous aborts, and asynchronous timeouts:
- When submitting an xfer to hardware, call
usbd_xfer_schedule_timeout(xfer).
- On HCI completion interrupt for xfer completion:
if (!usbd_xfer_trycomplete(xfer))
return; /* timed out or aborted, ignore it */
- In upm_abort methods, call usbd_xfer_abort(xfer).
For HCI drivers that use this API (not needed in drivers that don't,
or for xfers like root intr xfers that don't use it):
- New ubm_abortx method serves role of former *hci_abort_xfer, but
without any logic for wrangling timeouts/callouts/tasks -- caller
in usbd_xfer_abort has already handled them.
- New ubm_dying method, returns true if the device is in the process
of detaching, used by the timeout logic.
Converted and tested:
- ehci
- ohci
Converted and compile-tested:
- ahci (XXX did this ever work?)
- dwc2
- motg (XXX missing usbd_xfer_schedule_timeout in motg_*_start?)
- uhci
- xhci
Not changed:
- slhci (sys/dev/ic/sl811hs.c) -- doesn't use a separate per-xfer
callout for timeouts (XXX but maybe should?)
- ugenhc (sys/rump/dev/lib/libugenhc/ugenhc.c) -- doesn't manage its
own transfer timeouts
-
Fix steady state of root intr xfers.
Why?
- Avoid completing a root intr xfer multiple times in races.
- Avoid potential use-after-free in poll_hub callouts (uhci, ahci).
How?
- Use sc->sc_intr_xfer or equivalent to store only a pending xfer
that has not yet completed -- whether successfully, by timeout, or
by synchronous abort. When any of those happens, set it to null
under the lock, so the xfer is completed only once.
- For hci drivers that use a callout to poll the root hub (uhci, ahci):
. Pass the softc pointer, not the xfer, to the callout, so the
callout is not even tempted to use xfer after free -- if the
callout fires, but the xfer is synchronously aborted before the
callout can do anything, the xfer might be freed by the time the
callout starts to examine it.
. Teach the callout to do nothing if it is callout_pending after it
has fired. This way:
1. completion or synchronous abort can just callout_stop
2. start can just callout_schedule
If the callout had already fired before (1), and doesn't acquire
the bus lock until after (2), it may be tempted to abort the new
root intr xfer just after submission, which would be wrong -- so
instead we just have the callout do nothing if it notices it has
been rescheduled, since it will fire again after the appropriate
time has elapsed.
-
Initialize xfer->ux_status in uhci_root_intr_start.
Otherwise, it will be USBD_NOT_STARTED, so usbd_ar_pipe will skip
calling upm_abort.
Candidate fix for PR kern/54963, same problem as reported at:
href="https://mail-index.NetBSD.org/current-users/2020/02/13/msg037740.html
-
Set ux_isdone in uhci_poll_hub for DIAGNOSTIC.
-
Fix mistakes in previous sloppy change with root intr xfers.
- Make sure ux_status is set to USBD_IN_PROGRESS when started.
Otherwise, if it is still in flight when we abort the pipe,
usbd_ar_pipe will skip calling upm_abort.
- Initialize ux_status under the lock; in principle a completion
interrupt (or a delay) could race with the initialization.
- KASSERT that the xfer is in progress when we're about to complete
it.
Candidate fix for PR kern/54963 for other HCI drivers than uhci.
ok nick
ok phone
(This is the change that nick evidently MEANT to ok when he ok'd the
previous one!)
-
Fix build
-
Fix non-DIAGNOSTIC builds.
-
Fix wrong KASSERT in motg abort.
This has been wrong since last summer when we did the transition to
xfer->ux_status = USBD_CANCELLED earlier.
XXX pullup-9
-
Fix mistakes in timeout/abort/completion changes in motg(4).
- Call usbd_xfer_schedule_timeout so we actually do time out.
- Don't call usbd_xfer_trycomplete until all the data have been
transferred -- it commits to completion, not timeout.
- Use xfer->ux_status != USBD_IN_PROGRESS to test whether, after a
partial write, an xfer has been interrupted or timed out and need
not be continued.
- Remove wrong assertion.
-
Fix mistake in use of usbd_xfer_schedule_timeout in motg.
This code path is used both for xfers that are new, and xfers that
are being done piece by piece and are partway done. For the latter
case, skip usbd_xfer_schedule_timeout so we schedule it only once per
xfer.
-
Simplify some branches and kassert some redundant assignments.
Revision 1.102.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:19:08 2020 UTC (4 years, 9 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.102: preferred, colored; next MAIN 1.103: preferred, colored
Changes since revision 1.102: +6 -2
lines
Sync with head.
Revision 1.103: download - view: text, markup, annotated - select for diffs
Sat Feb 15 01:21:56 2020 UTC (4 years, 9 months ago) by riastradh
Branches: 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
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +6 -2
lines
Fix mistakes in previous sloppy change with root intr xfers.
- Make sure ux_status is set to USBD_IN_PROGRESS when started.
Otherwise, if it is still in flight when we abort the pipe,
usbd_ar_pipe will skip calling upm_abort.
- Initialize ux_status under the lock; in principle a completion
interrupt (or a delay) could race with the initialization.
- KASSERT that the xfer is in progress when we're about to complete
it.
Candidate fix for PR kern/54963 for other HCI drivers than uhci.
ok nick
ok phone
(This is the change that nick evidently MEANT to ok when he ok'd the
previous one!)
Revision 1.102: download - view: text, markup, annotated - select for diffs
Fri Dec 27 09:41:50 2019 UTC (4 years, 11 months ago) by msaitoh
Branches: MAIN
CVS tags: ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +3 -3
lines
s/transfered/transferred/
Revision 1.99.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:11 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +8 -7
lines
Sync with HEAD
Revision 1.101: download - view: text, markup, annotated - select for diffs
Sun Feb 17 04:17:52 2019 UTC (5 years, 9 months ago) by rin
Branches: MAIN
CVS tags: phil-wifi-20191119,
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
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +4 -3
lines
Fix assertion failures triggered by usbdi.c,v 1.182, when devices
are detached.
This is because xfers of USBD_NOT_STARTED can be removed from queue
in an invisible way to host controller drivers.
Discussed on tech-kern.
Revision 1.98.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:55:50 2018 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.98.2.1: preferred, colored; branchpoint 1.98: preferred, colored; next MAIN 1.99: preferred, colored
Changes since revision 1.98.2.1: +6 -6
lines
Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
Revision 1.100: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:31 2018 UTC (6 years, 3 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +6 -6
lines
Rename min/max -> uimin/uimax for better honesty.
These functions are defined on unsigned int. The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.
HOWEVER! Some subsystems have
#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))
even though our standard name for that is MIN/MAX. Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.
To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.
I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:
cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))
It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.
Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate. But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all. (Who knows, maybe in some cases integer
truncation is actually intended!)
Revision 1.98.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 16 01:59:57 2018 UTC (6 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +4 -10
lines
Sync with HEAD, resolve some conflicts
Revision 1.99: download - view: text, markup, annotated - select for diffs
Mon Apr 9 16:21:10 2018 UTC (6 years, 8 months ago) by jakllsch
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
jdolecek-ncqfixes-base,
jdolecek-ncqfixes
Branch point for: phil-wifi
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +4 -10
lines
Stop potential misuse of vendor names and USB vendor IDs in root hub
device and string descriptors.
Firstly: Few vendors have identical PCI-SIG vendor IDs and USB-IF vendor
IDs. As such, using the PCI vendor ID as a USB vendor ID may trample
on whomever is allocated that USB vendor ID.
Secondly: The vendor of the host controller hardware implementation has
little to nothing to do with our usbroothub implementation. Thus we
should not potentially associate any problems therewith to such third
party.
This change will result in root hubs being identified by USB Vendor ID
0x0000. Root hub vendor string will now be "NetBSD" (or, specifically:
ostype). Product ID (0x0000) and product strings remain unchanged.
Revision 1.33.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:04 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.33.2.1: preferred, colored; branchpoint 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.2.1: +651 -757
lines
update from HEAD
Revision 1.97.8.1: download - view: text, markup, annotated - select for diffs
Thu Nov 2 21:29:51 2017 UTC (7 years, 1 month ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE,
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
Diff to: previous 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97: +57 -52
lines
Pull up following revision(s) (requested by pgoyette in ticket #335):
share/man/man9/kernhist.9: 1.5-1.8
sys/arch/acorn26/acorn26/pmap.c: 1.39
sys/arch/arm/arm32/fault.c: 1.105 via patch
sys/arch/arm/arm32/pmap.c: 1.350, 1.359
sys/arch/arm/broadcom/bcm2835_bsc.c: 1.7
sys/arch/arm/omap/if_cpsw.c: 1.20
sys/arch/arm/omap/tiotg.c: 1.7
sys/arch/evbarm/conf/RPI2_INSTALL: 1.3
sys/dev/ic/sl811hs.c: 1.98
sys/dev/usb/ehci.c: 1.256
sys/dev/usb/if_axe.c: 1.83
sys/dev/usb/motg.c: 1.18
sys/dev/usb/ohci.c: 1.274
sys/dev/usb/ucom.c: 1.119
sys/dev/usb/uhci.c: 1.277
sys/dev/usb/uhub.c: 1.137
sys/dev/usb/umass.c: 1.160-1.162
sys/dev/usb/umass_quirks.c: 1.100
sys/dev/usb/umass_scsipi.c: 1.55
sys/dev/usb/usb.c: 1.168
sys/dev/usb/usb_mem.c: 1.70
sys/dev/usb/usb_subr.c: 1.221
sys/dev/usb/usbdi.c: 1.175
sys/dev/usb/usbdi_util.c: 1.67-1.70
sys/dev/usb/usbroothub.c: 1.3
sys/dev/usb/xhci.c: 1.75
sys/external/bsd/drm2/dist/drm/i915/i915_gem.c: 1.34
sys/kern/kern_history.c: 1.15
sys/kern/kern_xxx.c: 1.74
sys/kern/vfs_bio.c: 1.275-1.276
sys/miscfs/genfs/genfs_io.c: 1.71
sys/sys/kernhist.h: 1.21
sys/ufs/ffs/ffs_balloc.c: 1.63
sys/ufs/lfs/lfs_vfsops.c: 1.361
sys/ufs/lfs/ulfs_inode.c: 1.21
sys/ufs/lfs/ulfs_vnops.c: 1.52
sys/ufs/ufs/ufs_inode.c: 1.102
sys/ufs/ufs/ufs_vnops.c: 1.239
sys/uvm/pmap/pmap.c: 1.37-1.39
sys/uvm/pmap/pmap_tlb.c: 1.22
sys/uvm/uvm_amap.c: 1.108
sys/uvm/uvm_anon.c: 1.64
sys/uvm/uvm_aobj.c: 1.126
sys/uvm/uvm_bio.c: 1.91
sys/uvm/uvm_device.c: 1.66
sys/uvm/uvm_fault.c: 1.201
sys/uvm/uvm_km.c: 1.144
sys/uvm/uvm_loan.c: 1.85
sys/uvm/uvm_map.c: 1.353
sys/uvm/uvm_page.c: 1.194
sys/uvm/uvm_pager.c: 1.111
sys/uvm/uvm_pdaemon.c: 1.109
sys/uvm/uvm_swap.c: 1.175
sys/uvm/uvm_vnode.c: 1.103
usr.bin/vmstat/vmstat.c: 1.219
Reorder to test for null before null deref in debug code
--
Reorder to test for null before null deref in debug code
--
KNF
--
No need for '\n' in UVMHIST_LOG
--
normalise a BIOHIST log message
--
Update the kernhist(9) kernel history code to address issues identified
in PR kern/52639, as well as some general cleaning-up...
(As proposed on tech-kern@ with additional changes and enhancements.)
Details of changes:
* All history arguments are now stored as uintmax_t values[1], both in
the kernel and in the structures used for exporting the history data
to userland via sysctl(9). This avoids problems on some architectures
where passing a 64-bit (or larger) value to printf(3) can cause it to
process the value as multiple arguments. (This can be particularly
problematic when printf()'s format string is not a literal, since in
that case the compiler cannot know how large each argument should be.)
* Update the data structures used for exporting kernel history data to
include a version number as well as the length of history arguments.
* All [2] existing users of kernhist(9) have had their format strings
updated. Each format specifier now includes an explicit length
modifier 'j' to refer to numeric values of the size of uintmax_t.
* All [2] existing users of kernhist(9) have had their format strings
updated to replace uses of "%p" with "%#jx", and the pointer
arguments are now cast to (uintptr_t) before being subsequently cast
to (uintmax_t). This is needed to avoid compiler warnings about
casting "pointer to integer of a different size."
* All [2] existing users of kernhist(9) have had instances of "%s" or
"%c" format strings replaced with numeric formats; several instances
of mis-match between format string and argument list have been fixed.
* vmstat(1) has been modified to handle the new size of arguments in the
history data as exported by sysctl(9).
* vmstat(1) now provides a warning message if the history requested with
the -u option does not exist (previously, this condition was silently
ignored, with only a single blank line being printed).
* vmstat(1) now checks the version and argument length included in the
data exported via sysctl(9) and exits if they do not match the values
with which vmstat was built.
* The kernhist(9) man-page has been updated to note the additional
requirements imposed on the format strings, along with several other
minor changes and enhancements.
[1] It would have been possible to use an explicit length (for example,
uint64_t) for the history arguments. But that would require another
"rototill" of all the users in the future when we add support for an
architecture that supports a larger size. Also, the printf(3)
format
specifiers for explicitly-sized values, such as "%"PRIu64, are much
more verbose (and less aesthetically appealing, IMHO) than simply
using "%ju".
[2] I've tried very hard to find "all [the] existing users of
kernhist(9)"
but it is possible that I've missed some of them. I would be glad
to
update any stragglers that anyone identifies.
--
For some reason this single kernel seems to have outgrown its declared
size as a result of the kernhist(9) changes. Bump the size.
XXX The amount of increase may be excessive - anyone with more detailed
XXX knowledge please feel free to further adjust the value
appropriately.
--
Misssed one cast of pointer --> uintptr_t in previous kernhist(9) commit
--
And yet another one. :(
--
Use correct mark-up for NetBSD version.
--
More improvements in grammar and readability.
--
Remove a stray '"' (obvious typo) and add a couple of casts that are
probably needed.
--
And replace an instance of "%p" conversion with "%#jx"
--
Whitespace fix. Give Bl tag table a width. Fix Xr.
Revision 1.98: download - view: text, markup, annotated - select for diffs
Sat Oct 28 00:37:12 2017 UTC (7 years, 1 month ago) by pgoyette
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
pgoyette-compat-base,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +57 -52
lines
Update the kernhist(9) kernel history code to address issues identified
in PR kern/52639, as well as some general cleaning-up...
(As proposed on tech-kern@ with additional changes and enhancements.)
Details of changes:
* All history arguments are now stored as uintmax_t values[1], both in
the kernel and in the structures used for exporting the history data
to userland via sysctl(9). This avoids problems on some architectures
where passing a 64-bit (or larger) value to printf(3) can cause it to
process the value as multiple arguments. (This can be particularly
problematic when printf()'s format string is not a literal, since in
that case the compiler cannot know how large each argument should be.)
* Update the data structures used for exporting kernel history data to
include a version number as well as the length of history arguments.
* All [2] existing users of kernhist(9) have had their format strings
updated. Each format specifier now includes an explicit length
modifier 'j' to refer to numeric values of the size of uintmax_t.
* All [2] existing users of kernhist(9) have had their format strings
updated to replace uses of "%p" with "%#jx", and the pointer
arguments are now cast to (uintptr_t) before being subsequently cast
to (uintmax_t). This is needed to avoid compiler warnings about
casting "pointer to integer of a different size."
* All [2] existing users of kernhist(9) have had instances of "%s" or
"%c" format strings replaced with numeric formats; several instances
of mis-match between format string and argument list have been fixed.
* vmstat(1) has been modified to handle the new size of arguments in the
history data as exported by sysctl(9).
* vmstat(1) now provides a warning message if the history requested with
the -u option does not exist (previously, this condition was silently
ignored, with only a single blank line being printed).
* vmstat(1) now checks the version and argument length included in the
data exported via sysctl(9) and exits if they do not match the values
with which vmstat was built.
* The kernhist(9) man-page has been updated to note the additional
requirements imposed on the format strings, along with several other
minor changes and enhancements.
[1] It would have been possible to use an explicit length (for example,
uint64_t) for the history arguments. But that would require another
"rototill" of all the users in the future when we add support for an
architecture that supports a larger size. Also, the printf(3) format
specifiers for explicitly-sized values, such as "%"PRIu64, are much
more verbose (and less aesthetically appealing, IMHO) than simply
using "%ju".
[2] I've tried very hard to find "all [the] existing users of kernhist(9)"
but it is possible that I've missed some of them. I would be glad to
update any stragglers that anyone identifies.
Revision 1.47.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 5 19:54:18 2017 UTC (7 years, 8 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-2-RELEASE
Diff to: previous 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47: +625 -736
lines
Pull up following revision(s) (requested by skrll in ticket #1395):
share/man/man4/axe.4: netbsd-7-nhusb
share/man/man4/axen.4: netbsd-7-nhusb
share/man/man4/cdce.4: netbsd-7-nhusb
share/man/man4/uaudio.4: netbsd-7-nhusb
share/man/man4/ucom.4: netbsd-7-nhusb
share/man/man4/uep.4: netbsd-7-nhusb
share/man/man4/urtw.4: netbsd-7-nhusb
share/man/man4/usb.4: netbsd-7-nhusb
share/man/man4/uyap.4: netbsd-7-nhusb
share/man/man4/xhci.4: netbsd-7-nhusb
share/man/man9/usbdi.9: netbsd-7-nhusb
sys/arch/amd64/conf/ALL: netbsd-7-nhusb
sys/arch/amd64/conf/GENERIC: netbsd-7-nhusb
sys/arch/amiga/dev/slhci_zbus.c: netbsd-7-nhusb
sys/arch/arm/allwinner/awin_otg.c: netbsd-7-nhusb
sys/arch/arm/allwinner/awin_usb.c: netbsd-7-nhusb
sys/arch/arm/amlogic/amlogic_dwctwo.c: netbsd-7-nhusb
sys/arch/arm/at91/at91ohci.c: netbsd-7-nhusb
sys/arch/arm/broadcom/bcm2835_dwctwo.c: netbsd-7-nhusb
sys/arch/arm/broadcom/bcm53xx_usb.c: netbsd-7-nhusb
sys/arch/arm/ep93xx/epohci.c: netbsd-7-nhusb
sys/arch/arm/gemini/obio_ehci.c: netbsd-7-nhusb
sys/arch/arm/imx/files.imx23: netbsd-7-nhusb
sys/arch/arm/imx/imxusb.c: netbsd-7-nhusb
sys/arch/arm/imx/imxusbreg.h: netbsd-7-nhusb
sys/arch/arm/omap/obio_ohci.c: netbsd-7-nhusb
sys/arch/arm/omap/omap3_ehci.c: netbsd-7-nhusb
sys/arch/arm/omap/omapl1x_ohci.c: netbsd-7-nhusb
sys/arch/arm/omap/tiotg.c: netbsd-7-nhusb
sys/arch/arm/s3c2xx0/ohci_s3c24x0.c: netbsd-7-nhusb
sys/arch/arm/samsung/exynos_usb.c: netbsd-7-nhusb
sys/arch/arm/xscale/pxa2x0_ohci.c: netbsd-7-nhusb
sys/arch/arm/zynq/zynq_usb.c: netbsd-7-nhusb
sys/arch/hpcarm/dev/nbp_slhci.c: netbsd-7-nhusb
sys/arch/hpcmips/dev/plumohci.c: netbsd-7-nhusb
sys/arch/i386/conf/ALL: netbsd-7-nhusb
sys/arch/i386/conf/GENERIC: netbsd-7-nhusb
sys/arch/i386/pci/gcscehci.c: netbsd-7-nhusb
sys/arch/luna68k/conf/GENERIC: netbsd-7-nhusb
sys/arch/mips/adm5120/dev/ahci.c: netbsd-7-nhusb
sys/arch/mips/adm5120/dev/ahcivar.h: netbsd-7-nhusb
sys/arch/mips/alchemy/dev/ohci_aubus.c: netbsd-7-nhusb
sys/arch/mips/atheros/dev/ehci_arbus.c: netbsd-7-nhusb
sys/arch/mips/atheros/dev/ohci_arbus.c: netbsd-7-nhusb
sys/arch/mips/conf/files.adm5120: netbsd-7-nhusb
sys/arch/mips/ralink/ralink_ehci.c: netbsd-7-nhusb
sys/arch/mips/ralink/ralink_ohci.c: netbsd-7-nhusb
sys/arch/mips/rmi/rmixl_ehci.c: netbsd-7-nhusb
sys/arch/mips/rmi/rmixl_ohci.c: netbsd-7-nhusb
sys/arch/playstation2/dev/ohci_sbus.c: netbsd-7-nhusb
sys/arch/powerpc/booke/dev/pq3ehci.c: netbsd-7-nhusb
sys/arch/powerpc/ibm4xx/dev/dwctwo_plb.c: netbsd-7-nhusb
sys/arch/x68k/dev/slhci_intio.c: netbsd-7-nhusb
sys/conf/files: netbsd-7-nhusb
sys/dev/cardbus/ehci_cardbus.c: netbsd-7-nhusb
sys/dev/cardbus/ohci_cardbus.c: netbsd-7-nhusb
sys/dev/cardbus/uhci_cardbus.c: netbsd-7-nhusb
sys/dev/ic/sl811hs.c: netbsd-7-nhusb
sys/dev/ic/sl811hsvar.h: netbsd-7-nhusb
sys/dev/isa/slhci_isa.c: netbsd-7-nhusb
sys/dev/marvell/ehci_mv.c: netbsd-7-nhusb
sys/dev/pci/ehci_pci.c: netbsd-7-nhusb
sys/dev/pci/ohci_pci.c: netbsd-7-nhusb
sys/dev/pci/uhci_pci.c: netbsd-7-nhusb
sys/dev/pci/xhci_pci.c: netbsd-7-nhusb
sys/dev/pcmcia/slhci_pcmcia.c: netbsd-7-nhusb
sys/dev/usb/Makefile.usbdevs: netbsd-7-nhusb
sys/dev/usb/TODO: netbsd-7-nhusb
sys/dev/usb/TODO.usbmp: netbsd-7-nhusb
sys/dev/usb/aubtfwl.c: netbsd-7-nhusb
sys/dev/usb/auvitek.c: netbsd-7-nhusb
sys/dev/usb/auvitek_audio.c: netbsd-7-nhusb
sys/dev/usb/auvitek_dtv.c: netbsd-7-nhusb
sys/dev/usb/auvitek_i2c.c: netbsd-7-nhusb
sys/dev/usb/auvitek_video.c: netbsd-7-nhusb
sys/dev/usb/auvitekvar.h: netbsd-7-nhusb
sys/dev/usb/ehci.c: netbsd-7-nhusb
sys/dev/usb/ehcireg.h: netbsd-7-nhusb
sys/dev/usb/ehcivar.h: netbsd-7-nhusb
sys/dev/usb/emdtv.c: netbsd-7-nhusb
sys/dev/usb/emdtv_dtv.c: netbsd-7-nhusb
sys/dev/usb/emdtv_ir.c: netbsd-7-nhusb
sys/dev/usb/emdtvvar.h: netbsd-7-nhusb
sys/dev/usb/ezload.c: netbsd-7-nhusb
sys/dev/usb/ezload.h: netbsd-7-nhusb
sys/dev/usb/files.usb: netbsd-7-nhusb
sys/dev/usb/hid.c: netbsd-7-nhusb
sys/dev/usb/hid.h: netbsd-7-nhusb
sys/dev/usb/if_athn_usb.c: netbsd-7-nhusb
sys/dev/usb/if_athn_usb.h: netbsd-7-nhusb
sys/dev/usb/if_atu.c: netbsd-7-nhusb
sys/dev/usb/if_atureg.h: netbsd-7-nhusb
sys/dev/usb/if_aue.c: netbsd-7-nhusb
sys/dev/usb/if_auereg.h: netbsd-7-nhusb
sys/dev/usb/if_axe.c: netbsd-7-nhusb
sys/dev/usb/if_axen.c: netbsd-7-nhusb
sys/dev/usb/if_axenreg.h: netbsd-7-nhusb
sys/dev/usb/if_axereg.h: netbsd-7-nhusb
sys/dev/usb/if_cdce.c: netbsd-7-nhusb
sys/dev/usb/if_cdcereg.h: netbsd-7-nhusb
sys/dev/usb/if_cue.c: netbsd-7-nhusb
sys/dev/usb/if_cuereg.h: netbsd-7-nhusb
sys/dev/usb/if_kue.c: netbsd-7-nhusb
sys/dev/usb/if_kuereg.h: netbsd-7-nhusb
sys/dev/usb/if_otus.c: netbsd-7-nhusb
sys/dev/usb/if_otusvar.h: netbsd-7-nhusb
sys/dev/usb/if_rum.c: netbsd-7-nhusb
sys/dev/usb/if_rumreg.h: netbsd-7-nhusb
sys/dev/usb/if_rumvar.h: netbsd-7-nhusb
sys/dev/usb/if_run.c: netbsd-7-nhusb
sys/dev/usb/if_runvar.h: netbsd-7-nhusb
sys/dev/usb/if_smsc.c: netbsd-7-nhusb
sys/dev/usb/if_smscreg.h: netbsd-7-nhusb
sys/dev/usb/if_smscvar.h: netbsd-7-nhusb
sys/dev/usb/if_udav.c: netbsd-7-nhusb
sys/dev/usb/if_udavreg.h: netbsd-7-nhusb
sys/dev/usb/if_upgt.c: netbsd-7-nhusb
sys/dev/usb/if_upgtvar.h: netbsd-7-nhusb
sys/dev/usb/if_upl.c: netbsd-7-nhusb
sys/dev/usb/if_ural.c: netbsd-7-nhusb
sys/dev/usb/if_uralreg.h: netbsd-7-nhusb
sys/dev/usb/if_uralvar.h: netbsd-7-nhusb
sys/dev/usb/if_url.c: netbsd-7-nhusb
sys/dev/usb/if_urlreg.h: netbsd-7-nhusb
sys/dev/usb/if_urndis.c: netbsd-7-nhusb
sys/dev/usb/if_urndisreg.h: netbsd-7-nhusb
sys/dev/usb/if_urtw.c: netbsd-7-nhusb
sys/dev/usb/if_urtwn.c: netbsd-7-nhusb
sys/dev/usb/if_urtwn_data.h: netbsd-7-nhusb
sys/dev/usb/if_urtwnreg.h: netbsd-7-nhusb
sys/dev/usb/if_urtwnvar.h: netbsd-7-nhusb
sys/dev/usb/if_urtwreg.h: netbsd-7-nhusb
sys/dev/usb/if_zyd.c: netbsd-7-nhusb
sys/dev/usb/if_zydreg.h: netbsd-7-nhusb
sys/dev/usb/irmce.c: netbsd-7-nhusb
sys/dev/usb/moscom.c: netbsd-7-nhusb
sys/dev/usb/motg.c: netbsd-7-nhusb
sys/dev/usb/motgvar.h: netbsd-7-nhusb
sys/dev/usb/ohci.c: netbsd-7-nhusb
sys/dev/usb/ohcireg.h: netbsd-7-nhusb
sys/dev/usb/ohcivar.h: netbsd-7-nhusb
sys/dev/usb/pseye.c: netbsd-7-nhusb
sys/dev/usb/slurm.c: netbsd-7-nhusb
sys/dev/usb/stuirda.c: netbsd-7-nhusb
sys/dev/usb/u3g.c: netbsd-7-nhusb
sys/dev/usb/uark.c: netbsd-7-nhusb
sys/dev/usb/uatp.c: netbsd-7-nhusb
sys/dev/usb/uaudio.c: netbsd-7-nhusb
sys/dev/usb/uberry.c: netbsd-7-nhusb
sys/dev/usb/ubsa.c: netbsd-7-nhusb
sys/dev/usb/ubsa_common.c: netbsd-7-nhusb
sys/dev/usb/ubsavar.h: netbsd-7-nhusb
sys/dev/usb/ubt.c: netbsd-7-nhusb
sys/dev/usb/uchcom.c: netbsd-7-nhusb
sys/dev/usb/ucom.c: netbsd-7-nhusb
sys/dev/usb/ucomvar.h: netbsd-7-nhusb
sys/dev/usb/ucycom.c: netbsd-7-nhusb
sys/dev/usb/udl.c: netbsd-7-nhusb
sys/dev/usb/udl.h: netbsd-7-nhusb
sys/dev/usb/udsbr.c: netbsd-7-nhusb
sys/dev/usb/udsir.c: netbsd-7-nhusb
sys/dev/usb/uep.c: netbsd-7-nhusb
sys/dev/usb/uftdi.c: netbsd-7-nhusb
sys/dev/usb/uftdireg.h: netbsd-7-nhusb
sys/dev/usb/ugen.c: netbsd-7-nhusb
sys/dev/usb/ugensa.c: netbsd-7-nhusb
sys/dev/usb/uhci.c: netbsd-7-nhusb
sys/dev/usb/uhcireg.h: netbsd-7-nhusb
sys/dev/usb/uhcivar.h: netbsd-7-nhusb
sys/dev/usb/uhid.c: netbsd-7-nhusb
sys/dev/usb/uhidev.c: netbsd-7-nhusb
sys/dev/usb/uhidev.h: netbsd-7-nhusb
sys/dev/usb/uhmodem.c: netbsd-7-nhusb
sys/dev/usb/uhso.c: netbsd-7-nhusb
sys/dev/usb/uhub.c: netbsd-7-nhusb
sys/dev/usb/uipad.c: netbsd-7-nhusb
sys/dev/usb/uipaq.c: netbsd-7-nhusb
sys/dev/usb/uirda.c: netbsd-7-nhusb
sys/dev/usb/uirdavar.h: netbsd-7-nhusb
sys/dev/usb/ukbd.c: netbsd-7-nhusb
sys/dev/usb/ukbdmap.c: netbsd-7-nhusb
sys/dev/usb/ukyopon.c: netbsd-7-nhusb
sys/dev/usb/ukyopon.h: netbsd-7-nhusb
sys/dev/usb/ulpt.c: netbsd-7-nhusb
sys/dev/usb/umass.c: netbsd-7-nhusb
sys/dev/usb/umass_isdata.c: netbsd-7-nhusb
sys/dev/usb/umass_isdata.h: netbsd-7-nhusb
sys/dev/usb/umass_quirks.c: netbsd-7-nhusb
sys/dev/usb/umass_quirks.h: netbsd-7-nhusb
sys/dev/usb/umass_scsipi.c: netbsd-7-nhusb
sys/dev/usb/umass_scsipi.h: netbsd-7-nhusb
sys/dev/usb/umassvar.h: netbsd-7-nhusb
sys/dev/usb/umcs.c: netbsd-7-nhusb
sys/dev/usb/umct.c: netbsd-7-nhusb
sys/dev/usb/umidi.c: netbsd-7-nhusb
sys/dev/usb/umidi_quirks.c: netbsd-7-nhusb
sys/dev/usb/umidi_quirks.h: netbsd-7-nhusb
sys/dev/usb/umodem.c: netbsd-7-nhusb
sys/dev/usb/umodem_common.c: netbsd-7-nhusb
sys/dev/usb/umodemvar.h: netbsd-7-nhusb
sys/dev/usb/ums.c: netbsd-7-nhusb
sys/dev/usb/uplcom.c: netbsd-7-nhusb
sys/dev/usb/urio.c: netbsd-7-nhusb
sys/dev/usb/urio.h: netbsd-7-nhusb
sys/dev/usb/usb.c: netbsd-7-nhusb
sys/dev/usb/usb.h: netbsd-7-nhusb
sys/dev/usb/usb_mem.c: netbsd-7-nhusb
sys/dev/usb/usb_mem.h: netbsd-7-nhusb
sys/dev/usb/usb_quirks.c: netbsd-7-nhusb
sys/dev/usb/usb_quirks.h: netbsd-7-nhusb
sys/dev/usb/usb_subr.c: netbsd-7-nhusb
sys/dev/usb/usbdevices.config: netbsd-7-nhusb
sys/dev/usb/usbdevs: netbsd-7-nhusb
sys/dev/usb/usbdevs.h: netbsd-7-nhusb
sys/dev/usb/usbdevs_data.h: netbsd-7-nhusb
sys/dev/usb/usbdi.c: netbsd-7-nhusb
sys/dev/usb/usbdi.h: netbsd-7-nhusb
sys/dev/usb/usbdi_util.c: netbsd-7-nhusb
sys/dev/usb/usbdi_util.h: netbsd-7-nhusb
sys/dev/usb/usbdivar.h: netbsd-7-nhusb
sys/dev/usb/usbhid.h: netbsd-7-nhusb
sys/dev/usb/usbhist.h: netbsd-7-nhusb
sys/dev/usb/usbroothub.c: netbsd-7-nhusb
sys/dev/usb/usbroothub.h: netbsd-7-nhusb
sys/dev/usb/usbroothub_subr.c: delete
sys/dev/usb/usbroothub_subr.h: delete
sys/dev/usb/uscanner.c: netbsd-7-nhusb
sys/dev/usb/uslsa.c: netbsd-7-nhusb
sys/dev/usb/usscanner.c: netbsd-7-nhusb
sys/dev/usb/ustir.c: netbsd-7-nhusb
sys/dev/usb/uthum.c: netbsd-7-nhusb
sys/dev/usb/utoppy.c: netbsd-7-nhusb
sys/dev/usb/uts.c: netbsd-7-nhusb
sys/dev/usb/uvideo.c: netbsd-7-nhusb
sys/dev/usb/uvisor.c: netbsd-7-nhusb
sys/dev/usb/uvscom.c: netbsd-7-nhusb
sys/dev/usb/uyap.c: netbsd-7-nhusb
sys/dev/usb/uyap_firmware.h: netbsd-7-nhusb
sys/dev/usb/uyurex.c: netbsd-7-nhusb
sys/dev/usb/x1input_rdesc.h: netbsd-7-nhusb
sys/dev/usb/xhci.c: netbsd-7-nhusb
sys/dev/usb/xhcireg.h: netbsd-7-nhusb
sys/dev/usb/xhcivar.h: netbsd-7-nhusb
sys/dev/usb/xinput_rdesc.h: netbsd-7-nhusb
sys/external/bsd/common/conf/files.linux: netbsd-7-nhusb
sys/external/bsd/common/include/linux/err.h: netbsd-7-nhusb
sys/external/bsd/common/include/linux/kernel.h: netbsd-7-nhusb
sys/external/bsd/common/include/linux/workqueue.h: netbsd-7-nhusb
sys/external/bsd/common/linux/linux_work.c: netbsd-7-nhusb
sys/external/bsd/drm2/dist/drm/radeon/atombios_encoders.c: netbsd-7-nhusb
sys/external/bsd/drm2/dist/drm/radeon/radeon_legacy_encoders.c: netbsd-7-nhusb
sys/external/bsd/drm2/drm/files.drmkms: netbsd-7-nhusb
sys/external/bsd/drm2/i915drm/files.i915drmkms: netbsd-7-nhusb
sys/external/bsd/drm2/include/linux/err.h: delete
sys/external/bsd/drm2/include/linux/workqueue.h: delete
sys/external/bsd/drm2/linux/files.drmkms_linux: netbsd-7-nhusb
sys/external/bsd/drm2/linux/linux_work.c: delete
sys/external/bsd/dwc2/dwc2.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dwc2.h: netbsd-7-nhusb
sys/external/bsd/dwc2/dwc2var.h: netbsd-7-nhusb
sys/external/bsd/dwc2/dwctwo2netbsd: netbsd-7-nhusb
sys/external/bsd/dwc2/conf/files.dwc2: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_core.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_core.h: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_coreintr.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hcd.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hcd.h: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hcdddma.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hcdintr.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hcdqueue.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hw.h: netbsd-7-nhusb
sys/modules/drmkms_linux/Makefile: netbsd-7-nhusb
sys/modules/i915drmkms/Makefile: netbsd-7-nhusb
sys/rump/dev/lib/libugenhc/ugenhc.c: netbsd-7-nhusb
sys/rump/dev/lib/libusb/Makefile: netbsd-7-nhusb
sys/rump/dev/lib/libusb/USB.ioconf: netbsd-7-nhusb
sys/rump/dev/lib/libusb/usb_at_ugenhc.c: delete
sys/rump/dev/lib/libusb/opt/opt_usb.h: delete
sys/rump/dev/lib/libusb/opt/opt_usbverbose.h: delete
sys/sys/mbuf.h: netbsd-7-nhusb
usr.sbin/usbdevs/usbdevs.8: netbsd-7-nhusb
usr.sbin/usbdevs/usbdevs.c: netbsd-7-nhusb
Merge netbsd-7-nhusb:
- API / infrastructure changes to support memory management changes.
- Memory management improvements and bug fixes.
- HCDs should now be MP safe
- conversion to KERNHIST based debug
- FS/LS isoc support on ehci(4).
- conversion to kmem(9)
- Some USB 3 support - mostly from Takahiro HAYASHI (t-hash).
- interrupt transfers now get proper DMA operations
- general bug fixes
- kern/48308
- uhub status notification improvements
- umass(4) probe fix (applied to HEAD already)
- ohci(4) short transfer fix
- Change the SOFTINT level from NET to SERIAL for the USB softint handler.
This gives the callback a chance of running when another softint handler
at SOFTINT_NET has blocked holding a lock, e.g. softnet_lock and most of
the network stack.
- kern/49065 - ifconfig tun0 ... sequence locks up system / lockup:
softnet_lock held across usb xfr
- kern/50491 - unkillable wait in usbd_transfer while using usmsc0
on raspberry pi 2
- kern/51395 - USB Ethernet makes xhci hang
- Various improvements to slhci(4)
- Various improvements to dwc2(4)
Revision 1.47.10.2: download - view: text, markup, annotated - select for diffs
Thu Jan 26 21:54:24 2017 UTC (7 years, 10 months ago) by skrll
Branches: netbsd-7-nhusb
Diff to: previous 1.47.10.1: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.10.1: +16 -35
lines
Sync with HEAD/nhusb
Revision 1.93.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:49:09 2016 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.93: preferred, colored; next MAIN 1.94: preferred, colored
Changes since revision 1.93: +16 -35
lines
Sync with HEAD
Revision 1.47.6.19: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:55:41 2016 UTC (8 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.47.6.18: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.6.18: +21 -35
lines
Sync with HEAD
Revision 1.97: download - view: text, markup, annotated - select for diffs
Sat Oct 1 13:46:52 2016 UTC (8 years, 2 months ago) by christos
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
nick-nhusb-base-20170204,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
netbsd-8-base,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: netbsd-8
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +2 -8
lines
remove unused variable.
Revision 1.96: download - view: text, markup, annotated - select for diffs
Sat Sep 24 15:06:29 2016 UTC (8 years, 2 months ago) by skrll
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +15 -28
lines
Truncate the transfer length if an overflow is seen rather than halting.
Don't consider an EP11_STAT_SETUP as an error as it's not valid for
host operation.
Should fix kern/51500: axe(4) at slhci(4) does not attach, but there are
more problems with axe(4)
Revision 1.95: download - view: text, markup, annotated - select for diffs
Thu Sep 15 21:45:37 2016 UTC (8 years, 2 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +3 -3
lines
remove last isolated islands using BUS_SPACE_BARRIER_SYNC and
BUS_SPACE_BARRIER_X_BEFORE_X - these were only ever defined for mips and ia64,
and never actually implemented even there
Revision 1.47.10.1: download - view: text, markup, annotated - select for diffs
Tue Sep 6 20:33:08 2016 UTC (8 years, 3 months ago) by skrll
Branches: netbsd-7-nhusb
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +618 -710
lines
First pass at netbsd-7 updated with USB code from HEAD
Revision 1.94: download - view: text, markup, annotated - select for diffs
Thu Aug 25 20:14:02 2016 UTC (8 years, 3 months ago) by skrll
Branches: MAIN
CVS tags: localcount-20160914
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +7 -2
lines
Fix scheduling of interrupt transfers. I can now use a hub with my flxd
ISA USB adapter
Revision 1.47.6.18: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:02 2016 UTC (8 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.47.6.17: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.6.17: +297 -235
lines
Sync with HEAD
Revision 1.93: download - view: text, markup, annotated - select for diffs
Fri Jul 1 09:03:28 2016 UTC (8 years, 5 months ago) by skrll
Branches: MAIN
CVS tags: pgoyette-localcount-base,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
nick-nhusb-base-20160907
Branch point for: pgoyette-localcount
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +9 -5
lines
Loop in the interrupt handler while there are interrupts to process.
umass(4) reads now work much better.
Revision 1.92: download - view: text, markup, annotated - select for diffs
Fri Jul 1 08:42:21 2016 UTC (8 years, 5 months ago) by skrll
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +22 -19
lines
Fixup the error handling and specifically NAK hold off. If the device
NAKs then delay the transfer by at least a frame.
I can now write files to a umass attached to slhci(4).
Revision 1.91: download - view: text, markup, annotated - select for diffs
Fri Jul 1 07:35:03 2016 UTC (8 years, 5 months ago) by skrll
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +3 -3
lines
Debug tweak
Revision 1.90: download - view: text, markup, annotated - select for diffs
Fri Jul 1 07:33:33 2016 UTC (8 years, 5 months ago) by skrll
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +4 -4
lines
Format conditional
Revision 1.89: download - view: text, markup, annotated - select for diffs
Fri Jul 1 07:15:37 2016 UTC (8 years, 5 months ago) by skrll
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +7 -6
lines
Format conditionals
Revision 1.88: download - view: text, markup, annotated - select for diffs
Fri Jul 1 05:39:24 2016 UTC (8 years, 5 months ago) by skrll
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +3 -4
lines
Reformat a conditional
Revision 1.87: download - view: text, markup, annotated - select for diffs
Thu Jun 30 16:34:56 2016 UTC (8 years, 5 months ago) by skrll
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +2 -9
lines
Remove dead code
Revision 1.86: download - view: text, markup, annotated - select for diffs
Tue Jun 28 16:00:32 2016 UTC (8 years, 5 months ago) by skrll
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +93 -2
lines
Add slhci_memtest which is run when SLHCI_DEBUG is defined.
From Felix Deichmann.
Revision 1.85: download - view: text, markup, annotated - select for diffs
Mon Jun 20 14:18:30 2016 UTC (8 years, 5 months ago) by skrll
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +3 -3
lines
Fix a comment
Revision 1.84: download - view: text, markup, annotated - select for diffs
Mon Jun 20 07:13:07 2016 UTC (8 years, 5 months ago) by skrll
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +21 -19
lines
More debug.
Revision 1.83: download - view: text, markup, annotated - select for diffs
Mon Jun 20 07:12:00 2016 UTC (8 years, 5 months ago) by skrll
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +6 -6
lines
Set ssc as early as possible
Revision 1.82: download - view: text, markup, annotated - select for diffs
Sun Jun 19 07:38:08 2016 UTC (8 years, 5 months ago) by skrll
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +5 -3
lines
More debug
Revision 1.81: download - view: text, markup, annotated - select for diffs
Sun Jun 19 06:47:04 2016 UTC (8 years, 5 months ago) by skrll
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +4 -3
lines
More debug and fix a debug
Revision 1.80: download - view: text, markup, annotated - select for diffs
Sat Jun 18 20:27:55 2016 UTC (8 years, 5 months ago) by skrll
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +60 -55
lines
Fix non-debug build.
Revision 1.79: download - view: text, markup, annotated - select for diffs
Sat Jun 18 19:30:24 2016 UTC (8 years, 5 months ago) by skrll
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +141 -183
lines
Debug updates to work with vmstat(1) -u
Revision 1.78: download - view: text, markup, annotated - select for diffs
Fri Jun 17 16:07:40 2016 UTC (8 years, 5 months ago) by skrll
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +11 -7
lines
More(/less) debug
Revision 1.77: download - view: text, markup, annotated - select for diffs
Fri Jun 17 15:57:08 2016 UTC (8 years, 5 months ago) by skrll
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +3 -4
lines
_KERNEL_OPT protection
Revision 1.47.6.17: download - view: text, markup, annotated - select for diffs
Sun May 29 08:44:21 2016 UTC (8 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.47.6.16: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.6.16: +137 -151
lines
Sync with HEAD
Revision 1.76: download - view: text, markup, annotated - select for diffs
Tue May 17 03:20:58 2016 UTC (8 years, 6 months ago) by martin
Branches: MAIN
CVS tags: nick-nhusb-base-20160529
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +3 -3
lines
Mark a diagnostic only variable
Revision 1.75: download - view: text, markup, annotated - select for diffs
Mon May 16 15:09:29 2016 UTC (8 years, 6 months ago) by skrll
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +16 -31
lines
Simplify and fixup roothub interrupt transfers to work as well as before
nick-nhusb.
Revision 1.74: download - view: text, markup, annotated - select for diffs
Mon May 16 08:00:25 2016 UTC (8 years, 6 months ago) by skrll
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +3 -3
lines
Update comment
Revision 1.73: download - view: text, markup, annotated - select for diffs
Mon May 16 07:59:42 2016 UTC (8 years, 6 months ago) by skrll
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +3 -3
lines
Really fix comment
Revision 1.72: download - view: text, markup, annotated - select for diffs
Sun May 15 14:00:08 2016 UTC (8 years, 6 months ago) by skrll
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +3 -3
lines
Fix comment
Revision 1.71: download - view: text, markup, annotated - select for diffs
Sun May 15 13:59:36 2016 UTC (8 years, 6 months ago) by skrll
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +3 -3
lines
Typo in comment
Revision 1.70: download - view: text, markup, annotated - select for diffs
Sat May 14 10:07:52 2016 UTC (8 years, 6 months ago) by skrll
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +4 -2
lines
#if 0 an assert around rootintr that's no longer correct. root hub
interrupt transfers could do with reworking.
Revision 1.69: download - view: text, markup, annotated - select for diffs
Sat May 14 08:52:20 2016 UTC (8 years, 6 months ago) by skrll
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +6 -4
lines
Another locking fix in slhci_roothub_ctrl
Revision 1.68: download - view: text, markup, annotated - select for diffs
Thu May 12 18:57:38 2016 UTC (8 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +8 -4
lines
Fix locking in slhci_roothub_ctrl
Revision 1.67: download - view: text, markup, annotated - select for diffs
Thu May 12 05:30:17 2016 UTC (8 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -3
lines
More typos in previous
Revision 1.66: download - view: text, markup, annotated - select for diffs
Wed May 11 21:28:21 2016 UTC (8 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +3 -3
lines
Typo in previous
Revision 1.65: download - view: text, markup, annotated - select for diffs
Wed May 11 21:27:09 2016 UTC (8 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +5 -2
lines
More debug
Revision 1.64: download - view: text, markup, annotated - select for diffs
Wed May 11 21:05:12 2016 UTC (8 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +2 -3
lines
Remove incorrect comment
Revision 1.63: download - view: text, markup, annotated - select for diffs
Wed May 11 21:03:01 2016 UTC (8 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -2
lines
More debug
Revision 1.62: download - view: text, markup, annotated - select for diffs
Wed May 11 21:02:10 2016 UTC (8 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +3 -33
lines
The HCD should no longer restart a repeating transfer (i.e. an interrupt
transfer) as this is now handled in the usb core code.
Revision 1.61: download - view: text, markup, annotated - select for diffs
Wed May 11 06:07:52 2016 UTC (8 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +2 -5
lines
fix build
Revision 1.60: download - view: text, markup, annotated - select for diffs
Tue May 10 21:15:54 2016 UTC (8 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +4 -3
lines
Remove comment about splusb and replace with KASSERT(mutex_owned())
Revision 1.59: download - view: text, markup, annotated - select for diffs
Tue May 10 21:13:48 2016 UTC (8 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +5 -2
lines
More debug
Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun May 8 07:48:24 2016 UTC (8 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +5 -2
lines
More debug
Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun May 8 07:40:17 2016 UTC (8 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +3 -3
lines
Create sc_intr_lock at IPL_USB
Revision 1.56: download - view: text, markup, annotated - select for diffs
Tue Apr 26 10:38:42 2016 UTC (8 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +81 -53
lines
First pass at adapting SLHCI_DEBUG to USBHIST
Revision 1.55: download - view: text, markup, annotated - select for diffs
Tue Apr 26 10:28:28 2016 UTC (8 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +5 -4
lines
Fix SLHCI_XFER_TYPE
Revision 1.54: download - view: text, markup, annotated - select for diffs
Tue Apr 26 10:10:27 2016 UTC (8 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +5 -5
lines
Remove unnecessary whitespace from attach message.
From Felix Deichmann
Revision 1.53: download - view: text, markup, annotated - select for diffs
Tue Apr 26 09:08:55 2016 UTC (8 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +9 -9
lines
KNF the #includes
Revision 1.52: download - view: text, markup, annotated - select for diffs
Tue Apr 26 09:07:10 2016 UTC (8 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +2 -3
lines
One sys/cdefs.h is enough
Revision 1.51: download - view: text, markup, annotated - select for diffs
Tue Apr 26 09:04:01 2016 UTC (8 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +7 -7
lines
s/slhci_debug/slhcidebug/ for consistency with other HCD debug variables
Revision 1.50: download - view: text, markup, annotated - select for diffs
Tue Apr 26 09:00:22 2016 UTC (8 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +2 -3
lines
Remove unused variable
Revision 1.49: download - view: text, markup, annotated - select for diffs
Mon Apr 25 20:15:41 2016 UTC (8 years, 7 months ago) by joerg
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +2 -13
lines
GC slhci_hubd
Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Apr 23 10:15:31 2016 UTC (8 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +240 -385
lines
Merge nick-nhusb
- API / infrastructure changes to support memory management changes.
- Memory management improvements and bug fixes.
- HCDs should now be MP safe
- conversion to KERNHIST based debug
- FS/LS isoc support on ehci(4).
- conversion to kmem(9)
- Some USB 3 support - mostly from Takahiro HAYASHI (t-hash).
- interrupt transfers now get proper DMA operations
- general bug fixes
- kern/48308
- uhub status notification improvements
- umass(4) probe fix (applied to HEAD already)
- ohci(4) short transfer fix
Revision 1.47.6.16: download - view: text, markup, annotated - select for diffs
Fri Mar 25 08:32:43 2016 UTC (8 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.47.6.15: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.6.15: +6 -6
lines
Wrap long lines
Revision 1.47.6.15: download - view: text, markup, annotated - select for diffs
Thu Oct 22 11:15:42 2015 UTC (9 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.47.6.14: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.6.14: +3 -3
lines
Simplify *_XFER2SC using ux_bus
Revision 1.47.6.14: download - view: text, markup, annotated - select for diffs
Tue Oct 20 15:31:21 2015 UTC (9 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.47.6.13: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.6.13: +26 -20
lines
Consistently providei/use *_{XFER,PIPE,BUS}2SC, etc macros
Revision 1.47.6.13: download - view: text, markup, annotated - select for diffs
Sun Oct 11 09:17:51 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.47.6.12: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.6.12: +4 -4
lines
Update ubm_allocx with the isoc frame count parameter and use it in
dwctwo(4)
Revision 1.47.6.12: download - view: text, markup, annotated - select for diffs
Sun Oct 11 08:35:04 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.47.6.11: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.6.11: +3 -3
lines
Typo
Revision 1.47.6.11: download - view: text, markup, annotated - select for diffs
Fri Dec 5 09:37:49 2014 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.47.6.10: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.6.10: +3 -3
lines
KNF. Remove ( ) from return statements.
Revision 1.47.6.10: download - view: text, markup, annotated - select for diffs
Thu Dec 4 08:04:31 2014 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.47.6.9: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.6.9: +59 -162
lines
Rework roothub control transfers so that much of the code is shared
across HCDs.
I have retained the vendor/product reporting for each HCD for now,
but it maybe get removed later.
ahci(4) now reports a language table and uses the usb_makestrdesc
function instead of rolling its own version.
Revision 1.47.6.9: download - view: text, markup, annotated - select for diffs
Wed Dec 3 23:05:06 2014 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.47.6.8: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.6.8: +3 -3
lines
Rename usbroothub_subr.[ch] to usbroothub.[ch]
Revision 1.47.6.8: download - view: text, markup, annotated - select for diffs
Wed Dec 3 22:40:55 2014 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.47.6.7: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.6.7: +8 -12
lines
Provide a USETWD macro for use with USB words designated
initialisers.
Revision 1.47.6.7: download - view: text, markup, annotated - select for diffs
Wed Dec 3 14:18:07 2014 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.47.6.6: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.6.6: +5 -5
lines
Replace malloc(9) with kmem(9)
Revision 1.47.6.6: download - view: text, markup, annotated - select for diffs
Wed Dec 3 13:19:38 2014 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.47.6.5: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.6.5: +45 -38
lines
Use designated initializers for more descriptors.
Revision 1.47.6.5: download - view: text, markup, annotated - select for diffs
Wed Dec 3 13:09:00 2014 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.47.6.4: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.6.4: +19 -17
lines
Use designated initialisers for usb_device_descriptor_t structs.
Revision 1.47.6.4: download - view: text, markup, annotated - select for diffs
Wed Dec 3 12:52:06 2014 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.47.6.3: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.6.3: +141 -141
lines
The grand renaming of structure members.
No functional change.
Revision 1.47.6.3: download - view: text, markup, annotated - select for diffs
Tue Dec 2 09:00:33 2014 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.47.6.2: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.6.2: +10 -62
lines
Step #1 of memory allocation re-organisation.
Centralised the buffer allocation routine which now supports DMA
and non-DMA capable host controllers. Remove the
ubm_{alloc,free}m methods from usbd_bus_methods.
The buffer allocation is only allowed in thread context and,
therefore, negates the usefulness of the reserve dma code which
is removed in this change.
USBD_NO_COPY is also no longer required as usbd_transfer and
usbd_transfer_complete now track buffer usage and handle any
copying.
Revision 1.47.6.2: download - view: text, markup, annotated - select for diffs
Mon Dec 1 12:38:39 2014 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.47.6.1: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.6.1: +23 -24
lines
Add prefixes to method structures member names. No functional change.
Revision 1.47.6.1: download - view: text, markup, annotated - select for diffs
Sun Nov 30 12:18:58 2014 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +6 -6
lines
Use C99 types. u_int{8,16,32,64}_t to uint{8,16,32,64}_t.
No functional change.
Revision 1.33.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:38 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +630 -656
lines
Rebase to HEAD as of a few days ago.
Revision 1.30.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:22 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.30.2.2: preferred, colored; branchpoint 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30.2.2: +630 -656
lines
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.33.4.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:38 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +630 -656
lines
sync with head
Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu Oct 17 21:24:24 2013 UTC (11 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9,
tls-maxphys-base,
tls-earlyentropy-base,
tls-earlyentropy,
rmind-smpnet-nbase,
rmind-smpnet-base,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
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-base,
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
Branch point for: nick-nhusb,
netbsd-7-nhusb,
netbsd-7
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -7
lines
- remove unused variables
- move variables inside ifdef sections
- ifdef notdef unused code
- use __USE for debugging variables
Revision 1.46: download - view: text, markup, annotated - select for diffs
Fri Oct 4 21:10:18 2013 UTC (11 years, 2 months ago) by joerg
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -4
lines
Move an assert to the point where the referenced variable is initialized.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Thu Oct 3 13:19:24 2013 UTC (11 years, 2 months ago) by skrll
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +2 -4
lines
Remove incorrect KASSERT.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed Oct 2 23:27:50 2013 UTC (11 years, 2 months ago) by skrll
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +21 -21
lines
LOCKDEBUG doesn't imply DIAGNOSTIC. duh.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Wed Oct 2 23:24:58 2013 UTC (11 years, 2 months ago) by skrll
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -3
lines
Fix a KASSERT - how did that sneak in?
Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed Oct 2 23:09:39 2013 UTC (11 years, 2 months ago) by skrll
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -7
lines
Remove harmless paste error.
Revision 1.41: download - view: text, markup, annotated - select for diffs
Wed Oct 2 22:55:04 2013 UTC (11 years, 2 months ago) by skrll
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +180 -273
lines
Modernise slhci. Many thanks to rkujawa@ for testing.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Mon Sep 23 11:27:45 2013 UTC (11 years, 2 months ago) by skrll
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +6 -4
lines
KNF a comment.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon Sep 23 10:46:35 2013 UTC (11 years, 2 months ago) by skrll
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -3
lines
Typo
Revision 1.38: download - view: text, markup, annotated - select for diffs
Sun Sep 22 09:21:56 2013 UTC (11 years, 2 months ago) by adam
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +2 -8
lines
Removed duplicated lines introduced in version 1.36.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Sep 22 06:54:35 2013 UTC (11 years, 2 months ago) by skrll
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +131 -131
lines
Remove all trailing whitespace
Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Sep 22 06:52:11 2013 UTC (11 years, 2 months ago) by skrll
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +193 -186
lines
Remove trailing whitespace.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Mon Sep 2 12:27:18 2013 UTC (11 years, 3 months ago) by skrll
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +22 -22
lines
Use C99 designated initializers.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Mon Sep 2 12:20:59 2013 UTC (11 years, 3 months ago) by skrll
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +152 -77
lines
KNF multi-line comments.
Revision 1.30.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:21:09 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.30.2.1: preferred, colored; branchpoint 1.30: preferred, colored
Changes since revision 1.30.2.1: +3 -2
lines
sync with head
Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Jun 10 06:15:52 2012 UTC (12 years, 6 months ago) by mrg
Branches: 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
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -2
lines
merge the jmcneill-usbmp branch. many thanks to jared for the
initial work, and every one else who has tested things for me.
this is largely my fault at this point :-)
the main changes are something like:
- usbd_bus_methods{} gains a get_lock() to enable the
host controller to provide a lock for the USB code.
if the lock isn't provided, old-style protection is
(partially) applied.
- ehci/ohci/uhci have been converted to the new
interfaces, including mutex/cv/etc conversion.
- usbdivar.h contains a discussion about locking and
what locks are held for which method calls. more
to come for usbdi(9) here.
- audio drivers (uaudio, umidi, auvitek) have been
properly SMPified now that USB is ready.
- scsi drivers have been modified to take the kernel
lock explicitly before calling into scsi code.
- usb pipes are associated with a lock, that is the
same as the controller lock. (this could be split
up further in the future.)
- several usbfoo_locked() or usbfoo_unlocked()
functions have been added to the usbdi(9) to
enable functionality with or without the USB
lock (per controller) already being held.
the TODO.usbmp file has specific details on what is left to
do, including what device-specific changes should be done now
that the whole framework is ready.
Revision 1.30.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:36 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +11 -14
lines
sync with head
Revision 1.31.2.4: download - view: text, markup, annotated - select for diffs
Mon Mar 12 04:11:34 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.31.2.3: preferred, colored; branchpoint 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31.2.3: +3 -3
lines
fix a comment
Revision 1.31.2.3: download - view: text, markup, annotated - select for diffs
Sun Mar 11 01:52:27 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.31.2.2: preferred, colored; branchpoint 1.31: preferred, colored
Changes since revision 1.31.2.2: +3 -3
lines
sync to latest -current
Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Mar 11 00:34:46 2012 UTC (12 years, 9 months ago) by mrg
Branches: MAIN
CVS tags: yamt-pagecache-base5,
yamt-pagecache-base4,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base10
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -6
lines
pull down from usbmp branch:
- remove usbd_bus{} intr_context member, and replace the checks against
it with cpu_intr_p() and cpu_softintr_p().
Revision 1.31.2.2: download - view: text, markup, annotated - select for diffs
Sat Feb 25 21:15:38 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.31.2.1: preferred, colored; branchpoint 1.31: preferred, colored
Changes since revision 1.31.2.1: +3 -6
lines
catch up with bus->intr_context going away.
Revision 1.31.2.1: download - view: text, markup, annotated - select for diffs
Sun Dec 4 13:23:16 2011 UTC (13 years ago) by jmcneill
Branches: jmcneill-usbmp
CVS tags: jmcneill-usbmp-pre-base2
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -2
lines
Make ehci mpsafe.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Nov 27 14:36:20 2011 UTC (13 years ago) by rmind
Branches: MAIN
CVS tags: netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +10 -10
lines
G/C unnecessary IPL_HARDUSB
Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Oct 17 13:06:08 2011 UTC (13 years, 1 month ago) by isaki
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -3
lines
Fix typo in comment. Pointed out by Y.Sugahara.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Jun 21 15:13:34 2011 UTC (13 years, 5 months ago) by kiyohara
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3
lines
More stride for PSIONTEKLOGIX NETBOOK PRO.
Revision 1.26.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:07:54 2011 UTC (13 years, 6 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26: +34 -21
lines
Sync with HEAD.
Revision 1.25.4.3: download - view: text, markup, annotated - select for diffs
Tue May 31 03:04:36 2011 UTC (13 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.25.4.2: preferred, colored; branchpoint 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.4.2: +25 -18
lines
sync with head
Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue May 17 04:18:06 2011 UTC (13 years, 6 months ago) by mrg
Branches: MAIN
CVS tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
cherry-xenmp-base,
cherry-xenmp
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +27 -20
lines
move and rename the uvm history code out of uvm_stat to "kernhist".
rename "UVMHIST" option to enable the uvm histories.
TODO:
- make UVMHIST properly depend upon KERNHIST
- enable dynamic registration of histories. this is mostly just
allocating something in a bitmap, and is only for viewing multiple
histories in a merged form.
tested on amd64 and sparc64.
Revision 1.25.4.2: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:41:47 2011 UTC (13 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.25.4.1: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.4.1: +9 -3
lines
sync with head
Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Mar 13 05:26:14 2011 UTC (13 years, 9 months ago) by kiyohara
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +9 -3
lines
Fix reset status. Clear some flags for active pipes after completing hard reset.
Revision 1.25.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:46:13 2010 UTC (14 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +4 -2
lines
Sync with HEAD.
Revision 1.21.4.4: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:31 2010 UTC (14 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.21.4.3: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.4.3: +4 -2
lines
sync with head.
Revision 1.25.4.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:25 2010 UTC (14 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +4 -2
lines
sync with head
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat May 8 01:33:00 2010 UTC (14 years, 7 months ago) by isaki
Branches: 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
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +4 -2
lines
Move "opt_slhci.h" from .h to .c
to avoid link error (multiple definition of _KERNEL_OPT_foo).
Revision 1.21.4.3: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:35 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.21.4.2: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.4.2: +12 -18
lines
sync with head
Revision 1.25: download - view: text, markup, annotated - select for diffs
Wed Nov 25 14:28:50 2009 UTC (15 years ago) by rmind
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
uebayasi-xip-base1,
uebayasi-xip-base,
matt-premerge-20091211
Branch point for: uebayasi-xip,
rmind-uvmplock
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +5 -7
lines
Remove IPL_LPT and IPL_IPI aliases, use the actual IPLs.
Fix some broken comments.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Nov 12 19:35:59 2009 UTC (15 years, 1 month ago) by dyoung
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +9 -13
lines
Simplify activation hook.
Revision 1.21.4.2: download - view: text, markup, annotated - select for diffs
Sat May 16 10:41:24 2009 UTC (15 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.21.4.1: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.4.1: +3 -3
lines
sync with head
Revision 1.21.18.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:19:24 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +4 -4
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Tue May 12 14:25:18 2009 UTC (15 years, 7 months ago) by cegger
Branches: 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-nbase,
jym-xensuspend-base
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3
lines
struct device * -> device_t, no functional changes intended.
Revision 1.21.4.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:44 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -3
lines
sync with head.
Revision 1.21.12.1: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:35:27 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +3 -3
lines
Sync with HEAD.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Mar 18 10:22:40 2009 UTC (15 years, 8 months ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -3
lines
Ansify function definitions w/o arguments. Generated with sed.
Revision 1.11.18.4: download - view: text, markup, annotated - select for diffs
Wed May 21 05:01:12 2008 UTC (16 years, 6 months ago) by itohy
Branches: itohy-usb1
Diff to: previous 1.11.18.3: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.18.3: +6 -6
lines
Change buffer memory interface.
Revision 1.19.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:42 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +14 -31
lines
Sync with HEAD.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri Mar 28 17:14:45 2008 UTC (16 years, 8 months ago) by drochner
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-pf42-base,
yamt-pf42,
yamt-nfs-mp-base2,
yamt-nfs-mp-base,
wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
wrstuden-revivesa,
simonb-wapbl-nbase,
simonb-wapbl-base,
simonb-wapbl,
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,
hpcarm-cleanup-nbase,
haad-nbase2,
haad-dm-base2,
haad-dm-base1,
haad-dm-base,
haad-dm,
ad-audiomp2-base,
ad-audiomp2
Branch point for: yamt-nfs-mp,
nick-hppapmap,
jym-xensuspend
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +11 -11
lines
split device/softc for USB host controllers and the usb (control)
device,
this is hairy stuff, and I've only tested with uhci/ehci at pci,
please test the rest and report problems
Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:15:17 2008 UTC (16 years, 8 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +5 -22
lines
sync with head.
Revision 1.14.2.4: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:39 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.14.2.3: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.2.3: +5 -22
lines
sync with HEAD
Revision 1.6.2.6: download - view: text, markup, annotated - select for diffs
Wed Feb 27 08:36:34 2008 UTC (16 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.6.2.5: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.2.5: +5 -22
lines
sync with head.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Feb 24 05:29:31 2008 UTC (16 years, 9 months ago) by isaki
Branches: MAIN
CVS tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
hpcarm-cleanup-base,
ad-socklock-base1
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +5 -22
lines
slhci also shares usbroothub_subr.
Revision 1.15.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:05:41 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.15.2.1: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.1: +3 -12
lines
Sync with HEAD.
Revision 1.6.2.5: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:43:08 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.6.2.4: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.2.4: +3 -12
lines
sync with head
Revision 1.14.2.3: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:53:02 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.14.2.2: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.2: +3 -12
lines
sync with HEAD
Revision 1.16.6.1: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:11:05 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +3 -12
lines
Sync with HEAD
Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Jan 7 01:55:15 2008 UTC (16 years, 11 months ago) by ad
Branches: MAIN
CVS tags: nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
matt-armv6-base,
bouyer-xeni386-nbase,
bouyer-xeni386-base
Branch point for: mjf-devfs2,
keiichi-mipv6
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -10
lines
Really, remove last vestiges of simplelock debugging.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Jan 7 00:27:35 2008 UTC (16 years, 11 months ago) by ad
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -4
lines
Remove vestiges of simplelock debugging.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Jan 4 21:17:58 2008 UTC (16 years, 11 months ago) by ad
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3
lines
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.15.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 19 00:47:57 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +7 -7
lines
Sync with HEAD.
Revision 1.6.2.4: download - view: text, markup, annotated - select for diffs
Thu Nov 15 11:44:09 2007 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.6.2.3: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.2.3: +7 -7
lines
sync with head.
Revision 1.14.6.2: download - view: text, markup, annotated - select for diffs
Tue Nov 13 16:01:01 2007 UTC (17 years, 1 month ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.14.6.1: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.6.1: +5 -5
lines
Sync with HEAD
Revision 1.11.24.4: download - view: text, markup, annotated - select for diffs
Sun Nov 11 16:47:33 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.11.24.3: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.24.3: +7 -7
lines
Sync with HEAD.
Revision 1.14.2.2: download - view: text, markup, annotated - select for diffs
Thu Nov 8 10:59:49 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.14.2.1: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.1: +7 -7
lines
sync with -HEAD
Revision 1.14.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:27:09 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -4
lines
sync with HEAD
Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Nov 6 21:51:07 2007 UTC (17 years, 1 month ago) by ad
Branches: MAIN
CVS tags: yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
vmlocking2-base3,
vmlocking2-base2,
vmlocking2-base1,
vmlocking2,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
jmcneill-pm-base,
cube-autoconf-base,
cube-autoconf,
bouyer-xenamd64-base2,
bouyer-xenamd64-base
Branch point for: bouyer-xeni386
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +7 -7
lines
Use the softint_* API.
Revision 1.6.2.3: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:31:03 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.6.2.2: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.2.2: +4 -4
lines
sync with head.
Revision 1.11.24.3: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:45:01 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.11.24.2: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.24.2: +4 -4
lines
Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
Revision 1.14.6.1: download - view: text, markup, annotated - select for diffs
Thu Oct 25 22:37:57 2007 UTC (17 years, 1 month ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -4
lines
Sync with HEAD.
Revision 1.11.8.4: download - view: text, markup, annotated - select for diffs
Tue Oct 23 20:07:44 2007 UTC (17 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.11.8.3: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.8.3: +3 -4
lines
Sync with head.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Oct 19 12:00:01 2007 UTC (17 years, 1 month ago) by ad
Branches: MAIN
CVS tags: jmcneill-base
Branch point for: mjf-devfs
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -4
lines
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
Revision 1.11.8.3: download - view: text, markup, annotated - select for diffs
Fri Oct 12 13:48:53 2007 UTC (17 years, 2 months ago) by ad
Branches: vmlocking
Diff to: previous 1.11.8.2: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.8.2: +82 -38
lines
Fix merge errors.
Revision 1.11.8.2: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:41:32 2007 UTC (17 years, 2 months ago) by ad
Branches: vmlocking
Diff to: previous 1.11.8.1: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.8.1: +3 -3
lines
Sync with head.
Revision 1.11.24.2: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:48:08 2007 UTC (17 years, 3 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.11.24.1: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.24.1: +7 -7
lines
Sync with HEAD.
Revision 1.6.2.2: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:35:13 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.6.2.1: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.2.1: +3321 -1245
lines
sync with head.
Revision 1.11.20.2: download - view: text, markup, annotated - select for diffs
Mon Sep 3 10:20:27 2007 UTC (17 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.11.20.1: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.20.1: +7 -7
lines
Sync with HEAD.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Aug 24 01:49:08 2007 UTC (17 years, 3 months ago) by kiyohara
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
yamt-x86pmap-base,
yamt-x86pmap,
vmlocking-base,
nick-csl-alignment-base5
Branch point for: matt-armv6,
bouyer-xenamd64
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -3
lines
The variable slhci_usbdebug is defined in '#ifdef SLHCI_DEBUG' and
'#ifdef USB_DEBUG'.
Reported by Bernd Ernesti <netbsd@lists.veego.de>
Revision 1.11.8.1: download - view: text, markup, annotated - select for diffs
Mon Aug 20 18:36:53 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3244 -1211
lines
Sync with HEAD.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Aug 19 07:42:04 2007 UTC (17 years, 3 months ago) by kiyohara
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +6 -6
lines
slhci(4) is MP safe and can use the CALLOUT_MPSAFE flag.
patch from Matthew Orgass <darkstar@city-net.com>
Revision 1.11.24.1: download - view: text, markup, annotated - select for diffs
Thu Aug 16 11:03:04 2007 UTC (17 years, 3 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3321 -1245
lines
Sync with HEAD.
Revision 1.11.20.1: download - view: text, markup, annotated - select for diffs
Wed Aug 15 13:48:19 2007 UTC (17 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3321 -1245
lines
Sync with HEAD.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Aug 15 03:53:09 2007 UTC (17 years, 3 months ago) by kiyohara
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3321 -1245
lines
Replace to Matthew Orgass's slhci(4).
http://mail-index.netbsd.org/tech-kern/2007/06/26/0001.html
Revision 1.11.18.3: download - view: text, markup, annotated - select for diffs
Sun Jun 17 00:47:19 2007 UTC (17 years, 5 months ago) by itohy
Branches: itohy-usb1
Diff to: previous 1.11.18.2: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.18.2: +4 -2
lines
caddr_t -> u_int8_t * / const u_int8_t *
Revision 1.11.18.2: download - view: text, markup, annotated - select for diffs
Thu May 31 23:15:19 2007 UTC (17 years, 6 months ago) by itohy
Branches: itohy-usb1
Diff to: previous 1.11.18.1: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.18.1: +18 -10
lines
usbdi(9): Change usbd_map_buffer_mbuf to return the result, since
mbuf(9) chain may be fragmented and mapping failure will happen.
-void usbd_map_buffer_mbuf(usbd_xfer_handle xfer, struct mbuf *chain)
+usbd_status usbd_map_buffer_mbuf(usbd_xfer_handle xfer, struct mbuf *chain)
usbdi(9): Add more diagnostic assertions.
uhci(4): fix aux dma for mbuf mapping.
slhci(4): fix repeated interrupt transfer (not tested).
ehci/slhci/ohci/uhci: Add checks where mbuf(4) transfer is not supported.
usb_port.h: Add some compat macros for FreeBSD.
usb_mem_nodma.c: Fix typos.
Revision 1.11.18.1: download - view: text, markup, annotated - select for diffs
Tue May 22 14:57:32 2007 UTC (17 years, 6 months ago) by itohy
Branches: itohy-usb1
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +264 -63
lines
Overhaul of USB stack, mostly DMA related
This applies to NetBSD 4.99.13 (March 1, 2007)
usbdi(9) interface is based on FreeBSD version, excluding
- removal of portability code
Patch most NetBSD changes, excluding
- DMA memory "reserve", since we don't need contiguous buffers any longer
- volatiles in DMA structure, since it should not be needed
with proper bus_dmamap_sync(9)s
DMA/non-DMA memory management overhaul
- Move all DMA related code to usb_mem.[ch]
(add usb_alloc_buffer_dma(), usb_free_buffer_dma(), etc.).
XXX Should usb_mem.[ch] be renamed as usb_mem_dma.[ch] ?
- Add corresponding non-DMA code to usb_mem_nodma.[ch] .
Currently just use malloc(9).
- Above files are conditionally used by config framework (added
attributes to conf/files and dev/usb/files.usb).
- Add diagnostic panics when resource allocation is requested
on interrupt context.
- Change memory allocations (that require context) from NOWAIT to WAITOK.
Allocate DMA/non-DMA buffer per host interface, not globally.
advantage: Buffers can be freed on detaching host interface.
Activity of a host interface does not affect others.
disadvantages: It possibly consumes more memory.
API changes
- usbd_alloc_xfer() is changed:
old: usbd_xfer_handle usbd_alloc_xfer(usbd_device_handle dev);
new: usbd_xfer_handle usbd_alloc_xfer(usbd_device_handle dev,
usbd_pipe_handle pipe);
- pipe argument of usbd_setup_*xfer() are now unused
XXX the pipe argument should be removed?
- add mapping APIs
- async request will be processed as a task (kernel thread context),
and delayed to some extent
- usbdivar.h: struct usbd_xfer: renamed a member "allocbuf" to "hcbuffer"
(mapped/allocated/refered buffer for HCI driver)
- usb_port.h: change usb_proc_ptr from struct ptoc * to struct lwp *
- usb_port.h: add usb_sigproc_ptr for psignal(9) (struct proc *)
- usb.h: add UE_MAXPKTSZ(ep) and UE_MAXPKTSZ_MASK macros for USB 2.0
changes to USB device drivers
- atu, aue, axe, cdce, cue, kue, rum, udav, upl, ural, url,
uaudio, ubt, ucom, ugen, uhidev, uirda, ulpt, umidi, urio,
uscanner, ustir, utoppy:
* catch up API change of usbd_alloc_xfer()
- umass, usscanner:
* catch up API change of usbd_alloc_xfer()
* eliminate memory copy for large transfer
ohci
- free resources on detach
- add lots of bus_dmamap_sync() operations
- simplify the code of loading std chain
- rewrite code of looking up TD/ITD from DMA addr by using allocation chunk
- add workaround for CMD Tech 670 and 673 chipsets
- make sure resources are not allocated in interrupt context
- add support for mapping buffer and mbuf
slhci
- allocate xfer and slhci_xfer at once, and simplify relevant code
- add slhci_detach()
- remove second arg of slhci_attach() since it is the same as the first arg.
- add support for "mapping" (no, it doesn't map since it doesn't do DMA)
buffer and mbuf
- add pcmcia frontend
- NOT TESTED, missing hardware
ehci
- add lots of bus_dmamap_sync() operations, possibly too many
- make sure resources are not allocated in interrupt context
- add support for mapping buffer and mbuf
- done only simple test
uhci
- add lots of bus_dmamap_sync() operations, possibly too many
- make sure resources are not allocated in interrupt context
- add support for mapping buffer and mbuf
To do
- review, test, debug
- rewrite network drivers to utilize usbd_map_buffer_mbuf()
- rewrite uaudio(4) to eliminate memcpy
- "pipe" argument of usbd_setup_*xfer() should eventually be removed
Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:48:04 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +6 -6
lines
sync with head.
Revision 1.9.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:17:07 2006 UTC (18 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.9.4.1: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.4.1: +25 -25
lines
sync with head.
Revision 1.9.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:14 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +2 -2
lines
Sync with head.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:32:52 2006 UTC (18 years ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
yamt-idlelwp-base8,
yamt-idlelwp,
wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup,
post-newlock2-merge,
nick-csl-alignment-base,
newlock2-nbase,
newlock2-base,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
mjf-ufs-trans-base,
mjf-ufs-trans,
matt-nb4-arm-base,
matt-nb4-arm,
matt-mips64-base,
matt-mips64,
itohy-usb1-base,
hpcarm-cleanup,
ad-audiomp-base,
ad-audiomp
Branch point for: vmlocking,
nick-csl-alignment,
jmcneill-pm,
itohy-usb1
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +25 -25
lines
__unused removal on arguments; approved by core.
Revision 1.9.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:05:45 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +25 -25
lines
sync with head
Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:31:01 2006 UTC (18 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +25 -25
lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
Revision 1.7.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:50:03 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +6 -6
lines
sync with head
Revision 1.7.8.2: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:23:57 2006 UTC (18 years, 3 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.7.8.1: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.8.1: +4 -4
lines
sync with head.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Aug 17 17:11:28 2006 UTC (18 years, 3 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl,
newlock2
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -4
lines
Fix all the -D*DEBUG* code that it was rotting away and did not even compile.
Mostly from Arnaud Lacombe, many thanks!
Revision 1.7.8.1: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:44:11 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -4
lines
sync with head
Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Jul 17 19:29:31 2006 UTC (18 years, 4 months ago) by christos
Branches: MAIN
CVS tags: yamt-pdpolicy-base7,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -4
lines
remove lhs cast for gcc4
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:21:28 2005 UTC (19 years ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5,
yamt-uio_vmspace,
yamt-pdpolicy-base6,
yamt-pdpolicy-base5,
yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
yamt-pdpolicy-base2,
yamt-pdpolicy-base,
simonb-timecounters-base,
simonb-timecounters,
simonb-timcounters-final,
peter-altq-base,
peter-altq,
gdamore-uart-base,
gdamore-uart,
elad-kernelauth-base,
elad-kernelauth,
chap-midi-nbase,
chap-midi-base,
chap-midi
Branch point for: yamt-pdpolicy,
rpaulo-netinet-merge-pcb
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2
lines
merge ktrace-lwp.
Revision 1.3.2.5: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:04:15 2005 UTC (19 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.3.2.4: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.4: +5 -5
lines
Sync with HEAD. Here we go again...
Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Jun 1 19:40:58 2005 UTC (19 years, 6 months ago) by drochner
Branches: MAIN
CVS tags: yamt-vop-base3,
yamt-vop-base2,
yamt-vop-base,
yamt-vop,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
yamt-readahead,
thorpej-vnode-attr-base,
thorpej-vnode-attr,
ktrace-lwp-base
Branch point for: yamt-lazymbuf
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +5 -5
lines
const fall-out, from Patrick Welche
Revision 1.4.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:28:52 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +3 -3
lines
sync with -current
Revision 1.4.6.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:34:04 2005 UTC (19 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +3 -3
lines
sync with head. xen and whitespace. xen part is not finished.
Revision 1.3.2.4: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:41:33 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.3.2.3: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.3: +3 -3
lines
Sync with HEAD.
Hi Perry!
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Feb 27 00:27:02 2005 UTC (19 years, 9 months ago) by perry
Branches: MAIN
CVS tags: yamt-km-base4,
yamt-km-base3,
netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
netbsd-3,
kent-audio2-base
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -3
lines
nuke trailing whitespace
Revision 1.3.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:28:08 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.3.2.2: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.2: +2 -2
lines
Fix the sync with head I botched.
Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:46:00 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.1: +0 -0
lines
Sync with HEAD.
Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:46:19 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -3
lines
Sync with HEAD
Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Apr 22 00:17:11 2004 UTC (20 years, 7 months ago) by itojun
Branches: MAIN
CVS tags: yamt-km-base2,
yamt-km-base,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: yamt-km,
kent-audio2
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -3
lines
sprintf -> snprintf
Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Mar 13 06:50:23 2003 UTC (21 years, 9 months ago) by bsh
Branches: 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,
netbsd-2
Branch point for: ktrace-lwp
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +4 -4
lines
make this compile with SLHCI_DEBUG
Revision 1.1.6.3: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:39:12 2002 UTC (22 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.1.6.2: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.6.2: +25 -5
lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 17 21:19:54 2002 UTC (22 years, 2 months ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.1.2.2: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.2: +25 -5
lines
Catch up to -current.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Sep 8 07:58:14 2002 UTC (22 years, 3 months ago) by isaki
Branches: MAIN
CVS tags: nathanw_sa_before_merge,
nathanw_sa_base,
kqueue-beforemerge,
kqueue-base,
kqueue-aftermerge,
gmcgarry_ucred_base,
gmcgarry_ucred,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw,
fvdl_fs64_base
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +25 -5
lines
Correct xfer->busy_free status in DIAGNOSTIC.
Revision 1.1.6.2: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:44:35 2002 UTC (22 years, 3 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.1.6.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.6.1: +1606 -0
lines
sync kqueue branch with HEAD
Revision 1.1.4.2: download - view: text, markup, annotated - select for diffs
Thu Aug 29 05:22:33 2002 UTC (22 years, 3 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.1.4.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.4.1: +1606 -0
lines
catch up with -current.
Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 13 02:19:29 2002 UTC (22 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.1: +1606 -0
lines
Catch up to -current.
Revision 1.1.6.1
Sun Aug 11 13:17:53 2002 UTC (22 years, 4 months ago) by jdolecek
Branches: kqueue
FILE REMOVED
Changes since revision 1.1: +0 -1606
lines
file sl811hs.c was added on branch kqueue on 2002-09-06 08:44:35 +0000
Revision 1.1.4.1
Sun Aug 11 13:17:53 2002 UTC (22 years, 4 months ago) by gehenna
Branches: gehenna-devsw
FILE REMOVED
Changes since revision 1.1: +0 -1606
lines
file sl811hs.c was added on branch gehenna-devsw on 2002-08-29 05:22:33 +0000
Revision 1.1.2.1
Sun Aug 11 13:17:53 2002 UTC (22 years, 4 months ago) by nathanw
Branches: nathanw_sa
FILE REMOVED
Changes since revision 1.1: +0 -1606
lines
file sl811hs.c was added on branch nathanw_sa on 2002-08-13 02:19:29 +0000
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Aug 11 13:17:53 2002 UTC (22 years, 4 months ago) by isaki
Branches: MAIN
CVS tags: gehenna-devsw-base
Branch point for: nathanw_sa,
kqueue,
gehenna-devsw
Add driver for ScanLogic SL811HS/T USB Host Controller.
XXX It's experimental code yet.
For x68k: USB part of Nereid USB/Ethernet/memory board
For ISA: ISA USB Host board from Morphy planning
CVSweb <webmaster@jp.NetBSD.org>