CVS log for src/sys/dev/usb/usb_mem.c
Up to [cvs.NetBSD.org] / src / sys / dev / usb
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.84: download - view: text, markup, annotated - select for diffs
Tue Dec 21 09:51:22 2021 UTC (4 years, 10 months ago) by skrll
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20261102,
perseant-exfatfs-base-20250801,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-11-base,
netbsd-11-1-RELEASE,
netbsd-11-0-RELEASE,
netbsd-11-0-RC7,
netbsd-11-0-RC6,
netbsd-11-0-RC5,
netbsd-11-0-RC4,
netbsd-11-0-RC3,
netbsd-11-0-RC2,
netbsd-11-0-RC1,
netbsd-11,
netbsd-10-base,
netbsd-10-2-RELEASE,
netbsd-10-1-RELEASE,
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.83: preferred, colored
Changes since revision 1.83: +4 -5
lines
Change the usb_mem API to take a bus_dma_tag_t in usb_allocmem instead of
a struct usbd_bus *.
This allows an HCD to use more than one tag.
Revision 1.83: download - view: text, markup, annotated - select for diffs
Tue Dec 21 09:25:17 2021 UTC (4 years, 10 months ago) by skrll
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -3
lines
Pass up bus_dma error from usb_block_allocmem rather than always returning
USBD_NOMEM on error.
Revision 1.82: download - view: text, markup, annotated - select for diffs
Tue Dec 21 09:23:41 2021 UTC (4 years, 10 months ago) by skrll
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +7 -8
lines
Style.
Revision 1.80.4.1: download - view: text, markup, annotated - select for diffs
Thu Jun 17 04:46:31 2021 UTC (5 years, 5 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.80: preferred, colored; next MAIN 1.81: preferred, colored
Changes since revision 1.80: +13 -6
lines
Sync w/ HEAD.
Revision 1.80.6.1: download - view: text, markup, annotated - select for diffs
Mon May 31 22:15:19 2021 UTC (5 years, 5 months ago) by cjep
Branches: cjep_staticlib_x
Diff to: previous 1.80: preferred, colored; next MAIN 1.81: preferred, colored
Changes since revision 1.80: +13 -6
lines
sync with head
Revision 1.81: download - view: text, markup, annotated - select for diffs
Thu May 27 10:44:29 2021 UTC (5 years, 5 months ago) by jmcneill
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-futex2-base,
thorpej-futex2,
thorpej-cfargs2-base,
thorpej-cfargs2,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +13 -6
lines
Honour USBMALLOC_ZERO when reusing blocks from the freelist.
From sc.dying on tech-kern
Revision 1.77.2.2: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:50 2021 UTC (5 years, 7 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.77.2.1: preferred, colored; next MAIN 1.78: preferred, colored
Changes since revision 1.77.2.1: +12 -16
lines
Sync with HEAD.
Revision 1.80: download - view: text, markup, annotated - select for diffs
Tue Jan 5 18:00:21 2021 UTC (5 years, 10 months ago) by skrll
Branches: MAIN
CVS tags: thorpej-futex-base,
thorpej-cfargs-base,
thorpej-cfargs,
cjep_staticlib_x-base
Branch point for: thorpej-i2c-spi-conf,
cjep_staticlib_x
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +10 -10
lines
More converstion from usbd_status to int for function error reporting.
This time it's the turn of usb_allocmem.
Revision 1.79: download - view: text, markup, annotated - select for diffs
Tue Jan 5 16:15:09 2021 UTC (5 years, 10 months ago) by skrll
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +4 -8
lines
Replace home grown #ifdef DIAGNOSTIC check with ASSERT_SLEEPABLE
Revision 1.77.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 3 16:35:02 2021 UTC (5 years, 10 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +10 -3
lines
Sync w/ HEAD.
Revision 1.78: download - view: text, markup, annotated - select for diffs
Sat Jan 2 12:39:03 2021 UTC (5 years, 10 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +10 -3
lines
Add USBMALLOC_ZERO flag for requesting zero initialized DMA memory.
Revision 1.77: download - view: text, markup, annotated - select for diffs
Fri May 15 06:26:44 2020 UTC (6 years, 6 months ago) by skrll
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +3 -3
lines
Use howmany. NFC.
Revision 1.70.4.1: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:50 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70: +39 -40
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.76: download - view: text, markup, annotated - select for diffs
Sun Apr 5 20:59:38 2020 UTC (6 years, 7 months ago) by skrll
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +29 -26
lines
Switch USB to use non-coherent buffers for data transfers in the
same way as OpenBSD.
The use of coherent (uncacheable on ARM and other arches) mappings
for transfer buffers impacts performance, espcially where memcpys
are involved.
Audit the necessary usb_syncmem operations - a few were missing.
Revision 1.75: download - view: text, markup, annotated - select for diffs
Sun Mar 15 14:19:04 2020 UTC (6 years, 8 months ago) by skrll
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +3 -3
lines
KNF the KNF
Revision 1.74: download - view: text, markup, annotated - select for diffs
Sun Mar 15 14:17:33 2020 UTC (6 years, 8 months ago) by skrll
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +8 -8
lines
KNF
Revision 1.73: download - view: text, markup, annotated - select for diffs
Sun Mar 15 14:14:50 2020 UTC (6 years, 8 months ago) by skrll
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +2 -6
lines
Remove useless #include
Revision 1.70.10.2: download - view: text, markup, annotated - select for diffs
Fri Sep 13 06:51:58 2019 UTC (7 years, 2 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-5-RELEASE,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1
Diff to: previous 1.70.10.1: preferred, colored; branchpoint 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.10.1: +3 -3
lines
Pull up following revision(s) (requested by mrg in ticket #197):
sys/dev/usb/if_url.c: revision 1.71
sys/dev/usb/usbnet.h: revision 1.15
sys/dev/usb/usb_mem.c: revision 1.72
sys/dev/usb/if_urndis.c: revision 1.24
sys/dev/usb/if_upl.c: revision 1.67
sys/dev/usb/usbnet.c: revision 1.25
sys/dev/usb/usbnet.c: revision 1.26
sys/dev/usb/usbnet.c: revision 1.27
sys/dev/usb/usbnet.c: revision 1.28
Teach urndis to handle some REMOTE_NDIS_INDICATE_STATUS_MSG. If the status
is reasonable, don't tell userland we got an error. Stops spurious EIO.
From openbsd.
Fix bug, remove {0,0} because we switched to usb_lookup().
s/no free/no freelist entry/ in a debug message.
fix a lock hang reported by sc.dying in PR#54495.
remove locking in usbnet_tick(). assume that all locking
needs are handled inside usbnet_tick_task(), which runs in
the usbtask thread. ensure that usbnet private is valid
before using it.
also check NULL private pointer in usbnet_isdying().
all the other cases should never happen.
don't try to set dying when we haven't usbnet_attach()d yet.
reported by maxv.
- use CALLARGS vs CALLED for better usbhist
- turn off usbnetdebug default
- log for all entry/exit points of usbnet_pipe_intr()
- in usbnet_start_locked() track whether any packet has been
transmitted for setting the timer. avoids spurious
"watchdog timeouts"
- in usbnet_stop() use callout_halt() vs callout_halt, and
also stop the usb task. fixes crash of usbtask after the
phy has detached.
- add a little more defensive checking in the tick task, and
add some high-log-level logs.
- in usbnet_detach() move the call to usbnet_stop_ifp() above
the calls to callout/usbtask stopping.
- set ec_mii and unp_pri to NULL when freeing their data
normalise an error message.
document usbnet_private locking. minor knf.
Revision 1.70.10.1: download - view: text, markup, annotated - select for diffs
Sun Sep 1 13:00:36 2019 UTC (7 years, 2 months ago) by martin
Branches: netbsd-9
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +6 -6
lines
Pull up following revision(s) (requested by mrg in ticket #135):
distrib/sets/lists/comp/mi 1.2279
distrib/sets/lists/modules/mi 1.123
share/man/man9/Makefile 1.438
share/man/man9/usbnet.9 1.1-1.9
sys/dev/ic/rndisreg.h 1.3
sys/dev/usb/TODO 1.47-1.52
sys/dev/usb/TODO.usbmp 1.15,1.16
sys/dev/usb/files.usb 1.157-1.167
sys/dev/usb/if_aue.c 1.155-1.161
sys/dev/usb/if_auereg.h 1.30-1.32
sys/dev/usb/if_axe.c 1.103-1.119
sys/dev/usb/if_axen.c 1.51-1.53,1.55-1.67
sys/dev/usb/if_axenreg.h 1.15
sys/dev/usb/if_cdce.c 1.54-1.67
sys/dev/usb/if_cue.c 1.85,1.86
sys/dev/usb/if_cuereg.h 1.23
sys/dev/usb/if_kue.c 1.97-1.100
sys/dev/usb/if_kuereg.h 1.23,1.24
sys/dev/usb/if_mue.c 1.51-1.55
sys/dev/usb/if_muereg.h 1.6
sys/dev/usb/if_muevar.h 1.9
sys/dev/usb/if_smsc.c 1.46-1.61
sys/dev/usb/if_smscreg.h 1.6
sys/dev/usb/if_smscvar.h delete
sys/dev/usb/if_udav.c 1.60-1.71
sys/dev/usb/if_udavreg.h 1.14,1.15
sys/dev/usb/if_upl.c 1.65,1.66
sys/dev/usb/if_ure.c 1.15-1.31
sys/dev/usb/if_urevar.h 1.4,1.5
sys/dev/usb/if_url.c 1.67-1.70
sys/dev/usb/if_urlreg.h 1.14
sys/dev/usb/if_urndis.c 1.22-1.33
sys/dev/usb/if_urtwn.c 1.72
sys/dev/usb/ohci.c 1.290
sys/dev/usb/uhub.c 1.143
sys/dev/usb/usb.c 1.180
sys/dev/usb/usb.h 1.118
sys/dev/usb/usb_mem.c 1.71
sys/dev/usb/usb_subr.c 1.238,1.239
sys/dev/usb/usbdevs 1.772
sys/dev/usb/usbdi.c 1.183,1.186
sys/dev/usb/usbdi.h 1.97
sys/dev/usb/usbdi_util.c 1.75
sys/dev/usb/usbhist.h 1.5,1.6
sys/dev/usb/usbnet.c 1.1-1.24
sys/dev/usb/usbnet.h 1.1-1.14
sys/dev/usb/usbroothub.c 1.9
sys/dev/usb/xhci.c 1.109,1.110
sys/modules/Makefile 1.223
sys/modules/usbnet/Makefile 1.1
usbnet(9): Add common framework for USB network devices.
This bring various safety fixes to all updated drivers,
and includes locking clean up, detach safety when being
used or not, separate rx/tx locks to improve performance,
porting to NET_MPSAFE, many edge/error case bugs in
drivers fixed, as well as resovling PRs 54303 and 54308.
These drivers are converted: axe(4), axen(4), aue(4),
cdce(4), cue(4), kue(4), mue(4), smsc(4), udav(4),
upl(4), ure(4), url(4), and urndis(4).
Revision 1.72: download - view: text, markup, annotated - select for diffs
Wed Aug 28 07:11:19 2019 UTC (7 years, 2 months ago) by mrg
Branches: MAIN
CVS tags: phil-wifi-20191119,
is-mlppp-base,
is-mlppp,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base,
ad-namecache
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +3 -3
lines
s/no free/no freelist entry/ in a debug message.
Revision 1.71: download - view: text, markup, annotated - select for diffs
Wed Aug 21 10:48:37 2019 UTC (7 years, 2 months ago) by mrg
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +6 -6
lines
convert pairs of USBHIST_CALLED()+USBHIST_LOG*() into
USBHIST_CALLARGS() calls. this reduces the number of
kernel history lines consumed by these callers, and
for the +LOGN versions, add useful log info to a
message that just says "called!".
reduces the line spam which means the total info in a
full log is significantly increased.
Revision 1.53.2.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:34 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.53.2.2: preferred, colored; branchpoint 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53.2.2: +93 -226
lines
update from HEAD
Revision 1.69.2.1: download - view: text, markup, annotated - select for diffs
Thu Nov 2 21:29:52 2017 UTC (9 years 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.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69: +8 -8
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.70: download - view: text, markup, annotated - select for diffs
Sat Oct 28 00:37:12 2017 UTC (9 years ago) by pgoyette
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
phil-wifi-base,
phil-wifi-20190609,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat,
netbsd-9-base,
jdolecek-ncqfixes-base,
jdolecek-ncqfixes,
isaki-audio2-base,
isaki-audio2
Branch point for: phil-wifi,
netbsd-9
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +8 -8
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.65.2.16: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:28 2017 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.65.2.15: preferred, colored; branchpoint 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65.2.15: +2 -11
lines
Sync with HEAD
Revision 1.69: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:12 2017 UTC (9 years, 5 months ago) by chs
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
netbsd-8-base
Branch point for: netbsd-8
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +2 -11
lines
remove checks for failure after memory allocation calls that cannot fail:
kmem_alloc() with KM_SLEEP
kmem_zalloc() with KM_SLEEP
percpu_alloc()
pserialize_create()
psref_class_create()
all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.
Revision 1.64.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 5 19:54:20 2017 UTC (9 years, 7 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-2-RELEASE
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +101 -225
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.64.8.1: download - view: text, markup, annotated - select for diffs
Tue Sep 6 20:33:09 2016 UTC (10 years, 2 months ago) by skrll
Branches: netbsd-7-nhusb
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +101 -225
lines
First pass at netbsd-7 updated with USB code from HEAD
Revision 1.65.2.15: download - view: text, markup, annotated - select for diffs
Sun May 29 08:44:31 2016 UTC (10 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.65.2.14: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.14: +4 -4
lines
Sync with HEAD
Revision 1.68: download - view: text, markup, annotated - select for diffs
Sat Apr 30 14:31:39 2016 UTC (10 years, 6 months ago) by skrll
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
nick-nhusb-base-20170204,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
nick-nhusb-base-20160907,
nick-nhusb-base-20160529,
localcount-20160914,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +4 -4
lines
Make USB_FRAG_DMA_WORKAROUND compile
Revision 1.67: download - view: text, markup, annotated - select for diffs
Sat Apr 23 10:15:32 2016 UTC (10 years, 6 months ago) by skrll
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +95 -224
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.65.2.14: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:19 2016 UTC (10 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.65.2.13: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.13: +4 -3
lines
Sync with HEAD
Revision 1.66: download - view: text, markup, annotated - select for diffs
Fri Feb 19 21:41:59 2016 UTC (10 years, 8 months ago) by skrll
Branches: MAIN
CVS tags: nick-nhusb-base-20160422,
nick-nhusb-base-20160319
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +4 -3
lines
Why KASSERT when you can KASSERTMSG
Revision 1.65.2.13: download - view: text, markup, annotated - select for diffs
Tue Jan 5 06:09:26 2016 UTC (10 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.65.2.12: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.12: +2 -3
lines
Remove stray label from previous
Revision 1.65.2.12: download - view: text, markup, annotated - select for diffs
Tue Jan 5 06:05:11 2016 UTC (10 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.65.2.11: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.11: +10 -5
lines
Fix usb_block_allocmem locking
Revision 1.65.2.11: download - view: text, markup, annotated - select for diffs
Tue Nov 10 13:41:49 2015 UTC (11 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.65.2.10: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.10: +9 -6
lines
Allow sleeping in usb_block_allocmem - we're nearly there in the HCDs
Revision 1.65.2.10: download - view: text, markup, annotated - select for diffs
Tue Sep 29 11:38:29 2015 UTC (11 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.65.2.9: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.9: +6 -6
lines
sizeof KNF
Revision 1.65.2.9: download - view: text, markup, annotated - select for diffs
Sat Mar 21 15:30:11 2015 UTC (11 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.65.2.8: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.8: +4 -4
lines
Whitespace.
Revision 1.65.2.8: download - view: text, markup, annotated - select for diffs
Sat Mar 21 15:29:38 2015 UTC (11 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.65.2.7: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.7: +21 -21
lines
COnvert to USBHIST
Revision 1.65.2.7: download - view: text, markup, annotated - select for diffs
Thu Mar 19 17:26:43 2015 UTC (11 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.65.2.6: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.6: +5 -5
lines
Do the same as OpenBSD and get rid of the *_handle typedefs and use
plain structures insteads
Revision 1.65.2.6: download - view: text, markup, annotated - select for diffs
Tue Mar 17 19:10:12 2015 UTC (11 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.65.2.5: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.5: +8 -4
lines
KNF
Revision 1.65.2.5: download - view: text, markup, annotated - select for diffs
Sun Feb 1 12:08:15 2015 UTC (11 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.65.2.4: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.4: +2 -4
lines
Remove unused #includes
Revision 1.65.2.4: download - view: text, markup, annotated - select for diffs
Fri Dec 5 09:37:50 2014 UTC (11 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.65.2.3: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.3: +9 -9
lines
KNF. Remove ( ) from return statements.
Revision 1.65.2.3: download - view: text, markup, annotated - select for diffs
Wed Dec 3 12:52:07 2014 UTC (11 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.65.2.2: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.2: +40 -40
lines
The grand renaming of structure members.
No functional change.
Revision 1.65.2.2: download - view: text, markup, annotated - select for diffs
Tue Dec 2 09:00:34 2014 UTC (11 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.65.2.1: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.1: +6 -144
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.65.2.1: download - view: text, markup, annotated - select for diffs
Sun Nov 30 12:18:58 2014 UTC (11 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +3 -3
lines
Use C99 types. u_int{8,16,32,64}_t to uint{8,16,32,64}_t.
No functional change.
Revision 1.65: download - view: text, markup, annotated - select for diffs
Fri Sep 12 16:40:38 2014 UTC (12 years, 2 months ago) by skrll
Branches: MAIN
CVS tags: nick-nhusb-base-20151226,
nick-nhusb-base-20150921,
nick-nhusb-base-20150606,
nick-nhusb-base-20150406,
nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +6 -2
lines
Improve USB debugging with USBHIST based on KERNHIST.
Convert some DPRINTFs to USBHIST_LOG and allow usbdebug, ehcidebug and
umassdebug to be changed via sysctl.
Remove the #define mess in usb.h.
This was started by mrg@ and updated by reinoud@
Revision 1.53.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:51 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.53.2.1: preferred, colored; branchpoint 1.53: preferred, colored
Changes since revision 1.53.2.1: +6 -7
lines
Rebase to HEAD as of a few days ago.
Revision 1.50.2.4: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:37 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.50.2.3: preferred, colored; branchpoint 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50.2.3: +35 -18
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.62.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:48 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62: +6 -7
lines
sync with head
Revision 1.51.2.1: download - view: text, markup, annotated - select for diffs
Fri Feb 21 10:41:06 2014 UTC (12 years, 8 months ago) by sborrill
Branches: netbsd-6
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +5 -5
lines
Pull up the following revisions(s) (requested by mlelstv in ticket #1032):
sys/dev/usb/umass.c: revision 1.148
sys/dev/usb/umassvar.h: revision 1.35
sys/dev/usb/usb_mem.c: revision 1.64
Fix problem where umass might allocate buffers in interrupt context which
causes it to fail or a DIAGNOSTIC kernel to panic.
Revision 1.64: download - view: text, markup, annotated - select for diffs
Sun Dec 22 18:29:25 2013 UTC (12 years, 10 months ago) by mlelstv
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,
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: netbsd-7-nhusb,
netbsd-7
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +5 -5
lines
Catch illegal memory allocations in softints.
Revision 1.37.14.2: download - view: text, markup, annotated - select for diffs
Tue Nov 5 18:36:31 2013 UTC (13 years ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.37.14.1: preferred, colored; branchpoint 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37.14.1: +53 -9
lines
Pull down xhci support from HEAD
Revision 1.63: download - view: text, markup, annotated - select for diffs
Sun Sep 15 15:47:27 2013 UTC (13 years, 2 months ago) by martin
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -4
lines
Remove unused variable
Revision 1.53.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:40 2013 UTC (13 years, 8 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +113 -28
lines
resync with head
Revision 1.62: download - view: text, markup, annotated - select for diffs
Tue Feb 5 13:39:28 2013 UTC (13 years, 9 months ago) by christos
Branches: MAIN
CVS tags: riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
khorben-n900,
agc-symver-base,
agc-symver
Branch point for: rmind-smpnet
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +20 -10
lines
handle memory shortage correctly.
Revision 1.61: download - view: text, markup, annotated - select for diffs
Tue Feb 5 00:41:51 2013 UTC (13 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3
lines
assign nsegs before allocation
Revision 1.60: download - view: text, markup, annotated - select for diffs
Tue Feb 5 00:39:58 2013 UTC (13 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +12 -5
lines
segs is now used.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Wed Jan 23 23:44:30 2013 UTC (13 years, 9 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +5 -4
lines
bus_dmamem_alloc may change the number of requested segs, so keep the number requested for kmem_free use later
Revision 1.50.2.3: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:06:14 2013 UTC (13 years, 9 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.50.2.2: preferred, colored; branchpoint 1.50: preferred, colored
Changes since revision 1.50.2.2: +86 -19
lines
sync with head
Revision 1.58: download - view: text, markup, annotated - select for diffs
Sat Jan 19 20:49:33 2013 UTC (13 years, 9 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base8
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +4 -3
lines
avoid double assignment
Revision 1.57: download - view: text, markup, annotated - select for diffs
Sat Jan 19 20:49:06 2013 UTC (13 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +3 -3
lines
fix bogus argument to kmem_free()
Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Jan 17 06:24:44 2013 UTC (13 years, 10 months ago) by matt
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +3 -3
lines
Make sure a USB small memory fragment is a multiple of the cache line size.
(since CACHE_LINE_SIZE defaults to 64, for most instances this won't result
in any code changing).
Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Jan 7 15:07:41 2013 UTC (13 years, 10 months ago) by prlw1
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +84 -14
lines
Allow USB memory allocation by multiple segments in scatter/gather lists
rather than in a single contiguous block which causes problems with
large USB video frames.
Based on a patch by Jeremy Morse in the thread
http://mail-index.netbsd.org/current-users/2011/01/26/msg015532.html
Tested by developing http://code.opencv.org/issues/2360
OK jmcneill@
Revision 1.54: download - view: text, markup, annotated - select for diffs
Sat Jan 5 23:34:20 2013 UTC (13 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +2 -6
lines
fix debug variables.
- include opt_usb.h in usb.h so that USB_DEBUG gets set properly in it.
- normalize and sort debugging variables
Revision 1.50.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:22:10 2012 UTC (14 years ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.50.2.1: preferred, colored; branchpoint 1.50: preferred, colored
Changes since revision 1.50.2.1: +31 -16
lines
sync with head
Revision 1.53: download - view: text, markup, annotated - select for diffs
Sun Jun 10 06:15:54 2012 UTC (14 years, 5 months ago) by mrg
Branches: MAIN
CVS tags: yamt-pagecache-base7,
yamt-pagecache-base6
Branch point for: tls-maxphys
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +31 -16
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.50.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:09 2012 UTC (14 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -9
lines
sync with head
Revision 1.50.6.3: download - view: text, markup, annotated - select for diffs
Fri Feb 24 09:11:43 2012 UTC (14 years, 8 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.50.6.2: preferred, colored; branchpoint 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50.6.2: +2 -6
lines
sync to -current.
Revision 1.52: download - view: text, markup, annotated - select for diffs
Fri Feb 24 06:48:27 2012 UTC (14 years, 8 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-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base10
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +2 -7
lines
remove any remnants of freebsd/openbsd code.
Revision 1.50.6.2: download - view: text, markup, annotated - select for diffs
Mon Feb 20 03:25:33 2012 UTC (14 years, 8 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.50.6.1: preferred, colored; branchpoint 1.50: preferred, colored
Changes since revision 1.50.6.1: +30 -16
lines
convert splusb() calls to using a new usb_blk_lock.
Revision 1.50.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:35:11 2012 UTC (14 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -4
lines
merge to -current.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Fri Jan 27 18:53:09 2012 UTC (14 years, 9 months ago) by para
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,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
jmcneill-usbmp-base2
Branch point for: netbsd-6
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -4
lines
converting extent(9) from malloc(9) to kmem(9)
preceding kmem-vmem-pool-uvm patch
releng@ acknowledged
Revision 1.37.14.1: download - view: text, markup, annotated - select for diffs
Wed Jan 4 00:11:13 2012 UTC (14 years, 10 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +23 -7
lines
Merge USB_FRAG_DMA_WORKAROUND from matt-nb5-pq3 branch.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Tue Sep 27 01:02:38 2011 UTC (15 years, 1 month ago) by jym
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
mrg-ohci-jmcneill-usbmp-base,
mrg-ohci-jmcneill-usbmp,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache,
jmcneill-usbmp
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +8 -8
lines
Modify *ASSERTMSG() so they are now used as variadic macros. The main goal
is to provide routines that do as KASSERT(9) says: append a message
to the panic format string when the assertion triggers, with optional
arguments.
Fix call sites to reflect the new definition.
Discussed on tech-kern@. See
http://mail-index.netbsd.org/tech-kern/2011/09/07/msg011427.html
Revision 1.37.18.2: download - view: text, markup, annotated - select for diffs
Tue Aug 2 01:09:44 2011 UTC (15 years, 3 months ago) by cliff
Branches: matt-nb5-pq3
Diff to: previous 1.37.18.1: preferred, colored; branchpoint 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37.18.1: +3 -3
lines
silence the "usb_block_allocmem: in interrupt context" print
Revision 1.46.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:20:10 2011 UTC (15 years, 4 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +77 -40
lines
Catchup with rmind-uvmplock merge.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Sun Jun 12 03:26:20 2011 UTC (15 years, 5 months ago) by rmind
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +4 -4
lines
Fix the build of ALL kernel (hi matt@).
Revision 1.38.4.3: download - view: text, markup, annotated - select for diffs
Sun Jun 12 00:24:27 2011 UTC (15 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.38.4.2: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.4.2: +75 -38
lines
sync with head
Revision 1.48: download - view: text, markup, annotated - select for diffs
Thu Jun 9 19:08:32 2011 UTC (15 years, 5 months ago) by matt
Branches: MAIN
CVS tags: rmind-uvmplock-nbase,
rmind-uvmplock-base
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +77 -40
lines
Move EHCI_DEBUG, OHCI_DEBUG, UHCI_DEBUG, USB_DEBUG, UHUB_DEBUG to opt_usb.h
(ya dependencies).
Cleanup usb_mem.c a little more and add block tracking code. Help find
corruption problems.
Comment out the SPEED check for ETTF. XXX why doesn't that work right?
Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu Jun 9 07:17:02 2011 UTC (15 years, 5 months ago) by matt
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -3
lines
Use __arraycount
Revision 1.45.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:08:44 2011 UTC (15 years, 5 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +2 -6
lines
Sync with HEAD.
Revision 1.38.4.2: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:42:03 2011 UTC (15 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.38.4.1: preferred, colored; branchpoint 1.38: preferred, colored
Changes since revision 1.38.4.1: +0 -4
lines
sync with head
Revision 1.46: download - view: text, markup, annotated - select for diffs
Sun Mar 20 17:38:11 2011 UTC (15 years, 8 months ago) by tsutsui
Branches: MAIN
CVS tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +2 -6
lines
Move MALLOC_DEFINE()s from usb_mem.c to usb_subr.c.
usb_mem.c provides functions for DMA memory allocation
that is required by DMA capable host controllers only,
but MALLOC_DEFINE() isn't DMA specific and could be required
by any USB drivers.
Discussed on current-users.
Revision 1.38.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:54:16 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +31 -10
lines
sync with head
Revision 1.37.18.1: download - view: text, markup, annotated - select for diffs
Fri Jan 7 02:49:58 2011 UTC (15 years, 10 months ago) by matt
Branches: matt-nb5-pq3
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +22 -6
lines
Add USB_FRAG_DMA_WORKAROUND kludge
Revision 1.45: download - view: text, markup, annotated - select for diffs
Tue Jan 4 01:37:55 2011 UTC (15 years, 10 months ago) by matt
Branches: MAIN
CVS tags: jruoho-x86intr-base,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: jruoho-x86intr
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +8 -8
lines
Switch back to malloc since kmem isn't softintr safe.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue Jan 4 01:29:01 2011 UTC (15 years, 10 months ago) by matt
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +4 -4
lines
Use LIST_FOREACH when possible.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu Dec 16 10:08:43 2010 UTC (15 years, 11 months ago) by pooka
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +4 -2
lines
_KERNEL_OPT
XXX: should figure out how to make defopt compatible with a modular
world (e.g. "kill it" or define it a little better).
Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed Dec 15 23:43:02 2010 UTC (15 years, 11 months ago) by matt
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -3
lines
Fix typo (damn :q! in vi allow the commit to proceed).
Revision 1.41: download - view: text, markup, annotated - select for diffs
Wed Dec 15 23:38:15 2010 UTC (15 years, 11 months ago) by matt
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +32 -12
lines
Add a workaround (hopefully temporary) for corrupted usb fragments on powerpc.
With this in effect, USB is now usable on some powerpc platforms again.
Basically this prevents the DMA portion of the fragment ever overlapping the
usb_frag_hdr which is enough to solve the problem. To enable this, add
options USB_FRAG_DMA_WORKAROUND
to your config file.
Switch from malloc to kmem.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Sat Nov 13 13:52:12 2010 UTC (16 years ago) by uebayasi
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -3
lines
Don't pull in the whole uvm(9) API to access only PAGE_SIZE and
some other constants. These are provided by sys/param.h now.
Revision 1.38.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 6 08:08:40 2010 UTC (16 years ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +4 -4
lines
Sync with HEAD.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Wed Nov 3 22:34:24 2010 UTC (16 years ago) by dyoung
Branches: MAIN
CVS tags: uebayasi-xip-base4
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +4 -4
lines
Stop using the compatibility macros USB_ATTACH(), USB_DETACH(),
USB_MATCH(), et cetera. These files produce the same assembly
(according to objdump -d) before and after the change
Revision 1.37.10.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:21:35 2009 UTC (17 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37: +4 -4
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.34.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:22 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.34.4.1: preferred, colored; branchpoint 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.4.1: +15 -8
lines
sync with head.
Revision 1.37.4.1: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:31:53 2009 UTC (17 years, 8 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37: +4 -4
lines
Sync with HEAD.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Tue Feb 10 17:00:06 2009 UTC (17 years, 9 months ago) by drochner
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base3,
uebayasi-xip-base2,
uebayasi-xip-base1,
uebayasi-xip-base,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base2,
nick-hppapmap-base,
matt-premerge-20091211,
jymxensuspend-base,
jym-xensuspend-nbase,
jym-xensuspend-base
Branch point for: uebayasi-xip,
rmind-uvmplock
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +4 -4
lines
In usb_reserve_allocm(), return an error immediately if the requested
size is impossible to allocate, otherwise we might get a diagnostic
panic in subr_extent.c.
Being here, fix an off-by-one in setup.
Revision 1.28.8.1: download - view: text, markup, annotated - select for diffs
Sun Sep 28 16:06:39 2008 UTC (18 years, 1 month ago) by jdc
Branches: netbsd-3
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +9 -2
lines
Pull up revisions:
sys/dev/usb/ehci.c 1.138 via patch
sys/dev/usb/ehcivar.h 1.31 via patch
sys/dev/usb/ohci.c 1.195 via patch
sys/dev/usb/ohcivar.h 1.45 via patch
sys/dev/usb/uhci.c 1.223 via patch
sys/dev/usb/uhcivar.h 1.45 via patch
sys/dev/usb/usb_mem.c 1.37 via patch
sys/dev/usb/usb_mem.h 1.27 via patch
requested by bouyer in ticket 1946.
Add appropriate bus_dmamap_sync() calls to uhci(4), ohci(4) and ehci(4),
as proposed on tech-kern@.
While all DMA memory used in the USB framework is mapped BUS_DMAMAP_COHERENT
(including data memory, which is memcpy'd from/to USB-private buffers),
the CPU can reorder loads or stores from/to main memory, causing the
controller to have an incoherent view of the DMA descriptors lists for a
short time. bus_dmamap_sync() should contain memory barriers that prevents
the CPU from reordering load/store. Note that BUS_DMAMAP_COHERENT is
still required for the DMA descriptor lists - these can't work properly
with software cache coherency.
This fixes "host controller process error/host controller halted" errors
I'm occasionally seeing with a umodem device on uhci on x86.
Thanks to Michael Lorenz for testing it on his O2, and Izumi Tsutsui on
his Cobalt Qube 2700.
Revision 1.35.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:35:12 2008 UTC (18 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.35.2.1: preferred, colored; branchpoint 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35.2.1: +9 -2
lines
Sync with wrstuden-revivesa-base-2.
Revision 1.31.8.1: download - view: text, markup, annotated - select for diffs
Thu Sep 4 08:46:45 2008 UTC (18 years, 2 months ago) by skrll
Branches: wrstuden-fixsa
Diff to: previous 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31: +9 -2
lines
Sync with netbsd-4.
Revision 1.31.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 31 16:48:29 2008 UTC (18 years, 2 months ago) by jdc
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base
Diff to: previous 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31: +9 -2
lines
Pull up revisions:
src/sys/dev/usb/ehci.c:1.138
src/sys/dev/usb/ehcivar.h:1.31
src/sys/dev/usb/ohci.c:1.195
src/sys/dev/usb/ohcivar.h:1.45
src/sys/dev/usb/uhcivar.h:1.45
src/sys/dev/usb/uhci.c:1.223
src/sys/dev/usb/usb_mem.c:1.37
src/sys/dev/usb/usb_mem.h:1.27
via patch (requested by bouyer in ticket #1166).
Revision 1.36.2.1: download - view: text, markup, annotated - select for diffs
Thu Jul 3 18:38:05 2008 UTC (18 years, 4 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +9 -2
lines
Sync with head.
Revision 1.33.16.2: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:11 2008 UTC (18 years, 4 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.33.16.1: preferred, colored; branchpoint 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.16.1: +7 -0
lines
Sync with HEAD.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Sat Jun 28 17:42:53 2008 UTC (18 years, 4 months ago) by bouyer
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
simonb-wapbl-nbase,
simonb-wapbl-base,
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-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-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
haad-nbase2,
haad-dm-base2,
haad-dm-base1,
haad-dm-base,
haad-dm,
ad-audiomp2-base,
ad-audiomp2
Branch point for: nick-hppapmap,
matt-nb5-pq3,
matt-nb5-mips64,
jym-xensuspend
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +9 -2
lines
Add appropriate bus_dmamap_sync() calls to uhci(4), ohci(4) and ehci(4),
as proposed on tech-kern@.
While all DMA memory used in the USB framework is mapped BUS_DMAMAP_COHERENT
(including data memory, which is memcpy'd from/to USB-private buffers),
the CPU can reorder loads or stores from/to main memory, causing the
controller to have an incoherent view of the DMA descriptors lists for a
short time. bus_dmamap_sync() should contain memory barriers that prevents
the CPU from reordering load/store. Note that BUS_DMAMAP_COHERENT is
still required for the DMA descriptor lists - these can't work properly
with software cache coherency.
This fixes "host controller process error/host controller halted" errors
I'm occasionally seeing with a umodem device on uhci on x86.
Thanks to Michael Lorenz for testing it on his O2, and Izumi Tsutsui on
his Cobalt Qube 2700.
Revision 1.35.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:37 2008 UTC (18 years, 4 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +6 -6
lines
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.34.2.2: download - view: text, markup, annotated - select for diffs
Wed Jun 4 02:05:21 2008 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.34.2.1: preferred, colored; branchpoint 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.2.1: +6 -6
lines
sync with head
Revision 1.33.16.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:56 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +8 -15
lines
Sync with HEAD.
Revision 1.31.10.5: download - view: text, markup, annotated - select for diffs
Wed May 28 13:42:08 2008 UTC (18 years, 5 months ago) by itohy
Branches: itohy-usb1
Diff to: previous 1.31.10.4: preferred, colored; branchpoint 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31.10.4: +3 -3
lines
Fix (rather critical) typo.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed May 21 17:19:44 2008 UTC (18 years, 6 months ago) by drochner
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-base3,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base
Branch point for: simonb-wapbl
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +6 -6
lines
fix argument to usb_setup_reserve() (called from USB host adapter drivers)
to be device_t consistently, from Quentin Garnier
Revision 1.31.10.4: download - view: text, markup, annotated - select for diffs
Wed May 21 05:03:48 2008 UTC (18 years, 6 months ago) by itohy
Branches: itohy-usb1
Diff to: previous 1.31.10.3: preferred, colored; branchpoint 1.31: preferred, colored
Changes since revision 1.31.10.3: +90 -2
lines
Change buffer memory interface.
Revision 1.34.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:34:51 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -9
lines
sync with head.
Revision 1.34.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:25:11 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -9
lines
sync with head.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:24:00 2008 UTC (18 years, 6 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base2,
yamt-nfs-mp-base2,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -9
lines
Remove clause 3 and 4 from TNF licenses
Revision 1.34: download - view: text, markup, annotated - select for diffs
Sat Apr 5 16:35:35 2008 UTC (18 years, 7 months ago) by cegger
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base,
yamt-nfs-mp-base
Branch point for: yamt-pf42,
yamt-nfs-mp
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +5 -5
lines
use aprint_*_dev and device_xname
Revision 1.32.16.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:30:41 2007 UTC (19 years ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +3 -3
lines
sync with HEAD
Revision 1.28.10.2: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:34:40 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.28.10.1: preferred, colored; branchpoint 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28.10.1: +3 -3
lines
sync with head.
Revision 1.32.14.1: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:47:56 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +3 -3
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.32.20.1: download - view: text, markup, annotated - select for diffs
Thu Oct 25 22:39:52 2007 UTC (19 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +3 -3
lines
Sync with HEAD.
Revision 1.32.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 23 20:09:55 2007 UTC (19 years ago) by ad
Branches: vmlocking
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +3 -3
lines
Sync with head.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Fri Oct 19 12:01:22 2007 UTC (19 years, 1 month ago) by ad
Branches: MAIN
CVS tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
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,
nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
mjf-devfs,
matt-armv6-nbase,
matt-armv6-base,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
jmcneill-pm-base,
jmcneill-base,
hpcarm-cleanup-base,
cube-autoconf-base,
cube-autoconf,
bouyer-xeni386-nbase,
bouyer-xeni386-merge1,
bouyer-xeni386-base,
bouyer-xeni386,
bouyer-xenamd64-base2,
bouyer-xenamd64-base,
ad-socklock-base1
Branch point for: mjf-devfs2
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -3
lines
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
Revision 1.28.10.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:39:21 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3
lines
sync with head.
Revision 1.31.10.3: download - view: text, markup, annotated - select for diffs
Sun Jun 17 01:24:28 2007 UTC (19 years, 5 months ago) by itohy
Branches: itohy-usb1
Diff to: previous 1.31.10.2: preferred, colored; branchpoint 1.31: preferred, colored
Changes since revision 1.31.10.2: +7 -7
lines
- Pullup 1.32
- Cleanup type of kernel addresses.
Revision 1.31.10.2: download - view: text, markup, annotated - select for diffs
Thu May 31 23:15:18 2007 UTC (19 years, 5 months ago) by itohy
Branches: itohy-usb1
Diff to: previous 1.31.10.1: preferred, colored; branchpoint 1.31: preferred, colored
Changes since revision 1.31.10.1: +14 -11
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.31.10.1: download - view: text, markup, annotated - select for diffs
Tue May 22 14:57:47 2007 UTC (19 years, 6 months ago) by itohy
Branches: itohy-usb1
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +1013 -161
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.31.4.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:57:33 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31: +3 -3
lines
Sync with HEAD.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:02:50 2007 UTC (19 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
yamt-x86pmap-base,
yamt-x86pmap,
yamt-idlelwp-base8,
vmlocking-base,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup,
nick-csl-alignment-base5,
nick-csl-alignment-base,
nick-csl-alignment,
mjf-ufs-trans-base,
mjf-ufs-trans,
matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Branch point for: vmlocking,
matt-armv6,
jmcneill-pm,
bouyer-xenamd64
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -3
lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.29.22.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:18:17 2006 UTC (19 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.29.22.1: preferred, colored; branchpoint 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29.22.1: +3 -3
lines
sync with head.
Revision 1.29.20.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:51 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29: +2 -2
lines
Sync with head.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:27 2006 UTC (20 years ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
wrstuden-fixsa-base-1,
post-newlock2-merge,
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,
matt-nb4-arm-base,
matt-nb4-arm,
itohy-usb1-base,
ad-audiomp-base,
ad-audiomp
Branch point for: yamt-idlelwp,
wrstuden-fixsa,
netbsd-4,
itohy-usb1
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -3
lines
__unused removal on arguments; approved by core.
Revision 1.29.22.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:06:52 2006 UTC (20 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -3
lines
sync with head
Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:32:00 2006 UTC (20 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -3
lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:24:01 2005 UTC (20 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5,
yamt-uio_vmspace,
yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
yamt-pdpolicy-base7,
yamt-pdpolicy-base6,
yamt-pdpolicy-base5,
yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
yamt-pdpolicy-base2,
yamt-pdpolicy-base,
yamt-pdpolicy,
simonb-timecounters-base,
simonb-timecounters,
simonb-timcounters-final,
rpaulo-netinet-merge-pcb-base,
rpaulo-netinet-merge-pcb,
peter-altq-base,
peter-altq,
gdamore-uart-base,
gdamore-uart,
elad-kernelauth-base,
elad-kernelauth,
chap-midi-nbase,
chap-midi-base,
chap-midi,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: yamt-splraiseipl,
newlock2
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -2
lines
merge ktrace-lwp.
Revision 1.27.6.1: download - view: text, markup, annotated - select for diffs
Fri May 13 17:09:07 2005 UTC (21 years, 6 months ago) by riz
Branches: netbsd-2
CVS tags: 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
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +117 -5
lines
Pull up revision 1.28 (requested by bad in ticket #1479):
Implement an USB memory reserve. Allocate some memory per host controller
in the wanted bus_dma space. If an allocation fails during operation
(i.e. when hotplugging an umass device), fall back to using the reserve.
The amount can be configured as USB_MEM_RESERVE. The default value is
256k.
Ideally, there would be a way to steal pages in the desired area from
UVM, but that's far more complicated, and this is not intrusive, plus
it works.
Revision 1.26.2.4: download - view: text, markup, annotated - select for diffs
Mon Jan 17 19:31:53 2005 UTC (21 years, 10 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.26.2.3: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26.2.3: +117 -5
lines
Sync with HEAD.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue Dec 21 16:41:24 2004 UTC (21 years, 11 months ago) by fvdl
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,
yamt-km-base4,
yamt-km-base3,
yamt-km-base2,
yamt-km-base,
yamt-km,
thorpej-vnode-attr-base,
thorpej-vnode-attr,
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,
ktrace-lwp-base,
kent-audio2-base,
kent-audio2,
kent-audio1-beforemerge
Branch point for: yamt-lazymbuf,
netbsd-3
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +117 -5
lines
Implement an USB memory reserve. Allocate some memory per host controller
in the wanted bus_dma space. If an allocation fails during operation
(i.e. when hotplugging an umass device), fall back to using the reserve.
The amount can be configured as USB_MEM_RESERVE. The default value is
256k.
Ideally, there would be a way to steal pages in the desired area from
UVM, but that's far more complicated, and this is not intrusive, plus
it works.
Revision 1.26.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:33:49 2004 UTC (22 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.26.2.2: preferred, colored
Changes since revision 1.26.2.2: +2 -2
lines
Fix the sync with head I botched.
Revision 1.26.2.2: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:51:46 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.26.2.1: preferred, colored
Changes since revision 1.26.2.1: +0 -0
lines
Sync with HEAD.
Revision 1.26.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:51:39 2004 UTC (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +11 -8
lines
Sync with HEAD
Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Jan 5 13:30:45 2004 UTC (22 years, 10 months ago) by augustss
Branches: MAIN
CVS tags: netbsd-2-base,
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,
kent-audio1-base,
kent-audio1
Branch point for: netbsd-2
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +11 -8
lines
Fix bug in error path. From OpenBSD.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Feb 1 06:23:40 2003 UTC (23 years, 9 months ago) by thorpej
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +6 -2
lines
Add extensible malloc types, adapted from FreeBSD. This turns
malloc types into a structure, a pointer to which is passed around,
instead of an int constant. Allow the limit to be adjusted when the
malloc type is defined, or with a function call, as suggested by
Jonathan Stone.
Revision 1.21.4.6: download - view: text, markup, annotated - select for diffs
Fri Jan 3 17:08:22 2003 UTC (23 years, 10 months ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.21.4.5: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.4.5: +3 -3
lines
Sync with HEAD.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Dec 30 02:44:32 2002 UTC (23 years, 10 months ago) by dsainty
Branches: MAIN
CVS tags: nathanw_sa_before_merge,
nathanw_sa_base,
fvdl_fs64_base
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3
lines
extern references to debugging globals that really exist elsewhere
Revision 1.21.6.3: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:47:11 2002 UTC (24 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.21.6.2: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.6.2: +7 -7
lines
sync kqueue branch with HEAD
Revision 1.21.4.5: download - view: text, markup, annotated - select for diffs
Thu Aug 1 02:46:05 2002 UTC (24 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.21.4.4: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.4.4: +7 -7
lines
Catch up to -current.
Revision 1.22.8.2: download - view: text, markup, annotated - select for diffs
Mon Jul 15 10:36:15 2002 UTC (24 years, 4 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.22.8.1: preferred, colored; branchpoint 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22.8.1: +7 -7
lines
catch up with -current.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Jul 11 21:14:34 2002 UTC (24 years, 4 months ago) by augustss
Branches: MAIN
CVS tags: kqueue-beforemerge,
kqueue-base,
kqueue-aftermerge,
gmcgarry_ucred_base,
gmcgarry_ucred,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw,
gehenna-devsw-base
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +7 -7
lines
Get rid of trailing white space.
Revision 1.21.4.4: download - view: text, markup, annotated - select for diffs
Wed Jul 10 17:30:29 2002 UTC (24 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.21.4.3: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.4.3: +5 -5
lines
Don't need curlwp here.
Revision 1.21.4.3: download - view: text, markup, annotated - select for diffs
Mon Jun 24 22:10:31 2002 UTC (24 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.21.4.2: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.4.2: +5 -5
lines
Curproc->curlwp renaming.
Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".
"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).
Revision 1.21.6.2: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:49:12 2002 UTC (24 years, 4 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.21.6.1: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.6.1: +3 -3
lines
catch up with -current on kqueue branch
Revision 1.21.4.2: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:46:57 2002 UTC (24 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.21.4.1: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.4.1: +3 -3
lines
Catch up to -current.
Revision 1.22.8.1: download - view: text, markup, annotated - select for diffs
Thu May 30 14:47:38 2002 UTC (24 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3
lines
Catch up with -current.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun May 19 06:24:33 2002 UTC (24 years, 6 months ago) by augustss
Branches: MAIN
CVS tags: netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001,
netbsd-1-6
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3
lines
Update dma memory access API a little.
Revision 1.21.6.1: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:59:05 2002 UTC (24 years, 10 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +4 -1
lines
Sync kqueue branch with -current.
Revision 1.21.4.1: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:16:20 2001 UTC (25 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +4 -1
lines
Catch up to -current.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Nov 13 06:24:56 2001 UTC (25 years ago) by lukem
Branches: MAIN
CVS tags: newlock-base,
newlock,
ifpoll-base,
eeh-devprop-base,
eeh-devprop
Branch point for: gehenna-devsw
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +4 -1
lines
add RCSIDs
Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 11:43:30 2000 UTC (26 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +33 -40
lines
Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
Revision 1.20.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 22 17:08:42 2000 UTC (26 years, 5 months ago) by minoura
Branches: minoura-xpg4dl
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +10 -21
lines
Sync w/ netbsd-1-5-base.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Jun 1 14:29:01 2000 UTC (26 years, 5 months ago) by augustss
Branches: MAIN
CVS tags: thorpej_scsipi_nbase,
thorpej_scsipi_beforemerge,
thorpej_scsipi_base,
thorpej-mips-cache-base,
thorpej-mips-cache,
thorpej-devvp-base3,
thorpej-devvp-base2,
thorpej-devvp-base,
thorpej-devvp,
pre-chs-ubcperf,
post-chs-ubcperf,
netbsd-1-5-base,
netbsd-1-5-RELEASE,
netbsd-1-5-PATCH003,
netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001,
netbsd-1-5-BETA2,
netbsd-1-5-BETA,
netbsd-1-5-ALPHA2,
netbsd-1-5
Branch point for: nathanw_sa,
kqueue
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +10 -21
lines
Bring the coding style into the 80s, i.e., get rid of __P and use
ANSI prototypes and declarations.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Apr 27 15:26:49 2000 UTC (26 years, 6 months ago) by augustss
Branches: MAIN
CVS tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -2
lines
Change my email address.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Mar 27 12:33:58 2000 UTC (26 years, 7 months ago) by augustss
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +8 -8
lines
Change (almost) all static to Static. The symbol `Static' can then be defined
to `' or `static' depending on if you want to debug or not.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Mar 27 08:27:03 2000 UTC (26 years, 7 months ago) by augustss
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -1
lines
Keep free block statistics.
Revision 1.14.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:35:44 1999 UTC (26 years, 10 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +23 -22
lines
Pull up to last week's -current.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Dec 18 22:47:11 1999 UTC (26 years, 11 months ago) by augustss
Branches: MAIN
CVS tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
chs-ubc2-newbase
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +6 -5
lines
Make these files compile on 64 bit archs.
Revision 1.15.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 15 00:41:39 1999 UTC (27 years ago) by fvdl
Branches: fvdl-softdep
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +13 -13
lines
Sync with -current
Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Nov 12 00:34:58 1999 UTC (27 years ago) by augustss
Branches: MAIN
CVS tags: fvdl-softdep-base
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +13 -13
lines
A number of stylistic changes to increase readability (many suggested
by Nick Hibma):
use NULL not 0
declare all local definitions static
rename s/usbd_request/usbd_xfer/ s/reqh/xfer/
rename s/r/err/
use implicit test for no err
KNF
Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Oct 12 11:24:22 1999 UTC (27 years, 1 month ago) by augustss
Branches: MAIN
CVS tags: comdex-fall-1999-base,
comdex-fall-1999
Branch point for: thorpej_scsipi,
fvdl-softdep
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +6 -6
lines
Stylistic changes.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Sep 13 19:18:17 1999 UTC (27 years, 2 months ago) by augustss
Branches: MAIN
Branch point for: wrstuden-devbsize
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +7 -7
lines
Rearrange the code a little so we can decide if we are in process
or interrupt context in a reliable way. Mainly used for DIAGNOSTIC.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Sep 11 08:19:27 1999 UTC (27 years, 2 months ago) by augustss
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -6
lines
* Move DMA buffer allocation to HC independent code.
* Remove (almost) unused definitions USBD_XFER_OUT and USBD_XFER_IN.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Sep 9 12:26:46 1999 UTC (27 years, 2 months ago) by augustss
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -1
lines
Change the internal API to allow DMA buffers to be pre-allocated by
the device driver instead of happening automagically in the HC driver.
This affects both the HC-USBD interface as well as the USBD-device
interface.
This change will allow DMA buffers to be reused e.g. in isochronous
traffic.
Add isochronous support to the UHCI driver (not for OHCI yet).
Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Aug 22 20:12:39 1999 UTC (27 years, 3 months ago) by augustss
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +8 -4
lines
Move more of the transfer completion processing to HC independent code.
Fix some problems with transfer abort & timeout.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Aug 19 21:29:04 1999 UTC (27 years, 3 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3
lines
make alpha compiler happy
Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Aug 16 20:19:55 1999 UTC (27 years, 3 months ago) by augustss
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +12 -5
lines
Change DIAGNOSTIC behaviour a little.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Aug 14 14:49:32 1999 UTC (27 years, 3 months ago) by augustss
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -3
lines
Some changes from FreeBSD (no functional differences).
Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Aug 2 19:49:50 1999 UTC (27 years, 3 months ago) by augustss
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -1
lines
Another debug message.
Revision 1.5.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 21 01:19:29 1999 UTC (27 years, 5 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +2 -2
lines
Sync w/ -current.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Jun 5 13:43:03 1999 UTC (27 years, 5 months ago) by augustss
Branches: MAIN
CVS tags: chs-ubc2-base
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2
lines
Very small formatting nit.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Dec 14 23:44:04 1998 UTC (27 years, 11 months ago) by augustss
Branches: MAIN
CVS tags: netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001,
netbsd-1-4,
kame_14_19990705,
kame_14_19990628,
kame_141_19991130,
kame
Branch point for: chs-ubc2
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +6 -1
lines
Initialize field to indicate fragment block.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Dec 11 00:05:07 1998 UTC (27 years, 11 months ago) by augustss
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +10 -14
lines
Move spls around.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Dec 9 01:02:29 1998 UTC (27 years, 11 months ago) by augustss
Branches: MAIN
CVS tags: kenh-if-detach-base,
kenh-if-detach
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +37 -2
lines
Insert some splusb() since memory allocation and deallocation can
occur from an interrupt.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Nov 25 22:32:05 1998 UTC (27 years, 11 months ago) by augustss
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +4 -3
lines
Make the copyright header conform to the NetBSD template.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Jul 24 21:09:08 1998 UTC (28 years, 3 months ago) by augustss
Branches: MAIN
CVS tags: eeh-paddr_t-base,
eeh-paddr_t,
chs-ubc-base,
chs-ubc
Add special memory allocation routines that supports allocation
DMA-able memory in small chunks (USB uses a lot of 8 byte chunks).
Using the bus_dma functions directly is inefficient.
CVSweb <webmaster@jp.NetBSD.org>